|
|
@ -223,14 +223,16 @@ eof; |
|
|
|
//分割目录和文件 |
|
|
|
//分割目录和文件 |
|
|
|
echo '</div>'; |
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
|
|
$arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg'; |
|
|
|
if (!empty($category['directories'])) { //两级目录支持 |
|
|
|
$btnTxt = $dir_ext_status == 'opened' ? '收拢' : '展开'; |
|
|
|
$arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg'; |
|
|
|
echo <<<eof |
|
|
|
$btnTxt = $dir_ext_status == 'opened' ? '收拢' : '展开'; |
|
|
|
|
|
|
|
echo <<<eof |
|
|
|
<div class="gap-hr"> |
|
|
|
<div class="gap-hr"> |
|
|
|
<hr> |
|
|
|
<hr> |
|
|
|
<button class="btn btn-default btn-xs btn-dir-ext" data-status="{$dir_ext_status}"><img src="/img/{$arrowImg}" alt="directory toggle"> <span>{$btnTxt}</span></button> |
|
|
|
<button class="btn btn-default btn-xs btn-dir-ext" data-status="{$dir_ext_status}"><img src="/img/{$arrowImg}" alt="directory toggle"> <span>{$btnTxt}</span></button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
eof; |
|
|
|
eof; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="im_mainl row">'; |
|
|
|
echo '<div class="im_mainl row">'; |
|
|
|
|
|
|
|
|
|
|
|