/** * put your comment there... * * @param mixed $info * @return CJTInstallerInstallView */ public function __construct($info) { parent::__construct($info); // Link scripts & styles. self::enququeScripts(); self::enququeStyles(); }
/** * put your comment there... * * @param mixed $info * @return CJTInstallerNoticeView */ public function __construct($info) { // CJTView class! parent::__construct($info); // Enqueue scripts. self::enqueueScripts(); }
/** * put your comment there... * * @param mixed $viewInfo * @return CJTTinymceParamsView */ public function __construct($viewInfo, $params) { // Parent procedure! parent::__construct($viewInfo, $params); // Prepare groups array. foreach ($params['groups'] as $group) { // Initialize group info array. $group['params'] = array(); // Group Key. $group['key'] = strtolower(str_replace(array(' '), '-', $group['name'])); // Get group data cxopy. $this->groups[$group['id']] = $group; } // Put the Group woth the loest ID first, // Display in the same order they're added! ksort($this->groups); // Prepare groups from the passed parameters. foreach ($params['params'] as $param) { // Add parameter under its group! $this->groups[$param->getDefinition()->getGroupId()]['params'][] = $param; } // Instantiate grouper. // Only tab grouper is supported for now! $grouperFactory = new CJT_Framework_View_Block_Parameter_Grouper_Factory(); $this->grouper = $grouperFactory->create($params['form']->groupType, $this->groups); }
/** * put your comment there... * * @param mixed $info * @return CJTInstallerNoticeView */ public function __construct($info) { // CJTView class! parent::__construct($info); // Enqueue scripts. add_action('admin_print_scripts', array(__CLASS__, 'enqueueScripts')); }
/** * put your comment there... * * @param mixed $info * @return CJTInstallerNoticeView */ public function __construct($info) { // CJTView class! parent::__construct($info); // register callback to show styles needed for the admin page add_action('admin_print_styles', array(__CLASS__, 'enqueueStyles')); // Load scripts for admin panel working add_action('admin_print_scripts', array(__CLASS__, 'enqueueScripts')); }
/** * put your comment there... * * @param mixed $viewInfo * @return CJTBlockMetaBoxView */ public function __construct($viewInfo) { parent::__construct($viewInfo); // Initialize vars. $this->options = (object) array(); // Add scripts ands styles actions. add_action('admin_print_scripts', array(__CLASS__, 'enqueueScripts')); add_action('admin_print_styles', array(__CLASS__, 'enqueueStyles')); }
/** * put your comment there... * * @param mixed $viewInfo * @return CJTBlocksCjtBlock */ public function __construct($viewInfo) { parent::__construct($viewInfo); // Aggregate block view object! $this->blockView = self::create('blocks/block'); // Register actions. add_action('admin_print_scripts', array(__CLASS__, 'enqueueScripts')); add_action('admin_print_styles', array(__CLASS__, 'enqueueStyles')); // Read input params. $this->isLoading = isset($_REQUEST['isLoading']) ? true : false; }
/** * put your comment there... * */ public function __construct($viewInfo) { parent::__construct($viewInfo); // Enqueue Styles & Scripts. add_action('admin_print_styles', array(__CLASS__, 'enqueueStyles')); add_action('admin_print_scripts', array(__CLASS__, 'enqueueScripts')); // Cast params to object $this->params = (object) $this->params; // Load localization text. $this->localization = (require $this->getPath('public/js/jquery.block/jquery.block.localization.php')); }
/** * put your comment there... * * @param mixed $info * @return CJTTinymceShortcodesView */ public function __construct($info) { // Initialize parent! parent::__construct($info); // Register TinyMCE Plugin with Wordpress! add_filter('mce_external_plugins', array($this, 'registerPlugin'), 1, 11); // Add TinyMCE button for adding shortcode! add_filter('mce_buttons', array($this, 'addButton')); // Enqueue dependencies scripts. self::enqueueScripts(); self::enqueueStyles(); }
/** * put your comment there... * */ public function __construct($parameters) { parent::__construct($parameters); // Import other dependencies views. self::Import('blocks/cjt-block'); // register callback to show styles needed for the admin page add_action('admin_print_styles', array(__CLASS__, 'enququeStyles')); // Load scripts for admin panel working add_action('admin_print_scripts', array(__CLASS__, 'enququeScripts')); // Blocks order is common for all users, override user meta-boxes order // by meta-box-order site option. add_filter('get_user_option_meta-box-order_cjtoolbox', array(&$this, 'getBlocksOrder')); }
/** * put your comment there... * * @param mixed $parameters * @return CJTBlockView */ public function __construct($parameters) { parent::__construct($parameters); }
/** * put your comment there... * * @param mixed $vInfo * @return CJTTemplatesInfoView */ public function __construct($vInfo) { parent::__construct($vInfo); }
/** * put your comment there... * */ public function __construct($info) { parent::__construct($info); // Define setting pages. $this->pages = array(array('name' => 'uninstall', 'displayName' => cssJSToolbox::getText('Uninstall')), array('name' => 'metabox', 'displayName' => cssJSToolbox::getText('MetaBox'))); }