Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }