Skip to content

Commit 2cf9dc5

Browse files
committed
1.0.2
1 parent 21d49c4 commit 2cf9dc5

File tree

7 files changed

+503
-458
lines changed

7 files changed

+503
-458
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LI
6969

7070
# 更新日志
7171

72+
## 20200830 v1.0.2
73+
+ 增加 双栏(反转) 页面布局
74+
+ 修复和优化文章字数统计
75+
7276
## 20200824 v1.0.1
7377
+ 增加 "评论文字头像" 选项(为无头像评论者生成一个纯色文字头像)
7478
+ Github 短代码新增 Mini 尺寸

functions.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,18 @@ function get_article_words($str){
426426
$str
427427
);
428428
$str = preg_replace(
429+
'/<pre(.*?)>([\w\W]*)<\/pre>/',
430+
'',
431+
$str
432+
);
433+
/*$str = preg_replace(
429434
'/\s/',
430435
'',
431436
html_entity_decode(
432437
strip_tags($str)
433438
)
434-
);
439+
);*/
440+
$str = html_entity_decode(strip_tags($str));
435441
preg_match_all('/[\x{4e00}-\x{9fa5}]/u' , $str , $cnRes);
436442
$cnTotal = count($cnRes[0]);
437443
$enRes = preg_replace('/[\x{4e00}-\x{9fa5}]/u', '', $str);
@@ -2495,6 +2501,13 @@ function themeoptions_page(){
24952501
</div>
24962502
<label><input name="argon_page_layout" type="radio" value="triple" <?php if ($argon_page_layout=='triple'){echo 'checked';} ?>> <?php _e('三栏', 'argon');?></label>
24972503
</div>
2504+
<div class="radio-with-img">
2505+
<?php $argon_page_layout = (get_option('argon_page_layout') == '' ? 'double-reverse' : get_option('argon_page_layout')); ?>
2506+
<div class="radio-img">
2507+
<svg width="250" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" style="fill:#e6e6e6"/><g style="opacity:0.5"><rect width="1920" height="381" style="fill:#5e72e4"/></g><rect x="1273.5" y="256" width="258" height="179" style="fill:#5e72e4"/><rect x="1273.5" y="470" width="258" height="485" style="fill:#fff"/><rect x="388.5" y="256.5" width="842" height="250" style="fill:#fff"/><rect x="388.5" y="536.5" width="842" height="250" style="fill:#fff"/><rect x="388.5" y="817" width="842" height="250" style="fill:#fff"/></svg>
2508+
</div>
2509+
<label><input name="argon_page_layout" type="radio" value="double-reverse" <?php if ($argon_page_layout=='double-reverse'){echo 'checked';} ?>> <?php _e('双栏(反转)', 'argon');?></label>
2510+
</div>
24982511
<p class="description" style="margin-top: 15px;"><?php _e('使用单栏时,关于左侧栏的设置将失效。', 'argon');?></br><?php _e('使用三栏时,请前往 "外观-小工具" 设置页面配置右侧栏内容。', 'argon');?></p>
24992512
</td>
25002513
</tr>
@@ -3667,6 +3680,7 @@ function themeoptions_page(){
36673680
.radio-with-img {
36683681
display: inline-block;
36693682
margin-right: 15px;
3683+
margin-bottom: 20px;
36703684
text-align: center;
36713685
}
36723686
.radio-with-img > .radio-img {
@@ -3809,6 +3823,10 @@ function themeoptions_page(){
38093823
.form-table-mathrender > tbody > tr > th > label > input:not(:checked) + div {
38103824
display: none;
38113825
}
3826+
3827+
#main_form > .form-table{
3828+
max-width: calc(100% - 180px);
3829+
}
38123830
</style>
38133831
<script type="text/javascript">
38143832
$(document).on("click" , ".radio-with-img .radio-img" , function(){

header.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
if (get_option('argon_page_layout') == "triple"){
88
$htmlclasses .= "triple-column ";
99
}
10+
if (get_option('argon_page_layout') == "double-reverse"){
11+
$htmlclasses .= "double-column-reverse ";
12+
}
1013
if (get_option('argon_enable_amoled_dark') == "true"){
1114
$htmlclasses .= "amoled-dark ";
1215
}

info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version" : "1.0.1.1",
2+
"version" : "1.0.2",
33
"details_url" : "https://github.com/solstice23/argon-theme/releases",
4-
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v1.0.1.1/argon.zip"
4+
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v1.0.2/argon.zip"
55
}

languages/en_US.mo

463 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)