function __construct($id = null) { parent::__construct(); include $this->pluginDir . 'settings/slider.php'; $this->options = $sliderOptions; $this->prepareOptions(); if (is_null($id)) { $this->overrideOptions(null, false); } else { $this->load($id); } }
function __construct($id = null) { parent::__construct(); include $this->pluginDir . 'settings/slide.php'; $this->options = $slideOptions; $this->prepareOptions(); include $this->pluginDir . 'settings/layer.php'; $this->layerOptions = $layerOptions; $this->prepareLayers(); if (is_null($id)) { $this->overrideOptions(null, false); } else { $loaded = $this->load($id); if (!$loaded) { // TODO: Throw error // _e('Record not found', MPSL_TEXTDOMAIN); } } }