Constants

NAME

NAME

TEXTDOMAIN

TEXTDOMAIN

VERSION

VERSION

CSS_VERSION

CSS_VERSION

Properties

$instance

$instance : 

Type

Methods

getInstance()

getInstance() : \ScreamingFist

Get instance of class.

Returns

\ScreamingFist

enqueueStyles()

enqueueStyles() : void

Add CSS to site.

selectDevProdCss()

selectDevProdCss(string  $stylesheet_uri) 

Select the Dev or Production CSS file

Parameters

string $stylesheet_uri

addBodyClasses()

addBodyClasses(array  $classes) : array

Add CSS classes to <body>

Parameters

array $classes

Returns

array

prefixBodyClasses()

prefixBodyClasses(array  $classes) : array

Prefix body classes with 'body--' for better selectors.

Parameters

array $classes

Returns

array

registerMenus()

registerMenus() : void

Register menus for the theme.

registerSidebars()

registerSidebars() : void

Register sidebars for the theme.

addEditorStyles()

addEditorStyles() : void

Loads custom CSS for the editor

addCssVersionForEditor()

addCssVersionForEditor(array  $stylesheets) : array

Inject version number in editor CSS URL.

Parameters

array $stylesheets

Returns

array

addEditorStyleDropdown()

addEditorStyleDropdown(array  $buttons) : array

Enables Style dropdown in editor.

Parameters

array $buttons

Returns

array

addStyleFormats()

addStyleFormats(array  $settings) : array

Adds classes to Style dropdown

Parameters

array $settings

Returns

array

addAdminStyles()

addAdminStyles() : void

Add CSS file for admin styles

editorCssFilename()

editorCssFilename() : string

Gets the WYSIWYG editor CSS filename

Returns

string

adminCssFilename()

adminCssFilename() : string

Gets the wp-admin CSS filename.

Returns

string

themePrefix()

themePrefix() : \string;

Gets the prefix for enqueued resources.

Returns

\string;

themeCssVersion()

themeCssVersion() : string

Gets the CSS version number.

If WordPress has WP_DEBUG enabled will use time() for version number so that file will never be cached.

Returns

string

styleFormats()

styleFormats() : array

Gets a struct of styles for WYSIWYG style pulldown.

Returns

array

bodyClassPrefix()

bodyClassPrefix() : string

Get the string to use for body class prefix.

Returns

string

debugModeActive()

debugModeActive() : boolean

Check if WordPress is running in Debug mode.

Returns

boolean

isCssFile()

isCssFile(string  $uri) : boolean

Test if a URI points to a CSS file

Parameters

string $uri

Returns

boolean

applyBodyClassPrefix()

applyBodyClassPrefix(  $class_name) 

Parameters

$class_name

__construct()

__construct() 

_setup_styles()

_setup_styles() 

_clean_wordpress_head_output()

_clean_wordpress_head_output() 

_customize_wordpress_output()

_customize_wordpress_output() 

_setup_menus()

_setup_menus() 

_setup_sidebars()

_setup_sidebars() 

_customize_editor()

_customize_editor() 

_customize_admin()

_customize_admin()