|
|
|
@ -297,12 +297,20 @@ eof;
@@ -297,12 +297,20 @@ eof;
|
|
|
|
|
$bigUrl = $file['path']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//权限检查 |
|
|
|
|
$originUrl = $file['path']; |
|
|
|
|
$isAllowedToVisit = Common::isUserAllowedToFile($file['realpath']); |
|
|
|
|
if (!$isAllowedToVisit) { |
|
|
|
|
$smallUrl = '/img/beauty/lock-fill.svg'; |
|
|
|
|
$bigUrl = $originUrl = '/img/beauty/lazy.svg'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo <<<eof |
|
|
|
|
<div class="im_item bor_radius col-xs-6 col-sm-4 col-md-3 col-lg-2"> |
|
|
|
|
<a href="javascript:;" class="bor_radius" data-fancybox="gallery" |
|
|
|
|
data-src="{$bigUrl}" |
|
|
|
|
data-thumb="{$smallUrl}" |
|
|
|
|
data-download-src="{$file['path']}" |
|
|
|
|
data-download-src="{$originUrl}" |
|
|
|
|
data-download-filename="{$file['filename']}.{$file['extension']}" |
|
|
|
|
data-caption="{$title} - {$file['filename']}" |
|
|
|
|
data-pid="{$file['pid']}" |
|
|
|
@ -333,12 +341,26 @@ eof;
@@ -333,12 +341,26 @@ eof;
|
|
|
|
|
$linkUrl .= "&name=" . urlencode($file['filename']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//权限检查 |
|
|
|
|
$linkTarget = '_blank'; |
|
|
|
|
$videoCover = '/img/beauty/video_snap.jpg'; |
|
|
|
|
$lockedAttr = ''; |
|
|
|
|
$isAllowedToVisit = Common::isUserAllowedToFile($file['realpath']); |
|
|
|
|
if (!$isAllowedToVisit) { |
|
|
|
|
$linkUrl = 'javascript:;'; |
|
|
|
|
$linkTarget = '_self'; |
|
|
|
|
$videoCover = '/img/beauty/lock-fill.svg'; |
|
|
|
|
$lockedAttr = 'data-lock="true"'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo <<<eof |
|
|
|
|
<div class="im_item bor_radius col-xs-6 col-sm-4 col-md-3 col-lg-2"> |
|
|
|
|
<a href="{$linkUrl}" target="_blank" class="bor_radius" title="{$title} - {$file['filename']}"> |
|
|
|
|
<img src="/img/beauty/video_snap.jpg" class="bor_radius im_img video-poster" id="poster_{$file['id']}" |
|
|
|
|
<a href="{$linkUrl}" target="{$linkTarget}" class="bor_radius" title="{$title} - {$file['filename']}"> |
|
|
|
|
<img src="{$videoCover}" class="bor_radius im_img video-poster" |
|
|
|
|
id="poster_{$file['id']}" |
|
|
|
|
data-video-id="{$file['id']}" |
|
|
|
|
data-video-url="{$file['path']}" |
|
|
|
|
{$lockedAttr} |
|
|
|
|
alt="{$file['filename']}"> |
|
|
|
|
<div class="im_img_title"> |
|
|
|
|
<span class="right-bottom"> |
|
|
|
@ -370,12 +392,24 @@ eof;
@@ -370,12 +392,24 @@ eof;
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//权限检查 |
|
|
|
|
$linkTarget = '_blank'; |
|
|
|
|
$lockedAttr = ''; |
|
|
|
|
$isAllowedToVisit = Common::isUserAllowedToFile($file['realpath']); |
|
|
|
|
if (!$isAllowedToVisit) { |
|
|
|
|
$linkUrl = 'javascript:;'; |
|
|
|
|
$linkTarget = '_self'; |
|
|
|
|
$snapshot = '/img/beauty/lock-fill.svg'; |
|
|
|
|
$lockedAttr = 'data-lock="true"'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo <<<eof |
|
|
|
|
<div class="im_item bor_radius col-xs-6 col-sm-4 col-md-3 col-lg-2 audio-list-item"> |
|
|
|
|
<a href="{$linkUrl}" target="_blank" class="bor_radius vercenter" title="{$title} - {$file['filename']}"> |
|
|
|
|
<a href="{$linkUrl}" target="{$linkTarget}" class="bor_radius vercenter" title="{$title} - {$file['filename']}"> |
|
|
|
|
<img src="{$snapshot}" class="bor_radius im_img video-poster" id="poster_{$file['id']}" |
|
|
|
|
data-video-id="{$file['id']}" |
|
|
|
|
data-video-url="{$file['path']}" |
|
|
|
|
{$lockedAttr} |
|
|
|
|
alt="{$file['filename']}"> |
|
|
|
|
<span class="title">{$title}</span> |
|
|
|
|
<img src="/img/video-play.svg" class="playbtn hide" alt="video play button"> |
|
|
|
|