Theme
in package
Uses
Instance
The main Brisko theme class.
Brisko theme instance for all the other classes.
We will use this as the entry point to instantiate and access other classes.
Table of Contents
- VERSION = '6.1.2'
- Define Theme Version.
- $activate : mixed
- $assets : mixed
- $body : mixed
- $compat : mixed
- $customizer : mixed
- $head : mixed
- $jetpack : mixed
- __construct() : mixed
- construct.
- action() : Actions
- Theme Actions.
- enqueue_style() : void
- Easily enqueue additional styles.
- get() : ThemeInterface
- Instantiate.
- setup() : void
- Setup Theme.
- version() : string
- Get theme version.
Constants
VERSION
Define Theme Version.
public
mixed
VERSION
= '6.1.2'
Properties
$activate
protected
mixed
$activate
$assets
protected
mixed
$assets
$body
protected
mixed
$body
$compat
protected
mixed
$compat
$customizer
protected
mixed
$customizer
$head
protected
mixed
$head
$jetpack
protected
mixed
$jetpack
Methods
__construct()
construct.
public
__construct() : mixed
Return values
mixed —action()
Theme Actions.
public
action([string $action = null ]) : Actions
Parameters
- $action : string = null
-
the name of the action.
Return values
Actions —.
enqueue_style()
Easily enqueue additional styles.
public
static enqueue_style(string $handle, string $src[, string $ver = '' ][, array<string|int, mixed> $deps = [] ]) : void
Parameters
- $handle : string
-
Name of the stylesheet. Should be unique.
- $src : string
-
Full URL of the stylesheet, or path of the stylesheet.
- $ver : string = ''
-
Stylesheet version number, added to the URL as a query string for cache busting.
- $deps : array<string|int, mixed> = []
-
An array of registered stylesheet handles this stylesheet depends on.
Return values
void —get()
Instantiate.
public
static get() : ThemeInterface
Return values
ThemeInterface —setup()
Setup Theme.
public
setup() : void
Return values
void —version()
Get theme version.
public
version() : string