1 Star 0 Fork 0

cfwin/Sirius

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
comments.php 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
Seaton Jiang 提交于 2017-08-11 14:27 . Remove useless parameters
<?php
if ( post_password_required() ) {
return;
}
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size'=> 50,
) );
?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div id="comments-nav">
<?php paginate_comments_links('prev_text=<&next_text=>');?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<?php endif; ?>
<?php include(TEMPLATEPATH . '/smiley.php');?>
<?php
$fields = array(
'author' => '<div class="row uniform"><div class="6u 12u(xsmall)"><input type="text" name="author" id="author" aria-required="true" required placeholder="Author" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" /></div>',
'email' => '<div class="6u 12u(xsmall)"><input type="email" name="email" id="email" aria-required="true" required placeholder="E-Mail" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" /></div></div>',
'url' => '',
);
$args = array(
'title_reply_before' => '<h4 id="reply-title" class="comment-reply-title">',
'title_reply_after' => '</h4>',
'fields' => $fields,
'class_submit' => 'special',
'comment_notes_before' => '',
'comment_field' => '<p class="smilies-list">'.$smilies.'</p><div class="12u"><textarea class="form-control" name="comment" id="comment" placeholder="Message" rows="5" aria-required="true" required onkeydown="if(event.ctrlKey){if(event.keyCode==13){document.getElementById(\'submit\').click();return false}};"></textarea></div>',
);
comment_form($args);
?>
</div>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/cfwin/Sirius.git
git@gitee.com:cfwin/Sirius.git
cfwin
Sirius
Sirius
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385