{"id":25,"date":"2024-06-20T13:31:12","date_gmt":"2024-06-20T13:31:12","guid":{"rendered":"https:\/\/odindesignthemes.com\/struninnuicards\/?p=25"},"modified":"2024-06-20T13:31:23","modified_gmt":"2024-06-20T13:31:23","slug":"template-functions","status":"publish","type":"post","link":"https:\/\/odindesignthemes.com\/struninnuicards\/template-functions\/","title":{"rendered":"Template Functions"},"content":{"rendered":"\n<p>The plugin provides template functions for the following widgets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#digital-card-v1\">Digital Template Card V1<\/a><\/li>\n\n\n\n<li><a href=\"#digital-card-v2\">Digital Template Card V2<\/a><\/li>\n\n\n\n<li><a href=\"#digital-card-v3\">Digital Template Card V3<\/a><\/li>\n\n\n\n<li><a href=\"#digital-card-v4\">Digital Template Card V4<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"digital-card-v1\"><strong>Digital Template Card V1<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">struninnuicards_digital_template_card_v1(<\/mark><\/strong> <strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cd2f23\" class=\"has-inline-color\">array<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0f55c8\" class=\"has-inline-color\"> $args<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">=<\/mark> [] <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">)<\/mark><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p><strong>$args<\/strong><br><em>(array)<\/em> <em>(Optional)<\/em> Arguments to modify template output.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$theme<\/strong><br><em>(string)<\/em> Card color scheme, one of: &#8216;light&#8217;, &#8216;dark&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$width<\/strong><br><em>(int)<\/em> Card width, a value of 0 to lets the card auto adjust size.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$image_url<\/strong><br><em>(<em>string<\/em>)<\/em> Card image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_enabled<\/strong><br><em>(bool)<\/em> True to display likes tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_text<\/strong><br><em>(<em>string<\/em>)<\/em> Likes tag text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_enabled<\/strong><br><em>(bool)<\/em> True to display countdown tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_target_date<\/strong><br><em>(<em>string<\/em>)<\/em> Countdown target date, in the format: &#8216;yyyy-mm-dd hh:mm&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title<\/strong><br><em>(<em>string<\/em>)<\/em> Title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title_link<\/strong><br><em>(<em>string<\/em>)<\/em> Title link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_image_url<\/strong><br><em>(<em>string<\/em>)<\/em> User image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_name<\/strong><br><em>(<em>string<\/em>)<\/em> User name.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_name_link<\/strong><br><em>(<em>string<\/em>)<\/em> User name link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_verified<\/strong><br><em>(bool)<\/em> True to display verified user sticker, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$footer_left_title<\/strong><br><em>(<em>string<\/em>)<\/em> Footer left title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$footer_left_text<\/strong><br><em>(<em>string<\/em>)<\/em> Footer left text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$footer_right_title<\/strong><br><em>(<em>string<\/em>)<\/em> Footer right title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_facebook_enabled<\/strong><br><em>(bool)<\/em> True to display facebook share link, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_x_enabled<\/strong><br><em>(bool)<\/em> True to display x share link, false otherwise.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$args = &#91;\n  'theme' =&gt; 'dark'\n];\n\nstruninnuicards_digital_template_card_v1($args);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"digital-card-v2\"><strong>Digital Template Card V2<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">struninnuicards_digital_template_card_v2(<\/mark> <\/strong><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cd2f23\" class=\"has-inline-color\">array<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0f55c8\" class=\"has-inline-color\"> $args<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">=<\/mark> [] <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">)<\/mark><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p><strong>$args<\/strong><br><em>(array)<\/em> <em>(Optional)<\/em> Arguments to modify template output.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$theme<\/strong><br><em>(string)<\/em> Card color scheme, one of: &#8216;light&#8217;, &#8216;dark&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$width<\/strong><br><em>(int)<\/em> Card width, a value of 0 to lets the card auto adjust size.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$image_url<\/strong><br><em>(<em>string<\/em>)<\/em> Card image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_enabled<\/strong><br><em>(bool)<\/em> True to display likes tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_text<\/strong><br><em>(<em>string<\/em>)<\/em> Likes tag text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_enabled<\/strong><br><em>(bool)<\/em> True to display countdown tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_target_date<\/strong><br><em>(<em>string<\/em>)<\/em> Countdown target date, in the format: &#8216;yyyy-mm-dd hh:mm&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title<\/strong><br><em>(<em>string<\/em>)<\/em> Title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title_link<\/strong><br><em>(<em>string<\/em>)<\/em> Title link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_image_url<\/strong><br><em>(<em>string<\/em>)<\/em> User image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_title<\/strong><br><em>(<em>string<\/em>)<\/em> User title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_name<\/strong><br><em>(<em>string<\/em>)<\/em> User name.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_name_link<\/strong><br><em>(<em>string<\/em>)<\/em> User name link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_verified<\/strong><br><em>(bool)<\/em> True to display verified user sticker, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$details_right_title<\/strong><br><em>(<em>string<\/em>)<\/em> Details right title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$details_right_text<\/strong><br><em>(<em>string<\/em>)<\/em> Details right text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$footer_left_title<\/strong><br><em>(<em>string<\/em>)<\/em> Footer left title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_facebook_enabled<\/strong><br><em>(bool)<\/em> True to display facebook share link, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_x_enabled<\/strong><br><em>(bool)<\/em> True to display x share link, false otherwise.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$args = &#91;\n  'theme' =&gt; 'dark'\n];\n\nstruninnuicards_digital_template_card_v2($args);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"digital-card-v3\"><strong>Digital Template Card V3<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">struninnuicards_digital_template_card_v3(<\/mark> <\/strong><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cd2f23\" class=\"has-inline-color\">array<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0f55c8\" class=\"has-inline-color\"> $args<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">=<\/mark> [] <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">)<\/mark><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p><strong>$args<\/strong><br><em>(array)<\/em> <em>(Optional)<\/em> Arguments to modify template output.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$theme<\/strong><br><em>(string)<\/em> Card color scheme, one of: &#8216;light&#8217;, &#8216;dark&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$width<\/strong><br><em>(int)<\/em> Card width, a value of 0 to lets the card auto adjust size.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$image_url<\/strong><br><em>(<em>string<\/em>)<\/em> Card image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_enabled<\/strong><br><em>(bool)<\/em> True to display likes tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_text<\/strong><br><em>(<em>string<\/em>)<\/em> Likes tag text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_enabled<\/strong><br><em>(bool)<\/em> True to display countdown tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_target_date<\/strong><br><em>(<em>string<\/em>)<\/em> Countdown target date, in the format: &#8216;yyyy-mm-dd hh:mm&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title<\/strong><br><em>(<em>string<\/em>)<\/em> Title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title_link<\/strong><br><em>(<em>string<\/em>)<\/em> Title link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_image_url<\/strong><br><em>(<em>string<\/em>)<\/em> User image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_verified<\/strong><br><em>(bool)<\/em> True to display verified user sticker, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$details_title<\/strong><br><em>(<em>string<\/em>)<\/em> Details title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$details_text<\/strong><br><em>(<em>string<\/em>)<\/em> Details text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_facebook_enabled<\/strong><br><em>(bool)<\/em> True to display facebook share link, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_x_enabled<\/strong><br><em>(bool)<\/em> True to display x share link, false otherwise.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$args = &#91;\n  'theme' =&gt; 'dark'\n];\n\nstruninnuicards_digital_template_card_v3($args);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"digital-card-v4\"><strong>Digital Template Card V4<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">struninnuicards_digital_template_card_v4(<\/mark> <\/strong><strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#cd2f23\" class=\"has-inline-color\">array<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0f55c8\" class=\"has-inline-color\"> $args<\/mark> <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">=<\/mark> [] <mark style=\"background-color:rgba(0, 0, 0, 0);color:#24831d\" class=\"has-inline-color\">)<\/mark><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p><strong>$args<\/strong><br><em>(array)<\/em> <em>(Optional)<\/em> Arguments to modify template output.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$theme<\/strong><br><em>(string)<\/em> Card color scheme, one of: &#8216;light&#8217;, &#8216;dark&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$width<\/strong><br><em>(int)<\/em> Card width, a value of 0 to lets the card auto adjust size.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$image_url<\/strong><br><em>(<em>string<\/em>)<\/em> Card image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_enabled<\/strong><br><em>(bool)<\/em> True to display likes tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$likes_text<\/strong><br><em>(<em>string<\/em>)<\/em> Likes tag text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_enabled<\/strong><br><em>(bool)<\/em> True to display countdown tag, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$countdown_target_date<\/strong><br><em>(<em>string<\/em>)<\/em> Countdown target date, in the format: &#8216;yyyy-mm-dd hh:mm&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title<\/strong><br><em>(<em>string<\/em>)<\/em> Title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$title_link<\/strong><br><em>(<em>string<\/em>)<\/em> Title link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_image_url<\/strong><br><em>(<em>string<\/em>)<\/em> User image URL. A value of &#8216;sample&#8217; shows an example of how the image will display.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_name<\/strong><br><em>(<em>string<\/em>)<\/em> User name.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_name_link<\/strong><br><em>(<em>string<\/em>)<\/em> User name link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$user_verified<\/strong><br><em>(bool)<\/em> True to display verified user sticker, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$details_title<\/strong><br><em>(<em>string<\/em>)<\/em> Details title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$details_text<\/strong><br><em>(<em>string<\/em>)<\/em> Details text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$button_style<\/strong><br><em>(<em>string<\/em>)<\/em> Button style, one of: &#8216;solid&#8217;, &#8216;outline&#8217;.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$button_text<\/strong><br><em>(<em>string<\/em>)<\/em> Button Text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$footer_left_title<\/strong><br><em>(<em>string<\/em>)<\/em> Footer left title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$footer_right_title<\/strong><br><em>(<em>string<\/em>)<\/em> Footer right title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_facebook_enabled<\/strong><br><em>(bool)<\/em> True to display facebook share link, false otherwise.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$share_x_enabled<\/strong><br><em>(bool)<\/em> True to display x share link, false otherwise.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$args = &#91;\n  'theme' =&gt; 'dark'\n];\n\nstruninnuicards_digital_template_card_v4($args);<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-group is-content-justification-space-between is-nowrap is-layout-flex wp-container-core-group-is-layout-3 wp-block-group-is-layout-flex\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\"><\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\"><\/div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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: &#8216;light&#8217;, &#8216;dark&#8217;. $width(int) Card width, a value of 0 to lets the card auto adjust size. $image_url(string) Card image URL. A [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-digital-items-and-auctions","category-struninn-ui-cards"],"_links":{"self":[{"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}