Commit f3721a7f4d5d27310994190a2f842461426772ae
Merge branch 'master' of gitlab.artweb.com.ua:root/new_rukzachok
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
frontend/views/layouts/main.php
@@ -15,6 +15,13 @@ use frontend\widgets\Seo; | @@ -15,6 +15,13 @@ use frontend\widgets\Seo; | ||
15 | use yii\widgets\Breadcrumbs; | 15 | use yii\widgets\Breadcrumbs; |
16 | 16 | ||
17 | AppAsset::register ($this); | 17 | AppAsset::register ($this); |
18 | +$this->registerJs(" | ||
19 | + $('.seo-span').replaceWith ( | ||
20 | + function (){ | ||
21 | + return'<a href=\"'+$(this).data('link')+'\" title=\"'+$(this).text()+'\" rel=\"nofollow\">'+$(this).html()+'</a>'; | ||
22 | + } | ||
23 | + ); | ||
24 | +", View::POS_READY); | ||
18 | $this->registerJs (" | 25 | $this->registerJs (" |
19 | $('.phone .more').bind('click',function(){ | 26 | $('.phone .more').bind('click',function(){ |
20 | $('.phone .more_block').toggle(); | 27 | $('.phone .more_block').toggle(); |
@@ -161,7 +168,7 @@ $this->registerJs(" | @@ -161,7 +168,7 @@ $this->registerJs(" | ||
161 | </div> | 168 | </div> |
162 | <div class="fr"> | 169 | <div class="fr"> |
163 | <?php if (Yii::$app->user->isGuest): ?> | 170 | <?php if (Yii::$app->user->isGuest): ?> |
164 | - <a href="<?= Url::to (['login/index']) ?>" id='login'><span>Личный кабинет</span></a> | 171 | + <span class="seo-span" data-link="<?= Url::to (['login/index']) ?>" id='login'><span>Личный кабинет</span></span> |
165 | <?php else: ?> | 172 | <?php else: ?> |
166 | <a href="<?= Url::to (['iam/index']) ?>"><?= Text::getShort (Yii::$app->user->identity->username, 20) ?></a> | 173 | <a href="<?= Url::to (['iam/index']) ?>"><?= Text::getShort (Yii::$app->user->identity->username, 20) ?></a> |
167 | <a href="<?= Url::to (['login/logout']) ?>" class='logout'>Выход</a> | 174 | <a href="<?= Url::to (['login/logout']) ?>" class='logout'>Выход</a> |