Example #1
0
<?php
use yii\helpers\Url;
use common\models\Exchange;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use kartik\widgets\StarRating;
use frontend\helpers\SetupSite;

$USD  = substr(SetupSite::getCurs("USD"),0);
$EUR  = substr(SetupSite::getCurs("EUR"),0);
$UKR = substr(SetupSite::getCurs("UAH"),0);
$Module = Yii::$app->getModule('shop');
$this->registerJsFile('/eshop/js/zoom-init.js', ['depends' => \frontend\assets\ShopAsset::className()]);
$this->registerJsFile('/eshop/js/detail.js',['depends'=> \frontend\assets\ShopAsset::className()]);
?>
<?php

echo $this->render('/menu/_header', [
    'data' => $data,
    'USD' => $USD,
    'UKR' => $UKR,
    'EUR' => $EUR,
]);
//vd($data['currCurency']);
switch ($data['currCurency']) {
    case 'RUB':
        $PRICE_1 = '';
        $PRICE_2 = ' Руб';
        $VALUTE = 1;
        break;
    case 'DOLLAR':
Example #2
0
<?php

use frontend\assets\ShopAsset;
$this->registerJsFile('/js/custom/init-carousel.js', ['depends' => ShopAsset::className()]);
$i = 0;
$ii = 0;
$a = 0;
$line = 1;
$arrIMAGES = [];
$count = count($model);
$Iterator = ceil($count / 4);
foreach ($model as $item) {
    //9
    $i++;
    if ($i > 4) {
        $line++;
        $i = 1;
    }
    $arrIMAGES[] = $item->image;
}
//vd($arrIMAGES, false);
?>
<div class="new-conteiner">
    <div class="row">
        <div class="col-md-12" style="text-align: center">

                <div id="myCarousel" class="carousel slide">

                    <ol class="carousel-indicators clearfix" >
                        <?php 
for ($b = 1; $b <= $Iterator; $b++) {
Example #3
0
<?php

use yii\helpers\Html;
use frontend\assets\ShopAsset;
use frontend\assets\AppAsset;
use common\models\Video;
AppAsset::register($this);
ShopAsset::register($this);
$modelYoutube = Video::getLastVideo(4);
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <link rel="icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
Example #4
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
$this->registerJsFile('/js/custom/no-delete.js', ['depends' => \frontend\assets\ShopAsset::className()]);
$this->title = 'Реквизиты';
$this->params['breadcrumbs'][] = $this->title;
?>
<div id="content">
    <div class="outer">
        <div class="inner bg-light lter">
            <div id="collapse4" class="body">
<div class="reqvizit-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>



    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'company_name', 'country', 'address', 'mobile', 'email:email', 'zip_code', ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>
</div>
</div>