...
|
...
|
@@ -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 |
...
|
...
|
|