Esempio n. 1
0
 * Load Jetpack compatibility file.
 */
require get_template_directory() . '/inc/jetpack.php';
/**
 * Content Importer
 */
require get_template_directory() . '/importer/load.php';
require get_template_directory() . '/inc/beaver-builder-modules/beaver-builder-modules.php';
/*
 * Auto-check theme udpates
 */
//Initialize the update checker.
require 'theme-update-checker.php';
$update_checker = new ThemeUpdateChecker('TESSERACT', 'https://s3-us-west-2.amazonaws.com/updates.tyler.com/TESSERACT/version.json');
if (false) {
    $update_checker->checkForUpdates();
}
/* check if a plugin exists in the plugins directory and if it's already active */
function is_plugin_installed($slug)
{
    $plugins = get_plugins();
    foreach ($plugins as $plugin_key => $plugin_info) {
        if (preg_match("/^{$slug}\\//", $plugin_key)) {
            return is_plugin_active($plugin_key);
        }
    }
    return false;
}
function display_notice()
{
    if (!is_plugin_installed('TESSERACT-Unbranded')) {