<nav class="nav"> <a href="index.php" class="nav-link text-white">首頁</a> <a href="index.php" class="nav-link text-white">編輯精選</a> <a href="index.php" class="nav-link text-white">街巷故事</a> <a href="index.php" class="nav-link text-white">市井觀點</a> <a href="index.php" class="nav-link text-white">私房知識塾</a> {if isset($smarty.session.username)} <a href="admin.php?op=article_form" class="nav-link text-white">發布</a> <a href="logout.php" class="nav-link text-white">登出</a> {else} <a href="signup.php" class="nav-link text-white">註冊</a> <a href="main_login.php" class="nav-link text-white">登入</a> {/if} </nav>