Scrollup.php
public function registerClientScript()
	{
		$view = $this->getView();

		if (isset($this->theme)) {
			$path = $view->getAssetManager()->publish(__DIR__ . '/assets/css/themes');
			$view->registerCSSFile($path[1] . '/' . $this->theme . '.css');

			if ($this->theme == 'image' && isset($this->pluginOptions['scrollText'])) {
				$this->pluginOptions['scrollText'] = '';
			}
		}

		ScrollupAsset::register($view);

		$options = empty($this->pluginOptions) ? '{}' : Json::encode($this->pluginOptions);
		$js = "$.scrollUp($options);";
		$view->registerJs($js);
	}
public function registerClientScript()
	{
		$view = $this->getView();

		if (isset($this->theme)) {
			$path = $view->getAssetManager()->publish(__DIR__ . '/assets/css/themes');
			$view->registerCSSFile($path[1] . '/' . $this->theme . '.css');

			if ($this->theme == 'image' && isset($this->pluginOptions['scrollText'])) {
				$this->pluginOptions['scrollText'] = '';
			}
		}

		ScrollupAsset::register($view);

		$options = empty($this->pluginOptions) ? '{}' : Json::encode($this->pluginOptions);
		$js = "$.scrollUp($options);";
		$view->registerJs($js);
	}
public function registerClientScript ( ) { $ view = $ this -> getView ( ) ; if ( isset ( $ this -> theme ) ) { $ path = $ view -> getAssetManager ( ) -> publish ( __DIR__ . '/assets/css/themes' ) ; $ view -> registerCSSFile ( $ path [ 1 ] . '/' . $ this -> theme . '.css' ) ; if ( $ this -> theme == 'image' && isset ( $ this -> pluginOptions [ 'scrollText' ] ) ) { $ this -> pluginOptions [ 'scrollText' ] = '' ; } } ScrollupAsset :: register ( $ view ) ; $ options = empty ( $ this -> pluginOptions ) ? '{}' : Json :: encode ( $ this -> pluginOptions ) ; $ js = "$.scrollUp($options);" ; $ view -> registerJs ( $ js ) ; }
Registers the needed JavaScript and inject the JS initialization code.

Note that if a supported theme is set, all css in the assets/css/theme folder are published
but only the css for the theme is registred.Moreover, if the select theme is 'image', the
'scrollText plugin option is cleared.
Registers the needed JavaScript and inject the JS initialization code .