flyntwp /
flynt
| 1 | <?php |
||
| 2 | |||
| 3 | use Timber\Timber; |
||
| 4 | use Timber\PostQuery; |
||
| 5 | use Flynt\Utils\Options; |
||
| 6 | use const Flynt\Archives\POST_TYPES; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 7 | |||
| 8 | $context = Timber::get_context(); |
||
| 9 | $context['posts'] = new PostQuery(); |
||
| 10 | |||
| 11 | if (isset($_GET['contentOnly'])) { |
||
| 12 | $context['contentOnly'] = true; |
||
| 13 | } |
||
| 14 | |||
| 15 | Timber::render('templates/index.twig', $context); |
||
| 16 |