</div> </div> <div class="row"> <div class="col-md-12"> <div id="owl-popular" class="owl-carousel"> <?php if (osc_count_latest_items() == 0) { ?> <?php _e('No listings', 'flatter'); ?> <?php } else { ?> <?php while (osc_has_latest_items()) { ?> <div class="item wow fadeInUp animated"> <div class="list"> <?php if (osc_images_enabled_at_items()) { ?> <div class="image"> <div> <?php if (osc_count_item_resources()) { ?> <a href="<?php echo osc_item_url(); ?> "><img src="<?php
if (osc_count_latest_items(null, array('sUser' => $id)) == 0) { ?> <p class="empty"><?php _e('No Latest Listings', 'classified'); ?> </p> <?php } else { ?> <table border="0" cellspacing="0"> <tbody> <?php $class = "even"; ?> <?php while (osc_has_latest_items(null, array('sUser' => $id))) { ?> <tr class="<?php echo $class . (osc_item_is_premium() ? " premium" : ""); ?> "> <?php if (osc_images_enabled_at_items()) { ?> <td class="photo"> <?php if (osc_count_item_resources()) { ?> <a href="<?php echo osc_item_url(); ?>
function meta_description() { $location = Rewrite::newInstance()->get_location(); $section = Rewrite::newInstance()->get_section(); $text = ''; switch ($location) { case 'item': switch ($section) { case 'item_add': $text = ''; break; case 'item_edit': $text = ''; break; case 'send_friend': $text = ''; break; case 'contact': $text = ''; break; default: $text = osc_item_category() . ', ' . osc_highlight(strip_tags(osc_item_description()), 140) . '..., ' . osc_item_category(); break; } break; case 'page': $text = osc_highlight(strip_tags(osc_static_page_text()), 140); break; case 'search': $result = ''; if (osc_count_items() == 0) { $text = ''; } if (osc_has_items()) { $result = osc_item_category() . ', ' . osc_highlight(strip_tags(osc_item_description()), 140) . '..., ' . osc_item_category(); } osc_reset_items(); $text = $result; case '': // home $result = ''; if (osc_count_latest_items() == 0) { $text = ''; } if (osc_has_latest_items()) { $result = osc_item_category() . ', ' . osc_highlight(strip_tags(osc_item_description()), 140) . '..., ' . osc_item_category(); } osc_reset_items(); $text = $result; break; } $text = str_replace('"', "'", $text); return $text; }
?> <?php $count = 1; ?> <?php $total_premiums = osc_count_premiums(); ?> <?php $max_latest = osc_max_latest_items(); ?> <?php $latest_list = $total_premiums + $max_latest; ?> <?php while (osc_has_latest_items($latest_list, array(), true) and $count != 13) { ?> <?php if (nc_osc_front_display_with_image()) { //ONLY DISPLAY ITEM WITH IMAGE ?> <?php if (osc_count_item_resources()) { ?> <?php $count = $count + 1; ?> <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> <div class="add"> <ul class="list-inline">