Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
7fd32d305a740d23190c7d6ce865e268786ab6e0
1 parent
f314861d
活动介绍分享
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
website/view/script/activity/indexmobile.php
website/view/script/activity/indexmobile.php
View file @
7fd32d3
...
...
@@ -14,11 +14,13 @@
<div
class=
"activity-content content-main current"
>
<div
class=
"content-wrap"
>
<?php
$client_content
=
''
;
foreach
(
$this
->
view
->
activityInfos
as
$info
)
{
if
(
trim
(
$info
[
'title'
])
==
'活动介绍网页版'
)
{
echo
$info
[
'client_content'
];
$client_content
=
$info
[
'client_content'
];
break
;
}
}
...
...
@@ -72,4 +74,26 @@
<?php
endforeach
;
?>
</div>
</div>
<?php
$this
->
_endblock
();
?>
\ No newline at end of file
<?php
$this
->
_endblock
();
?>
<?php
if
(
$this
->
view
->
client
)
:
$title
=
'活动介绍'
;
$desc
=
str_replace
(
array
(
"
\n
"
,
"
\t
"
),
""
,
Lib_Utils_StringHelper
::
stripTags
(
$client_content
));
$pattern
=
"/<[img|IMG].*?src=[\'|
\"
](.*?(?:[\.gif|\.jpg]))[\'|
\"
].*?[\/]?>/"
;
preg_match_all
(
$pattern
,
$client_content
,
$match
);
$img
=
''
;
if
(
!
empty
(
$match
[
1
][
0
]))
{
$img
=
$match
[
1
][
0
];
}
?>
<?php
$this
->
_block
(
'js'
);
?>
<script
type=
"text/javascript"
>
function getClientShare() {
return "
<?php
echo
str_replace
(
"
\\\\
"
,
"
\\
"
,
addslashes
(
@
preg_replace
(
"#
\\
\u([0-9a-f]
{
4
}
)#ie"
,
"iconv('UCS-2BE', 'UTF-8', pack('H4', '
\\
1'))"
,
json_encode
(
array
(
'title'
=>
$title
,
'desc'
=>
$desc
,
'imgUrl'
=>
$img
,
'link'
=>
SITE_MAIN
.
'/activity/index'
)))));
?>
"
;
}
</script>
<?php
$this
->
_endblock
();
?>
<?php
endif
;
?>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment