...
|
...
|
@@ -43,7 +43,33 @@ |
|
|
</div>
|
|
|
<?php endif;?>
|
|
|
<div class="text-body">
|
|
|
<?php echo $this->view->info['content']?>
|
|
|
<?php
|
|
|
if(preg_match('/ipad/i', $_SERVER['HTTP_USER_AGENT']))
|
|
|
{
|
|
|
$temps = $videoMatches = array();
|
|
|
@preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yoho\.cn\/res\/yohood\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4)\"@", $this->view->info['content'], $videoMatches1);
|
|
|
@preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.test\.yoho\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $this->view->info['content'], $videoMatches2);
|
|
|
@preg_match_all("@<embed([^>]*)\s*src=\"http:\/\/res\.yohood\.cn\/swf\/YohoodPlayer\.swf\?url=(.+\.mp4|.+)\"@iU", $this->view->info['content'], $videoMatches3);
|
|
|
$temps[] = $videoMatches1;
|
|
|
$temps[] = $videoMatches2;
|
|
|
$temps[] = $videoMatches3;
|
|
|
foreach($temps as $temp)
|
|
|
{
|
|
|
if(!empty($temp[2]))
|
|
|
{
|
|
|
$videoMatches = $temp;
|
|
|
}
|
|
|
}
|
|
|
if(!empty($videoMatches[2]))
|
|
|
{
|
|
|
$video = current($videoMatches[2]);
|
|
|
$videoHtml = '<video controls="controls" preload="auto" poster="'.Lib_Images::getImageUrl($this->view->info['thumb'],'0650x0390','fragmentimg','autoCrop').'" width="660" height="390"><source src="'.$video.'" type="video/mp4" /></video>';
|
|
|
$this->view->info['content'] = preg_replace('@<(object.*?)>(.*?)<(\/object.*?)>@si',$videoHtml, $this->view->info['content']);
|
|
|
$this->view->info['content'] = preg_replace('@<(embed.*?)>@si', $videoHtml, $this->view->info['content']);
|
|
|
}
|
|
|
}
|
|
|
echo $this->view->info['content'];
|
|
|
?>
|
|
|
</div>
|
|
|
<div class="related-post detail-related-post">
|
|
|
<h3>相关推荐</h3>
|
...
|
...
|
|