Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
2ad0080d
Commit
2ad0080d
authored
Oct 25, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
承载页 title 规范
parent
36ea1e2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
index.php
src/frontend/views/home/index.php
+4
-0
video.php
src/frontend/views/home/video.php
+3
-1
main.php
src/frontend/views/layouts/main.php
+1
-3
No files found.
src/frontend/views/home/index.php
View file @
2ad0080d
<?php
<?php
/* @var $this yii\web\View */
/* @var $this yii\web\View */
$this
->
title
=
$classInfo
[
'name'
];
$this
->
registerMetaTag
([
'name'
=>
'keywords'
,
'content'
=>
$classInfo
[
'name'
]]);
\frontend\assets\AppAsset
::
addScript
(
$this
,
'@web/assets/home_index.js'
);
\frontend\assets\AppAsset
::
addScript
(
$this
,
'@web/assets/home_index.js'
);
\frontend\assets\AppAsset
::
addCss
(
$this
,
'@web/assets/css/home_index.css'
);
\frontend\assets\AppAsset
::
addCss
(
$this
,
'@web/assets/css/home_index.css'
);
\frontend\assets\AppAsset
::
addCss
(
$this
,
'@web/assets/css/main.css'
);
\frontend\assets\AppAsset
::
addCss
(
$this
,
'@web/assets/css/main.css'
);
?>
?>
<input
id=
"class-info"
type=
"hidden"
value=
"
<?=
\yii\helpers\Html
::
encode
(
json_encode
(
$classInfo
))
?>
"
/>
<input
id=
"class-info"
type=
"hidden"
value=
"
<?=
\yii\helpers\Html
::
encode
(
json_encode
(
$classInfo
))
?>
"
/>
...
...
src/frontend/views/home/video.php
View file @
2ad0080d
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
*/
*/
use
frontend\assets\AppAsset
;
use
frontend\assets\AppAsset
;
$this
->
title
=
"视频播放"
;
$this
->
registerMetaTag
([
'name'
=>
'keywords'
,
'content'
=>
$coursewareInfo
[
'className'
]]);
$this
->
registerMetaTag
([
'name'
=>
'description'
,
'content'
=>
strip_tags
(
mb_substr
(
$coursewareInfo
[
'intro'
],
0
,
70
))]);
$this
->
title
=
"
{
$coursewareInfo
[
'courseName'
]
}
-
{
$coursewareInfo
[
'className'
]
}
"
;
AppAsset
::
register
(
$this
);
AppAsset
::
register
(
$this
);
$js
=
<<<JS
$js
=
<<<JS
window._bd_share_config = {
window._bd_share_config = {
...
...
src/frontend/views/layouts/main.php
View file @
2ad0080d
...
@@ -14,10 +14,8 @@ $baseUrl = \yii\helpers\Url::base();
...
@@ -14,10 +14,8 @@ $baseUrl = \yii\helpers\Url::base();
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<html
lang=
"
<?=
Yii
::
$app
->
language
?>
"
>
<html
lang=
"
<?=
Yii
::
$app
->
language
?>
"
>
<title>
<?=
$this
->
title
?>
</title>
<meta
charset=
"
<?=
Yii
::
$app
->
charset
?>
"
>
<meta
charset=
"
<?=
Yii
::
$app
->
charset
?>
"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"copyright"
content=
"云涯"
>
<meta
name=
"keywords"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<link
rel=
"shortcut icon"
href=
"
<?=
AppAsset
::
getStaticUrl
(
'img/favicon.ico'
)
?>
"
>
<link
rel=
"shortcut icon"
href=
"
<?=
AppAsset
::
getStaticUrl
(
'img/favicon.ico'
)
?>
"
>
...
...
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