PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/ngamzghe/cymerion.com/wp-content/themes/whitespace-pro/
Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64
IP: 159.198.77.92
Choose File :

Url:
Dir : /home/ngamzghe/cymerion.com/wp-content/themes/whitespace-pro/front-page.php

<?php

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

	if ( ! is_page() ) {
	
		//* Add faux anchors
		add_action( 'wp_footer', 'whitespace_script_clickable' );

		//* Add body class
		add_filter( 'body_class', 'whitespace_front_page_body_class' );

	}
}

//* Enqueue scripts for backstretch
add_action( 'wp_enqueue_scripts', 'whitespace_front_page_enqueue_scripts' );
function whitespace_front_page_enqueue_scripts() {
	
	$image = get_option( 'whitespace-home-image', sprintf( '%s/images/welcome.jpg', get_stylesheet_directory_uri() ) );
	
	//* Load scripts only if custom backstretch image is being used
	if ( ! empty( $image ) && is_active_sidebar( 'welcome' ) ) {

		//* Enqueue Backstretch scripts
		wp_enqueue_script( 'whitespace-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
		wp_enqueue_script( 'whitespace-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'whitespace-backstretch' ), '1.0.0' );

		wp_localize_script( 'whitespace-backstretch-set', 'BackStretchImg', array( 'src' => str_replace( 'http:', '', $image ) ) );
	
	}

}

//* Add JS to allow elements to be faux anchors
function whitespace_script_clickable() {

	echo '<script type="text/javascript">jQuery(document).ready(function($){$(".content .entry").click(function(){window.location = $(this).find(".entry-title a").attr("href");});});</script>';

}

//* Add archive body class to the head
function whitespace_front_page_body_class( $classes ) {

	$classes[] = 'archive';
	return $classes;

}

//* Hook welcome widget area after site header
add_action( 'genesis_after_header', 'whitespace_welcome_widget_area' );
function whitespace_welcome_widget_area() {
 
	genesis_widget_area( 'welcome', array(
		'before' => '<div class="welcome">',
		'after'  => '</div>',
	) );
 
}

//* Relocate entry image
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_entry_header', 'genesis_do_post_image', 1 );

//* Run the default Genesis loop
genesis();