PHP Classes
elePHPant
Icontem

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

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

Contents

Class file image Download
<h2>Cabins</h2>
{{ __(
    "Cabins are separate compartments in your Airship. By default, we provide two: " ~
    "Hull, which is the public-facing blog, and " ~
    "Bridge, which is the backend you're currently using. "
) }}

<ul>
    {% for cabin in cabins %}
        <li>
            <a href="{{ cabin_url() }}cabin/{{ cabin|e('url') }}">
                {{ cabin }}
            </a>
            <ul>
                {% if can_read("cabins/manage/ ~ cabin") %}
                    <li>
                        <a href="{{ cabin_url() }}cabins/manage/{{ cabin|e('url') }}">
                            {{ __("Manage") }}
                        </a>
                    </li>
                {% endif %}
                {% if can_read("pages/" ~ cabin) %}
                    <li>
                        <a href="{{ cabin_url() }}pages/{{ cabin|e('url') }}">
                            {{ __("Web Pages") }}
                        </a>
                    </li>
                {% endif %}
                {% if can_read("redirects/" ~ cabin) %}
                    <li>
                        <a href="{{ cabin_url() }}redirects/{{ cabin|e('url') }}">
                            {{ __("Redirects") }}
                        </a>
                    </li>
                {% endif %}
                {% if is_admin() %}
                    <li>
                        <a href="{{ cabin_url() }}file_manager/{{ cabin|e('url') }}">
                            {{ __("Files") }}
                        </a>
                    </li>
                {% endif %}
            </ul>
        </li>
    {% endfor %}
</ul>