public function actionIndex($filter_name = '', $directory = '/images', $page = 1, $target = '', $thumb = '') { $filter_name = rtrim(str_replace(array('../', '..\\', '..', '*'), '', $filter_name), '/'); $uploads = \Yii::getAlias('@uploads'); $directory = rtrim(str_replace(array('../', '..\\', '..'), '', $directory), '/'); $directories = glob($uploads . $directory . '/' . $filter_name . '*', GLOB_ONLYDIR); if (!$directories) { $directories = array(); } $files = glob($uploads . $directory . '/' . $filter_name . '*.{jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF}', GLOB_BRACE); if (!$files) { $files = array(); } $images = array_merge($directories, $files); $image_total = count($images); $images = array_splice($images, ($page - 1) * 16, 16); foreach ($images as $image) { $name = str_split(basename($image), 14); if (is_dir($image)) { $data['images'][] = array('thumb' => '', 'name' => implode(' ', $name), 'type' => 'directory', 'path' => substr($image, strlen($uploads)), 'href' => ''); } elseif (is_file($image)) { $data['images'][] = array('thumb' => Image::thumb(substr($image, strlen($uploads)), 100, 100), 'name' => implode(' ', $name), 'type' => 'image', 'path' => substr($image, strlen($uploads)), 'href' => '@webuploads' . substr($image, strlen($uploads))); } } $pos = strrpos($directory, '/'); $parent = ''; if ($pos) { $parent = substr($directory, 0, $pos); } $pagination = new Pagination(['defaultPageSize' => 16, 'totalCount' => $image_total]); return $this->renderAjax('index', ['images' => $data['images'], 'parent' => $parent, 'current' => $directory, 'target' => $target, 'thumb' => $thumb, 'pagination' => $pagination]); }
protected function renderFooterCellContentJS($model) { $key = ''; if ($this->value !== null) { if (is_string($this->value)) { return ArrayHelper::getValue($model, $this->value); } else { return call_user_func($this->value, $model, '', '', $this); } } elseif ($this->attribute !== null) { $html = '<a id="thumb-image-\'+data.id+\'" class="img-thumbnail" href="/index.php?r=catalog%2Fadmin%2Fupdate&id=17" data-toggle="image">'; $html .= Html::img(\andreosoft\image\Image::thumb($model[$this->attribute], 100, 100), ['data-placeholder' => \andreosoft\image\Image::thumb('', 100, 100)]); $html .= '</a>'; $html .= '<input type="hidden" id="input-image-\'+data.id+\'" name="' . \yii\helpers\BaseHtml::getInputName($model, $this->attribute) . '">'; return $html; } return null; }
public function actionView($filter_name = '', $directory = '', $page = 1, $target = '', $thumb = '', $rootAlias = '@common') { $filter_name = rtrim(str_replace(array('../', '..\\', '..', '*'), '', $filter_name), '/'); $root = \Yii::getAlias($rootAlias); $directory = rtrim(str_replace(array('../', '..\\', '..'), '', $directory), '/'); $directories = glob($root . $directory . '/' . $filter_name . '*', GLOB_ONLYDIR); if (!$directories) { $directories = array(); } $files = glob($root . $directory . '/' . $filter_name . '*.*', GLOB_BRACE); if (!$files) { $files = array(); } $items = array_merge($directories, $files); $items_total = count($items); $items = array_splice($items, ($page - 1) * 16, 16); $data = []; foreach ($items as $item) { $name = str_split(basename($item), 14); $ext = strtolower(pathinfo($item, PATHINFO_EXTENSION)); if (is_dir($item)) { $data['files'][] = array('thumb' => '', 'name' => implode(' ', $name), 'type' => 'directory', 'path' => substr($item, strlen($root)), 'href' => ''); } elseif (is_file($item) && ($ext == 'jpg' || $ext == 'jpeg' || $ext == 'png' || $ext == 'gif')) { $data['files'][] = array('thumb' => Image::thumb(substr($item, strlen($root)), 100, 100, ['root' => \Yii::getAlias('@app')]), 'name' => implode(' ', $name), 'type' => 'image', 'path' => substr($item, strlen($root)), 'href' => ''); } elseif (is_file($item) && ($ext == 'php' || $ext == 'html' || $ext == 'css' || $ext == 'js')) { $data['files'][] = array('thumb' => '', 'name' => implode(' ', $name), 'type' => 'edited', 'path' => substr($item, strlen($root)), 'href' => ''); } else { $data['files'][] = array('thumb' => '', 'name' => implode(' ', $name), 'type' => 'file', 'path' => substr($item, strlen($root)), 'href' => ''); } } $pos = strrpos($directory, '/'); $parent = ''; if ($pos) { $parent = substr($directory, 0, $pos); } $pagination = new Pagination(['defaultPageSize' => 16, 'totalCount' => $image_total]); return $this->renderAjax('view', ['files' => $data['files'], 'parent' => $parent, 'current' => $directory, 'target' => $target, 'thumb' => $thumb, 'pagination' => $pagination, 'rootAlias' => $rootAlias]); }
echo $parent == 1 ? '<p>В этом разделе фотографии наших работ объединены в проекты.</p> ' : '<p>В этом разделе мы сделали подборку работ по типу помещений: гостиные, спальни, кухни, рестораны </p>'; ?> </header> </div> <!-- wrapper --> <div class="por-wrap"> <div class="portfolio-container"> <ul class="portfolio-list-item clearfix"> <?php foreach ($elements as $model) { ?> <li class="por-item1"> <div class="entry-item"> <div class="entry-thumb"> <?php echo Html::a(Html::img(Image::thumb($model->image, 336, 252)), ['view-by-url', 'url' => $model->seo_url]); ?> </div> </div> </li> <?php } ?> </ul> <!-- portfolio-list-item --> </div> </div> </div> <!-- widget --> <span class="bottom-line"></span>
public function renderItem($model, $key, $index) { $html = Html::a(Html::img(Image::thumb($model['url'], 100, 100), ['data-placeholder' => Image::thumb('', 100, 100)]), "", ['id' => "thumb-image-{$key}", 'data-toggle' => 'image', 'class' => 'img-thumbnail']); $html .= Html::hiddenInput(\yii\helpers\BaseHtml::getInputName($model, 'image'), $model['image'], ['id' => "input-image-{$key}"]); return $html; }
$this->params['breadcrumbs'][] = $this->title; $this->registerMetaTag(['name' => 'description', 'content' => $model->seo_description]); $this->registerMetaTag(['name' => 'keywords', 'content' => $model->seo_keyword]); $this->registerMetaTag(['name' => 'title', 'content' => $model->seo_title != '' ? $model->seo_title : $model->name]); ?> <div id="main-content"> <section class="kopa-area kopa-area-1"> <div class="wrapper"> <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12"> <?php echo Html::img(Image::thumb($model->image, 560, 343)); ?> </div> <!-- col-md-6 --> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="widget widget_text"> <?php echo $model->content; ?> </div> </div> </div> </div> </section>
<div class="row"> <div style="opacity: 1; display: block;"> <?php foreach (CatalogProducts::find()->where(['parent' => 1, 'isparent' => false, 'status' => CatalogProducts::STATUS_PUBLISHED])->limit(3)->orderBy('publishedon desc')->all() as $model) { ?> <div class="col-md-4 col-sm-4 col-xs-12"> <div class="item"> <article class="entry-item"> <div class="entry-thumb"> <div class="entry-thumb-inner"> <?php echo Html::a('', ['/catalog/site/view-by-url', 'url' => $model->seo_url], ['class' => 'thumb-hover']); ?> <?php echo Html::img(Image::thumb($model->image, 303, 205)); ?> </div> </div> <div class="entry-content"> <h4 itemtype="http://schema.org/Event" itemscope="" class="entry-title"><?php echo Html::a($model->name, ['/catalog/site/view-by-url', 'url' => $model->seo_url], ['itemprop' => 'name']); ?> </h4> <p><?php echo $model->introtext; ?> </p> </div> </article> </div>
<?php $first = true; ?> <?php foreach (CatalogProducts::find()->where(['isparent' => false, 'status' => CatalogProducts::STATUS_PUBLISHED])->orderBy('RAND()')->limit(4)->all() as $model) { ?> <?php echo $first ? '<hr class="m_bottom_15">' : ''; ?> <?php $first = false; ?> <div class="clearfix m_bottom_15"> <?php echo Html::img(Image::thumb($model->image, 80, 80), ['class' => 'f_left m_right_15 m_sm_bottom_10 f_sm_none f_xs_left m_xs_bottom_0']); ?> <?php echo Html::a($model->name, ['/catalog/site/view-by-url', 'url' => $model->seo_url], ['class' => 'color_dark d_block bt_link']); ?> <?php if ($model->price > 0) { ?> <p class="scheme_color"><?php echo $model->price; ?> руб.</p> <?php } ?> </div>
?> </div> <!--tabs--> <div class="clearfix"> <h2 class="color_dark tt_uppercase f_left m_bottom_15 f_mxs_none">Смотрите также:</h2> </div> <section class="products_container a_type_2 clearfix m_bottom_25"> <?php foreach (CatalogProducts::find()->where(['isparent' => 'false', 'status' => CatalogProducts::STATUS_PUBLISHED])->andWhere('id <> ' . $model->id)->orderBy('RAND()')->limit(4)->all() as $model) { ?> <!--product item--> <div class="product_item w_xs_full"> <figure class="r_corners photoframe animate_ftb type_2 t_align_c tr_all_hover shadow relative"> <?php echo Html::a(Html::img(Image::thumb($model->image, 80, 80), ['class' => 'tr_all_hover']), ['/catalog/site/view-by-url', 'url' => $model->seo_url], ['class' => 'd_block relative pp_wrap m_bottom_15']); ?> <figcaption> <h5 class="m_bottom_10"><?php echo Html::a($model->name, ['/catalog/site/view-by-url', 'url' => $model->seo_url], ['class' => 'color_dark']); ?> </h5> <?php if ($model->price > 0) { ?> <div class="clearfix m_bottom_15"> <p class="scheme_color f_size_large"><?php echo $model->price; ?> руб.</p> </div>
use common\widgets\dataPicker\DatePicker; use andreosoft\image\Image; /* @var $this yii\web\View */ /* @var $searchModel common\modules\catalog\models\CatalogSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ if (empty($parentModel->name)) { $this->title = Yii::t('catalog/main', 'Index'); } else { $this->title = $parentModel->name; } $this->params['breadcrumbs'][] = $this->title; ?> <?php echo GridView::widget(['options' => ['boxTitle' => Yii::t('catalog/main', 'Catalog'), 'buttonUp' => Url::to(['index', 'parent' => $parentModel->parent]), 'buttonCreate' => Url::to(['create', 'class' => $class]), 'buttonUndo' => Url::home(), 'buttonDelete' => Url::to(['batch-delete']), 'ajax' => $ajax], 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => CheckboxColumn::classname(), 'contentOptions' => ['style' => 'width: 1px;']], 'id', ['format' => 'image', 'attribute' => 'image', 'filter' => '', 'contentOptions' => ['class' => 'text-center', 'style' => 'width: 1px;'], 'value' => function ($model) { return Image::thumb($model->image, 50, 50); }], ['attribute' => 'name', 'format' => 'html', 'value' => function ($model) { return $model['isparent'] ? Html::a($model['name'], ['index', 'parent' => $model['id']]) : $model['name']; }], 'price', ['attribute' => 'status', 'label' => \Yii::t('catalog/main', 'Status'), 'filter' => Html::activeDropDownList($searchModel, 'status', CatalogProducts::getStatusArray(), ['class' => 'form-control', 'prompt' => Yii::t('catalog/main', 'All')]), 'format' => 'html', 'value' => function ($model) { if ($model->status === CatalogProducts::STATUS_PUBLISHED) { $class = 'label-success'; $lable = CatalogProducts::getStatusArray()[CatalogProducts::STATUS_PUBLISHED]; } elseif ($model->status === CatalogProducts::STATUS_NOT_PUBLISHED) { $class = 'label-danger'; $lable = CatalogProducts::getStatusArray()[CatalogProducts::STATUS_NOT_PUBLISHED]; } elseif ($model->status === CatalogProducts::STATUS_DELETED) { $class = 'label-warning'; $lable = CatalogProducts::getStatusArray()[CatalogProducts::STATUS_DELETED]; } return '<span class="label ' . $class . '">' . $lable . '</span>'; }], ['class' => ActionColumn::className()]]]);
</p> </div> <div class="row-fluid"> <?php echo $model->content; ?> </div> <div class="row-fluid text-center title" style="padding-top: 20px;"> <div class="divider"></div> <h3>Другие работы</h3> </div> <div class="row-fluid"> <?php foreach (Content::find()->where(['status' => Content::STATUS_PUBLISHED, 'class' => 'portfolio'])->andWhere('id <> ' . $model->id)->limit(4)->orderBy('RAND()')->all() as $element) { ?> <div class="span3" style="margin-left:5px;"> <?php echo Html::a(Html::img(Image::thumb($element->image, 200, 500)), ['/content/frontend/view-class-by-url', 'url' => $element->seo_url, 'class' => $element->class]); ?> </div> <?php } ?> </div> <!-- End Title --> </div> </div> </section> <!-- End Information Section -->
<li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="glyphicon glyphicon-user"></i> <span><?php echo Yii::$app->user->identity->profile->fullname; ?> <i class="caret"></i></span> </a> <ul class="dropdown-menu"> <!-- User image --> <li class="user-header"> <?php if (\Yii::$app->user->identity->profile->image) { ?> <?php echo Html::img(Image::thumb(\Yii::$app->user->identity->profile->image, 100, 100), ['class' => 'img-circle', 'alt' => Yii::$app->user->identity->username]); ?> <?php } ?> <p> <?php echo Yii::$app->user->identity->username; ?> - <?php echo Yii::$app->user->identity->role; ?> <small><?php echo Yii::t('theme/admin', 'Member since'); ?> : <?php
<?php use yii\helpers\Url; use yii\helpers\Html; use common\themes\admin\widgets\GridView; use common\themes\admin\widgets\GridViewEdited; use andreosoft\image\Image; /* @var $this yii\web\View */ /* @var $searchModel common\modules\gallery\models\GallerySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Galleries'; $this->params['breadcrumbs'][] = $this->title; echo GridView::widget(['options' => ['boxTitle' => $this->title, 'buttonCreate' => Url::to(['create', 'class' => $class]), 'buttonDelete' => Url::to(['batch-delete'])], 'dataProvider' => $dataProvider, 'columns' => [['class' => 'yii\\grid\\CheckboxColumn'], 'id', ['format' => 'image', 'label' => 'image', 'value' => function ($data) { return Image::thumb($data->url, 100, 100); }], 'name', 'table_id', 'table_name', ['attribute' => 'parent', 'format' => 'raw', 'value' => function ($model, $index, $widget) { return Html::checkbox('parent[]', $model->parent, ['value' => $index, 'disabled' => true]); }], 'parent_id', ['class' => 'common\\themes\\admin\\widgets\\ActionColumn']]]);
<p><?php echo $model->introtext; ?> </p> </div> <!-- End Text --> <!-- Media Gallery --> <div class="blog-media mt-40 mb-40 mb-xs-30"> <ul class="clearlist content-slider"> <?php foreach (Gallery::find()->where(['table_id' => $model->id, 'table_name' => 'content', 'status' => Gallery::STATUS_PUBLISHED])->orderBy('sort asc')->all() as $element) { ?> <li><?php echo Html::img(Image::thumb($element->image, 945, 532)); ?> </li <?php } ?> </ul> </div> <p><?php echo $model->content; ?> </p> </div> <!-- End Text -->
<?php use yii\helpers\Url; use yii\helpers\Html; use common\themes\admin\widgets\GridView; use andreosoft\image\Image; /* @var $this yii\web\View */ /* @var $searchModel common\modules\gallery\models\GallerySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Galleries'; $this->params['breadcrumbs'][] = $this->title; echo GridView::widget(['options' => ['boxTitle' => $this->title, 'buttonUp' => Url::to(['index', 'parent' => $parent]), 'buttonCreate' => Url::to(['create', 'class' => $class]), 'buttonUndo' => Url::home(), 'buttonDelete' => Url::to(['batch-delete']), 'ajax' => $ajax], 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\CheckboxColumn'], 'id', ['format' => 'image', 'label' => 'image', 'value' => function ($data) { return Image::thumb($data->image, 80, 80); }], 'name', 'table_id', 'table_name', ['attribute' => 'parent', 'format' => 'raw', 'value' => function ($model, $index, $widget) { return Html::checkbox('parent[]', $model->parent, ['value' => $index, 'disabled' => true]); }], 'parent_id', ['class' => 'common\\themes\\admin\\widgets\\ActionColumn']]]);
</div> <p class="copyright">Copyrights © 2015</p> </div> </div> <!-- humberger menu --> <div class="home-top-carousel loading"> <div class="owl-carousel owl-home-top-carousel"> <?php foreach (Content::findAll(['class' => 'carusel']) as $model) { ?> <div class="item"> <?php echo Html::a(Html::img(Image::thumb($model->image, 1920, 922)), '#'); ?> <span class="right-bg"></span> <div class="caption"> <h5><?php echo $model->name; ?> </h5> <p><?php echo $model->content; ?> </p> <a href="<?php echo Url::to(['/catalog/site/index', 'parent' => '1']); ?> " class="kopa-button sm-button button-3">Наше портфолио</a>
public function getDataCellValue($model, $key, $index) { $html = Html::a(Html::img(\andreosoft\image\Image::thumb($model[$this->attribute], 100, 100), ['data-placeholder' => \andreosoft\image\Image::thumb('', 100, 100)]), "", ['id' => "thumb-image-{$key}", 'data-toggle' => 'image', 'class' => 'img-thumbnail']); $html .= Html::hiddenInput(\yii\helpers\BaseHtml::getInputName($model, $this->attribute), $model[$this->attribute], ['id' => "input-image-{$key}"]); return $html; }
<!-- wrapper --> <div class="por-wrap"> <div class="portfolio-container"> <ul class="portfolio-list-item clearfix"> <?php foreach (Gallery::findAll(['table_id' => $model->id, 'status' => Gallery::STATUS_PUBLISHED]) as $element) { ?> <li class="por-item1"> <div class="entry-item"> <div class="entry-thumb"> <a class="thumb-hover"></a> <?php echo Html::img(Image::thumb($element->image, 336, 252)); ?> <?php echo Html::a('<span class="fa fa-expand"></span>', Image::thumb($element->image, 600, 400), ['class' => 'popup-icon style1 cboxElement']); ?> </div> </div> </li> <?php } ?> </ul> <!-- portfolio-list-item --> </div> </div> </div> <!-- widget --> <span class="bottom-line"></span>
</div> <!-- /.kopa-main-col --> <div class="sidebar col-md-3 pt-70"> <div class="widget kopa-article-list-widget article-list-1"> <h3 class="widget-title style3">Популярное:</h3> <ul class="clearfix"> <?php foreach (Content::find()->where(['status' => Content::STATUS_PUBLISHED, 'class' => 'blog'])->limit(5)->orderBy('views desc')->all() as $model) { ?> <li> <article class="entry-item clearfix"> <div class="entry-thumb"> <?php echo Html::a(Html::img(Image::thumb($model->image, 76, 76)), ['view-by-url', 'url' => $model->seo_url, 'view' => 'blog']); ?> </div> <div class="entry-content"> <h6 class="entry-title style1"><?php echo Html::a($model->name, ['view-by-url', 'url' => $model->seo_url, 'view' => 'blog']); ?> <span></span></h6> <span class="entry-date"><i class="fa fa-calendar"></i><?php echo $model->publishedondate; ?> </span> </div> </article> <!-- entry-item --> </li>
<div class="row"> <div class="col-md-8 col-sm-8 col-xs-12"> <div class="kopa-sync-portfolio-widget"> <div class="owl-carousel sync3"> <?php foreach (Gallery::findAll(['table_id' => $model->id, 'status' => Gallery::STATUS_PUBLISHED]) as $element) { ?> <div class="item"> <div class="entry-thumb"> <?php echo Html::img(Image::thumb($element->image, 757, 413)); ?> </div> </div> <?php } ?> </div> <!-- carousel sync 3 --> </div> <!-- kopa sync portfolio widget --> </div> <!-- col-md-8 -->
<?php use yii\helpers\Url; use yii\helpers\Html; use common\modules\content\models\Content; use andreosoft\image\Image; ?> <!--slider with banners--> <section class="container"> <div class="row clearfix"> <div class="col-lg-12 col-md-12 col-sm-12 m_xs_bottom_30"> <div id="owl-demo" class="owl-carousel owl-theme"> <?php foreach (Content::findAll(['class' => 'carusel', 'status' => Content::STATUS_PUBLISHED]) as $model) { ?> <div class="item"><?php echo Html::img(Image::thumb($model->image, 1140, 416)); ?> </div> <?php } ?> </div> </div> </div> </section>
public function run() { echo Html::a(Html::img(\andreosoft\image\Image::thumb($this->model[$this->attribute], 100, 100), ['data-placeholder' => \andreosoft\image\Image::thumb('', 100, 100)]), "", ['id' => 'thumb-image', 'data-toggle' => 'image', 'class' => 'img-thumbnail']); echo Html::hiddenInput(\yii\helpers\BaseHtml::getInputName($this->model, $this->attribute), $this->model[$this->attribute], ['id' => 'input-image']); }
</section> <h2><?php echo CatalogProducts::findOne(['id' => $model->parent])->name; ?> </h2> <hr class="m_bottom_10 divider_type_3"> <section class="products_container a_type_2 clearfix m_bottom_25"> <?php } ?> <!--product item--> <div class="product_item w_xs_full"> <figure class="r_corners photoframe animate_ftb type_2 t_align_c tr_all_hover shadow relative"> <?php echo Html::a(Html::img(Image::thumb($model->image, 242, 242), ['class' => 'tr_all_hover']), ['view-by-url', 'url' => $model->seo_url], ['class' => '_block relative pp_wrap m_bottom_15']); ?> <figcaption> <h5 class="m_bottom_10"><?php echo Html::a($model->name, ['view-by-url', 'url' => $model->seo_url], ['class' => 'color_dark']); ?> </h5> <?php if ($model->price > 0) { ?> <div class="clearfix m_bottom_15"> <p class="scheme_color f_size_large"><?php echo $model->price; ?> руб.</p> </div>
?> <!-- Information Section --> <section class="information" id="menu-info" style="margin:130px 0 80px 0;"> <div class="container"> <div class="wrapp"> <!-- Title --> <div class="row-fluid text-center title"> <div class="divider"></div> <h1><?php echo $this->title; ?> </h1> <?php foreach ($elements as $model) { ?> <div class="span4" style="margin-left:0;"> <?php echo Html::a(Html::img(Image::thumb($model->image, 200, 500)) . '<div style="font-size: 14px;">' . $model->name . '</div>', ['view-class-by-url', 'url' => $model->seo_url, 'class' => 'portfolio']); ?> </div> <?php } ?> </div> <!-- End Title --> </div> </div> </section> <!-- End Information Section -->
use andreosoft\image\Image; use common\modules\catalog\models\CatalogProducts; use common\modules\content\models\Content; use common\modules\callback\widgets\callbackModal; ?> <!--markup header type 2--> <header role="banner"> <section class="h_bot_part container"> <div class="clearfix row"> <div class="col-lg-4 col-md-6 col-sm-4 t_xs_align_c"> <a href="<?php echo \Yii::$app->homeUrl; ?> " class="logo m_xs_bottom_15 d_xs_inline_b" style="text-align: center"> <img src="<?php echo Image::thumb('/ArtLife_logo.png', 180, 50); ?> " alt=""> <br /><h3 >В Ногинске</h3> </a> </div> <div class="col-lg-8 col-md-6 col-sm-8"> <div class="row clearfix"> <div class="col-lg-4 col-md-6 col-sm-6 t_align_r t_xs_align_c m_xs_bottom_15" style="margin-top: -10px;"> <dl class="l_height_medium"> <dt class="f_size_small">Бесплатные консультации:</dt> <dd class="f_size_ex_large color_dark"><a data-toggle="modal" data-target="#modalCallback"><b>8 (000) 000-00-00</b><br /> <small>Нажмите для звонка</small></a></dd> </dl> </div> <div class="col-lg-8 col-md-6 col-sm-6"> <form class="relative type_2" role="search" action="<?php echo Url::to(['/catalog/site/search']);
</div> </div> </div> <div class="row multi-columns-row"> <?php foreach (Content::find()->where(['class' => 'about', 'status' => Content::STATUS_PUBLISHED])->limit(4)->all() as $model) { ?> <!-- Team Item --> <div class="col-sm-6 col-md-3 col-lg-3 mb-sm-30 wow fadeInUp"> <div class="team-item"> <div class="team-item-image"> <?php echo Html::img(Image::thumb($model->image, 370, 450)); ?> <div class="team-item-detail"> <h4 class="font-alt normal"><?php echo $model->name; ?> </h4> <p><?php echo $model->content; ?> </p> <div class="team-social-links"> <a href="#" target="_blank"><i class="fa fa-facebook"></i></a> <a href="#" target="_blank"><i class="fa fa-twitter"></i></a> <a href="#" target="_blank"><i class="fa fa-pinterest"></i></a>