diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-03-26 11:55:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-26 11:55:00 +0800 |
| commit | 1b8396cee17ac4c772ddc3adcda8252b1cbc2624 (patch) | |
| tree | c9b72ce7f044fe4262ed0ccc350864bde26b8698 /includes | |
| parent | c4c9aea33ab825731df06c440c43223d86504c58 (diff) | |
🚌 Add: 支持自定义导航栏
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/header.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/includes/header.php b/includes/header.php index 1021383..7682580 100644 --- a/includes/header.php +++ b/includes/header.php @@ -66,8 +66,14 @@ <p class="nav-content"> <a href="<?php $this->options->SiteUrl(); ?>" class="nav-title"><?php $this->options->title(); ?></a> <span class="nav-content-item"> - <?php $this->widget('Widget_Contents_Page_List') - ->parse('<a href="{permalink}">{title}</a>'); ?> + <?php + if($this->options->customNav=='') { + $this->widget('Widget_Contents_Page_List') + ->parse('<a href="{permalink}">{title}</a>'); + } + else { + echo Contents::paresNav($this->options->customNav); + }?> </span> </p> <button class="nav-icon-button search-button" id="search-open-button"><i class="iconfont icon-chaxun"></i></button> @@ -143,4 +149,4 @@ </div> </div> </header> - <br><br><br> + <br><br><br>
\ No newline at end of file |
