/**
  * Display slider
  */
 function catchbox_slider_display()
 {
     global $post, $wp_query;
     // Front page displays in Reading Settings
     $page_on_front = get_option('page_on_front');
     $page_for_posts = get_option('page_for_posts');
     // Get Page ID outside Loop
     $page_id = $wp_query->get_queried_object_id();
     if (is_front_page() || is_home() && $page_for_posts != $page_id) {
         if (function_exists('catchbox_pass_slider_value')) {
             catchbox_pass_slider_value();
         }
         if (function_exists('catchbox_sliders')) {
             catchbox_sliders();
         }
     }
 }
Ejemplo n.º 2
0
                <?php if ( has_nav_menu( 'primary', 'catchbox' ) ) { 
					wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'menu-header-container' ) );
				} else { ?>
                	<div class="menu-header-container">
						<?php wp_page_menu( array( 'menu_class'  => 'menu' ) ); ?>
                    </div>
				<?php
                } ?>   
			</nav><!-- #access -->
            
			<?php if ( has_nav_menu( 'secondary', 'catchbox' ) ) { ?>
                <nav id="access-secondary" role="navigation">
                	<h3 class="assistive-text"><?php _e( 'Secondary menu', 'catchbox' ); ?></h3>
						<?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
						<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'catchbox' ); ?>"><?php _e( 'Skip to primary content', 'catchbox' ); ?></a></div>
						<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'catchbox' ); ?>"><?php _e( 'Skip to secondary content', 'catchbox' ); ?></a></div>
                    <?php wp_nav_menu( array( 'theme_location'  => 'secondary' ) );  ?>
                </nav>
            <?php } ?>
	</header><!-- #branding -->
    
	<div id="main" class="clearfix">

		<div id="primary">
			<div id="content" role="main">
    			<?php 
				// Passing The Slider Value and Running the slider in the Homepage or Front Page only
				if ( is_home() || is_front_page() )  {
					if ( function_exists( 'catchbox_pass_slider_value' ) ) { catchbox_pass_slider_value(); }
            		if ( function_exists( 'catchbox_sliders' ) ) { catchbox_sliders(); } 
				} ?>
Ejemplo n.º 3
0
</a></div>
						<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php 
    esc_attr_e('Skip to secondary content', 'catchbox');
    ?>
"><?php 
    _e('Skip to secondary content', 'catchbox');
    ?>
</a></div>
                    <?php 
    wp_nav_menu(array('theme_location' => 'secondary'));
    ?>
                </nav>
            <?php 
}
?>
	</header><!-- #branding -->
    
	<div id="main" class="clearfix">

		<div id="primary">
			<div id="content" role="main">
    			<?php 
// Passing The Slider Value and Running the slider in the Homepage or Front Page only
if (is_home() || is_front_page()) {
    if (function_exists('catchbox_pass_slider_value')) {
        catchbox_pass_slider_value();
    }
    if (function_exists('catchbox_sliders')) {
        catchbox_sliders();
    }
}