ServicesShortcode
extends AbstractShortcode
in package
Table of Contents
- $name : mixed
- $order : array<string|int, mixed>
- $customPostsPerPage : int|bool
- $ids : array<string|int, mixed>
- $showAll : bool
- __construct() : mixed
- addActions() : mixed
- generateShortcode() : string
- getName() : mixed
- getServicesQuery() : mixed
- register() : mixed
- render() : string
- buildOrderQuery() : array<string|int, mixed>
- addTemplateActions() : mixed
- mainLoop() : mixed
- renderService() : mixed
- showNotMatchedMessage() : mixed
Properties
$name
protected
mixed
$name
= 'mphb_services'
$order
protected
array<string|int, mixed>
$order
= array()
$customPostsPerPage
private
int|bool
$customPostsPerPage
= false
$ids
private
array<string|int, mixed>
$ids
= array()
$showAll
private
bool
$showAll
= true
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addActions()
public
addActions() : mixed
Return values
mixed —generateShortcode()
public
generateShortcode([array<string|int, mixed> $attrs = array() ]) : string
Parameters
- $attrs : array<string|int, mixed> = array()
-
Attributes of shortcode
Return values
string —getName()
public
getName() : mixed
Return values
mixed —getServicesQuery()
public
getServicesQuery() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —render()
public
render(array<string|int, mixed> $atts, string $content, string $shortcodeName) : string
Parameters
- $atts : array<string|int, mixed>
- $content : string
- $shortcodeName : string
Return values
string —buildOrderQuery()
protected
buildOrderQuery(array<string|int, mixed> $atts, array<string|int, mixed> $defaults) : array<string|int, mixed>
Parameters
- $atts : array<string|int, mixed>
-
Shortcode attributes.
- $defaults : array<string|int, mixed>
-
Default values of "orderby" and "order" attributes.
Tags
Return values
array<string|int, mixed> —addTemplateActions()
private
addTemplateActions() : mixed
Return values
mixed —mainLoop()
private
mainLoop() : mixed
Return values
mixed —renderService()
private
renderService() : mixed
Return values
mixed —showNotMatchedMessage()
private
showNotMatchedMessage() : mixed