Member_Grid
extends Shortcode
in package
Shortcode to provide a grid of member cards.
Provides the psite-member-grid shortcode.
Tags
Table of Contents
Constants
- DEFAULTS = array()
- The shortcode defaults.
Properties
- $attributes : array<string|int, mixed>
- The shortcode attributes.
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- get_the_content() : string
- Return the shortcode content.
- __construct() : void
- Initialise the class.
- the_content() : void
- Render the featured posts.
Constants
DEFAULTS
The shortcode defaults.
protected
array<string|int, mixed>
DEFAULTS
= array()
This can be overridden in each shortcode defintion to define the allowable attributes.
Tags
Properties
$attributes
The shortcode attributes.
protected
array<string|int, mixed>
$attributes
= array()
- This contains the defaults and the incoming attributes from the shortcode.
Tags
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
get_the_content()
Return the shortcode content.
public
get_the_content([array<string|int, mixed> $atts = array() ][, string $text = '' ][, string $tag = '' ]) : string
Parameters
- $atts : array<string|int, mixed> = array()
-
The shortcode atts - see $defaults.
- $text : string = ''
-
The enclosed shortcode content.
- $tag : string = ''
-
The calling shortcode tag.
Tags
Return values
string —Shortcode content markup.
__construct()
Initialise the class.
protected
__construct() : void
Tags
the_content()
Render the featured posts.
protected
the_content() : void