內容簡介
您是否曾想要在所有評論中突出顯示一個有價值的評論?或者不想讓那個佔用更多空間的六段評論佔據太多位置?或者隱藏整個離題的話題討論串?
現在,您可以輕鬆實現這些願望!
Hikari Featured Comments 是一個簡單的外掛,可為評論添加 3 個自定義字段,讓您為每個評論添加特殊性質。
有了此功能後,您可以查詢任何評論是否具有標記的任何屬性,如果有,您可以在您的佈景主題或其他插件中採取特殊操作。
功能
有 3 種特殊的屬性可用,您可以給它們任何語義,但默認含義如下:
* 精選評論:標註為精選的評論應該從所有評論中突出顯示。您可以為該評論在主題中添加特殊的 CSS 樣式,使其在所有評論中更加突出,並標註所有有價值的評論。
* 隱藏評論:這是一個您不想刪除,但也不想與其他評論一樣明顯的評論。您可以使用它來隱藏您不想讓其繼續存在的離題評論。
* 子隱藏評論/縮進隱藏:這一屬性的含義與前者類似,但應用於被標記評論的巢狀/縮進/子評論。
請注意,任何評論都可以獨立地標記為「隱藏」和「子隱藏」,因此「子隱藏」評論不應自己應用特殊樣式。同樣,您也可以有既標為精選又標為隱藏的評論,此時兩種樣式應該一起應用!
Hikari Featured Comments 在評論編輯頁面 (/wp-admin/comment.php?action=editcomment&c=XXXX) 提供了一個特殊的元框,供您標記這些屬性,它會自動在前端的評論上附加新的類名 (featured、buried、children_buried)。
外掛標籤
開發者團隊
原文外掛簡介
Have you ever wanted to highlight a valuable comment among all others? Or not let that troll 6-paragraphs comment take more space than it deserve? Or even hide a whole thread of offtipics?
Well, now you can!
Hikari Featured Comments is a simple plugin that adds 3 new custom fields to comments, allowing you to add special properties to each of them.
With this feature available, you can query any comment to know if it has any of those properties flagged, and if so you can take special actions within your theme or another plugin.
Features
There are 3 special properties available, you can give them any semantic you like, but default meanings are as follows:
* Featured: a comment flagged as featured should be highlighted from all others. You can give it special CSS styles from your theme to make it more visible among all comments, and flag any valuable comment as so.
* Buried: a buried comment is a comment you don’t wanna just delete, but also don’t want it as visible as all others. You can use it to hide offtopic comments which you don’t want to perpetuate.
* Children/Threaded buried: this one has similar meaning to the former, but it should be applied to nested/threaded/children comments of the flagged comment.
Note that any comment can be independently flagged as Buried and Children buried, therefore a Children buried comment shouldn’t have special styles applied to itself. In the same way, you can also have a featured AND buried comment, having both styles should be applied together!
Hikari Featured Comments provides a special metabox in comment edit page (/wp-admin/comment.php?action=editcomment&c=XXXX) where you can flag these properties, and it automatically attach new classes (featured, buried, children_buried) to comments in frontend.
