Exemplo n.º 1
0
 public function __construct()
 {
     //set the Page Builder specific variables
     self::$PT_PB_VERSION = wp_get_theme()->Version;
     self::$PT_PB_DIR = trailingslashit(dirname(__FILE__));
     self::$PT_PB_URI = get_template_directory_uri() . '/inc/pagebuilder';
     self::$QUEST_PLUS_URI = "http://pacethemes.com/quest-download-pricing";
     //setup required Hooks and Filters
     add_action('after_setup_theme', array($this, 'InitializeMetaBox'));
     add_action('admin_enqueue_scripts', array($this, 'EnqueueAssets'), 10, 1);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     //set the Page Builder specific variables
     self::$PT_PB_VERSION = wp_get_theme()->Version;
     self::$PT_PB_DIR = trailingslashit(dirname(__FILE__));
     self::$PT_PB_URI = get_template_directory_uri() . '/inc/pacebuilder';
     self::$QUEST_PLUS_URI = "http://pacethemes.com/quest-download-pricing";
     //setup required Hooks and Filters
     add_action('after_setup_theme', array($this, 'initialize_meta_box'));
     add_action('admin_enqueue_scripts', array($this, 'enqueue_assets'), 10, 1);
     if (in_array($GLOBALS['pagenow'], array('edit.php', 'post.php', 'post-new.php'))) {
         add_action('admin_footer', array($this, 'pagebuilder_tour'));
         add_action('admin_footer', array($this, 'icon_picker'));
     }
 }