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


PHP tservices_helper::image_src方法代码示例

本文整理汇总了PHP中tservices_helper::image_src方法的典型用法代码示例。如果您正苦于以下问题:PHP tservices_helper::image_src方法的具体用法?PHP tservices_helper::image_src怎么用?PHP tservices_helper::image_src使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tservices_helper的用法示例。


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

示例1:

                    <?php 
        echo tservices_helper::cost_format($el['price'], true);
        ?>
                </div>
                <?php 
        if (isset($video['image']) && !empty($video['image'])) {
            ?>
                <div class="b-icon b-icon__play b-icon_absolute b-icon_bot_14 b-icon_left_4"></div>
                <?php 
        }
        ?>
                <?php 
        if ($el['file']) {
            ?>
                <img width="200" height="150" class="b-pic b-pic_margbot_10" src="<?php 
            echo tservices_helper::image_src($el['file'], $user->login);
            ?>
">
                <?php 
        } else {
            ?>
                    <div class="b-pic b-pic_margbot_10 b-pic_no_img b-pic_w200_h150 b-pic_bg_f2"></div>
                <?php 
        }
        ?>
            </a>

            <figcaption class="b-txt">
                <a href="<?php 
        if ($el['is_blocked'] == 't') {
            echo 'javascript:void(0)';
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tu_inner.php

示例2: getThumbnailUrl

 public function getThumbnailUrl()
 {
     return isset($this->_data['file']) ? tservices_helper::image_src($this->_data['file'], $this->user['login']) : null;
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:4,代码来源:TServiceItem.php

示例3: array_slice

 */
if ($tservices) {
    //Только 3 штуки как в миниатюры портфолио
    $max = 3;
    $tservices = array_slice($tservices, 0, $max);
    ?>
<table class="cat-txt-prew" cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>    
<?php 
    foreach ($tservices as $key => $tservice) {
        $tservice_url = sprintf('/tu/%d/%s.html', $tservice['id'], tservices_helper::translit($tservice['title']));
        $tservice_title = LenghtFormatEx(reformat($tservice['title'], 20, 0, 1), 80);
        $alt = $tservice_title;
        $title = sprintf('Услуги фрилансера %s: %s', $tservice['login'], $tservice_title);
        if (!empty($tservice['file'])) {
            $image_url = tservices_helper::image_src($tservice['file'], $tservice['login']);
            $thumbnail200x150 = '<img width="200" height="150" class="b-pic" src="' . $image_url . '" alt="' . $alt . '" title="' . $title . '">';
        } else {
            $thumbnail200x150 = '<div class="b-pic b-pic_no_img b-pic_w200_h150 b-pic_bg_f2"></div>';
        }
        $hasVideo = !empty($tservice['videos']) && count($tservice['videos']);
        // Пока сфинск не считает все покупки, будем брать отзывы. #0026584
        $sold_count = isset($tservice['count_sold']) ? $tservice['count_sold'] : $tservice['total_feedbacks'];
        ?>
        <td itemscope itemtype="http://schema.org/ImageObject">
            <?php 
        if ($is_owner) {
            ?>
            <div id="preview_pos_<?php 
            echo $key + 1;
            ?>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:freelancers-tservices.php

示例4: reformat

">
                <a data-type="image" data-source="<?php 
            echo tservices_helper::image_src($image['fname'], $user_obj->login);
            ?>
" class="b-gallery__link" href="javascript:void(0)">
                    <img alt="<?php 
            echo $key == 0 ? reformat($data['title'], 30, 0, 1) : '';
            ?>
" 
                         title="<?php 
            echo $key == 0 ? sprintf('Услуги фрилансера %s: %s', $user_obj->login, reformat($data['title'], 30, 0, 1)) : '';
            ?>
" 
                         class="b-gallery__thumb" 
                         src="<?php 
            echo tservices_helper::image_src($image['fname'], $user_obj->login, 'thumb_');
            ?>
"
                         <?php 
            if (!$hide_img) {
                echo ' itemprop="contentUrl"';
            }
            ?>
 />
                </a>
            </li>
            <?php 
        }
    }
    ?>
        </ul>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.card.php


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