<?php
$tabs = array($auth_name, $pub_name, $lang_name);
?>
<li class="active">
<a href="#authors" data-toggle="tab">Authors</a>
</li>
<li>
<a href="#languages" data-toggle="tab">Languages</a>
</li>
<li>
<a href="#publishers" data-toggle="tab">Publishers</a>
</li>
如何根据 isset 变量在列表项上应用活动类?