concrete/src/Page/Theme/Theme.php
public function getThemeCustomizablePreset($handle)
    {
        $env = Environment::get();
        if ($this->isThemeCustomizable()) {
            $file = $env->getRecord(
                DIRNAME_THEMES.'/'.$this->getThemeHandle(
                ).'/'.DIRNAME_CSS.'/'.DIRNAME_STYLE_CUSTOMIZER_PRESETS.'/'.$handle.static::THEME_CUSTOMIZABLE_STYLESHEET_EXTENSION,
                $this->getPackageHandle()
            );
            if ($file->exists()) {
                $urlroot = $env->getURL(
                    DIRNAME_THEMES.'/'.$this->getThemeHandle().'/'.DIRNAME_CSS,
                    $this->getPackageHandle()
                );
                $preset = Preset::getFromFile($file->file, $urlroot);

                return $preset;
            }
        }
    }
public function getThemeCustomizablePreset($handle)
    {
        $env = Environment::get();
        if ($this->isThemeCustomizable()) {
            $file = $env->getRecord(
                DIRNAME_THEMES.'/'.$this->getThemeHandle(
                ).'/'.DIRNAME_CSS.'/'.DIRNAME_STYLE_CUSTOMIZER_PRESETS.'/'.$handle.static::THEME_CUSTOMIZABLE_STYLESHEET_EXTENSION,
                $this->getPackageHandle()
            );
            if ($file->exists()) {
                $urlroot = $env->getURL(
                    DIRNAME_THEMES.'/'.$this->getThemeHandle().'/'.DIRNAME_CSS,
                    $this->getPackageHandle()
                );
                $preset = Preset::getFromFile($file->file, $urlroot);

                return $preset;
            }
        }
    }
public function getThemeCustomizablePreset ( $ handle ) { $ env = Environment :: get ( ) ; if ( $ this -> isThemeCustomizable ( ) ) { $ file = $ env -> getRecord ( DIRNAME_THEMES . '/' . $ this -> getThemeHandle ( ) . '/' . DIRNAME_CSS . '/' . DIRNAME_STYLE_CUSTOMIZER_PRESETS . '/' . $ handle . static :: THEME_CUSTOMIZABLE_STYLESHEET_EXTENSION , $ this -> getPackageHandle ( ) ) ; if ( $ file -> exists ( ) ) { $ urlroot = $ env -> getURL ( DIRNAME_THEMES . '/' . $ this -> getThemeHandle ( ) . '/' . DIRNAME_CSS , $ this -> getPackageHandle ( ) ) ; $ preset = Preset :: getFromFile ( $ file -> file , $ urlroot ) ; return $ preset ; } } }
Gets a preset for this theme by handle.
Gets a preset for this theme by handle .