<?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)';
public function getThumbnailUrl() { return isset($this->_data['file']) ? tservices_helper::image_src($this->_data['file'], $this->user['login']) : null; }
*/ 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; ?>
"> <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>