Files
cnt-sindikatua/author.php
2025-07-14 07:33:32 +00:00

19 lines
428 B
PHP

<?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 );