/** * * add justified function */ protected function modifyOptions() { parent::modifyOptions(); $this->arrParams["tiles_type"] = "justified"; //treat open at start $openAtStart = $this->getParam("theme_open_lightbox_at_start", self::FORCE_BOOLEAN); if ($openAtStart == true) { $openAt = $this->getParam("theme_auto_open", self::FORCE_NUMERIC); $this->arrParams["theme_auto_open"] = $this->getParam("theme_auto_open", self::FORCE_NUMERIC); } else { unset($this->arrParams["theme_auto_open"]); } }
/** * modify optoins */ protected function modifyOptions() { parent::modifyOptions(); $enableNavigation = $this->getParam("custom_enable_navigation", self::FORCE_BOOLEAN); if ($enableNavigation === false) { $this->arrParams["grid_num_rows"] = 9999; } //treat open at start $openAtStart = $this->getParam("theme_open_lightbox_at_start", self::FORCE_BOOLEAN); if ($openAtStart == true) { $openAt = $this->getParam("theme_auto_open", self::FORCE_NUMERIC); $this->arrParams["theme_auto_open"] = $this->getParam("theme_auto_open", self::FORCE_NUMERIC); } else { unset($this->arrParams["theme_auto_open"]); } }
/** * modify options */ protected function modifyOptions() { parent::modifyOptions(); //set tiles_align if position is not center $position = $this->getParam("position"); if ($position == "left" || $position == "right") { $this->arrParams["tiles_align"] = $position; } //treat open at start $openAtStart = $this->getParam("theme_open_lightbox_at_start", self::FORCE_BOOLEAN); if ($openAtStart == true) { $openAt = $this->getParam("theme_auto_open", self::FORCE_NUMERIC); $this->arrParams["theme_auto_open"] = $this->getParam("theme_auto_open", self::FORCE_NUMERIC); } else { unset($this->arrParams["theme_auto_open"]); } }