@@ -424,7 +424,7 @@ function akina_comment_format($comment, $args, $depth)
424
424
</div>
425
425
<?php comment_reply_link (array_merge ($ args , array ('depth ' => $ depth , 'max_depth ' => $ args ['max_depth ' ])));?>
426
426
<div class="right">
427
- <div class="info"><time datetime="<?php comment_date ('Y-m-d ' );?> "><?php echo poi_time_since (strtotime ($ comment ->comment_date_gmt ), true ); //comment_date(get_option('date_format')); ?> </time><?php echo siren_get_useragent ($ comment ->comment_agent ); ?> <?php echo mobile_get_useragent_icon ($ comment ->comment_agent ); ?> <?php _e ('Location ' , 'sakura ' ); /*来自*/ ?> : <?php echo convertip (get_comment_author_ip ()); ?>
427
+ <div class="info"><time datetime="<?php comment_date ('Y-m-d ' );?> "><?php echo poi_time_since (strtotime ($ comment ->comment_date_gmt ), true ); //comment_date(get_option('date_format')); ?> </time><?php echo siren_get_useragent ($ comment ->comment_agent ); ?> <?php echo mobile_get_useragent_icon ($ comment ->comment_agent ); ?> <?php if ( akina_option ( ' open_location ' )){ _e ('Location ' , 'sakura ' ); /*来自*/ ?> : <?php echo convertip (get_comment_author_ip ());} ?>
428
428
<?php if (current_user_can ('manage_options ' ) and (wp_is_mobile () == false )) {
429
429
$ comment_ID = $ comment ->comment_ID ;
430
430
$ i_private = get_comment_meta ($ comment_ID , '_private ' , true );
@@ -969,11 +969,11 @@ function comment_mail_notify($comment_id)
969
969
<h3>您有一条来自<a style="text-decoration: none;color: orange " target="_blank" href=" ' . home_url () . '/"> ' . get_option ("blogname " ) . '</a>的回复</h3>
970
970
<br>
971
971
<p style="font-size: 14px;">您在文章《 ' . get_the_title ($ comment ->comment_post_ID ) . '》上发表的评论:</p>
972
- <p style="border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0px;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"> '
973
- . trim (get_comment ($ parent_id )->comment_content ) . '</p >
972
+ <div style="border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0px;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"> '
973
+ . trim (get_comment ($ parent_id )->comment_content ) . '</div >
974
974
<p style="font-size: 14px;"> ' . trim ($ comment ->comment_author ) . ' 给您的回复如下:</p>
975
- <p style="border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0px;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"> '
976
- . trim ($ comment ->comment_content ) . '</p >
975
+ <div style="border-bottom:#ddd 1px solid;border-left:#ddd 1px solid;padding-bottom:20px;background-color:#eee;margin:15px 0px;padding-left:20px;padding-right:20px;border-top:#ddd 1px solid;border-right:#ddd 1px solid;padding-top:20px"> '
976
+ . trim ($ comment ->comment_content ) . '</div >
977
977
978
978
<div style="text-align: center;">
979
979
<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.4/img/other/hr.png" alt="hr" style="width:100%;
@@ -1762,16 +1762,6 @@ function DEFAULT_FEATURE_IMAGE()
1762
1762
return rest_url ('sakura/v1/image/feature ' ) . '? ' . rand (1 , 1000 );
1763
1763
}
1764
1764
1765
- //防止设置置顶文章造成的图片同侧bug
1766
- add_action ( 'pre_get_posts ' , function ( $ q ){
1767
- if ( $ q ->is_home () && $ q ->is_main_query () ){
1768
- $ q ->set ( 'posts_per_page ' , 10 - sizeof (get_option ( 'sticky_posts ' )) );
1769
- if ( $ q ->get ( 'paged ' ) > 1 )
1770
- $ q ->set ( 'post__not_in ' , get_option ( 'sticky_posts ' ) );
1771
- }
1772
-
1773
- });
1774
-
1775
1765
//评论回复
1776
1766
function sakura_comment_notify ($ comment_id )
1777
1767
{
0 commit comments