PHP Classes
elePHPant
Icontem

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

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

Contents

Class file image Download
<select title="{{ __("Cabin")|e('html_attr') }}" id="files_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_file_list_header_pathinfo">
    <li{% if current == "" %} class="current_dir"{% endif %}>
        <a href="{{ cabin_url() }}{{ path_middle }}/{{ cabin|e('url') }}">
            <i class="fa fa-home"></i> {{ __("Home") }}
        </a>
    </li>
    {% set acc_path = '' %}
    {% for piece in pathinfo %}
        {% 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() }}{{ path_middle }}/{{ cabin|e('url') }}?dir={{ acc_path|e('url') }}">
                    {{ piece }}
                </a>
            </li>
        {% endif %}
    {% endfor %}
</ul>