Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ThemeFonts
+ Граф наследования:ThemeFonts:

Открытые члены

 enabled ()
 
 exec ()
 
- Открытые члены унаследованные от Page
 __construct ($editMode=false, $isPage=true)
 
 isPage ()
 
 getTitle ()
 
 getDescription ()
 
 getSort ()
 
 isFree ()
 
 isLocked ()
 
 getLockedMessage ()
 
 isNeedPublication ()
 
 getCode ()
 
 setData (array $data)
 
 getPageFields ()
 
 getFields ()
 
 enabledInEditMode ()
 
 enabledInIntranetMode ()
 
 fieldsHash ()
 
 dataExist ()
 
 setCustomExec (callable $callback)
 
 issetCustomExec ()
 

Открытые статические члены

static migrateFromTypoThemes (int $lid, int $siteId)
 

Защищенные члены

 getMap ()
 
 getField (string $name)
 
 setThemeFont ()
 
 setHFontTheme ()
 
 setSize ()
 
 setColors ()
 
 setTypo ()
 
- Защищенные члены унаследованные от Page
 isEditMode ()
 
 execCustom ()
 

Защищенные статические члены

static getLineHeightOptions ()
 
static getFontWeightOptions ()
 
static getDefaultValues ()
 
static convertFontName (string $fontName)
 
static getFontLink (string $font)
 

Защищенные данные

const BASE_HTML_SIZE = '14px'
 
- Защищенные данные унаследованные от Page
 $editMode = false
 
 $fields = array()
 
 $fieldsPage = array()
 
 $isPage = true
 
 $customExec = null
 
 $isNeedPublication = false
 

Подробное описание

Typographic settings

См. определение в файле themefonts.php строка 22

Методы

◆ convertFontName()

static convertFontName ( string $fontName)
staticprotected

Convert to correct font name

Аргументы
string$fontName
Возвращает
string

См. определение в файле themefonts.php строка 233

◆ enabled()

enabled ( )

Enable or not the hook.

Возвращает
boolean

Переопределяет метод предка Page.

См. определение в файле themefonts.php строка 119

◆ exec()

exec ( )

Exec hook.

Возвращает
void

Переопределяет метод предка Page.

См. определение в файле themefonts.php строка 138

◆ getDefaultValues()

static getDefaultValues ( )
staticprotected

См. определение в файле themefonts.php строка 162

◆ getField()

getField ( string $name)
protected

См. определение в файле themefonts.php строка 152

◆ getFontLink()

static getFontLink ( string $font)
staticprotected

См. определение в файле themefonts.php строка 255

◆ getFontWeightOptions()

static getFontWeightOptions ( )
staticprotected

См. определение в файле themefonts.php строка 100

◆ getLineHeightOptions()

static getLineHeightOptions ( )
staticprotected

См. определение в файле themefonts.php строка 81

◆ getMap()

getMap ( )
protected

Map of the field.

Возвращает
array

Переопределяет метод предка Page.

См. определение в файле themefonts.php строка 30

◆ migrateFromTypoThemes()

static migrateFromTypoThemes ( int $lid,
int $siteId )
static

Replace THEME_CODE_TYPO hook to THEMEFONTS hooks.

Аргументы
int$lidLanding id.
int$siteIdSite id.
Возвращает
void
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

См. определение в файле themefonts.php строка 353

◆ setColors()

setColors ( )
protected

Set colors for text and headers

См. определение в файле themefonts.php строка 290

◆ setHFontTheme()

setHFontTheme ( )
protected

Set fonts for headers, add style string

См. определение в файле themefonts.php строка 212

◆ setSize()

setSize ( )
protected

Set base font size for ALL text in body, add style string

См. определение в файле themefonts.php строка 273

◆ setThemeFont()

setThemeFont ( )
protected

Set the main font to the page

См. определение в файле themefonts.php строка 177

◆ setTypo()

setTypo ( )
protected

Set weight and line-height for text and headers

См. определение в файле themefonts.php строка 319

Данные класса

◆ BASE_HTML_SIZE

const BASE_HTML_SIZE = '14px'
protected

См. определение в файле themefonts.php строка 24