Initial commit

This commit is contained in:
2026-05-12 23:33:46 +02:00
commit ccf32dcece
104 changed files with 17439 additions and 0 deletions

16
author.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
$context = Timber::context();
$user = get_queried_object();
if (!($user instanceof WP_User)) {
global $wp_query;
$wp_query->set_404();
status_header(404);
return;
}
$context['author'] = thalim_get_author_data($user->ID);
$context['author_posts'] = thalim_get_author_posts_by_category($user->ID);
$context['author_edit_link'] = current_user_can('edit_user', $user->ID) ? get_edit_user_link($user->ID) : '';
Timber::render('author.twig', $context);