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