Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
84304dec
Commit
84304dec
authored
Feb 17, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1016 - Использовать файл Sitemap для отображения версий страниц на другом языке
parent
35b32f54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
19 deletions
+32
-19
frontend/views/layouts/head.php
frontend/views/layouts/head.php
+32
-19
No files found.
frontend/views/layouts/head.php
View file @
84304dec
<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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment