PHP Classes
elePHPant
Icontem

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

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

Contents

Class file image Download
<h2 class="bottom-pad">{{ __("Custom Pages - %s", "default", cabin|e('html')) }}</h2>
<select title="{{ __("Cabin")|e('html_attr') }}" id="pages_list_cabin">{% spaceless %}
        {% for cab in cabins %}
            <option
                value="{{ cab|e('html_attr') }}"
                {% if cab == cabin %} selected="selected"{% endif %}
            >{{ cab }}</option>
        {% endfor %}
    {% endspaceless %}</select>
<ul class="bridge_page_list_header_pathinfo">
    <li{% if current == "" %} class="current_dir"{% endif %}>
        <a href="{{ cabin_url() }}pages/{{ cabin|e('url') }}">
            <i class="fa fa-home"></i> {{ __("Home") }}
        </a>
    </li>
{% set acc_path = '' %}
{% for piece in path %}
    {% if piece %}
        {% if acc_path %}
            {% set acc_path = acc_path ~ '/' ~ piece %}
        {% else %}
            {% set acc_path = piece %}
        {% endif %}
        <li{% if acc_path == current %} class="current_dir"{% endif %}>
            <a href="{{ cabin_url() }}pages/{{ cabin|e('url') }}?dir={{ acc_path|e('url') }}">
                {{ piece }}
            </a>
        </li>
    {% endif %}
{% endfor %}
</ul>