PHP Класс Pressbooks\Pressbooks

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Constructor.
allowedBookThemes ( array $themes ) : array Used by add_filter( 'allowed_themes' ) Will hide any theme not in ./themes-book/* with exceptions for the PB_BOOK_THEME constant, and $GLOBALS['PB_SECRET_SAUCE']['BOOK_THEMES'][]
allowedRootThemes ( array $themes ) : array Used by add_filter( 'allowed_themes' ) Will hide any theme not in ./themes-root/* with exceptions for 'pressbooks-root', the PB_ROOT_THEME constant, and $GLOBALS['PB_SECRET_SAUCE']['ROOT_THEMES'][]
registerThemeDirectories ( ) Register theme directories, set a filter that hides themes under certain conditions

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

allowedBookThemes() публичный Метод

Used by add_filter( 'allowed_themes' ) Will hide any theme not in ./themes-book/* with exceptions for the PB_BOOK_THEME constant, and $GLOBALS['PB_SECRET_SAUCE']['BOOK_THEMES'][]
public allowedBookThemes ( array $themes ) : array
$themes array
Результат array

allowedRootThemes() публичный Метод

Used by add_filter( 'allowed_themes' ) Will hide any theme not in ./themes-root/* with exceptions for 'pressbooks-root', the PB_ROOT_THEME constant, and $GLOBALS['PB_SECRET_SAUCE']['ROOT_THEMES'][]
public allowedRootThemes ( array $themes ) : array
$themes array
Результат array

registerThemeDirectories() публичный Метод

Register theme directories, set a filter that hides themes under certain conditions