Advertisement
Guest User

sidebar-blog.php

a guest
Mar 3rd, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.56 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Sidebar for the blog
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Eleven
  7.  * @since Twenty Eleven 1.0
  8.  */
  9.  
  10. $options = twentyeleven_get_theme_options();
  11. $current_layout = $options['theme_layout'];
  12. $nav = sb_get_page_nav($post);
  13. if ( 'content' != $current_layout ) :
  14. ?>
  15.  
  16.         <div id="secondaryblog" class="widget-area" role="complementary">
  17.         <?php
  18.             $post_obj = $wp_query->get_queried_object();
  19.             $post_name = $post_obj->post_name;
  20.             $title = 'cs-' . $post_name;
  21.             ?>
  22.         <?php
  23.             if($post_name == 'news-events'){
  24.                 if ( ! dynamic_sidebar( 'sidebar-web' ) ) :
  25.                 endif;
  26.             }
  27.         ?>
  28.  
  29.         <?php if(!$nav['no_nav']) { ?>
  30.             <div class="SimpleSideNav">
  31.                 <?php wp_nav_menu(array('container_id' => 'left-navigation','menu' => $nav['title'])); ?>
  32.             </div>
  33.         <?php } ?>
  34.  
  35.  
  36.         <?php if ( ! dynamic_sidebar( 'sidebar-all' ) ) : ?>
  37.         <?php endif; // end sidebar widget area ?>
  38.         <?php /*
  39.         <nav id="left-nav">
  40.             <div class="nav-wrapper">
  41.                 <?php if(!$nav['no_nav']) {
  42.                     wp_nav_menu(array('container_id' => 'left-navigation','menu' => $nav['title']));
  43.                 } ?>
  44.             </div>
  45.         </nav>
  46.             */ ?>
  47.  
  48.             <?php if ( ! dynamic_sidebar( $title ) ) : ?>
  49.             <?php endif; // end sidebar widget area ?>
  50.             <img class="sidebar-bot" src='<?php bloginfo('stylesheet_directory'); ?>/images/blogsidebar_bluegradient_square_final_2.png' />
  51.         </div><!-- #secondary .widget-area -->
  52.  
  53. <?php endif;
  54. $parent_title = get_the_title($post->post_parent);
  55. if($parent_title == 'Tour'){
  56.     echo"
  57.     <script>
  58.     jQuery('.w-1').hide();
  59.     </script>
  60.     ";
  61. }
  62.  
  63.  
  64.  
  65.  
  66. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement