Scrollup.php
public function init()
	{
		parent::init();
		if (! empty($this->theme) && ! in_array($this->theme, $this->_supportedThemes)) {
			throw new InvalidConfigException('Unsupported built-in theme : ' . $this->theme);
		}
		if (isset($this->pluginOptions['animation']) && ! in_array($this->pluginOptions['animation'], $this->_supportedAnimation)) {
			throw new InvalidConfigException('Unsupported animation mode : ' . $this->pluginOptions['animation']);
		}
	}
public function init()
	{
		parent::init();
		if (! empty($this->theme) && ! in_array($this->theme, $this->_supportedThemes)) {
			throw new InvalidConfigException('Unsupported built-in theme : ' . $this->theme);
		}
		if (isset($this->pluginOptions['animation']) && ! in_array($this->pluginOptions['animation'], $this->_supportedAnimation)) {
			throw new InvalidConfigException('Unsupported animation mode : ' . $this->pluginOptions['animation']);
		}
	}
public function init ( ) { parent :: init ( ) ; if ( ! empty ( $ this -> theme ) && ! in_array ( $ this -> theme , $ this -> _supportedThemes ) ) { throw new InvalidConfigException ( 'Unsupported built-in theme : ' . $ this -> theme ) ; } if ( isset ( $ this -> pluginOptions [ 'animation' ] ) && ! in_array ( $ this -> pluginOptions [ 'animation' ] , $ this -> _supportedAnimation ) ) { throw new InvalidConfigException ( 'Unsupported animation mode : ' . $ this -> pluginOptions [ 'animation' ] ) ; } }
Chekcs validity of theme and animation options
Chekcs validity of theme and animation options