|
|
|
@ -5,8 +5,8 @@
@@ -5,8 +5,8 @@
|
|
|
|
|
<div class="navbar-header"> |
|
|
|
|
<div class="navbar-toggle"> |
|
|
|
|
<img class="svg icon1 svgimg lampJS verMiddle" src="/img/beauty/buld.svg" alt="点击关灯/开灯" title="点击关灯/开灯"> |
|
|
|
|
<button type="button" class="collapsed mr_button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" |
|
|
|
|
aria-expanded="false"> |
|
|
|
|
<img class="icon1 svg connectmeJS svgimg iconr2 verMiddle" src="/img/beauty/contactUs.svg" alt="联系我们" title="联系我们" /> |
|
|
|
|
<button type="button" class="collapsed mr_button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> |
|
|
|
|
<span class="sr-only">Toggle navigation</span> |
|
|
|
|
<img class="svg icon1 svgimg verMiddle" src="/img/beauty/navshow.svg" alt="展开列表" title="展开列表"> |
|
|
|
|
</button> |
|
|
|
@ -43,7 +43,7 @@ eof;
@@ -43,7 +43,7 @@ eof;
|
|
|
|
|
*/ ?> |
|
|
|
|
<div class="nb_right nav navbar-nav navbar-right"> |
|
|
|
|
<img class="svg icon1 svgimg lampJS verMiddle" src="/img/beauty/buld.svg" alt="点击关灯/开灯" title="点击关灯/开灯"> |
|
|
|
|
<img class="icon1 svg connectmeJS svgimg svgimg2 iconr2 verMiddle" src="/img/beauty/scrolltop.svg" alt="联系我们" title="联系我们"> |
|
|
|
|
<img class="icon1 svg connectmeJS svgimg iconr2 verMiddle" src="/img/beauty/contactUs.svg" alt="联系我们" title="联系我们" /> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div><!-- /.navbar-collapse --> |
|
|
|
@ -82,19 +82,19 @@ eof;
@@ -82,19 +82,19 @@ eof;
|
|
|
|
|
$imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config']['supportedImageExts'] : array('jpg', 'jpeg', 'png', 'webp', 'gif'); |
|
|
|
|
$category = !empty($viewData['scanResults'][$selectedId]) ? $viewData['scanResults'][$selectedId] : []; |
|
|
|
|
|
|
|
|
|
//当前目录的描述介绍 |
|
|
|
|
if (!empty($category['description'])) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<p class="modal-body">{$category['description']}</p> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
// //当前目录的描述介绍 |
|
|
|
|
// if (!empty($category['description'])) { |
|
|
|
|
// echo <<<eof |
|
|
|
|
// <p class="modal-body">{$category['description']}</p> |
|
|
|
|
// eof; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
//当前目录的readme详细介绍 |
|
|
|
|
if (!empty($viewData['htmlCateReadme'])) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<div class="modal-body markdown-body">{$viewData['htmlCateReadme']}</div> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
// //当前目录的readme详细介绍 |
|
|
|
|
// if (!empty($viewData['htmlCateReadme'])) { |
|
|
|
|
// echo <<<eof |
|
|
|
|
// <div class="modal-body markdown-body">{$viewData['htmlCateReadme']}</div> |
|
|
|
|
// eof; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
if (!empty($category['directories'])) { //两级目录支持 |
|
|
|
|
$index = 0; |
|
|
|
@ -107,7 +107,7 @@ eof;
@@ -107,7 +107,7 @@ eof;
|
|
|
|
|
if (!empty($dir['snapshot'])) { |
|
|
|
|
if ($index > 0) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img data-original="{$dir['snapshot']}" class="bor_radius im_img lazy" alt="{$dir['directory']}"> |
|
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$dir['snapshot']}" class="bor_radius im_img lazy" alt="{$dir['directory']}"> |
|
|
|
|
eof; |
|
|
|
|
} else { |
|
|
|
|
echo <<<eof |
|
|
|
@ -128,11 +128,11 @@ eof;
@@ -128,11 +128,11 @@ eof;
|
|
|
|
|
if (in_array($first_img['extension'], $imgExts)) { |
|
|
|
|
if ($index > 0) { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img data-original="{$first_img['path']}" class="bor_radius im_img lazy" alt="{$first_img['filename']}"> |
|
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$first_img['path']}" class="bor_radius im_img lazy" alt="{$first_img['filename']}"> |
|
|
|
|
eof; |
|
|
|
|
} else { |
|
|
|
|
echo <<<eof |
|
|
|
|
<img src="{$first_img['path']}" class="bor_radius im_img" alt="{$first_img['filename']}"> |
|
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$first_img['path']}" class="bor_radius im_img lazy" alt="{$first_img['filename']}"> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
@ -157,7 +157,9 @@ eof;
@@ -157,7 +157,9 @@ eof;
|
|
|
|
|
if (!empty($category['files'])) { //一级目录支持 |
|
|
|
|
$index = 0; |
|
|
|
|
foreach ($category['files'] as $file) { |
|
|
|
|
if (!in_array($file['extension'], $imgExts)) {continue;} |
|
|
|
|
if (!in_array($file['extension'], $imgExts)) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$title = !empty($file['title']) ? $file['title'] : $file['filename']; |
|
|
|
|
|
|
|
|
@ -165,7 +167,7 @@ eof;
@@ -165,7 +167,7 @@ eof;
|
|
|
|
|
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="{$file['path']}" data-caption="图片{$title}"> |
|
|
|
|
<img src="img/beauty/lazy.svg" data-original="{$file['path']}" class="bor_radius im_img lazy" alt="{$file['filename']}"> |
|
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$file['path']}" class="bor_radius im_img lazy" alt="{$file['filename']}"> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
eof; |
|
|
|
@ -173,7 +175,7 @@ eof;
@@ -173,7 +175,7 @@ eof;
|
|
|
|
|
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="{$file['path']}" data-caption="图片{$title}"> |
|
|
|
|
<img src="{$file['path']}" class="bor_radius im_img" alt="{$file['filename']}"> |
|
|
|
|
<img src="/img/beauty/lazy.svg" class="bor_radius im_img lazy" alt="{$file['filename']}"> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
eof; |
|
|
|
|