<div class="content">
<div class="content_botbg">
<div class="content_res">
<div id="breadcrumb">
<?php if ( function_exists('cp_breadcrumb') ) cp_breadcrumb(); ?>
</div>
<!-- left block -->
<div class="content_left">
<?php $term = get_queried_object(); ?>
<div class="shadowblock_out">
<div class="shadowblock">
<div id="catrss"><a href="<?php echo get_term_feed_link($term->term_id, $taxonomy); ?>"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" width="16" height="16" alt="<?php echo $term->name; ?> <?php _e( 'RSS Feed', APP_TD ); ?>" title="<?php echo $term->name; ?> <?php _e( 'RSS Feed', APP_TD ); ?>" /></a></div>
<h1 class="single dotted"><?php _e( 'Listings for', APP_TD ); ?> <?php echo $term->name; ?> (<?php echo $wp_query->found_posts; ?>)</h1>
<p><?php echo $term->description; ?></p>
</div><!-- /shadowblock -->
</div><!-- /shadowblock_out -->
<?php //get_template_part( 'loop', 'ad_listing' ); ?>
<!-- FEATURED CAT EDIT -->
<?php
wp_reset_query();
$paged = 0;
query_posts(array('post__in'=>get_option('sticky_p osts'),'post_type' => APP_POST_TYPE, APP_TAX_CAT => $term->slug, 'paged' => $paged, posts_per_page=>1, orderby => 'rand'));
global $postisfeatured;
$featurePostArray = array();
global $featurePostArray;
$postisfeatured = "1";
get_template_part( 'loop', 'ad_listing' );
wp_reset_query();
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts(array('post_type' => APP_POST_TYPE, APP_TAX_CAT => $term->slug, 'paged' => $paged));
$postisfeatured = "";
get_template_part( 'loop', 'ad_listing' );
wp_reset_query();
?>
</div><!-- /content_left -->
<?php get_sidebar(); ?>
<div class="clr"></div>
</div><!-- /content_res -->
</div><!-- /content_botbg -->
</div><!-- /content -->