Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ function argon_get_comment_text($comment_ID = 0, $args = array()) {
if (get_option("argon_comment_emotion_keyboard", "true") != "false"){
global $emotionListDefault;
$emotionList = apply_filters("argon_emotion_list", $emotionListDefault);
foreach ($emotionList as $groupIndex => $group){
foreach ($emotionList as $groupIndex => $group){
foreach ($group['list'] as $index => $emotion){
if ($emotion['type'] != 'sticker'){
continue;
Expand Down Expand Up @@ -2724,6 +2724,13 @@ function themeoptions_page(){
<p class="description"><?php _e('需带上 http(s) ,留空则显示默认背景', 'argon');?></br><?php _e('输入', 'argon');?> <code>--bing--</code> <?php _e('调用必应每日一图', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner Logo图 (地址)', 'argon');?></label></th>
Comment thread
jackytsu marked this conversation as resolved.
Outdated
<td>
<input type="text" class="regular-text" name="argon_banner_logo_url" value="<?php echo get_option('argon_banner_logo_url'); ?>"/>
<p class="description"><?php _e('需带上 http(s) ,留空则不显示', 'argon');?></p>
</td>
</tr>
<tr>
<th><label><?php _e('Banner 渐变背景样式', 'argon');?></label></th>
<td>
Expand Down Expand Up @@ -4115,6 +4122,7 @@ function argon_update_themeoptions(){
argon_update_option('argon_banner_title');
argon_update_option('argon_banner_subtitle');
argon_update_option('argon_banner_background_url');
argon_update_option('argon_banner_logo_url');
argon_update_option('argon_banner_background_color_type');
argon_update_option('argon_banner_background_hide_shapes');
argon_update_option('argon_enable_smoothscroll_type');
Expand Down
14 changes: 10 additions & 4 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function toggleAmoledDarkMode(){
</a>
<?php }?>
<?php /*顶栏标题*/?>
<a class="navbar-brand navbar-title" href="<?php bloginfo('url'); ?>"><?php echo get_option('argon_toolbar_title') == '' ? bloginfo('name') : get_option('argon_toolbar_title'); ?></a>
<h1><a class="navbar-brand navbar-title" href="<?php bloginfo('url'); ?>"><?php echo get_option('argon_toolbar_title') == '' ? bloginfo('name') : get_option('argon_toolbar_title'); ?></a></h1>
Comment thread
jackytsu marked this conversation as resolved.
</div>
<div class="navbar-collapse collapse" id="navbar_global">
<div class="navbar-collapse-header">
Expand Down Expand Up @@ -392,12 +392,18 @@ public function end_el( &$output, $object, $depth = 0, $args = array(), $current
<?php
$banner_title = get_option('argon_banner_title') == '' ? get_bloginfo('name') : get_option('argon_banner_title');
$enable_banner_title_typing_effect = get_option('argon_enable_banner_title_typing_effect') != 'true' ? "false" : get_option('argon_enable_banner_title_typing_effect');
?>

if (get_option('argon_banner_logo_url') != '') {
$banner_logo = "<img src=\"" . get_option('argon_banner_logo_url') . "\" alt=\"logo\">";
Comment thread
jackytsu marked this conversation as resolved.
Outdated
} else {
$banner_logo = "";
}
?>
<div id="banner_container" class="banner-container container text-center">
<?php if ($enable_banner_title_typing_effect != "true"){?>
<div class="banner-title text-white"><span class="banner-title-inner"><?php echo $banner_title; ?></span>
<div class="banner-title text-white"><?php echo $banner_logo; ?><span class="banner-title-inner"><?php echo $banner_title; ?></span>
Comment thread
jackytsu marked this conversation as resolved.
<?php } else {?>
<div class="banner-title text-white" data-text="<?php echo $banner_title; ?>" data-interval="<?php echo (get_option('argon_banner_typing_effect_interval') == '' ? '100' : get_option('argon_banner_typing_effect_interval')); ?>"><span class="banner-title-inner">&nbsp;</span>
<div class="banner-title text-white" data-text="<?php echo $banner_title; ?>" data-interval="<?php echo (get_option('argon_banner_typing_effect_interval') == '' ? '100' : get_option('argon_banner_typing_effect_interval')); ?>"><?php echo $banner_logo; ?><span class="banner-title-inner">&nbsp;</span>
<?php }?>
<?php echo get_option('argon_banner_subtitle') == '' ? '' : '<span class="banner-subtitle d-block">' . get_option('argon_banner_subtitle') . '</span>'; ?></div>
</div>
Expand Down