PHP Classes

File: src/Cabin/Hull/View/cargo/blog_read.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Hull/View/cargo/blog_read.twig  >  Download  
File: src/Cabin/Hull/View/cargo/blog_read.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: 5 years ago
Size: 2,196 bytes


Class file image Download
    {% if blogpost %}
        <div class="blog-post blog-read-post">
            <div class="blogpost_header">
                <h1 class="blog-post-title">{{ blogpost.title }} </h1>
                <p class="blog-post-meta">
                    <time datetime="{{ blogpost.published|date('Y-m-d H:i:s') }}">
                        {{ blogpost.published|date("F j, Y g:i a") }}
                    </time> by
                    <a href="{{ cabin_url() }}blog/author/{{ blogpost.authorslug|e('url') }}">{{ blogpost.authorname }}</a>
            <div class="blogpost_subhead">
                <div class="blogpost_category">
                    <a href="{{ cabin_url() }}blog/category/{{ blogpost.categoryslug|e('url') }}"><i class="fa fa-folder-open"></i>{{ blogpost.categoryname }}</a>
                {% if blogpost.tags %}
                    <ul class="blogpost_tags">
                        {% for t in blogpost.tags %}
                            <li><a href="{{ cabin_url() }}blog/tag/{{ t.slug|e('url') }}"><i class="fa fa-tag"></i>{{ }}</a></li>
                        {% endfor %}
                {% endif %}
                data-year="{{ blogpost.blogyear|e('html_attr') }}"
                data-month="{{ blogpost.blogmonth|e('html_attr') }}"
                data-slug="{{ blogpost.slug|e('html_attr') }}"
                {% include cargo("blog_read_body") %}
            {% spaceless %}
                <div id="blogpost_authorbox">
                    {% include cargo("blog_read_author") ignore missing %}
            {% endspaceless %}
            <div class="blogpost_footer">
                {% include cargo("blog_read_footer") ignore missing %}
    {% endif %}
    {% block page_js %}
        {% if not can('publish') %}
            <script src="{{ csp_hash("", "script-src", "sha384") }}"></script>
        {% endif %}
    {% endblock %}
For more information send a message to info at phpclasses dot org.