PHP Classes

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

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

Contents

Class file image Download
<div class="table full-width"> <div class="table-row"> {% if comment.author %} <div class="table-cell">{{ __("Author") }}:</div> <div class="table-cell">{# #}<a href="{{ cabin_url() }}author/edit/{{ comment.author|e('url') }}">{# #}{{ comment.authorname|e('html_attr') }}{# #}</a>{# #}</div> {% elseif comment.metadata.name %} <div class="table-cell">{{ __("Name") }}:</div> <div class="table-cell"> {{ comment.metadata.name|e('html_attr') }}{# #}</div>{% endif %} </div> {% if comment.metadata.email %} <div class="table-row"> <div class="table-cell">{{ __("Email") }}:</div> <div class="table-cell">{# #}{{ comment.metadata.email|e('html_attr') }}{# #}</div> </div> {% endif %} {% if comment.metadata.url %} <div class="table-row"> <div class="table-cell">{{ __("URL") }}:</div> <div class="table-cell">{# #}{{ comment.metadata.url|e('html_attr') }}{# #}</div> </div> {% endif %} {% if comment.author %} <div class="table-row"> <div class="table-cell">{{ __("Avatar") }}:</div> <div class="table-cell">{# #}{% set author_avatar = get_avatar(comment.author, 'comment') %}{# #}{% if author_avatar %}{# #}<a href="{{ cabin_url() }}author/photos/{{ comment.author|e('url') }}">{# #}<img src="{{ author_avatar|e('html_attr') }}" class="blog-comment-avatar" alt="{{ comment.authorname|e('html_attr') }}" title="{{ comment.authorname|e('html_attr') }}" />{# #}</a>{# #}{% endif %}{# #}</div> </div> {% elseif comment.metadata.email %} <div class="table-row"> <div class="table-cell">{{ __("Avatar") }}:</div> <div class="table-cell">{# #}<img src="{{ comment.metadata.email|gravatar|e('html_attr') }}" alt="{{ comment.metadata.name|e('html_attr') }}" title="{{ comment.metadata.name|e('html_attr') }}" />{# #}</div> </div> {% endif %} <div class="table-row"> <div class="table-cell">{{ __("Blog Post") }}:</div> <div class="table-cell"> <a href="{{ cabin_url() }}blog/post/edit/{{ comment.blogpost|e('html_attr') }}">{# #}{{ comment.blog.title }}{# #}</a> </div> </div> {% if comment.replyto %} <div class="table-row"> <div class="table-cell">{{ __("Reply to") }}:</div> <div class="table-cell"> <a href="{{ cabin_url() }}blog/comments/view/{{ comment.replyto|e('html_attr') }}">{# #}{{ __("Comment #%s", "default", comment.replyto|number_format|e('html')) }}</a> {% if comment.parent.author %}{# #}by <a href="{{ cabin_url() }}author/edit/{{ comment.parent.author|e('url') }}">{# #}{{ comment.parent.authorname|e('html_attr') }}{# #}</a>{# #}{% elseif comment.parent.metadata.name %}{# #}by {{ comment.parent.metadata.name|e('html_attr') }}{# #}{% endif %} </div> </div> {% endif %} </div> <input type="hidden" name="format" id="format" value="Markdown" /> <div class="bridge_page_rich_text_wrapper"> {% include cargo("rich_text_editor") with { "name": "page_body", "placeholder": "", "contents": comment.body|default(''), "readonly" : true } %} </div> {% if can('publish') %} <form method="post">{{ form_token() }} <fieldset class="form-button-group no-border text-right"> <a class="pure-button pure-button-tertiary" href="{{ cabin_url() }}blog/comments"> {{ __("Cancel and Return") }} </a> {% if comment.approved %} <button type="submit" name="comment_btn" value="hide" class="pure-button pure-button-primary"> <i class="fa fa-thumbs-down"></i> {{ __("Hide Comment") }} </button> {% else %} <button type="submit" name="comment_btn" value="delete" class="pure-button pure-button-secondary"> <i class="fa fa-trash"></i> {{ __("Delete Comment") }} </button> <button type="submit" name="comment_btn" value="publish" class="pure-button pure-button-primary"> <i class="fa fa-thumbs-up"></i> {{ __("Approve Comment") }} </button> {% endif %} </fieldset> </form> {% endif %}