%PDF- %PDF-
Direktori : /var/www/businessmultisite/wp-content/themes/stripes_weekly/ |
Current File : /var/www/businessmultisite/wp-content/themes/stripes_weekly/author.php |
<?php /** * The template for displaying Author Archive pages * * Methods for TimberHelper can be found in the /lib sub-directory * * @package WordPress * @subpackage Timber * @since Timber 0.1 */ global $wp_query; $context = Timber::context(); $context['posts'] = new Timber\PostQuery(); if ( isset( $wp_query->query_vars['author'] ) ) { $author = new Timber\User( $wp_query->query_vars['author'] ); $context['author'] = $author; $context['description'] = $author->description(); $context['page_type'] = $author->wikipedia(); $context['banner_type'] = 'author'; // PC::debug($author, '$author'); $context['title'] = $author->first_name().' '.$author->last_name(); $context['loadmore_type'] = 'author'; $context['loadmore_id'] = $author->id(); } Timber::render( array( 'author.twig' ), $context );