Commit 88dba093e2ce15311a13f857ed5c45565f49adbe
1 parent
38f66856
delete little preview
Showing
1 changed file
with
69 additions
and
69 deletions
Show diff stats
frontend/views/variant/view.php
| @@ -111,75 +111,75 @@ | @@ -111,75 +111,75 @@ | ||
| 111 | } | 111 | } |
| 112 | ?> | 112 | ?> |
| 113 | 113 | ||
| 114 | - <div class="row" id="thumbs"> | ||
| 115 | - <?php | ||
| 116 | - if (!empty($images)) { | ||
| 117 | - foreach ($images as $image) { | ||
| 118 | - echo Html::tag( | ||
| 119 | - 'div', | ||
| 120 | - Html::a( | ||
| 121 | - ImageHelper::set($image->getPath()) | ||
| 122 | - ->fillResize(70, 60) | ||
| 123 | - ->renderImage( | ||
| 124 | - [ | ||
| 125 | - 'class' => 'img-responsive', | ||
| 126 | - 'alt' => $model->lang->title, | ||
| 127 | - 'title' => $model->lang->title, | ||
| 128 | - ] | ||
| 129 | - ), | ||
| 130 | - ImageHelper::set($image->getPath()) | ||
| 131 | - ->fillResize(555, 555) | ||
| 132 | - ->render(), | ||
| 133 | - [ | ||
| 134 | - 'class' => 'thumb', | ||
| 135 | - ] | ||
| 136 | - ), | ||
| 137 | - [ | ||
| 138 | - 'class' => 'col-xs-2', | ||
| 139 | - ] | ||
| 140 | - ); | ||
| 141 | - } | ||
| 142 | - } else { | ||
| 143 | - echo Html::tag( | ||
| 144 | - 'div', | ||
| 145 | - Html::a( | ||
| 146 | - ImageHelper::set('@frontend/web/img/no-image.png') | ||
| 147 | - ->fillResize(70, 60) | ||
| 148 | - ->renderImage( | ||
| 149 | - [ | ||
| 150 | - 'class' => 'img-responsive', | ||
| 151 | - 'alt' => $model->lang->title, | ||
| 152 | - 'title' => $model->lang->title, | ||
| 153 | - ] | ||
| 154 | - ), | ||
| 155 | - ImageHelper::set('@frontend/web/img/no-image.png') | ||
| 156 | - ->fillResize(555, 555) | ||
| 157 | - ->render(), | ||
| 158 | - [ | ||
| 159 | - 'class' => 'thumb', | ||
| 160 | - ] | ||
| 161 | - ), | ||
| 162 | - [ | ||
| 163 | - 'class' => 'col-xs-2', | ||
| 164 | - ] | ||
| 165 | - ); | ||
| 166 | - } | ||
| 167 | - ?> | ||
| 168 | - </div> | ||
| 169 | - <?php | ||
| 170 | - if (!empty($model->product->video)) { | ||
| 171 | - ?> | ||
| 172 | - <div class="product-video"> | ||
| 173 | - <div class="h3"> | ||
| 174 | - <?php echo \Yii::t('app', 'Видеообзор продукта'); ?> | ||
| 175 | - </div> | ||
| 176 | - <div class="video-box"> | ||
| 177 | - <?php echo $model->product->video; ?> | ||
| 178 | - </div> | ||
| 179 | - </div> | ||
| 180 | - <?php | ||
| 181 | - } | ||
| 182 | - ?> | 114 | +<!-- <div class="row" id="thumbs">--> |
| 115 | +<!-- --><?php | ||
| 116 | +// if (!empty($images)) { | ||
| 117 | +// foreach ($images as $image) { | ||
| 118 | +// echo Html::tag( | ||
| 119 | +// 'div', | ||
| 120 | +// Html::a( | ||
| 121 | +// ImageHelper::set($image->getPath()) | ||
| 122 | +// ->fillResize(70, 60) | ||
| 123 | +// ->renderImage( | ||
| 124 | +// [ | ||
| 125 | +// 'class' => 'img-responsive', | ||
| 126 | +// 'alt' => $model->lang->title, | ||
| 127 | +// 'title' => $model->lang->title, | ||
| 128 | +// ] | ||
| 129 | +// ), | ||
| 130 | +// ImageHelper::set($image->getPath()) | ||
| 131 | +// ->fillResize(555, 555) | ||
| 132 | +// ->render(), | ||
| 133 | +// [ | ||
| 134 | +// 'class' => 'thumb', | ||
| 135 | +// ] | ||
| 136 | +// ), | ||
| 137 | +// [ | ||
| 138 | +// 'class' => 'col-xs-2', | ||
| 139 | +// ] | ||
| 140 | +// ); | ||
| 141 | +// } | ||
| 142 | +// } else { | ||
| 143 | +// echo Html::tag( | ||
| 144 | +// 'div', | ||
| 145 | +// Html::a( | ||
| 146 | +// ImageHelper::set('@frontend/web/img/no-image.png') | ||
| 147 | +// ->fillResize(70, 60) | ||
| 148 | +// ->renderImage( | ||
| 149 | +// [ | ||
| 150 | +// 'class' => 'img-responsive', | ||
| 151 | +// 'alt' => $model->lang->title, | ||
| 152 | +// 'title' => $model->lang->title, | ||
| 153 | +// ] | ||
| 154 | +// ), | ||
| 155 | +// ImageHelper::set('@frontend/web/img/no-image.png') | ||
| 156 | +// ->fillResize(555, 555) | ||
| 157 | +// ->render(), | ||
| 158 | +// [ | ||
| 159 | +// 'class' => 'thumb', | ||
| 160 | +// ] | ||
| 161 | +// ), | ||
| 162 | +// [ | ||
| 163 | +// 'class' => 'col-xs-2', | ||
| 164 | +// ] | ||
| 165 | +// ); | ||
| 166 | +// } | ||
| 167 | +// ?> | ||
| 168 | +<!-- </div>--> | ||
| 169 | +<!-- --><?php | ||
| 170 | +// if (!empty($model->product->video)) { | ||
| 171 | +// ?> | ||
| 172 | +<!-- <div class="product-video">--> | ||
| 173 | +<!-- <div class="h3">--> | ||
| 174 | +<!-- --><?php //echo \Yii::t('app', 'Видеообзор продукта'); ?> | ||
| 175 | +<!-- </div>--> | ||
| 176 | +<!-- <div class="video-box">--> | ||
| 177 | +<!-- --><?php //echo $model->product->video; ?> | ||
| 178 | +<!-- </div>--> | ||
| 179 | +<!-- </div>--> | ||
| 180 | +<!-- --><?php | ||
| 181 | +// } | ||
| 182 | +// ?> | ||
| 183 | </div> | 183 | </div> |
| 184 | <div class="col-sm-6"> | 184 | <div class="col-sm-6"> |
| 185 | <div class="box"> | 185 | <div class="box"> |