class WpvTemplates

 Methods

Displays the breadcrumbs if they are enabled

breadcrumbs() 
Static

Comments template

comments(object $comment, array $args, int $depth) 
Static

Parameters

$comment

object

comment data

$args

array

comment arguments

$depth

int

comment depth

Returns the list of LayerSlider sliders in 'layerslider-ID' => 'Name' array

get_layer_sliders($prefix) : array
Static

Parameters

$prefix

Returns

arraylist of LayerSlider WP sliders

Returns the current layout type and defines WPV_LAYOUT accordingly

get_layout() : string
Static

Returns

stringcurrent page layout

Outputs the page title styles

get_title_style() 
Static

Check if the current context has share buttons

hasShare(string $context) : boolean
Static

Parameters

$context

string

current view (page, post, etc.)

Returns

booleanwhether the current context has share buttons

has_breadcrumbs()

has_breadcrumbs() 
Static

Checks whether the current page has a header slider

has_header_slider() : boolean
Static

Returns

booleantrue if there is a header slider

Checks whether the current page has a title

has_page_header() : boolean
Static

Returns

booleanwhether the current page has a title

Checks whether the current page has post siblings links

has_post_siblings_buttons() : boolean
Static

Returns

booleanwhether the current page has post siblings links

Displays the header sidebars

header_sidebars() 
Static

displays the left sidebar if there is one

left_sidebar() 
Static

Displays the page header

page_header(bool $placed, string | null $title) 
Static

Parameters

$placed

bool

whether the title has already been output

$title

stringnull

if set, overrides the current post title

Displays the pagination code based on the theme options or $pagination_type

pagination(string | null $pagination_type) 
Static

Parameters

$pagination_type

stringnull

overrides the pagination settings

Echoes a pagination in the form of 1 2 [3] 4 5

pagination_list() 
Static

Displays the icon for a post format $format

post_format_icon(string $format) : string
Static

Parameters

$format

string

post format slug

Returns

stringicon html

displays the right sidebar if there is one

right_sidebar() 
Static

Displays share buttons depending on $context

share(string $context) 
Static

Parameters

$context

string

current view (page, post, etc.)

Outputs the site title

site_title() 
Static

Same as title_style(), but echos the result

title_style() 
Static