Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Sidebar
- */
- ?>
- <div id="sidebar">
- <div class="widget-block">
- <div class="widget-blockTop"></div>
- <div class="widget-blockMid">
- <?php
- /* When we call the dynamic_sidebar() function, it'll spit out
- * the widgets for that widget area. If it instead returns false,
- * then the sidebar simply doesn't exist, so we'll hard-code in
- * some default sidebar stuff just in case.
- */ ?>
- <ul style="padding:0;">
- <?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
- <li>Widget area. Put some widgets here through the Wp Backend -> Appearance -> Widgets</li>
- <?php endif; // end primary widget area ?>
- </ul>
- <div style="clear:both;"></div>
- </div>
- <div class="widget-blockBot"></div>
- </div>
- <!-- this menu is page specific, will display all sub menu depending on the page. will be hidden on homepage -->
- <?php
- //$has_subpages = false;
- // Check to see if the current page has any subpages
- //$children = wp_list_pages('&child_of='.$post->ID.'&echo=0');
- //if($children) {
- // $has_subpages = true;
- //}
- // Reseting $children
- //$children = "";
- // Fetching the right thing depending on if we're on a subpage or on a parent page (that has subpages)
- //if(is_page() && $post->post_parent) {
- // This is a subpage
- // $children = wp_list_pages("title_li=&include=".$post->post_parent ."&echo=0");
- // $children .= wp_list_pages("title_li=&child_of=".$post->post_parent ."&echo=0");
- //} else if($has_subpages) {
- // This is a parent page that have subpages
- // $children = wp_list_pages("title_li=&include=".$post->ID ."&echo=0");
- // $children .= wp_list_pages("title_li=&child_of=".$post->ID ."&echo=0");
- //}
- ?>
- <?php // Check to see if we have anything to output ?>
- <?php // if ($children) { ?>
- <!--<div class="widget-block">
- <div class="widget-blockTop"></div>
- <div class="widget-blockMid">
- <h1 class="tsQ5"><img class="va-mid" src="<?php bloginfo('template_url'); ?>/assets/icon-links.png" width="26" height="25" alt="Login" /> Menus</h1>
- <ul>
- <?php echo $children; ?>
- </ul>
- </div>
- <div class="widget-blockBot"></div>
- </div>-->
- <?php // } ?>
- <!-- <li><a href="<?php bloginfo('url'); ?>">Lifelong Learners</a></li>
- <li><a href="<?php bloginfo('url'); ?>">Targeted Learners</a></li>
- <li><a href="<?php bloginfo('url'); ?>">Breaking Barriers Learners</a></li>
- <li><a href="<?php bloginfo('url'); ?>">Community Learners</a></li>
- <li><a href="<?php bloginfo('url'); ?>">Foundation Learners</a></li>-->
- <div class="widget-block2">
- <div class="widget-blockTop"></div>
- <div class="widget-blockMid">
- <h1 class="tsQ5"><img class="va-mid" src="<?php bloginfo('template_url'); ?>/assets/icon-news.png" width="26" height="25" alt="Login" /> Latest News</h1>
- <ul>
- <?php
- query_posts('cat=1&showposts=5&orderby=date&order=DESC');
- while(have_posts()) { the_post();?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php } ?>
- </ul>
- </div>
- <div class="widget-blockBot"><a href="<?php bloginfo('url'); ?>/news">more news <img src="<?php bloginfo('template_url'); ?>/assets/arrow.png" width="4" height="6" alt=">" /></a></div>
- </div>
- <div class="widget-block2">
- <div class="widget-blockTop"></div>
- <div class="widget-blockMid">
- <h1 class="tsQ5"><img class="va-mid" src="<?php bloginfo('template_url'); ?>/assets/icon-events.png" width="26" height="25" alt="Login" /> Professional development</h1>
- <?php $postslist = get_posts('category=3&numberposts=3&orderby=date=DESC');
- foreach ($postslist as $post) : setup_postdata($post);
- //query_posts('cat=3&showposts=3&orderby=date&order=ASC');
- //while(have_posts()) { the_post();
- //$eventmth = get_post_meta($post->ID, 'EventStartMonth', $single = true);
- //$eventday = get_post_meta($post->ID, 'EventStartDay', $single = true); ?>
- <div class="event-items">
- <h2 class="event-title"><a href="<?php the_permalink(); ?>">
- <?php the_title(); ?>
- </a></h2>
- <span class="event-duration"><span class="event-duration-inner"><?php echo the_event_start_date('','false','d M, Y').' - '.the_event_end_date('','false','d M, Y'); ?></span></span>
- <div class="event-summary">
- <?php the_excerpt_rereloaded('20','','<strong><em>','div','yes'); ?>
- </div>
- </div>
- <?php endforeach;//} ?>
- </div>
- <div class="widget-blockBot"><a href="<?php bloginfo('url'); ?>/events">more events <img src="<?php bloginfo('template_url'); ?>/assets/arrow.png" width="4" height="6" alt=">" /></a></div>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <!-- FILE sidebar.php -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement