From d51a2c7186a73213eac5b1fc5796da562d46a4e0 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 26 Oct 2016 22:57:40 +0300 Subject: [PATCH] big commti --- frontend/views/catalog/product.php | 14 ++++++++------ frontend/views/event/_objects.php | 5 +++-- frontend/views/event/show.php | 5 +++-- frontend/widgets/views/slider.php | 5 +++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 0a95dfe..2b6ccd4 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -5,15 +5,17 @@ */ use common\components\artboximage\ArtboxImageHelper; use common\models\Orders; -use common\modules\product\models\Product; -use frontend\assets\FotoramaAsset; + use common\modules\product\models\Product; + use frontend\assets\FotoramaAsset; use frontend\widgets\Seo; use common\modules\comment\widgets\CommentWidget; use yii\bootstrap\ActiveForm; use yii\bootstrap\Html; -use yii\helpers\Url; -use yii\web\View; -use yii\widgets\MaskedInput; + use yii\helpers\Url; + use yii\web\View; + use yii\widgets\MaskedInput; + use frontend\assets\FlipclockAsset; + FlipclockAsset::register($this); FotoramaAsset::register($this); $this->title = $product->name; @@ -180,7 +182,7 @@ use yii\widgets\MaskedInput; $js = " var clock; - clock = $('.clock_$event->primaryKey').FlipClock({ + clock = new FlipClock($('.clock_$event->primaryKey'), { clockFace: 'DailyCounter', language: 'ru', classes: { diff --git a/frontend/views/event/_objects.php b/frontend/views/event/_objects.php index 2d029c2..3f09c4d 100755 --- a/frontend/views/event/_objects.php +++ b/frontend/views/event/_objects.php @@ -3,7 +3,8 @@ use yii\helpers\Url; use yii\web\View; - +use frontend\assets\FlipclockAsset; +FlipclockAsset::register($this); ?>
@@ -21,7 +22,7 @@ use yii\web\View;
primaryKey ."').FlipClock({ + clock = new FlipClock(jQuery('.clock_". $model->primaryKey ."'),{ clockFace: 'DailyCounter', language: 'ru', classes: { diff --git a/frontend/views/event/show.php b/frontend/views/event/show.php index 92d3921..5dd2f7a 100755 --- a/frontend/views/event/show.php +++ b/frontend/views/event/show.php @@ -3,9 +3,10 @@ * @var $this View */ -use frontend\assets\FlipclockAsset; + use yii\web\View; use yii\widgets\ListView; +use frontend\assets\FlipclockAsset; FlipclockAsset::register($this); ?> @@ -33,7 +34,7 @@ $this->params['seo']['h1'] = $this->title; @@ -20,7 +21,7 @@ use yii\web\View; ?>
primaryKey ."').FlipClock({ + clock = new FlipClock('.clock_". $image->primaryKey ."'), { clockFace: 'DailyCounter', language: 'ru', classes: { -- libgit2 0.21.4