Свойство | Type | Description | |
---|---|---|---|
$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 |
Méthode | Description | |
---|---|---|
__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? |
Méthode | Description | |
---|---|---|
cleanupCss ( $css ) : string | Clean up CSS. |
protected static cleanupCss ( $css ) : string | ||
$css | ||
Résultat | string |
static public formSubmit ( ) |
static public getBaseTheme ( $slug ) : string | ||
$slug | string | |
Résultat | string |
static public getCustomCssFolder ( ) : string | ||
Résultat | string | fullpath |
static public isCustomCss ( ) : boolean | ||
Résultat | boolean |
static public isFormSubmission ( ) : boolean | ||
Résultat | boolean |
static public isRomanized ( ) : boolean | ||
Résultat | boolean |
public array $supported | ||
Résultat | array |