class WpvTemplates

### Methods

## Comments template

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

Static

### Parameters

#### $comment

`object`

comment data

#### $args

`array`

comment arguments

#### $depth

`int`

comment depth

## The formatted output of a list of pages.

    custom_link_pages(string | array $args) : string

Static

Displays page links for paginated posts (i.e. includes the "nextpage". Quicktag one or more times). This tag must be within The Loop.

The defaults for overwriting are: 'next_or_number' - Default is 'number' (string). Indicates whether page numbers should be used. Valid values are number and next. 'nextpagelink' - Default is 'Next Page' (string). Text for link to next page. of the bookmark. 'previouspagelink' - Default is 'Previous Page' (string). Text for link to previous page, if available. 'pagelink' - Default is '%' (String).Format string for page numbers. The % in the parameter string will be replaced with the page number, so Page % generates "Page 1", "Page 2", etc. Defaults to %, just the page number. 'before' - Default is '

Pages:' (string). The html or text to prepend to each bookmarks. 'after' - Default is '

' (string). The html or text to append to each bookmarks. 'text_before' - Default is '' (string). The text to prepend to each Pages link inside the tag. Also prepended to the current item, which is not linked. 'text_after' - Default is '' (string). The text to append to each Pages link inside the tag. Also appended to the current item, which is not linked.

### Parameters

#### $args

`string` `array`

Optional. Overwrite the defaults.

### Returns

`string`Formatted output in HTML.

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

    get_layer_sliders($prefix) : array

Static

### Parameters

#### $prefix

### Returns

`array`list of LayerSlider WP sliders

## Returns the current layout type and defines WPV_LAYOUT accordingly

    get_layout() : string

Static

### Returns

`string`current 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

`boolean`whether the current context has share buttons

## Checks whether the current page has a header slider

    has_header_slider() : boolean

Static

### Returns

`boolean`true if there is a header slider

## Checks whether the current page has a title

    has_page_header() : boolean

Static

### Returns

`boolean`whether the current page has a title

## Checks whether the current page has post siblings links

    has_post_siblings_buttons() : boolean

Static

### Returns

`boolean`whether the current page has post siblings links

## Displays the header sidebars

    header_sidebars()

Static

## Returns true if this is the WP login page

    is_login() : bool

Static

### Returns

`bool`whether the current page is wp-login

## Displays the page header

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

Static

### Parameters

#### $placed

`bool`

whether the title has already been output

#### $title

`string` `null`

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

`string` `null`

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

`string`icon html

## 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