Browse Source

expand button improve

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

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

@ -223,6 +223,7 @@ eof; @@ -223,6 +223,7 @@ eof;
//分割目录和文件
echo '</div>';
if (!empty($category['directories'])) { //两级目录支持
$arrowImg = $dir_ext_status == 'opened' ? 'arrow-up.svg' : 'arrow-down.svg';
$btnTxt = $dir_ext_status == 'opened' ? '收拢' : '展开';
echo <<<eof
@ -231,6 +232,7 @@ eof; @@ -231,6 +232,7 @@ eof;
<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>
eof;
}
echo '<div class="im_mainl row">';

Loading…
Cancel
Save