Commit 29a9d4cc4370d56cef3bc1cb4d67ba70fd034fc9
1 parent
0115a9e3
add contacts seo link
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 | 16 | |
| 17 | 17 | AppAsset::register ($this); |
| 18 | 18 | $this->registerJs(" |
| 19 | - $('.seo-span').replaceWith ( | |
| 19 | + $('.login-span').replaceWith ( | |
| 20 | 20 | function (){ |
| 21 | 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 | 29 | ", View::POS_READY); |
| 25 | 30 | $this->registerJs (" |
| 26 | 31 | $('.phone .more').bind('click',function(){ |
| ... | ... | @@ -155,7 +160,7 @@ $this->registerJs(" |
| 155 | 160 | <ul> |
| 156 | 161 | <li><a href="<?= Url::to (['text/index', 'translit' => 'oplata-i-dostavka']) ?>">Оплата и |
| 157 | 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 | 164 | <li><a href="<?= Url::to (['text/index', 'translit' => 'help']) ?>" ><span>Возврат - Обмен</span></a></li> |
| 160 | 165 | </ul> |
| 161 | 166 | <div class="both"></div> |
| ... | ... | @@ -168,7 +173,7 @@ $this->registerJs(" |
| 168 | 173 | </div> |
| 169 | 174 | <div class="fr"> |
| 170 | 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 | 177 | <?php else: ?> |
| 173 | 178 | <a href="<?= Url::to (['iam/index']) ?>"><?= Text::getShort (Yii::$app->user->identity->username, 20) ?></a> |
| 174 | 179 | <a href="<?= Url::to (['login/logout']) ?>" class='logout'>Выход</a> | ... | ... |