[WordPress] 外掛分享: WP Bootstrap Comments

首頁外掛目錄 › WP Bootstrap Comments
WordPress 外掛 WP Bootstrap Comments 的封面圖片
20+
安裝啟用
尚無評分
3709 天前
最後更新
問題解決
WordPress 2.7+ v0.1.0 上架:2016-01-21

內容簡介

一個評論 Walker 類別,使用 Bootstrap Media Object 的標記/類別建立本地 WordPress 評論列表。參見:http://getbootstrap.com/components/#media

如需支援和官方文件,請前往外掛的主頁:http://darrinb.com/plugins/wp-bootstrap-comments

使用方法

在你的 comments.php 模板中的 wp_list_comments() 中添加對 WP_Bootstrap_Comments_Walker() 類別的呼叫。

<?php
wp_list_comments( array(
'style' => 'div',
'short_ping' => true,
'avatar_size' => 42,
'walker' => new WP_Bootstrap_Comments_Walker(),
) );
?>

若要使用 Bootstrap 原生的媒體列表樣式,將 <ol class="comment-list"> 改為 <ul class="media-list">。

<ul class="media-list">
<?php
wp_list_comments( array(
'style' => 'ul',
'short_ping' => true,
'avatar_size' => 42,
'walker' => new WP_Bootstrap_Comments_Walker(),
) );
?>
</ul><!-- .media-list -->

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Bootstrap Comments」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A comment Walker class that creates native WordPress comment lists using Bootstrap Media Object markup/classes. See: http://getbootstrap.com/components/#media
For support and official documentation see the plugin’s home page here: http://darrinb.com/plugins/wp-bootstrap-comments
Usage
Add a call to the WP_Bootstrap_Comments_Walker() class in wp_list_comments() in your comments.php template.
'div',
'short_ping' => true,
'avatar_size' => 42,
'walker' => new WP_Bootstrap_Comments_Walker(),
) );
?>

To use Bootstrap’s native media list styling change

    to

文章
Filter
Mastodon