forked from flyntwp/flynt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
24 lines (18 loc) · 831 Bytes
/
Copy pathfunctions.php
File metadata and controls
24 lines (18 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace Flynt;
use Flynt\Utils\FileLoader;
require_once __DIR__ . '/vendor/autoload.php';
if (!defined('WP_ENV')) {
define('WP_ENV', 'production');
}
// Check if the required plugins are installed and activated.
// If they aren't, this function redirects the template rendering to use
// plugin-inactive.php instead and shows a warning in the admin backend.
if (Init::checkRequiredPlugins()) {
FileLoader::loadPhpFiles('inc');
add_action('after_setup_theme', ['Flynt\Init', 'initTheme']);
add_action('after_setup_theme', ['Flynt\Init', 'loadComponents'], 101);
}
// Remove the admin-bar inline-CSS as it isn't compatible with the sticky footer CSS.
// This prevents unintended scrolling on pages with few content, when logged in.
add_theme_support('admin-bar', array('callback' => '__return_false'));