示例#1
0
    $item_title = $item['s_title'];
    ?>
            <?php 
    $item_image = ItemResource::newInstance()->getResource($ar['pk_paid_ads_id']);
    ?>
            <?php 
    $img_src = osc_base_url() . $item_image['s_path'] . $item_image['pk_i_id'] . "." . $item_image['s_extension'];
    ?>
            <?php 
    $item_description = $item['s_description'];
    ?>
            
            
            <div>
                <a href="<?php 
    echo osc_item_url_from_item($item);
    ?>
">
                    <img class="img-responsive" data-u="image" src="<?php 
    echo $img_src;
    ?>
" alt="" />
                </a>
                <div data-u="caption" data-t="MCLIP|B" style="position: absolute; bottom:0px; left: 0px;
                    width:950px; height: 100px;top:260px;">
                    <div style="position: absolute; top: 0px; bottom:0px;left: 0px; width:950px; height: 100px;
                        background-color: Black; opacity: 0.5; filter: alpha(opacity=50);">
                    </div>
                    <div style="position: absolute; left: 0px;bottom:0px; width: 950px; height: 100px;
                        color: White; font-size: 20px; font-weight: bold; top:20px;line-height: 10px; text-align: center;">
                        <p><?php 
示例#2
0
/**
 * Create automatically the url of the item details page
 *
 * @param string $locale
 * @return string
 */
function osc_item_url($locale = '')
{
    return osc_item_url_from_item(osc_item(), $locale);
}