PHP Classes
elePHPant
Icontem

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

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

Contents

Class file image Download
<div id="home_blog_posts">{% set div = false %}
{% for i, latest in blogposts %}
    {% if div %}<hr class="blog-hr" />{% endif %}
    {% set div = true %}
    <div class="blog-post blog-list-post">
        <a href="/blog/{{ latest.blogyear|e('url') }}/{{ latest.blogmonth|e('url') }}/{{ latest.slug|e('url') }}">{#
        #}<h2 class="blog-post-title">{{ latest.title }}</h2></a>
        <p class="blog-post-meta">{{ latest.published|date("F j, Y") }} by <a href="/blog/author/{{ latest.authorslug|e('url') }}">{{ latest.authorname }}</a></p>
        <div class="blog-post-snippet">{% if latest.format == 'RST' %}{#
            #}{{ latest.snippet|default("")|CleanRST }}{#
        #}{% elseif latest.format == 'Markdown' %}{#
            #}{{ latest.snippet|default("")|CleanMarkdown }}{#
        #}{% else %}{#
            #}{{ latest.snippet|purify|raw }}{#
        #}{% endif %}
        {% if latest.snippet != latest.body %}
            <p class="readmore-wrapper">
                <a
                    class="readmore"
                    href="/blog/{{ latest.blogyear|e('url') }}/{{ latest.blogmonth|e('url') }}/{{ latest.slug|e('url') }}#after-fold"
                >
                    {{ __("Continue Reading this Blog Post") }} &raquo;
                </a>
            </p>
        {% endif %}
        </div>
    </div>
{% endfor %}</div>