WpvSidebars

class WpvSidebars

register right/left, header and footer sidebars also provides a function which outputs the correct right/left sidebar

Methods

Set the available widgets area

__construct() 

Get singleton instance

get_instance() : \WpvSidebars
static

Response

\WpvSidebars

singleton instance

Register sidebars

register_sidebars() 

Output the correct sidebar

get_sidebar(string $place = 'left') : bool
uses

Arguments

$place

string

one of $this->placements

Response

bool

result of dynamic_sidebar()

Properties

List of widget areas

sidebars : array
var

Type(s)

array

List of sidebar placements

places : array
var

Type(s)

array

Singleton instance

instance : \WpvSidebars
static
var

Type(s)

\WpvSidebars