Skip to content

Commit

Permalink
0.845
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Feb 22, 2020
1 parent 58442f4 commit f84a5ae
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 24 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LI

# 更新日志

## 20200223 v0.845
+ 修复以前手滑遗留的在新标签页打开问题

## 20200222 v0.844
+ 默认显示页脚作者信息,在 Argon 设置中增加了隐藏页脚作者信息的选项

Expand Down
6 changes: 3 additions & 3 deletions argontheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
if ($("html").hasClass("darkmode")){
$('#fabtn_toggle_darkmode .btn-inner--icon').html("<i class='fa fa-lightbulb-o'></i>");
$("#blog_setting_darkmode_switch")[0].checked = true;
setCookie("argon_enable_dark_mode", "true", 365*24*60*60);
setCookie("argon_enable_dark_mode", "true", 365);
}else{
$('#fabtn_toggle_darkmode .btn-inner--icon').html("<i class='fa fa-moon-o'></i>");
$("#blog_setting_darkmode_switch")[0].checked = false;
setCookie("argon_enable_dark_mode", "false", 365*24*60*60);
setCookie("argon_enable_dark_mode", "false", 365);
}
$(window).trigger("scroll");
}
Expand Down Expand Up @@ -1088,7 +1088,7 @@ function updateThemeColor(color, setcookie){
$(window).trigger("scroll");

if (setcookie){
setCookie("argon_custom_theme_color", themecolor, 365*24*60*60);
setCookie("argon_custom_theme_color", themecolor, 365);
}
}

Expand Down
8 changes: 4 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -998,14 +998,14 @@ function shortcode_friend_link($attr,$content=""){
$out .= " </a>
</div>
<div class='pl-3'>
<div class='friend-link-title title text-primary'><a target='_blink' href='" . $now[1] . "'>" . $now[2] . "</a>
<div class='friend-link-title title text-primary'><a target='_blank' href='" . $now[1] . "'>" . $now[2] . "</a>
</div>";
if (!ctype_space($now[3]) && $now[3] != '' && isset($now[3])){
$out .= "<p class='friend-link-description'>" . $now[3] . "</p>";
}else{
/*$out .= "<p class='friend-link-description'>&nbsp;</p>";*/
}
$out .= " <a target='_blink' href='" . $now[1] . "' class='text-primary opacity-8'>前往</a>
$out .= " <a target='_blank' href='" . $now[1] . "' class='text-primary opacity-8'>前往</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -1570,7 +1570,7 @@ function themeoptions_page(){
<option value="11" <?php if ($argon_lazyload_loading_style=='11'){echo 'selected';} ?>>加载动画 11</option>
<option value="none" <?php if ($argon_lazyload_loading_style=='none'){echo 'selected';} ?>>不使用</option>
</select>
<p class="description">在图片被加载之前显示的加载效果 , <a target="_blink" href="<?php bloginfo('template_url'); ?>/assets/vendor/svg-loaders">预览所有效果</a></p>
<p class="description">在图片被加载之前显示的加载效果 , <a target="_blank" href="<?php bloginfo('template_url'); ?>/assets/vendor/svg-loaders">预览所有效果</a></p>
</td>
</tr>
<tr><th class="subtitle"><h2>图片放大浏览</h2></th></tr>
Expand All @@ -1597,7 +1597,7 @@ function themeoptions_page(){
<td>
<input type="text" class="regular-text" name="argon_zoomify_easing" value="<?php echo (get_option('argon_zoomify_easing') == '' ? 'ease-out' : get_option('argon_zoomify_easing')); ?>"/>
<p class="description">
例: <code>ease</code> , <code>ease-in-out</code> , <code>ease-out</code> , <code>linear</code> , <code>cubic-bezier(0.4,0,0,1)</code></br>如果你不知道这是什么,参考<a href="https://www.w3school.com.cn/cssref/pr_animation-timing-function.asp" target="_blink">这里</a>
例: <code>ease</code> , <code>ease-in-out</code> , <code>ease-out</code> , <code>linear</code> , <code>cubic-bezier(0.4,0,0,1)</code></br>如果你不知道这是什么,参考<a href="https://www.w3school.com.cn/cssref/pr_animation-timing-function.asp" target="_blank">这里</a>
</p>
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "0.844",
"version" : "0.845",
"details_url" : "https://github.com/solstice23/argon-theme/releases",
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.844/argon.zip"
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.845/argon.zip"
}
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: argon
Author: solstice23
Author URI: https://abc233.site/
Description: 轻盈、简洁、美观的 Wordpress 主题
Version: 0.844
Version: 0.845
License: MIT License
License URI: https://opensource.org/licenses/MIT
Tags: 简约, 两栏, 侧栏在左边, 浮动侧栏, 文章目录, 自适应, 夜间模式, 可自定义
Expand Down
4 changes: 2 additions & 2 deletions template-parts/content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<?php
$categories = get_the_category();
foreach ($categories as $index => $category){
echo "<a href='" . get_category_link($category -> term_id) . "' target='_blink' class='post-meta-detail-catagory-link'>" . $category -> cat_name . "</a>";
echo "<a href='" . get_category_link($category -> term_id) . "' target='_blank' class='post-meta-detail-catagory-link'>" . $category -> cat_name . "</a>";
if ($index != count($categories) - 1){
echo "<span class='post-meta-detail-catagory-space'>,</span>";
}
Expand Down Expand Up @@ -118,7 +118,7 @@
<?php
$tags = get_the_tags();
foreach ($tags as $tag) {
echo "<a href='" . get_category_link($tag -> term_id) . "' target='_blink' class='tag badge badge-secondary post-meta-detail-tag'>" . $tag -> name . "</a>";
echo "<a href='" . get_category_link($tag -> term_id) . "' target='_blank' class='tag badge badge-secondary post-meta-detail-tag'>" . $tag -> name . "</a>";
}
?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions template-parts/content-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<?php
$categories = get_the_category();
foreach ($categories as $index => $category){
echo "<a href='" . get_category_link($category -> term_id) . "' target='_blink' class='post-meta-detail-catagory-link'>" . $category -> cat_name . "</a>";
echo "<a href='" . get_category_link($category -> term_id) . "' target='_blank' class='post-meta-detail-catagory-link'>" . $category -> cat_name . "</a>";
if ($index != count($categories) - 1){
echo "<span class='post-meta-detail-catagory-space'>,</span>";
}
Expand Down Expand Up @@ -125,7 +125,7 @@
<?php
$tags = get_the_tags();
foreach ($tags as $tag) {
echo "<a href='" . get_category_link($tag -> term_id) . "' target='_blink' class='tag badge badge-secondary post-meta-detail-tag'>" . $tag -> name . "</a>";
echo "<a href='" . get_category_link($tag -> term_id) . "' target='_blank' class='tag badge badge-secondary post-meta-detail-tag'>" . $tag -> name . "</a>";
}
?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions template-parts/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<?php
$categories = get_the_category();
foreach ($categories as $index => $category){
echo "<a href='" . get_category_link($category -> term_id) . "' target='_blink' class='post-meta-detail-catagory-link'>" . $category -> cat_name . "</a>";
echo "<a href='" . get_category_link($category -> term_id) . "' target='_blank' class='post-meta-detail-catagory-link'>" . $category -> cat_name . "</a>";
if ($index != count($categories) - 1){
echo "<span class='post-meta-detail-catagory-space'>,</span>";
}
Expand Down Expand Up @@ -99,7 +99,7 @@
<?php
$tags = get_the_tags();
foreach ($tags as $tag) {
echo "<a href='" . get_category_link($tag -> term_id) . "' target='_blink' class='tag badge badge-secondary post-meta-detail-tag'>" . $tag -> name . "</a>";
echo "<a href='" . get_category_link($tag -> term_id) . "' target='_blank' class='tag badge badge-secondary post-meta-detail-tag'>" . $tag -> name . "</a>";
}
?>
</div>
Expand Down
16 changes: 8 additions & 8 deletions template-parts/share.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,43 @@
<span class="btn-inner--icon"><i class="fa fa-weixin"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-douban">
<a target="_blank" class="no-pjax icon-douban">
<button class="btn btn-icon btn-primary" style="background: #209261;border: none;">
</button>
</a>
<a target="_blink" class="no-pjax icon-qq">
<a target="_blank" class="no-pjax icon-qq">
<button class="btn btn-icon btn-primary" style="background: #2196f3;border: none;">
<span class="btn-inner--icon"><i class="fa fa-qq"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-qzone">
<a target="_blank" class="no-pjax icon-qzone">
<button class="btn btn-icon btn-primary" style="background: #ffc107;border: none;">
<span class="btn-inner--icon"><i class="fa fa-star"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-weibo">
<a target="_blank" class="no-pjax icon-weibo">
<button class="btn btn-icon btn-warning">
<span class="btn-inner--icon"><i class="fa fa-weibo"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-facebook">
<a target="_blank" class="no-pjax icon-facebook">
<button class="btn btn-icon btn-primary" style="background: #283593;border: none;">
<span class="btn-inner--icon"><i class="fa fa-facebook"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-twitter">
<a target="_blank" class="no-pjax icon-twitter">
<button class="btn btn-icon btn-primary" style="background: #03a9f4;border: none;">
<span class="btn-inner--icon"><i class="fa fa-twitter"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-telegram" href="https://telegram.me/share/url?url=<?php echo urlencode(
<a target="_blank" class="no-pjax icon-telegram" href="https://telegram.me/share/url?url=<?php echo urlencode(
$_SERVER['HTTP_HOST']);?>&text=<?php echo urlencode(get_the_title());?>">
<button class="btn btn-icon btn-primary" style="background: #42a5f5;border: none;">
<span class="btn-inner--icon"><i class="fa fa-telegram"></i></span>
</button>
</a>
<a target="_blink" class="no-pjax icon-copy-link" id="share_copy_link">
<a target="_blank" class="no-pjax icon-copy-link" id="share_copy_link">
<button class="btn btn-icon btn-default">
<span class="btn-inner--icon"><i class="fa fa-link"></i></span>
</button>
Expand Down

0 comments on commit f84a5ae

Please sign in to comment.