/** * put javascript includes to the body before the gallery div */ protected function putJsIncludesToBody() { $output = parent::putJsIncludesToBody(); $src = $this->urlPlugin . "themes/slider/ug-theme-slider.js"; $output .= "<script type='text/javascript' src='{$src}'></script>"; return $output; }
/** * get theme options override */ protected function getArrJsOptions() { $arr = parent::getArrJsOptions(); $arr[] = $this->buildJsParam("theme_enable_fullscreen_button", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_enable_play_button", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_enable_hidepanel_button", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_enable_text_panel", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_hide_panel_under_width", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); return $arr; }
/** * get theme options override */ protected function getArrJsOptions() { $arr = parent::getArrJsOptions(); $arr[] = $this->buildJsParam("tiles_type"); $arr[] = $this->buildJsParam("theme_gallery_padding", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_justified_space_between", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_justified_row_height", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_enable_preloader", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_preloading_height", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_preloader_vertpos", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_enable_transition", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_auto_open", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); return $arr; }
/** * get theme options override */ protected function getArrJsOptions() { $arr = parent::getArrJsOptions(); $arr[] = $this->buildJsParam("theme_gallery_padding", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("grid_padding", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("grid_num_rows", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_navigation_type"); $arr[] = $this->buildJsParam("theme_arrows_margin_top", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_space_between_arrows", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_bullets_color"); $arr[] = $this->buildJsParam("bullets_space_between", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_bullets_margin_top", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_auto_open", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); return $arr; }
/** * get theme options override */ protected function getArrJsOptions() { $arr = parent::getArrJsOptions(); $arr[] = $this->buildJsParam("tiles_type"); $arr[] = $this->buildJsParam("theme_gallery_padding", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_nested_optimal_tile_width", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_min_columns", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_space_between_cols", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_space_between_cols_mobile", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_enable_preloader", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_preloading_height", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_preloader_vertpos", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("tiles_enable_transition", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("tiles_align"); //param not in settings $arr[] = $this->buildJsParam("theme_auto_open", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); return $arr; }
/** * get theme options override */ protected function getArrJsOptions() { $arr = parent::getArrJsOptions(); $arr[] = $this->buildJsParam("theme_gallery_padding", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_carousel_align"); $arr[] = $this->buildJsParam("theme_carousel_offset", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("carousel_padding", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("carousel_space_between_tiles", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("carousel_scroll_duration", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("carousel_scroll_easing"); $arr[] = $this->buildJsParam("carousel_autoplay", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("carousel_autoplay_timeout", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("carousel_autoplay_direction"); $arr[] = $this->buildJsParam("carousel_autoplay_pause_onhover", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_enable_navigation", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_navigation_enable_play", null, self::TYPE_BOOLEAN); $arr[] = $this->buildJsParam("theme_navigation_align"); $arr[] = $this->buildJsParam("theme_navigation_offset_hor", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_navigation_position"); $arr[] = $this->buildJsParam("theme_navigation_margin", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("theme_space_between_arrows", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); $arr[] = $this->buildJsParam("carousel_navigation_numtiles", self::VALIDATE_NUMERIC, self::TYPE_NUMBER); return $arr; }
/** * put gallery items */ protected function putItems($arrItems) { $arrItems = $this->filterImageItems($arrItems); return parent::putItems($arrItems); }
/** * get must fields array */ protected function getArrMustFields() { $arrMustFields = parent::getArrMustFields(); $arrMustFields[] = "theme_panel_position"; return $arrMustFields; }