{% extends theme/author.html %} {% block title %}{{ $author['name'] }} - Our Cool Site {% endblock %} {% block navigation %} {% endblock %} {% block authorimage %}image{% endblock %} {% block content %}

{{ $author["name"] }}

{{ $author["bio"] }} {% endblock %} {% block pagetitle %}{{ $author["name"] }}{% endblock %} {% block authortotalposts %}Total posts ({{ $author["articlescount"] }}){% endblock %} {% block authorlinkedin %}{{ $author["linkedin"] }}{% endblock %} {% block author_articles %} {% $authorArticlesQuery = $db->query("select articles.id, articles.category_id, articles.slug as slug, articles.title as title, articles.excerpt as excerpt, articles.image as image, articles.created as created, authors.name as authorname, authors.linkedin as linkedin, authors.slug as authorslug, categories.name as category_name, categories.slug as category_slug from articles, authors, categories where articles.author_id = authors.id and articles.category_id = categories.id and articles.author_id = " . $author["id"] . " ORDER BY articles.created DESC"); while($authorArticle = $authorArticlesQuery -> fetchArray(SQLITE3_ASSOC)){ %}
{{ $authorArticle["category_name"] }}

{{ $authorArticle['title'] }}

{{ $authorArticle['excerpt'] }}

{{ date("d F, Y", strtotime($authorArticle['created'])) }}

{% } %} {% endblock %}