Browse Source

improve data type switch link

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

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

@ -236,7 +236,7 @@ eof;
echo '<ul class="nav nav-tabs ml-1">'; echo '<ul class="nav nav-tabs ml-1">';
foreach ($arrShowTypes as $key => $title) { foreach ($arrShowTypes as $key => $title) {
$showLink = Html::getLinkByParams(FSC::$app['requestUrl'], array('show' => $key)); $showLink = Html::getLinkByParams(FSC::$app['requestUrl'], array('show' => $key, 'page' => 1));
$activedClass = $key == $viewData['showType'] ? 'active' : ''; $activedClass = $key == $viewData['showType'] ? 'active' : '';
echo <<<eof echo <<<eof
<li role="presentation" class="{$activedClass}"><a href="{$showLink}">{$title}</a></li> <li role="presentation" class="{$activedClass}"><a href="{$showLink}">{$title}</a></li>

Loading…
Cancel
Save