PHP Classes

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

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

Contents

Class file image Download
<div id="bridge_blog_header"> {% include cargo("bridge_blog_header") %} </div> <div class="table" id="bridge_blog_list"> <div class="table-row table-header"> <div class="table-cell"> {{ __("Actions") }} </div> <div class="table-cell"> {{ __("Title") }} </div> <div class="table-cell"> {{ __("Author") }} </div> <div class="table-cell"> {{ __("Category") }} </div> <div class="table-cell"> {{ __("Published") }} </div> </div> {% set can_edit = can_update() %} {% set my_author_ids = user_author_ids() %} {% for post in blog_posts %} <div class="table-row"> <div class="table-cell table-min-width"> {% if can_edit or post.author in my_author_ids %} <a class="pure-button pure-button-primary" href="{{ cabin_url() }}blog/post/edit/{{ post.postid|e('html_attr') }}" title="{{ __("Edit Blog Post")|e('html_attr') }}" > <i class="fa fa-pencil"></i> </a> {% endif %} <a class="pure-button pure-button-secondary" href="{{ cabin_url() }}blog/post/history/{{ post.postid|e('html_attr') }}" title="{{ __("Blog Post Revision History")|e('html_attr') }}" > <i class="fa fa-history"></i> </a> {% if can_delete or post.author in my_author_ids %} <a class="pure-button pure-button-primary" href="{{ cabin_url() }}blog/post/delete/{{ post.postid|e('html_attr') }}" title="{{ __("Delete Blog Post")|e('html_attr') }}" > <i class="fa fa-trash"></i> </a> {% endif %} </div> <div class="table-cell"> {% if post.status %} <a href="{{ cabin_url('Hull') }}b/{{ post.shorturl|e('html_attr') }}"> {{ post.title }} </a> {% else %} {{ post.title }} {% endif %} </div> <div class="table-cell"> {% if can_update("blog/authors") or post.author in my_author_ids %} <a href="{{ cabin_url() }}author/edit/{{ post.author|e('html_attr') }}">{{ post.authorname }}</a> {% else %} {{ post.authorname }} {% endif %} </div> <div class="table-cell"> {% if post.categoryid %} <a href="{{ cabin_url() }}blog/category/edit/{{ post.categoryid|e('html_attr') }}">{{ post.categoryname }}</a> {% else %} {{ post.categoryname|default(__("Uncategorized")) }} {% endif %} </div> <div class="table-cell"> {% if post.status %} {{ post.published|date( config.format|default('Y-m-d g:i:s A') ) }} {% else %} <i class="fa fa-close" title="{{ __("Not yet published")|e('html_attr') }}"></i> {% endif %} </div> </div> {% endfor %} </div> <div id="bridge_blog_pagination"> {% include cargo("bridge_blog_pagination") %} </div> {% if can_create() %} <a class="pure-button pure-button-secondary" href="{{ cabin_url() }}blog/post/new"> <i class="fa fa-pencil-square-o"></i> {{ __("New Blog Post") }} </a> {% endif %}