当前位置: 首页>>代码示例>>PHP>>正文


PHP osc_item_formated_price函数代码示例

本文整理汇总了PHP中osc_item_formated_price函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_item_formated_price函数的具体用法?PHP osc_item_formated_price怎么用?PHP osc_item_formated_price使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了osc_item_formated_price函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: osc_item_url

    }
    ?>
                 <td class="text">
                     <h3>
                         <a href="<?php 
    echo osc_item_url();
    ?>
"><?php 
    echo osc_highlight(strip_tags(osc_item_title()));
    ?>
</a>
                     </h3>
                     <p>
                         <strong><?php 
    if (osc_price_enabled_at_items()) {
        echo osc_item_formated_price();
        ?>
 - <?php 
    }
    echo osc_item_city();
    ?>
 (<?php 
    echo osc_item_region();
    ?>
) - <?php 
    echo osc_format_date(osc_item_pub_date());
    ?>
</strong>
                     </p>
                     <p><?php 
    echo osc_highlight(strip_tags(osc_item_description()));
开发者ID:jmcclenon,项目名称:Osclass,代码行数:31,代码来源:search_list.php

示例2: _e

" rel="nofollow"><?php 
_e('expired', 'realestate');
?>
</a>
                    <a id="item_offensive" href="<?php 
echo osc_item_link_offensive();
?>
" rel="nofollow"><?php 
_e('offensive', 'realestate');
?>
</a>
                </div>
                <div class="ui-content-box details-box">
                    <?php 
if (osc_price_enabled_at_items()) {
    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>';
开发者ID:blairmain,项目名称:theme-realestate,代码行数:31,代码来源:item.php

示例3: osc_item_url

    
            </div> 
            <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">   
                <div class="border-line">
                    <ul class="list-inline">
                        <li><h4 class="cat-title"><a href="<?php 
    echo osc_item_url();
    ?>
"><?php 
    echo osc_highlight(strip_tags(osc_item_title()));
    ?>
</a></h4></li>
                        <li style="margin-left:50px;"><span style="color:#7e391a; font-weight:bold;">
                            <?php 
    if (osc_price_enabled_at_items()) {
        echo "\$" . osc_item_formated_price();
    }
    ?>
</span></li>
                    </ul>
                </div>
                <ul class="list-group meta-content">
                    <li>
                        <h5>Location : <?php 
    echo osc_item_city();
    ?>
</h5>
                    </li>
                    <li>
                        <h5>Posted : <?php 
    echo osc_format_date(osc_item_pub_date());
开发者ID:jhalendra,项目名称:classmandu,代码行数:30,代码来源:search_list.php

示例4: logbee_header

function logbee_header()
{
    $location = Rewrite::newInstance()->get_location();
    $section = Rewrite::newInstance()->get_section();
    if ($location == 'item' && $section == '') {
        echo '
<style type="text/css">
  .logbee ul { margin: 10px 0; list-style: none; }
  .logbee ul li { float: left; }
  .logbee .clear { clear:both; }
</style>';
        // meta-tags
        $address_array = array();
        if (osc_item_address() != "") {
            $address_array[] = osc_item_address();
        }
        if (osc_item_city_area() != "") {
            $address_array[] = osc_item_city_area();
        }
        if (osc_item_zip() != "") {
            $address_array[] = osc_item_zip();
        }
        if (osc_item_city() != "") {
            $address_array[] = osc_item_city();
        }
        if (osc_item_region() != "") {
            $address_array[] = osc_item_region();
        }
        if (osc_item_country() != "") {
            $address_array[] = osc_item_country();
        }
        $address = implode(", ", $address_array);
        $price = '';
        if (osc_item_formated_price() != "") {
            $price = osc_item_formated_price();
        }
        $email = '';
        if (osc_item_show_email()) {
            $email = osc_item_contact_email();
        }
        echo '
 <meta property="logbee:title" content="' . osc_esc_html(osc_item_title()) . '"/>
 <meta property="logbee:url"   content="' . osc_esc_html(osc_item_url()) . '"/>
 <meta property="logbee:desc"  content="' . osc_esc_html(osc_item_description()) . '"/>
 <meta property="logbee:addr"  content="' . osc_esc_html($address) . '"/>
 <meta property="logbee:email" content="' . osc_esc_html($email) . '"/>
 <meta property="logbee:price" content="' . osc_esc_html($price) . '"/>';
        // do we have the cars_plugin enabled?
        if (osc_plugin_is_enabled('cars_attributes/index.php')) {
            require_once osc_plugin_path('') . '/cars_attributes/ModelCars.php';
            if (osc_is_this_category('cars_plugin', osc_item_category_id())) {
                $detail = ModelCars::newInstance()->getCarAttr(osc_item_id());
                echo '
 <meta property="logbee:type" content="car"/>
 <meta property="logbee:mileage" content="' . osc_esc_html(@$detail['i_mileage']) . '"/>
 <meta property="logbee:firstreg" content="' . osc_esc_html(@$detail['i_year']) . '"/>';
            }
        }
        // do we have the realestate_plugin enabled?
        if (osc_plugin_is_enabled('realestate_attributes/index.php')) {
            require_once osc_plugin_path('') . '/realestate_attributes/ModelRealEstate.php';
            if (osc_is_this_category('realestate_plugin', osc_item_category_id())) {
                $detail = ModelRealEstate::newInstance()->getAttributes(osc_item_id());
                echo '
 <meta property="logbee:type" content="realty"/>
 <meta property="logbee:rooms" content="' . osc_esc_html(@$detail['i_num_rooms']) . '"/>
 <meta property="logbee:size" content="' . osc_esc_html(@$detail['s_square_meters']) . ' sqm"/>';
            }
        }
        // images
        osc_reset_resources();
        $images_array = array();
        for ($i = 0; osc_has_item_resources(); $i++) {
            $images_array[] = osc_esc_html(osc_resource_url());
        }
        $images = implode("|", $images_array);
        echo '
 <meta property="logbee:imgurl" content="' . $images . '"/>
 ';
        osc_reset_resources();
        echo "\n";
    }
}
开发者ID:bomvendador,项目名称:soroka_r,代码行数:83,代码来源:index.php


注:本文中的osc_item_formated_price函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。