#1016 - Использовать файл Sitemap для отображения версий страниц на другом языке

parent 35b32f54
<meta name="title" content="<?php echo \Yii::$app->controller->meta_title?>"> <?php
<meta name="keywords" content="<?php echo \Yii::$app->controller->meta_keywords?>">
<meta name="description" content="<?php echo \Yii::$app->controller->meta_description?>">
<meta name='yandex-verification' content='6f739356d418cfe3' /> use common\modules\languages\models\Languages;
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> $langs = Languages::find()->all();
<link rel="apple-touch-icon" href="/images/favicon/apple-touch-icon.png"> ?>
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicon/apple-touch-icon-114x114.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="title" content="<?php echo \Yii::$app->controller->meta_title?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="<?php echo \Yii::$app->controller->meta_keywords?>">
<meta name="description" content="<?php echo \Yii::$app->controller->meta_description?>">
<?php $this->registerCssFile('/css/animate.css');?> <meta name='yandex-verification' content='6f739356d418cfe3' />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<?php $this->registerCssFile('/js/libs/bootstrap/css/bootstrap.css');?> <?php if($langs) :
<?php $this->registerCssFile('/js/libs/magnific/magnific-popup.css');?> foreach ($langs as $lang) : $url = \Yii::$app->request->getLangUrl(); ?>
<?php $this->registerCssFile('/js/libs/bxslider/jquery.bxslider.css');?> <link rel="alternate" hreflang="<?=$lang->url?>" href="<?= yii\helpers\Url::to((!$lang->default?'/'.$lang->url:'').($url=='/'?'':'/'.$url), true) ?>" />
<?php endforeach;
endif; ?>
<?php $this->registerCssFile('/css/fonts.css');?> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<?php $this->registerCssFile('/css/screen.css');?> <link rel="apple-touch-icon" href="/images/favicon/apple-touch-icon.png">
<?php $this->registerCssFile('/css/media.css');?> <link rel="apple-touch-icon" sizes="72x72" href="/images/favicon/apple-touch-icon-72x72.png">
<?php $this->registerCssFile('/css/custom.css');?> <link rel="apple-touch-icon" sizes="114x114" href="/images/favicon/apple-touch-icon-114x114.png">
\ No newline at end of file
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<?php $this->registerCssFile('/css/animate.css');?>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<?php $this->registerCssFile('/js/libs/bootstrap/css/bootstrap.css');?>
<?php $this->registerCssFile('/js/libs/magnific/magnific-popup.css');?>
<?php $this->registerCssFile('/js/libs/bxslider/jquery.bxslider.css');?>
<?php $this->registerCssFile('/css/fonts.css');?>
<?php $this->registerCssFile('/css/screen.css');?>
<?php $this->registerCssFile('/css/media.css');?>
<?php $this->registerCssFile('/css/custom.css');?>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment