concrete/src/Page/Theme/Theme.php
public function getThemeCustomStyleObject()
    {
        $db = Loader::db();
        $row = $db->FetchAssoc('select * from PageThemeCustomStyles where pThemeID = ?', [$this->getThemeID()]);
        if (isset($row['pThemeID'])) {
            $o = new \Concrete\Core\Page\CustomStyle();
            $o->setThemeID($this->getThemeID());
            $o->setValueListID($row['scvlID']);
            $o->setPresetHandle($row['preset']);
            $o->setCustomCssRecordID($row['sccRecordID']);

            return $o;
        }
    }
public function getThemeCustomStyleObject()
    {
        $db = Loader::db();
        $row = $db->FetchAssoc('select * from PageThemeCustomStyles where pThemeID = ?', [$this->getThemeID()]);
        if (isset($row['pThemeID'])) {
            $o = new \Concrete\Core\Page\CustomStyle();
            $o->setThemeID($this->getThemeID());
            $o->setValueListID($row['scvlID']);
            $o->setPresetHandle($row['preset']);
            $o->setCustomCssRecordID($row['sccRecordID']);

            return $o;
        }
    }
public function getThemeCustomStyleObject ( ) { $ db = Loader :: db ( ) ; $ row = $ db -> FetchAssoc ( 'select * from PageThemeCustomStyles where pThemeID = ?' , [ $ this -> getThemeID ( ) ] ) ; if ( isset ( $ row [ 'pThemeID' ] ) ) { $ o = new \ Concrete \ Core \ Page \ CustomStyle ( ) ; $ o -> setThemeID ( $ this -> getThemeID ( ) ) ; $ o -> setValueListID ( $ row [ 'scvlID' ] ) ; $ o -> setPresetHandle ( $ row [ 'preset' ] ) ; $ o -> setCustomCssRecordID ( $ row [ 'sccRecordID' ] ) ; return $ o ; } }
Returns a Custom Style Object for the theme if one exists.
Returns a Custom Style Object for the theme if one exists .