public function getUrl($absolute = IS_ABSOLUTE_URL) { return url_for_book($this->page_name, $absolute); }
<div class='inner clearfix'> <div id="book_path_navor" class="fl"> <?php if ($page_path_count == 0) { ?> <?php echo $title; ?> <?php } else { ?> <?php foreach ($page_path as $i => $p) { ?> <a href='<?php echo url_for_book($p['page_name']); ?> '><?php echo $p['title']; ?> </a> <?php if ($i < $page_path_count - 1) { echo '»'; } ?> <?php } ?> <?php }
<div> 抱歉, 你要浏览的章节<b>: <?php echo $book_page; ?> </b>版本:<?php echo $rev; ?> 暂时不可用,请重试。 <div><b>原因:</b><?php echo $exception->getMessage(); ?> </div> <br /> <br /> <div> 建议您 <a href="<?php echo url_for_book("{$book_page}"); ?> ">浏览最新版本: <?php echo $book_page; ?> </a>,或者:</div> <div><b>- 浏览其他:</b>点击右侧的目录浏览您感兴趣的内容。</div> <div><b>- 搜索内容:</b>在页面右上角输入要搜索的内容,并回车进行搜索</div> </div>
<?php foreach ($chapt_list as $chapt) { $is_current_page = ($current_page_name == $chapt['page_name']); echo "<li class='" . ($is_current_page ? "current_page" : "") . "'>"; echo "<a href='" . url_for_book($chapt['page_name']) . "'>{$chapt['title']}</a>"; if (isset($chapt['list']) && ! empty($chapt['list'])) { echo "<ul>"; foreach ($chapt['list'] as $sub_list) { $is_current_page = ($current_page_name == $sub_list['page_name']); echo "<li class='" . ($is_current_page ? "current_page" : "" ) . "'>"; echo "<a href='" . url_for_book($sub_list['page_name']) . "'>{$sub_list['title']}</a>"; if (isset($sub_list['list']) && ! empty($sub_list['list'])) { echo "<ul>"; foreach ($sub_list['list'] as $row) { $is_current_page = ($current_page_name == $row['page_name']); echo "<li class='" . ($is_current_page ? "current_page" : "" ) . "'>"; echo "<a href='" . url_for_book($row['page_name']) . "'>{$row['title']}</a>"; echo "</li>"; } echo "</ul>"; } echo "</li>"; } echo "</ul>"; } echo "</li>"; } ?> </ul>