Issues (76)

Labels
Severity
1
<?php
2
3
use Timber\Timber;
4
use Timber\Post;
5
use Timber\PostQuery;
6
use Flynt\Utils\Options;
7
8
use const Flynt\Archives\POST_TYPES;
0 ignored issues
show
The constant Flynt\Archives\POST_TYPES was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
9
10
$context = Timber::get_context();
11
$context['post'] = new Post();
12
$context['posts'] = new PostQuery();
13
14
if (isset($_GET['contentOnly'])) {
15
    $context['contentOnly'] = true;
16
}
17
18
Timber::render('templates/index.twig', $context);
19