Exemple #1
0
 function init()
 {
     global $Premise;
     require_once PREMISE_LIB_DIR . 'functions.php';
     require_once PREMISE_LIB_DIR . 'class-design-settings.php';
     require_once PREMISE_LIB_DIR . 'template-tags.php';
     require_once PREMISE_LIB_DIR . 'stylesheets.php';
     require_once PREMISE_LIB_DIR . 'design-settings.php';
     require_once PREMISE_LIB_DIR . 'design-settings-support.php';
     if ($this->_use_premise_theme) {
         require_once PREMISE_LIB_DIR . 'class-admin.php';
         require_once PREMISE_LIB_DIR . 'theme/class-custom-code.php';
         require_once PREMISE_LIB_DIR . 'theme/custom-php.php';
     }
     if (is_admin()) {
         require_once PREMISE_LIB_DIR . 'class-admin.php';
         require_once PREMISE_VIEWS_DIR . 'settings/class-main-settings.php';
         require_once PREMISE_LIB_DIR . 'class-premise.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api-provider.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api-education-provider.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api-graphics-provider.php';
         $Premise = new Premise();
         require_once PREMISE_LIB_DIR . 'premise-support.php';
         require_once PREMISE_LIB_DIR . 'export.php';
         require_once PREMISE_LIB_DIR . 'import.php';
         // check for update
         add_action('admin_init', array($this, 'update'), 99);
         do_action('premise_admin_init');
     }
     if (isset($_REQUEST['social-share-ID']) || isset($_REQUEST['clear-share-ID'])) {
         require_once PREMISE_LIB_DIR . 'class-social-share.php';
         if (isset($_REQUEST['clear-share-ID'])) {
             Premise_Social_Share::clear_social_share($_REQUEST['clear-share-ID']);
         } else {
             Premise_Social_Share::handle_social_share($_REQUEST['social-share-ID']);
         }
     }
     require_once PREMISE_LIB_DIR . 'class-shortcode.php';
     new Premise_Shortcodes();
 }
Exemple #2
0
 function init()
 {
     global $Premise;
     require_once PREMISE_LIB_DIR . 'class-design-settings.php';
     require_once PREMISE_LIB_DIR . 'template-tags.php';
     require_once PREMISE_LIB_DIR . 'stylesheets.php';
     require_once PREMISE_LIB_DIR . 'design-settings.php';
     require_once PREMISE_LIB_DIR . 'design-settings-support.php';
     if (is_admin()) {
         require_once PREMISE_LIB_DIR . 'class-premise.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api-provider.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api-education-provider.php';
         require_once PREMISE_LIB_DIR . 'api/premise-api-graphics-provider.php';
         $Premise = new Premise();
         require_once PREMISE_LIB_DIR . 'premise-support.php';
         require_once PREMISE_LIB_DIR . 'export.php';
         require_once PREMISE_LIB_DIR . 'import.php';
         do_action('premise_admin_init');
     }
     if (isset($_REQUEST['social-share-ID']) || isset($_REQUEST['clear-share-ID'])) {
         require_once PREMISE_LIB_DIR . 'class-social-share.php';
         if (isset($_REQUEST['clear-share-ID'])) {
             Premise_Social_Share::clear_social_share($_REQUEST['clear-share-ID']);
         } else {
             Premise_Social_Share::handle_social_share($_REQUEST['social-share-ID']);
         }
     }
     require_once PREMISE_LIB_DIR . 'class-shortcode.php';
     new Premise_Shortcodes();
 }