Skip to content

Commit 84ba0f9

Browse files
committed
small adjustment on navbar
1 parent 74657bb commit 84ba0f9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<?php if(get_option('king_nav_pu') !== ''){ ?>
5252
<a href="<?php echo get_option('king_nav_pu'); ?>"><button type="button" class="btn btn-light" style="letter-spacing: 1px;font-weight: 500;"><?php echo get_option('king_nav_pn'); ?></button></a>
5353
<?php } ?>
54-
<div class="btn-group" role="group"><button type="button" class="btn btn-primary" style="letter-spacing: 1px;font-weight: 600;padding-right: 5px;"><a href="<?php echo get_option('king_abt_url'); ?>" style="text-decoration:none;color:white"><i class="czs-user-l" style="margin-right:5px"></i>关于我</a></button>
54+
<div class="btn-group" role="group"><button type="button" class="btn btn-primary" style="letter-spacing: 1px;font-weight: 600;padding-right: 5px;"><a href="<?php echo get_option('king_abt_url'); ?>" style="text-decoration:none;color:white"><i class="czs-user-l" style="margin-right:5px"></i><?php echo get_option('king_about_text') ? get_option('king_about_text') : '关于我'; ?></a></button>
5555
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
5656
<span class="sr-only"></span>
5757
</button>

inc/setting.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@
130130
'id' => 'king_abt_url',
131131
'type' => 'text',
132132
'op_des' => '展示在导航栏上的关于我链接'
133-
),
133+
),
134+
array(
135+
'name' => '「关于我」文本',
136+
'id' => 'king_about_text',
137+
'type' => 'text',
138+
'op_des' => '展示在导航栏上的替换「关于我」的文本'
139+
),
134140
array(
135141
'name' => '导航栏第二页面链接',
136142
'id' => 'king_nav_pu',

single.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<div id="load">
2222
<header class="article-header">
2323
<span class="badge badge-pill badge-danger single-badge"><a href="<?php echo site_url() ?>"
24-
style="text-decoration:none"><i class="czs-read-l" style="margin-right:5px;"></i>博客文章</a></span>
24+
style="text-decoration:none"><i class="czs-read-l" style="margin-right:5px;"></i>站点文章</a></span>
2525
<span class="badge badge-pill badge-danger single-badge" style="margin-left: 10px;"><a :href="cate_url"
2626
style="text-decoration: none;color: #888;letter-spacing: .5px;"
27-
v-html="cate">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></span>
27+
v-html="cate">分类目录</a></span>
2828

2929
<h2 class="single-h2"
3030
style="height: 50px;width: 100%;background: rgba(238, 238, 238, 0.81);color:rgba(238, 238, 238, 0.81)">

0 commit comments

Comments
 (0)