1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/qwqdanchun-win10exp

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
comments.php 2.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
qwqdanchun Отправлено 31.03.2020 05:44 f67bff5
<?php
if ( post_password_required() )
return;
?>
<div id="comments" class="responsesWrapper">
<?php if(comments_open()){
$comment_form_args = array(
'submit_button' => '<div style="text-align: right"><input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" /></div>',
'comment_notes_before' => '',
'class_submit' => 'button_submit',
'label_submit' => __('提交看法', 'win10exp'),
'comment_notes_after' => '',
'id_form' => 'form_comment',
'cancel_reply_link' => __('取消回复', 'win10exp'),
'comment_field' => '<div class="comment_form_textarea_box layui-row"><textarea class="comment_form_textarea layui-col-md12 layui-col-xs12" name="comment" id="comment" placeholder="发表你的看法吧~~~啦啦啦(评论内插入[nmsl]可自动转为抽象话)"></textarea></div>',
'fields' => apply_filters('comment_form_default_fields', array(
'author' => '<div class="layui-row comment_form_input"><input class="layui-col-md4 layui-col-xs12" placeholder="昵称" type="text" id="author" name="author" value="' . esc_attr($comment_author) . '" ' . ($req ? "required" : '') . '>',
'email' => '<input class="layui-col-md4 layui-col-xs12" type="email" id="email" name="email" placeholder="邮箱地址" value="' . esc_attr($comment_author_email) . '" ' . ($req ? "required" : '') . '>',
'url' => '<input class="layui-col-md4 layui-col-xs12" type="url" id="url" name="url" placeholder="网址(选填)" value="' . esc_attr($comment_author_url) . '"></div>',
)));
comment_form($comment_form_args);
} ?>
<meta content="UserComments:<?php echo number_format_i18n( get_comments_number() );?>" itemprop="interactionCount">
<h3 class="comments-title">共有 <span class="commentCount"><?php echo number_format_i18n( get_comments_number() );?></span> 条看法</h3>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 48,
'type' =>'comment',
'callback' =>'my_comment',
) );
?>
</ol>
<nav class="navigation comment-navigation u-textAlignCenter" data-fuck="<?php the_ID();?>">
<?php paginate_comments_links(array('prev_next'=>true)); ?>
</nav>
</div>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/qwqdanchun-win10exp.git
git@api.gitlife.ru:oschina-mirror/qwqdanchun-win10exp.git
oschina-mirror
qwqdanchun-win10exp
qwqdanchun-win10exp
master