</div><!-- /#post-404 -->
<?php endif;?>
</div>
- <?php
- if ( !is_category(219) ) {
- get_template_part('parts/blog-sidebar-r');
- }
- ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
</div>
<?php get_footer(); ?>
</div><!-- /#post-404 -->
<?php endif;?>
</div>
- <?php
- if ( !is_category(219) ) {
- get_template_part('parts/blog-sidebar-r');
- }
- ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
</div>
<?php get_footer(); ?>
<div id="blog-side-info-wrapper" class="small-11 small-only-text-center medium-3 columns">
<div id="blog-side-info">
+ <?php if ( is_category(219) ) { ?>
+ <p>Recent Releases</p>
+ <ul>
+ <?php
+ $args = array( 'numberposts' => '5', 'post_status' => 'publish', 'category' => 219 );
+ $recent_posts = wp_get_recent_posts( $args );
+ foreach( $recent_posts as $recent ){
+ echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
+ }
+ ?>
+ </ul>
+ <?php } else { ?>
<form id="searchform" action="<?php bloginfo('url'); ?>" method="get">
<div><input id="s" class="text" type="text" name="s" value="" />
<input class="submit blogbutton" type="submit" name="submit" value="Search" />
</ul>
</div>
+ <?php } ?>
</div>
\ No newline at end of file
</div><!-- /#post-404 -->
<?php endif;?>
</div>
- <?php if (!is_post_type("ai1ec_event")) { ?>
- <?php get_template_part('parts/blog-sidebar-r'); ?>
- <?php } ?>
+ <?php get_template_part('parts/blog-sidebar-r'); ?>
</div>
<?php get_footer(); ?>