本文整理汇总了PHP中osc_premium_title函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_premium_title函数的具体用法?PHP osc_premium_title怎么用?PHP osc_premium_title使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_premium_title函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: osc_premium_title
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();
?>
示例2: osc_premium_url
?>
" 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();
?>
示例3: osc_premium_url
?>
"></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">
示例4: osc_premium_url
/**
* 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;
}
示例5: osc_premium_url
/**
* 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;
}