PHP Classes
elePHPant
Icontem

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

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

Contents

Class file image Download
{% if author.biography|length > 1 %}
<h2 id="about-the-author">{{ __("About the Author") }}</h2>
{% set avatar = get_avatar(author.authorid, 'bio') %}
<div id="author-wrap">
    {% if avatar %}
    <div class="author_photo_wrapper">
        <img src="{{ avatar }}" alt="{{ __("%s Photo", author.name)|e('html_attr') }}" class="author_photo" />
    </div>
    {% endif %}
    <div class="author_extra">
        <h4 class="nomargin"><a href="{{ cabin_url() }}blog/author/{{ author.slug|e('url') }}">{{ author.name }}</a></h4>
        <div id="author_byline">{{ author.byline|default("")|CleanMarkdown }}</div>
        {% if author.biography %}
        <div id="author_bio">
            {% if author["bio_format"] == "Markdown" %}
                {{ author.biography|default("")|CleanMarkdown }}
            {% elseif author["bio_format"] == "RST" %}
                {{ author.biography|default("")|CleanRST }}
            {% else %}
                {{ author.biography|purify }}
            {% endif %}
        </div>
        {% endif %}
    </div>
</div>
{% endif %}