/** * Gets if item is marked as spam * * @return boolean */ function osc_item_is_spam() { return osc_item_field("b_spam") == 1; }
echo '<div class="price">' . osc_item_formated_price() . '</div>'; } if (osc_item_country() != "" || osc_item_region() != '') { echo '<div class="has-icon"><div class="ico-location ico"></div>'; if (osc_item_region() != "") { $tempData = osc_item_region(); if (osc_item_field("fk_i_region_id") != "") { $tempData = '<a href="' . osc_search_url(array('sRegion' => osc_item_field("fk_i_region_id"))) . '">' . osc_item_region() . '</a>'; } echo $tempData; } echo '<div class="mini">'; if (osc_item_city() != "") { $tempData = osc_item_city(); if (osc_item_field("fk_i_city_id") != "") { $tempData = '<a href="' . osc_search_url(array('sCity' => osc_item_field("fk_i_city_id"))) . '">' . osc_item_city() . '</a>'; } echo $tempData; } echo '</div>'; echo '</div>'; } //echo join(', ',$regionData); ?> <div class="has-icon dates"> <div class="ico-dates ico"></div> <div><?php if (osc_item_pub_date() != '') { echo __('Published', 'realestate') . ': ' . osc_format_date(osc_item_pub_date()); } ?>
function osc_item_is_spam() { return osc_item_field("e_status") == "SPAM"; }
<div class="fb-content latest"> <ul> <?php if (osc_count_custom_items() >= 1) { ?> <?php } else { ?> <?php while (osc_has_custom_items()) { ?> <li><a href="<?php echo osc_item_url(); ?> "><?php echo osc_item_field('s_title'); ?> </a></li> <?php } ?> <?php } ?> </ul> </div> </div> <?php } ?> <?php