Sports Player
Template Functions
The plugin provides template functions for the following widgets:
- Sports Player Template Card V1
- Sports Player Template Card V2
- Sports Player Template Card V3
- Sports Player Template Card V4
Sports Player Template Card V1
Syntax
struninnuicards_sportsplayer_template_card_v1( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$color_primary
(string) Primary card color, i.e. ‘#ff3d3d’.
$width
(int) Card width, a value of 0 to lets the card auto adjust size.
$image_url
(string) Card image URL. A value of ‘sample’ shows an example of how the image will display.
$badge_url
(bool) Card badge URL.
$title
(string) Title.
$title_link
(string) Title link URL.
$text
(string) Text that displays under the title.
$number
(string) Number that displays next to the title and text.
$footer_left_title
(string) Footer left title.
$facebook_link
(string) Facebook link URL.
$x_link
(string) X link URL.
$instagram_link
(string) Instagram link URL.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_sportsplayer_template_card_v1($args);
Sports Player Template Card V2
Syntax
struninnuicards_sportsplayer_template_card_v2( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$color_primary
(string) Primary card color, i.e. ‘#ff3d3d’.
$width
(int) Card width, a value of 0 to lets the card auto adjust size.
$image_url
(string) Card image URL. A value of ‘sample’ shows an example of how the image will display.
$badge_url
(bool) Card badge URL.
$title
(string) Title.
$title_link
(string) Title link URL.
$text
(string) Text that displays under the title.
$number
(string) Number that displays at the bottom right of the image.
$tag
(string) Tag text.
$facebook_link
(string) Facebook link URL.
$x_link
(string) X link URL.
$instagram_link
(string) Instagram link URL.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_sportsplayer_template_card_v2($args);
Sports Player Template Card V3
Syntax
struninnuicards_sportsplayer_template_card_v3( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$color_primary
(string) Primary card color, i.e. ‘#ff3d3d’.
$width
(int) Card width, a value of 0 to lets the card auto adjust size.
$image_url
(string) Card image URL. A value of ‘sample’ shows an example of how the image will display.
$badge_url
(bool) Card badge URL.
$title
(string) Title.
$title_link
(string) Title link URL.
$number
(string) Number that displays at the top right of the card.
$tag
(string) Tag text.
$facebook_link
(string) Facebook link URL.
$x_link
(string) X link URL.
$instagram_link
(string) Instagram link URL.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_sportsplayer_template_card_v3($args);
Sports Player Template Card V4
Syntax
struninnuicards_sportsplayer_template_card_v4( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$color_primary
(string) Primary card color, i.e. ‘#ff3d3d’.
$width
(int) Card width, a value of 0 to lets the card auto adjust size.
$image_url
(string) Card image URL. A value of ‘sample’ shows an example of how the image will display.
$badge_url
(bool) Card badge URL.
$pretitle
(string) Text that displays before the title.
$title
(string) Title.
$title_link
(string) Title link URL.
$number
(string) Number that displays in the middle of the footer.
$footer_left_title
(string) Footer left title.
$footer_right_title
(string) Footer right title.
$facebook_link
(string) Facebook link URL.
$x_link
(string) X link URL.
$instagram_link
(string) Instagram link URL.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_sportsplayer_template_card_v4($args);