Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
     }
 }