first commit
This commit is contained in:
18
author.php
Normal file
18
author.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?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 );
|
Reference in New Issue
Block a user