function wpex_hook_main_before_default() { $header_style = wpex_get_header_style(); if ($header_style == 'two' || $header_style == 'three') { // Above menu slider if ('above_menu' == wpex_post_slider_position()) { wpex_post_slider(); } wpex_header_menu(); } }
?> <?php // Start the standard WP loop while (have_posts()) { the_post(); ?> <?php // Display the page header - see functions/page-header.php wpex_page_header(); ?> <?php // Displays full-width slider, see functions/post-slider.php wpex_post_slider(); ?> <div id="content-wrap" class="container clr <?php echo wpex_get_post_layout_class(); ?> "> <section id="primary" class="content-area"> <div id="content" class="site-content clr" role="main"> <article class="entry clr"> <?php the_content(); ?> </article><!-- .entry clr -->
function wpex_hook_main_top_default() { $slider_position = wpex_post_slider_position(); // Above title slider if ('above_title' == $slider_position) { wpex_post_slider(); } // Page title/header wpex_display_page_header(); // Below title/header slider if ('below_title' == $slider_position) { wpex_post_slider(); } }