Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Sidebar for the blog
- *
- * @package WordPress
- * @subpackage Twenty_Eleven
- * @since Twenty Eleven 1.0
- */
- $options = twentyeleven_get_theme_options();
- $current_layout = $options['theme_layout'];
- $nav = sb_get_page_nav($post);
- if ( 'content' != $current_layout ) :
- ?>
- <div id="secondaryblog" class="widget-area" role="complementary">
- <?php
- $post_obj = $wp_query->get_queried_object();
- $post_name = $post_obj->post_name;
- $title = 'cs-' . $post_name;
- ?>
- <?php
- if($post_name == 'news-events'){
- if ( ! dynamic_sidebar( 'sidebar-web' ) ) :
- endif;
- }
- ?>
- <?php if(!$nav['no_nav']) { ?>
- <div class="SimpleSideNav">
- <?php wp_nav_menu(array('container_id' => 'left-navigation','menu' => $nav['title'])); ?>
- </div>
- <?php } ?>
- <?php if ( ! dynamic_sidebar( 'sidebar-all' ) ) : ?>
- <?php endif; // end sidebar widget area ?>
- <?php /*
- <nav id="left-nav">
- <div class="nav-wrapper">
- <?php if(!$nav['no_nav']) {
- wp_nav_menu(array('container_id' => 'left-navigation','menu' => $nav['title']));
- } ?>
- </div>
- </nav>
- */ ?>
- <?php if ( ! dynamic_sidebar( $title ) ) : ?>
- <?php endif; // end sidebar widget area ?>
- <img class="sidebar-bot" src='<?php bloginfo('stylesheet_directory'); ?>/images/blogsidebar_bluegradient_square_final_2.png' />
- </div><!-- #secondary .widget-area -->
- <?php endif;
- $parent_title = get_the_title($post->post_parent);
- if($parent_title == 'Tour'){
- echo"
- <script>
- jQuery('.w-1').hide();
- </script>
- ";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement