Digital Items and Auctions
Template Functions
The plugin provides template functions for the following widgets:
Digital Template Card V1
Syntax
struninnuicards_digital_template_card_v1( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$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.
$likes_enabled
(bool) True to display likes tag, false otherwise.
$likes_text
(string) Likes tag text.
$countdown_enabled
(bool) True to display countdown tag, false otherwise.
$countdown_target_date
(string) Countdown target date, in the format: ‘yyyy-mm-dd hh:mm’.
$title
(string) Title.
$title_link
(string) Title link URL.
$user_image_url
(string) User image URL. A value of ‘sample’ shows an example of how the image will display.
$user_name
(string) User name.
$user_name_link
(string) User name link URL.
$user_verified
(bool) True to display verified user sticker, false otherwise.
$footer_left_title
(string) Footer left title.
$footer_left_text
(string) Footer left text.
$footer_right_title
(string) Footer right title.
$share_facebook_enabled
(bool) True to display facebook share link, false otherwise.
$share_x_enabled
(bool) True to display x share link, false otherwise.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_digital_template_card_v1($args);
Digital Template Card V2
Syntax
struninnuicards_digital_template_card_v2( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$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.
$likes_enabled
(bool) True to display likes tag, false otherwise.
$likes_text
(string) Likes tag text.
$countdown_enabled
(bool) True to display countdown tag, false otherwise.
$countdown_target_date
(string) Countdown target date, in the format: ‘yyyy-mm-dd hh:mm’.
$title
(string) Title.
$title_link
(string) Title link URL.
$user_image_url
(string) User image URL. A value of ‘sample’ shows an example of how the image will display.
$user_title
(string) User title.
$user_name
(string) User name.
$user_name_link
(string) User name link URL.
$user_verified
(bool) True to display verified user sticker, false otherwise.
$details_right_title
(string) Details right title.
$details_right_text
(string) Details right text.
$footer_left_title
(string) Footer left title.
$share_facebook_enabled
(bool) True to display facebook share link, false otherwise.
$share_x_enabled
(bool) True to display x share link, false otherwise.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_digital_template_card_v2($args);
Digital Template Card V3
Syntax
struninnuicards_digital_template_card_v3( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$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.
$likes_enabled
(bool) True to display likes tag, false otherwise.
$likes_text
(string) Likes tag text.
$countdown_enabled
(bool) True to display countdown tag, false otherwise.
$countdown_target_date
(string) Countdown target date, in the format: ‘yyyy-mm-dd hh:mm’.
$title
(string) Title.
$title_link
(string) Title link URL.
$user_image_url
(string) User image URL. A value of ‘sample’ shows an example of how the image will display.
$user_verified
(bool) True to display verified user sticker, false otherwise.
$details_title
(string) Details title.
$details_text
(string) Details text.
$share_facebook_enabled
(bool) True to display facebook share link, false otherwise.
$share_x_enabled
(bool) True to display x share link, false otherwise.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_digital_template_card_v3($args);
Digital Template Card V4
Syntax
struninnuicards_digital_template_card_v4( array $args = [] )
Parameters
$args
(array) (Optional) Arguments to modify template output.
$theme
(string) Card color scheme, one of: ‘light’, ‘dark’.
$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.
$likes_enabled
(bool) True to display likes tag, false otherwise.
$likes_text
(string) Likes tag text.
$countdown_enabled
(bool) True to display countdown tag, false otherwise.
$countdown_target_date
(string) Countdown target date, in the format: ‘yyyy-mm-dd hh:mm’.
$title
(string) Title.
$title_link
(string) Title link URL.
$user_image_url
(string) User image URL. A value of ‘sample’ shows an example of how the image will display.
$user_name
(string) User name.
$user_name_link
(string) User name link URL.
$user_verified
(bool) True to display verified user sticker, false otherwise.
$details_title
(string) Details title.
$details_text
(string) Details text.
$button_style
(string) Button style, one of: ‘solid’, ‘outline’.
$button_text
(string) Button Text.
$footer_left_title
(string) Footer left title.
$footer_right_title
(string) Footer right title.
$share_facebook_enabled
(bool) True to display facebook share link, false otherwise.
$share_x_enabled
(bool) True to display x share link, false otherwise.
Example
$args = [
'theme' => 'dark'
];
struninnuicards_digital_template_card_v4($args);