<div class="content_left"> <div class="tabcontrol"> <ul class="tabnavig">[*]<span class="big"><?php _e('Just Listed','cp')?></span>[*]<span class="big"><?php _e('Most Popular','cp')?></span>[*]<span class="big"><?php _e('Random','cp')?></span>[/list]
[*]<span class="big"><?php _e('Featured Listing','cp')?></span>[/list]
</div>
<div id="block4"> <div class="clr"></div> <div class="undertab"><span class="big"><?php _e('Classified Ads','cp') ?> / <span class="colour"><?php _e('Featured Listings','cp') ?></span></span></div> <?php if (get_option('cp_enable_featured') <> 'no') { ?> <?php query_posts(array('post__in' => get_option('sticky_posts'), 'post_status' => 'publish', 'orderby' => 'rand')); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php if (in_category(CP_BLOG_CAT_ID) || cp_post_in_desc_cat(CP_BLOG_CAT_ID)) continue; // don't show any blog posts ?> <div class="whiteblock can_chg_bg"> <?php if(get_post_meta($post->ID, 'images', true)) cp_single_image_legacy($post->ID, get_option('medium_size_w'), get_option('medium_size_h')); else cp_get_image($post->ID, 'medium', 1); ?> <div class="priceblockbig"> <h3><?php if (strlen(get_the_title()) >= 45) echo substr(get_the_title(), 0, 45).'...'; else the_title(); ?></h3> <p class="price"><?php if(get_post_meta($post->ID, 'price', true)) cp_get_price_legacy($post->ID); else cp_get_price($post->ID); ?></p> <div class="clr"></div> <p class="bot4px dotted"><?php _e('Category','cp') ?>: <?php the_category(', ') ?> | <?php _e('Listed','cp') ?>: <?php echo cp_ad_posted($post->post_date); ?></p> <p class="descr"><?php echo substr(strip_tags($post->post_content), 0, 200)."...";?></p> <div class="clr"></div> </div> <div class="clr"></div> </div> <?php endwhile; ?> <?php if(function_exists('cp_pagination')) cp_pagination(); ?> <?php else: ?> <div class="whiteblock can_chg_bg"> <h3><?php _e('Sorry, no listings were found.','cp')?></h3> </div> <?php endif; ?> <?php wp_reset_query(); ?> </div> <?php } // end featured listing check ?>
</div> </div>
<ul class="tabnavig"> blah blah blah[*]<span class="big"><?php _e('Featured Listing','cp')?></span>
There are currently 1 users browsing this thread. (0 members and 1 guests)