PHP Classes

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

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

Contents

Class file image Download
{% set div = false %} {% for i, latest in blogroll %} {% if div %}<hr class="blog-hr" />{% endif %} {% set div = true %} <div class="blog-post blog-list-post"> <a href="{{ cabin_url() }}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="{{ cabin_url() }}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="{{ cabin_url() }}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><!-- /.blog-post --> {% endfor %}