protected function loadMainStyleByHandle($mainHandle)
    {
        $deps = $this->getStyleDeps($mainHandle);

        if (file_exists(sprintf('%s/css/%s.css', $this->paths->getThemeAssetsDir(), $mainHandle))) {
            $mainSrc = sprintf('%s/css/%s.css', $this->paths->getThemeAssetsUri(), $mainHandle);
        } else {
            // load styles in case we need to load dependencies
            $mainSrc = sprintf('%s/css/%s.css', $this->paths->getBaseAssetsUri(), $mainHandle);
        }

        $this->loadStyle($mainHandle, $mainSrc, $deps);
    }
protected function loadMainStyleByHandle($mainHandle)
    {
        $deps = $this->getStyleDeps($mainHandle);

        if (file_exists(sprintf('%s/css/%s.css', $this->paths->getThemeAssetsDir(), $mainHandle))) {
            $mainSrc = sprintf('%s/css/%s.css', $this->paths->getThemeAssetsUri(), $mainHandle);
        } else {
            // load styles in case we need to load dependencies
            $mainSrc = sprintf('%s/css/%s.css', $this->paths->getBaseAssetsUri(), $mainHandle);
        }

        $this->loadStyle($mainHandle, $mainSrc, $deps);
    }
protected function loadMainStyleByHandle ( $ mainHandle ) { $ deps = $ this -> getStyleDeps ( $ mainHandle ) ; if ( file_exists ( sprintf ( '%s/css/%s.css' , $ this -> paths -> getThemeAssetsDir ( ) , $ mainHandle ) ) ) { $ mainSrc = sprintf ( '%s/css/%s.css' , $ this -> paths -> getThemeAssetsUri ( ) , $ mainHandle ) ; } else { // load styles in case we need to load dependencies $ mainSrc = sprintf ( '%s/css/%s.css' , $ this -> paths -> getBaseAssetsUri ( ) , $ mainHandle ) ; } $ this -> loadStyle ( $ mainHandle , $ mainSrc , $ deps ) ; }
Loads a main stylesheet file using handle conventions

@param string $mainHandle The style handle
Loads a main stylesheet file using handle conventions