?> px;"/> </a> <?php } ?> <?php } ?> </div> <?php if (has_nav_menu('primary')) { ?> <div class="menuWrapper"> <div <?php circleflip_navbar_class(); ?> > <div class="navbar-inner"> <div class="container"> <!-- .btn-navbar is used as the toggle for collapsed navbar content --> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-menu"></span> </a> <div class="navCollapse"> <?php switch (cr_get_option('top_area_header_settings')) { case 'main_navigation': wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav right', 'depth' => 13, 'fallback_cb' => false, 'walker' => new Circleflip_Nav_Walker())); break; case 'header_menu':
function circleflip_header_after() { switch (cr_get_option('header_style')) { case 'style4': //Breaking Area start if (cr_get_option('breaking_area')) { $breakingTitle = circleflip_valid(cr_get_option('breaking_title')) ? cr_get_option('breaking_title') : __('Breaking', 'circleflip'); switch (cr_get_option('breaking_content')) { case 'posts': $breakNumPosts = circleflip_valid(cr_get_option('number_breaking_posts')) ? cr_get_option('number_breaking_posts') : 10; $cat_ids = circleflip_valid(cr_get_option('breaking_selected_category')) ? implode(',', cr_get_option('breaking_selected_category')) : -1; $args = array('showposts' => $breakNumPosts, 'category' => $cat_ids, 'order' => 'DESC'); $args['suppress_filters'] = false; $ticker_posts = get_posts($args); if ($ticker_posts) { ?> <div class="slidingText full"> <div class="container"> <div class="movingHead left"> <h2><?php echo esc_html($breakingTitle); ?> </h2> </div> <div class="movingText left"> <ul id="js-news" class="js-hidden"> <?php foreach ($ticker_posts as $post) { setup_postdata($post); ?> <li class="news-item"><a href="<?php echo esc_url($post->guid); ?> "><h6><?php echo esc_html($post->post_title); ?> </h6></a></li> <?php } ?> </ul> </div> </div> </div> <?php } break; case 'custom': $custome_breaking = explode(',', cr_get_option('custome_breaking')); ?> <div class="slidingText full"> <div class="container"> <div class="movingHead left"> <h2><?php echo esc_html($breakingTitle); ?> </h2> </div> <div class="movingText left"> <ul id="js-news" class="js-hidden"> <?php foreach ($custome_breaking as $key => $text) { ?> <li class="news-item"><h6><?php echo esc_html($text); ?> </h6></li> <?php } ?> </ul> </div> </div> </div> <?php break; default: $breakNumPosts = circleflip_valid(cr_get_option('number_breaking_posts')) ? cr_get_option('number_breaking_posts') : 10; $cat_ids = circleflip_valid(cr_get_option('breaking_selected_category')) ? implode(',', cr_get_option('breaking_selected_category')) : -1; $args = array('showposts' => $breakNumPosts, 'category' => $cat_ids, 'order' => 'DESC'); $args['suppress_filters'] = false; $ticker_posts = get_posts($args); if ($ticker_posts) { ?> <div class="slidingText full"> <div class="movingHead left"> <h2><?php echo esc_html($breakingTitle); ?> </h2> </div> <div class="movingText left"> <ul id="js-news" class="js-hidden"> <?php foreach ($ticker_posts as $post) { setup_postdata($post); ?> <li class="news-item"><a href="<?php the_permalink(); ?> "><h6><?php echo esc_html($post->post_title); ?> </h6></a></li> <?php } ?> </ul> </div> </div> <?php } break; } } //Breaking Area End break; case 'style9': //Breaking Area start if (cr_get_option('breaking_area')) { $breakingTitle = circleflip_valid(cr_get_option('breaking_title')) ? cr_get_option('breaking_title') : 'Breaking'; switch (cr_get_option('breaking_content')) { case 'posts': $breakNumPosts = circleflip_valid(cr_get_option('number_breaking_posts')) ? cr_get_option('number_breaking_posts') : 10; $cat_ids = circleflip_valid(cr_get_option('breaking_selected_category')) ? implode(',', cr_get_option('breaking_selected_category')) : -1; $args = array('showposts' => $breakNumPosts, 'category' => $cat_ids, 'order' => 'DESC'); $args['suppress_filters'] = false; $ticker_posts = get_posts($args); if ($ticker_posts) { ?> <div class="slidingText full"> <div class="container"> <div class="movingHead left"> <h2><?php echo esc_html($breakingTitle); ?> </h2> </div> <div class="movingText left"> <ul id="js-news" class="js-hidden"> <?php foreach ($ticker_posts as $post) { setup_postdata($post); ?> <li class="news-item"><a href="<?php echo esc_url($post->guid); ?> "><h6><?php echo esc_html($post->post_title); ?> </h6></a></li> <?php } ?> </ul> </div> </div> </div> <?php } break; case 'custom': $custome_breaking = explode(',', cr_get_option('custome_breaking')); ?> <div class="slidingText full"> <div class="container"> <div class="movingHead left"> <h2><?php echo esc_html($breakingTitle); ?> </h2> </div> <div class="movingText left"> <ul id="js-news" class="js-hidden"> <?php foreach ($custome_breaking as $key => $text) { ?> <li class="news-item"><h6><?php echo esc_html($text); ?> </h6></li> <?php } ?> </ul> </div> </div> </div> <?php break; default: $breakNumPosts = circleflip_valid(cr_get_option('number_breaking_posts')) ? cr_get_option('number_breaking_posts') : 10; $cat_ids = circleflip_valid(cr_get_option('breaking_selected_category')) ? implode(',', cr_get_option('breaking_selected_category')) : -1; $args = array('showposts' => $breakNumPosts, 'category' => $cat_ids, 'order' => 'DESC'); $args['suppress_filters'] = false; $ticker_posts = get_posts($args); if ($ticker_posts) { ?> <div class="slidingText full"> <div class="movingHead left"> <h2><?php echo esc_html($breakingTitle); ?> </h2> </div> <div class="movingText left"> <ul id="js-news" class="js-hidden"> <?php foreach ($ticker_posts as $post) { setup_postdata($post); ?> <li class="news-item"><a href="<?php the_permalink(); ?> "><h6><?php echo esc_html($post->post_title); ?> </h6></a></li> <?php } ?> </ul> </div> </div> <?php } break; } } //Breaking Area End break; case 'style5': ?> <div class="mainHeader headerStyle5 headerAfter"> <div class="container"> <div <?php circleflip_navbar_class(); ?> > <div class="navbar-inner"> <div class="container"> <!-- .btn-navbar is used as the toggle for collapsed navbar content --> <a class="btn btn-navbar"> <span class="icon-menu"></span> </a> <div class="navCollapse navCollapse nav-collapse-headerAfter"> <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav center', 'depth' => 13, 'fallback_cb' => false, 'walker' => new Circleflip_Nav_Walker())); ?> </div> </div> </div> </div> </div> </div> <?php if (cr_get_option('sticky_header') == 1) { echo '</div>'; } ?> <?php break; } }