mirror of
https://github.com/discourse/wp-discourse.git
synced 2025-10-03 08:59:21 +08:00
Use parameter to add odd/even class
This commit is contained in:
parent
3ed42c5c2b
commit
465a8c0455
1 changed files with 2 additions and 2 deletions
|
@ -154,10 +154,10 @@ class HTMLTemplates {
|
|||
* @static
|
||||
* @return mixed|void
|
||||
*/
|
||||
public static function comment_html() {
|
||||
public static function comment_html( $even = true ) {
|
||||
ob_start();
|
||||
?>
|
||||
<li class="comment even thread-even depth-1">
|
||||
<li class="comment <?php echo $even ? 'even' : 'odd'; ?> depth-1">
|
||||
<article class="comment-body">
|
||||
<footer class="comment-meta">
|
||||
<div class="comment-author vcard">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue