PHP Classes

File: src/Cabin/Hull/View/macros/blog_comments.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Cabin/Hull/View/macros/blog_comments.twig   Download  
File: src/Cabin/Hull/View/macros/blog_comments.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 7 years ago
Size: 422 bytes
 

Contents

Class file image Download
{% macro blogComments(data, cargo_display, depth = 0) %} <li> {% include cargo_display ignore missing %} {% if data.children %} <ol class="blog_comment_child"> {% for child in data.children %} {{ _self.blogComments(child, cargo_display, depth|default(0) + 1) }} {% endfor %} </ol> {% endif %} </li> {% endmacro %}