Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
b75c4bcc42ad468bc14c4babd3607cad3c318060
1 parent
c291f510
modify to add guang detail page title description
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
View file @
b75c4bc
...
...
@@ -182,11 +182,13 @@ class InfoController extends AbstractAction
}
else
{
$data
[
'shareImg'
]
=
Helpers
::
getImageUrl
(
$detail
[
'getArticle'
][
'cover_image'
],
640
,
320
);
}
$this
->
setTitle
(
$detail
[
'getArticle'
][
'article_title'
]);
$this
->
setDescription
(
$detail
[
'getArticle'
][
'article_summary'
]);
}
// 标识有微信分享
$data
[
'hasWxShare'
]
=
true
;
$this
->
_view
->
display
(
'index'
,
$data
);
$detail
=
array
();
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Plusstar.php
View file @
b75c4bc
...
...
@@ -180,6 +180,9 @@ class PlusstarController extends AbstractAction
$data
[
'shareDesc'
]
=
(
mb_strlen
(
$data
[
'ps'
][
'intro'
],
'utf-8'
)
>
120
)
?
trim
(
strip_tags
(
mb_substr
(
$data
[
'ps'
][
'intro'
],
0
,
120
,
'utf-8'
)))
.
'...'
:
$data
[
'ps'
][
'intro'
];
$data
[
'shareImg'
]
=
$data
[
'ps'
][
'logo'
];
$this
->
setTitle
(
$data
[
'shareTitle'
]);
$this
->
setDescription
(
$data
[
'shareDesc'
]);
$brandInfo
=
array
();
}
while
(
false
);
...
...
Please
register
or
login
to post a comment