rendered paste body<?php/*Template Name: Events*/$aOptions = get_option('gi_subtle_theme');load_theme_textdomain('gluedideas_subtle');?><?php get_header(); ?><!-- Content Start --><div id="loop_page"><?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post_<?php the_ID(); ?>" class="post lead"> <h3 class="title"><a href="<?php the_permalink() ?>"><span><?php the_title(); ?></span></a></h3> <!-- <div class="timestamp author">Posted by Christopher Frazier on March 25, 2006</div> --> <div class="content"> <?php the_content(); ?> <?php link_pages('<h4>Pages:</h4><p>', '</p>', 'number'); ?> </div> </div><?php endwhile; endif; ?> <div id="widgets" class="page"> <div id="widgets_page" class="widget_set reduced"><?php if ($aOptions['show_subpages']) : global $id; $aSubPages = get_page_children($id, ''); if (count($aSubPages) > 0) :?> <div id="child_pages"> <h3>More Pages</h3> <ul class="icon jump"> <?php foreach ($aSubPages as $page) { echo('<li><a href="' . $page->guid . '">' . $page->post_title . '</a></li>'); } ?> </ul> </div><?php endif; ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Posts_/_Pages_3') ) { echo(' '); } ?> </div> </div> </div> <div id="loop_articles"><?php query_posts( 'category_name=Events&showposts=6' );if (have_posts()) : $iLeadIndex = 0; while (have_posts()) : the_post(); $iLeadIndex++; $sPostClass = ''; $bShowContent = true; if ($iLeadIndex <= $aOptions['lead_count']) { $sPostClass .= ' lead'; $bShowContent = true; } else { $sPostClass .= ' summary'; $bShowContent = false; } if ($iLeadIndex == $aOptions['lead_count'] + 1) { echo (__('<h2>Previous Announcements</h2>')); }?> <div id="post_<?php the_ID(); ?>" class="post<?php echo($sPostClass); ?>"> <h3 class="title"><a href="<?php the_permalink() ?>"><span><?php the_title(); ?></span></a></h3> <ul class="metalinks"> <?php _e("Posted by", 'gluedideas_subtle'); ?> <?php the_author_posts_link(); ?></li> on <?php the_time(get_option('date_format')) ?></li> </ul> <?php if ($aOptions['show_metalinks']) : ?> <ul class="metalinks"> <li class="icon comment"><a href="<?php the_permalink() ?>#comments"><?php comments_number(__('No Responses', 'gluedideas_subtle'),__('One Response', 'gluedideas_subtle'),'% ' . __('Responses', 'gluedideas_subtle')); ?></a></li> <li class="icon delicious"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php echo urlencode(get_the_title()); ?>">Del.icio.us</a></li> <li class="icon digg"><a href="http://www.digg.com/submit" target="_new">Digg</a></li> <li class="icon technorati"><a href="http://technorati.com/cosmos/search.html?url=<?php the_permalink() ?>">Technorati</a></li> </ul> <?php endif; ?> <?php if ($bShowContent) : ?> <div class="content"> <?php the_content(''); ?> <ul class="links"> <li class="icon jump"><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) : ?><a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>">Continue reading</a><?php endif; if ('open' == $post->comment_status) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { echo(" or "); } ?><a href="<?php the_permalink() ?>#comments"><?php _e("Leave a comment...", 'gluedideas_subtle'); ?></a><?php elseif (get_comments_number() > 0) : ?><?php if (strpos(get_the_content('^&^&'), '^&^&') > 0) { _e(" or ", 'gluedideas_subtle'); } ?><a href="<?php the_permalink() ?>#comments"><?php _e("Read comments...", 'gluedideas_subtle'); ?></a><?php endif; ?></li> <?php if ($aOptions['show_feedflare'] && $aOptions['feedburner'] != '') : ?> <script src="http://feeds.feedburner.com/~s/<?php echo(str_replace('http://feeds.feedburner.com/', '', $aOptions['feedburner'])) ?>?i=<?php the_permalink() ?>" type="text/javascript" charset="utf-8"></script> <?php endif; ?> </ul> </div> <?php endif; ?> </div><?php endwhile; else : ?> <h2><?php _e("Oops - There's Nothing Here", 'gluedideas_subtle'); ?></h2> <p><?php _e("It appears that there havent been any events posted yet!", 'gluedideas_subtle'); ?></p><?php endif; ?> </div> <!-- Content End --><?php get_footer(); ?>