@@ -426,12 +426,18 @@ function get_article_words($str){
426
426
$ str
427
427
);
428
428
$ str = preg_replace (
429
+ '/<pre(.*?)>([\w\W]*)<\/pre>/ ' ,
430
+ '' ,
431
+ $ str
432
+ );
433
+ /*$str = preg_replace(
429
434
'/\s/',
430
435
'',
431
436
html_entity_decode(
432
437
strip_tags($str)
433
438
)
434
- );
439
+ );*/
440
+ $ str = html_entity_decode (strip_tags ($ str ));
435
441
preg_match_all ('/[\x{4e00}-\x{9fa5}]/u ' , $ str , $ cnRes );
436
442
$ cnTotal = count ($ cnRes [0 ]);
437
443
$ enRes = preg_replace ('/[\x{4e00}-\x{9fa5}]/u ' , '' , $ str );
@@ -2495,6 +2501,13 @@ function themeoptions_page(){
2495
2501
</div>
2496
2502
<label><input name="argon_page_layout" type="radio" value="triple" <?php if ($ argon_page_layout =='triple ' ){echo 'checked ' ;} ?> > <?php _e ('三栏 ' , 'argon ' );?> </label>
2497
2503
</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>
2498
2511
<p class="description" style="margin-top: 15px;"><?php _e ('使用单栏时,关于左侧栏的设置将失效。 ' , 'argon ' );?> </br><?php _e ('使用三栏时,请前往 "外观-小工具" 设置页面配置右侧栏内容。 ' , 'argon ' );?> </p>
2499
2512
</td>
2500
2513
</tr>
@@ -3667,6 +3680,7 @@ function themeoptions_page(){
3667
3680
.radio-with-img {
3668
3681
display: inline-block;
3669
3682
margin-right: 15px;
3683
+ margin-bottom: 20px;
3670
3684
text-align: center;
3671
3685
}
3672
3686
.radio-with-img > .radio-img {
@@ -3809,6 +3823,10 @@ function themeoptions_page(){
3809
3823
.form-table-mathrender > tbody > tr > th > label > input:not(:checked) + div {
3810
3824
display: none;
3811
3825
}
3826
+
3827
+ #main_form > .form-table{
3828
+ max-width: calc(100% - 180px);
3829
+ }
3812
3830
</style>
3813
3831
<script type="text/javascript">
3814
3832
$(document).on("click" , ".radio-with-img .radio-img" , function(){
0 commit comments