public function install() { if (parent::install() && $this->registerHook('displayHeader') && $this->registerHook('displayBackOfficeHeader') && $this->registerHook('displayRevSlider') && $this->moduleControllerRegistration() && $this->uploadControllerRegistration() && $this->registerHook('actionShopDataDuplication')) { $gethooks = array(); require_once ABSPATH . "/hook/hook.php"; foreach ($gethooks as $hook => $hooks) { if ($hook != '') { $this->registerHook($hook); } } require_once ABSPATH . "/revslider_admin.php"; $res = RevSliderAdmin::onActivate(); $admin = new RevSliderAdmin(ABSPATH, false); RevSliderAdmin::sds_caption_css_init($res); $this->installQuickAccess(); return (bool) $res; } return false; }
public function install() { $this->load->model('module/revslideropencart'); $this->model_module_revslideropencart->setup(); $ABSPATH = get_url(); $admin = new RevSliderAdmin($ABSPATH, false); RevSliderAdmin::sds_caption_css_init(true); }