echo osc_premium_title(); ?> " class="img-responsive"></a> <?php } ?> <?php } ?> </div> <div class="col-md-7 col-sm-7"> <h3><a href="<?php echo osc_premium_url(); ?> "><?php echo osc_premium_title(); ?> </a></h3> <p class="description"><?php echo osc_highlight(strip_tags(osc_premium_description()), 320); ?> </p> <p class="premium-price"><?php if (osc_price_enabled_at_items()) { ?> <a href="<?php echo osc_premium_url(); ?> "><span class="price"><?php echo osc_format_premium_price(); ?>
?> " title="" alt="" /> <?php } ?> </td> <?php } ?> <td class="text"> <h3> <span style="float:left;"><a href="<?php echo osc_premium_url(); ?> "><?php echo osc_highlight(strip_tags(osc_premium_title())); ?> </a></span><span style="float:right;"><?php _e("Sponsored ad", "modern"); ?> </span> </h3> <p style="clear: left;"> <strong><?php if (osc_price_enabled_at_items()) { echo osc_premium_formated_price(); ?> - <?php } echo osc_premium_city(); ?>
?> "></a> <?php } else { ?> <a class="listing-thumb" href="<?php echo osc_premium_url(); ?> " title="<?php echo osc_esc_html(osc_premium_title()); ?> "><img class="img-responsive" src="<?php echo osc_current_web_theme_url('images/no_photo.gif'); ?> " title="" alt="<?php echo osc_esc_html(osc_premium_title()); ?> " width="<?php echo $size[0]; ?> " height="<?php echo $size[1]; ?> "></a> <?php } ?> <?php } ?> <div class="info">
/** * Create automatically the url of the item details page * * @param string $locale * @return string */ function osc_premium_url($locale = '') { if (osc_rewrite_enabled()) { $sanitized_categories = array(); $cat = Category::newInstance()->hierarchy(osc_premium_category_id()); for ($i = count($cat); $i > 0; $i--) { $sanitized_categories[] = $cat[$i - 1]['s_slug']; } $url = str_replace('{CATEGORIES}', implode("/", $sanitized_categories), str_replace('{ITEM_ID}', osc_premium_id(), str_replace('{ITEM_TITLE}', osc_sanitizeString(osc_premium_title()), osc_get_preference('rewrite_item_url')))); if ($locale != '') { $path = osc_base_url() . $locale . "/" . $url; } else { $path = osc_base_url() . $url; } } else { $path = osc_item_url_ns(osc_premium_id(), $locale); } return $path; }
/** * Create automatically the url of the item details page * * @param string $locale * @return string */ function osc_premium_url($locale = '') { if (osc_rewrite_enabled()) { $sanitized_title = osc_sanitizeString(osc_premium_title()); $sanitized_category = ''; $cat = Category::newInstance()->hierarchy(osc_premium_category_id()); for ($i = count($cat); $i > 0; $i--) { $sanitized_category .= $cat[$i - 1]['s_slug'] . '/'; } if ($locale != '') { $path = osc_base_url() . sprintf('%s_%s%s_%d', $locale, $sanitized_category, $sanitized_title, osc_premium_id()); } else { $path = osc_base_url() . sprintf('%s%s_%d', $sanitized_category, $sanitized_title, osc_premium_id()); } } else { //$path = osc_base_url(true) . sprintf('?page=item&id=%d', osc_item_id()) ; $path = osc_item_url_ns(osc_premium_id(), $locale); } return $path; }