PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/View/cargo/bridge_blog_categories.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/View/cargo/bridge_blog_categories.twig  >  Download  
File: src/Cabin/Bridge/View/cargo/bridge_blog_categories.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: 1 year ago
Size: 1,011 bytes
 

Contents

Class file image Download
<h2 class="bottom-pad">{{ __("Blog Categories") }}</h2>
<div id="bridge_blog_categories">
    <ul id="bridge_blog_category_tree">
        {% spaceless %}
            {% set leaf_cargo = cargo("bridge_blog_category_tree") %}
            {% if categories %}
            {% for category in categories %}
                {{
                    bcatmac.frontCatTree(
                        category,
                        null,
                        leaf_cargo,
                        can_update(),
                        can_delete()
                    )
                }}
            {% endfor %}
            {% else %}
                {{ __("No categories found.") }}
            {% endif %}
        {% endspaceless %}
    </ul>
</div>
{% if can_create() %}
    <fieldset id="new-category-form">
        <a class="pure-button pure-button-secondary" href="{{ cabin_url() }}blog/category/new">
            <i class="fa fa-folder-open-o"></i>{{ __("New Category") }}
        </a>
    </fieldset>
{% endif %}