v1.13 — Customizer 可配置化
This commit is contained in:
@@ -4,11 +4,16 @@
|
||||
<!-- Hero -->
|
||||
<div class="hero">
|
||||
<h1><?php bloginfo('name'); ?></h1>
|
||||
<p class="couplet">空笺待写<span>千般意</span>,未寄先存<span>一寸心</span></p>
|
||||
<?php
|
||||
$couplet = esc_html(get_theme_mod('kjweji_hero_couplet', '空笺待写千般意,未寄先存一寸心'));
|
||||
$hl1 = esc_html(get_theme_mod('kjweji_hero_couplet_hl1', '千般意'));
|
||||
$hl2 = esc_html(get_theme_mod('kjweji_hero_couplet_hl2', '一寸心'));
|
||||
$couplet = str_replace($hl1, '<span>' . $hl1 . '</span>', $couplet);
|
||||
$couplet = str_replace($hl2, '<span>' . $hl2 . '</span>', $couplet);
|
||||
?>
|
||||
<p class="couplet"><?php echo $couplet; ?></p>
|
||||
<p class="intro-text">
|
||||
这里是自白者的栖息地。<br>
|
||||
吐槽,落笔,沉思,接住那一缕若有的情绪。<br>
|
||||
片语只言,皆是存在。
|
||||
<?php echo nl2br(esc_html(get_theme_mod('kjweji_hero_intro', "这里是自白者的栖息地。\n吐槽,落笔,沉思,接住那一缕若有的情绪。\n片语只言,皆是存在。"))); ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user