/** * * main constructor */ public function __construct($mainFile, $t, $defaultView) { parent::__construct($mainFile, $t); //set view self::$view = self::getGetVar("view"); if (empty(self::$view)) { self::$view = $defaultView; } //add internal hook for adding a menu in arrMenus self::addAction(self::ACTION_ADMIN_MENU, "addAdminMenu"); //if not inside plugin don't continue if ($this->isInsidePlugin() == true) { self::addAction(self::ACTION_ADD_SCRIPTS, "addCommonScripts"); self::addAction(self::ACTION_ADD_SCRIPTS, "onAddScripts"); } //a must event for any admin. call onActivate function. $this->addEvent_onActivate(); self::addActionAjax("show_image", "onShowImage"); }
/** * * the constructor */ public function __construct() { UniteBaseClassRev::__construct('', $this); //set table names GlobalsRevSlider::$table_sliders = GlobalsRevSlider::TABLE_SLIDERS_NAME; GlobalsRevSlider::$table_slides = GlobalsRevSlider::TABLE_SLIDES_NAME; GlobalsRevSlider::$table_static_slides = GlobalsRevSlider::TABLE_STATIC_SLIDES_NAME; GlobalsRevSlider::$table_settings = GlobalsRevSlider::TABLE_SETTINGS_NAME; GlobalsRevSlider::$table_css = GlobalsRevSlider::TABLE_CSS_NAME; GlobalsRevSlider::$table_layer_anims = GlobalsRevSlider::TABLE_LAYER_ANIMS_NAME; GlobalsRevSlider::$filepath_backup = self::$path_plugin . "backup/"; GlobalsRevSlider::$filepath_captions = self::$path_plugin . "rs-plugin/css/captions.css"; GlobalsRevSlider::$urlCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/dynamic.css'); GlobalsRevSlider::$urlStaticCaptionsCSS = Mage::getDesign()->getSkinUrl('css/nwdthemes/revslider/static.css'); GlobalsRevSlider::$filepath_dynamic_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/dynamic-captions.css"; GlobalsRevSlider::$filepath_static_captions = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/static-captions.css"; GlobalsRevSlider::$filepath_captions_original = Mage::getDesign()->getSkinBaseDir() . "/revslider/css/captions-original.css"; GlobalsRevSlider::$urlExportZip = Mage::getBaseDir('tmp') . '/revslider_export.zip'; $this->init(); }
public function __construct($mainFile, $t) { parent::__construct($mainFile, $t); self::addAction(self::ACTION_ENQUEUE_SCRIPTS, "onAddScripts"); }
/** * * main constructor */ public function __construct($mainFile, $t) { parent::__construct($mainFile, $t); self::addAction(self::ACTION_ENQUEUE_SCRIPTS, "onAddScripts"); add_filter('wp_footer', array($this, 'onAddScriptsHtml')); }