프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$supported | array | All keys must match an *existing* WP post where post_name = __key__ and post_type = 'custom-css' If the key is not 'web' then it must map to: themes-book/__SOME_THEME__/export/__key__/style.css |
메소드 | 설명 | |
---|---|---|
__construct ( ) | ||
formSubmit ( ) | Save custom CSS to database (and filesystem) | |
getBaseTheme ( $slug ) : string | Determine base theme that was used for the selected Custom CSS. | |
getCss ( $slug ) : string | Get CSS from database | |
getCustomCssFolder ( ) : string | Get the fullpath to the Custom CSS folder Create if not there. | |
getPost ( string $slug ) : WP_Post | boolean | Returns the latest "custom-css" post | |
isCustomCss ( ) : boolean | Is the current theme the custom css theme? | |
isFormSubmission ( ) : boolean | Check if a user submitted something to themes.php?page=pb_custom_css | |
isRomanized ( ) : boolean | Is the romanize parts option true? |
메소드 | 설명 | |
---|---|---|
cleanupCss ( $css ) : string | Clean up CSS. |
protected static cleanupCss ( $css ) : string | ||
$css | ||
리턴 | string |
static public getBaseTheme ( $slug ) : string | ||
$slug | string | |
리턴 | string |
static public getCustomCssFolder ( ) : string | ||
리턴 | string | fullpath |
static public isCustomCss ( ) : boolean | ||
리턴 | boolean |
static public isFormSubmission ( ) : boolean | ||
리턴 | boolean |
static public isRomanized ( ) : boolean | ||
리턴 | boolean |
public array $supported | ||
리턴 | array |