PHP 클래스 Pressbooks\Pressbooks

파일 보기 프로젝트 열기: 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