{"id":79,"date":"2024-06-25T17:23:14","date_gmt":"2024-06-25T17:23:14","guid":{"rendered":"https:\/\/odindesignthemes.com\/struninnuicards\/?p=79"},"modified":"2024-06-25T17:23:14","modified_gmt":"2024-06-25T17:23:14","slug":"template-functions-2","status":"publish","type":"post","link":"https:\/\/odindesignthemes.com\/struninnuicards\/template-functions-2\/","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=\"#card-v1\">Sports Player Template Card V1<\/a><\/li>\n\n\n\n<li><a href=\"#card-v2\">Sports Player Template Card V2<\/a><\/li>\n\n\n\n<li><a href=\"#card-v3\">Sports Player Template Card V3<\/a><\/li>\n\n\n\n<li><a href=\"#card-v4\">Sports Player Template Card V4<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"card-v1\"><strong>Sports Player 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_sportsplayer_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>$color_primary<\/strong><br><em>(string)<\/em> Primary card color, i.e. &#8216;#ff3d3d&#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>$badge_url<\/strong><br><em>(bool)<\/em> Card badge URL.<\/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>$text<\/strong><br><em>(<em>string<\/em>)<\/em> Text that displays under the title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$number<\/strong><br><em>(<em>string<\/em>)<\/em> Number that displays next to the title and 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>$facebook_link<\/strong><br><em>(string)<\/em> Facebook link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$x_link<\/strong><br><em>(string)<\/em> X link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$instagram_link<\/strong><br><em>(string)<\/em> Instagram link URL.<\/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_sportsplayer_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=\"card-v2\"><strong>Sports Player Template Card V<\/strong>2<\/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_sportsplayer_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>$color_primary<\/strong><br><em>(string)<\/em> Primary card color, i.e. &#8216;#ff3d3d&#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>$badge_url<\/strong><br><em>(bool)<\/em> Card badge URL.<\/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>$text<\/strong><br><em>(<em>string<\/em>)<\/em> Text that displays under the title.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$number<\/strong><br><em>(<em>string<\/em>)<\/em> Number that displays at the bottom right of the image.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$tag<\/strong><br><em>(<em>string<\/em>)<\/em> Tag text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$facebook_link<\/strong><br><em>(string)<\/em> Facebook link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$x_link<\/strong><br><em>(string)<\/em> X link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$instagram_link<\/strong><br><em>(string)<\/em> Instagram link URL.<\/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_sportsplayer_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=\"card-v3\"><strong>Sports Player Template Card V<\/strong>3<\/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_sportsplayer_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>$color_primary<\/strong><br><em>(string)<\/em> Primary card color, i.e. &#8216;#ff3d3d&#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>$badge_url<\/strong><br><em>(bool)<\/em> Card badge URL.<\/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>$number<\/strong><br><em>(<em>string<\/em>)<\/em> Number that displays at the top right of the card.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$tag<\/strong><br><em>(<em>string<\/em>)<\/em> Tag text.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$facebook_link<\/strong><br><em>(string)<\/em> Facebook link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$x_link<\/strong><br><em>(string)<\/em> X link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$instagram_link<\/strong><br><em>(string)<\/em> Instagram link URL.<\/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_sportsplayer_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=\"card-v4\"><strong>Sports Player Template Card V<\/strong>4<\/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_sportsplayer_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>$color_primary<\/strong><br><em>(string)<\/em> Primary card color, i.e. &#8216;#ff3d3d&#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>$badge_url<\/strong><br><em>(bool)<\/em> Card badge URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$pretitle<\/strong><br><em>(<em>string<\/em>)<\/em> Text that displays before the title.<\/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>$number<\/strong><br><em>(<em>string<\/em>)<\/em> Number that displays in the middle of the footer.<\/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>$facebook_link<\/strong><br><em>(string)<\/em> Facebook link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$x_link<\/strong><br><em>(string)<\/em> X link URL.<\/p>\n\n\n\n<p class=\"odin-indent\"><strong>$instagram_link<\/strong><br><em>(string)<\/em> Instagram link URL.<\/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_sportsplayer_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: 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: &#8216;light&#8217;, &#8216;dark&#8217;. $color_primary(string) Primary card color, i.e. &#8216;#ff3d3d&#8217;. $width(int) Card width, a value of 0 to lets the card auto [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,2],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-sports-player","category-struninn-ui-cards"],"_links":{"self":[{"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts\/79"}],"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=79"}],"version-history":[{"count":1,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/posts\/79\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/odindesignthemes.com\/struninnuicards\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}