You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
428 B
18 lines
428 B
<?php
|
|
/**
|
|
* The template for displaying Author Archive pages
|
|
*
|
|
* Methods for TimberHelper can be found in the /lib sub-directory
|
|
*/
|
|
|
|
namespace App;
|
|
|
|
use Timber\Timber;
|
|
|
|
$context = Timber::context();
|
|
|
|
if ( isset( $context['author'] ) ) {
|
|
$context['title'] = sprintf( __( 'Archive of %s', 'timber-starter' ), $context['author']->name() );
|
|
}
|
|
|
|
Timber::render( [ 'templates/author.twig', 'templates/archive.twig' ], $context );
|
|
|