Пример #1
0
function themify_builder_init()
{
    global $ThemifyBuilder;
    if (class_exists('Themify_Builder')) {
        $ThemifyBuilder = new Themify_Builder();
        if ($ThemifyBuilder->builder_check()) {
            $ThemifyBuilder->init();
        }
    }
    // class_exists check
}
Пример #2
0
function themify_builder_init()
{
    global $ThemifyBuilder, $Themify_Builder_Layouts;
    if (class_exists('Themify_Builder')) {
        if (Themify_Builder_Model::builder_check()) {
            $Themify_Builder_Layouts = new Themify_Builder_Layouts();
            $ThemifyBuilder = new Themify_Builder();
            $ThemifyBuilder->init();
            $themify_builder_plugin_compat = new Themify_Builder_Plugin_Compat();
            $themify_builder_import_export = new Themify_Builder_Import_Export();
        }
    }
    // class_exists check
    if (is_admin() && current_user_can('update_plugins')) {
        include THEMIFY_BUILDER_DIR . '/themify-builder-updater.php';
    }
}