Commit 28a13defee010384f0c738b0a0d5b39b1ebef148
Merge branch 'master' of gitlab.artweb.com.ua:root/new_rukzachok
Showing
1 changed file
with
8 additions
and
3 deletions
Show diff stats
frontend/views/layouts/main.php
@@ -16,11 +16,16 @@ use yii\widgets\Breadcrumbs; | @@ -16,11 +16,16 @@ use yii\widgets\Breadcrumbs; | ||
16 | 16 | ||
17 | AppAsset::register ($this); | 17 | AppAsset::register ($this); |
18 | $this->registerJs(" | 18 | $this->registerJs(" |
19 | - $('.seo-span').replaceWith ( | 19 | + $('.login-span').replaceWith ( |
20 | function (){ | 20 | function (){ |
21 | return'<a href=\"'+$(this).data('link')+'\" id=\"login\" rel=\"nofollow\">'+$(this).html()+'</a>'; | 21 | return'<a href=\"'+$(this).data('link')+'\" id=\"login\" rel=\"nofollow\">'+$(this).html()+'</a>'; |
22 | } | 22 | } |
23 | ); | 23 | ); |
24 | + $('.seo-span').replaceWith ( | ||
25 | + function (){ | ||
26 | + return'<a href=\"'+$(this).data('link')+'\" rel=\"nofollow\">'+$(this).html()+'</a>'; | ||
27 | + } | ||
28 | + ); | ||
24 | ", View::POS_READY); | 29 | ", View::POS_READY); |
25 | $this->registerJs (" | 30 | $this->registerJs (" |
26 | $('.phone .more').bind('click',function(){ | 31 | $('.phone .more').bind('click',function(){ |
@@ -155,7 +160,7 @@ $this->registerJs(" | @@ -155,7 +160,7 @@ $this->registerJs(" | ||
155 | <ul> | 160 | <ul> |
156 | <li><a href="<?= Url::to (['text/index', 'translit' => 'oplata-i-dostavka']) ?>">Оплата и | 161 | <li><a href="<?= Url::to (['text/index', 'translit' => 'oplata-i-dostavka']) ?>">Оплата и |
157 | доставка</a></li> | 162 | доставка</a></li> |
158 | - <li><a href="<?= Url::to (['text/index', 'translit' => 'contacts']) ?>">О магазине</a></li> | 163 | + <li><span class="seo-span" data-link="<?= Url::to (['text/index', 'translit' => 'contacts']) ?>">О магазине</span></li> |
159 | <li><a href="<?= Url::to (['text/index', 'translit' => 'help']) ?>" ><span>Возврат - Обмен</span></a></li> | 164 | <li><a href="<?= Url::to (['text/index', 'translit' => 'help']) ?>" ><span>Возврат - Обмен</span></a></li> |
160 | </ul> | 165 | </ul> |
161 | <div class="both"></div> | 166 | <div class="both"></div> |
@@ -168,7 +173,7 @@ $this->registerJs(" | @@ -168,7 +173,7 @@ $this->registerJs(" | ||
168 | </div> | 173 | </div> |
169 | <div class="fr"> | 174 | <div class="fr"> |
170 | <?php if (Yii::$app->user->isGuest): ?> | 175 | <?php if (Yii::$app->user->isGuest): ?> |
171 | - <span class="seo-span" data-link="<?= Url::to (['login/index']) ?>" id='login'><span>Личный кабинет</span></span> | 176 | + <span class="login-span" data-link="<?= Url::to (['login/index']) ?>" id='login'><span>Личный кабинет</span></span> |
172 | <?php else: ?> | 177 | <?php else: ?> |
173 | <a href="<?= Url::to (['iam/index']) ?>"><?= Text::getShort (Yii::$app->user->identity->username, 20) ?></a> | 178 | <a href="<?= Url::to (['iam/index']) ?>"><?= Text::getShort (Yii::$app->user->identity->username, 20) ?></a> |
174 | <a href="<?= Url::to (['login/logout']) ?>" class='logout'>Выход</a> | 179 | <a href="<?= Url::to (['login/logout']) ?>" class='logout'>Выход</a> |