Skip to content

Commit

Permalink
✏️ 去除冗余无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 9, 2021
1 parent d28e685 commit 61f5307
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions comments.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php if(get_comments_number()==0 && !comments_open()):echo '';else: ?>
<?php get_template_part('ad/comment','top') ?>
<?php get_template_part('ad/comment','top') ?>
<div class="p-block" id="comments">
<div>
<span class="t-lg border-bottom border-primary puock-text pb-2"><i class="czs-write-l mr-1"></i><?php _e('评论', PUOCK) ?><?php comments_number() ?>)</span>
Expand All @@ -20,7 +20,6 @@
</div>
<?php else: ?>
<div class="mt20 clearfix" id="comment-form-box">
<!-- <form class="mt10" id="comment-form" method="post" action="--><?php //echo get_template_directory_uri().'/inc/fun/comment-ajax.php' ?><!--">-->
<form class="mt10" id="comment-form" method="post" action="<?php echo admin_url().'admin-ajax.php?action=comment_ajax' ?>">
<div class="form-group">
<textarea placeholder="<?php _e('世界这么大发表一下你的看法~', PUOCK) ?>" id="comment" name="comment" class="form-control form-control-sm t-sm" rows="4"></textarea>
Expand Down

0 comments on commit 61f5307

Please sign in to comment.