Browse Source

bug fix: no files dir not show expand button

master
filesite 4 months ago
parent
commit
2ece5e62bb
  1. 16
      themes/beauty/views/site/index.php

16
themes/beauty/views/site/index.php

@ -217,21 +217,23 @@ eof;
$index++; $index++;
} }
}
//分割目录和文件
echo '</div>';
$arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg'; //分割目录和文件
$btnTxt = $dir_ext_status == 'opened' ? '收拢' : '展开'; echo '</div>';
echo <<<eof
$arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg';
$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">';
}
//显示图片、视频 //显示图片、视频
if (!empty($category['files'])) { //一级目录支持 if (!empty($category['files'])) { //一级目录支持

Loading…
Cancel
Save