{"id":1380,"date":"2023-10-31T14:53:02","date_gmt":"2023-10-31T14:53:02","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=1380"},"modified":"2023-10-31T14:53:03","modified_gmt":"2023-10-31T14:53:03","slug":"wp-visitors-widget","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/wp-visitors-widget\/","title":{"rendered":"Live Visitor Counter Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Live Visitor Counter Shortcode<\/strong> to your WordPress website, including its <strong>parameters<\/strong>, <strong>examples<\/strong>, and <strong>PHP function code<\/strong>. Additionally, we&#8217;ll assist you with common issues that might cause the Live Visitor Counter Plugin shortcode not to show or not to work correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, here is an overview of the Live Visitor Counter Plugin and the shortcodes it provides:<\/p>\n\n\n<p>    <div class=\"plugin-info-box\">\n        <div class=\"top-main\">\n            <!-- SVG Image -->\n            <div class=\"plugin-image\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/wp-visitors-widget\/assets\/icon-256x256.png?rev=2178611\" alt=\"Plugin Icon\" \/>\n            <\/div>\n            \n            <div class=\"plugin-descriptive-part\">\n                <!-- Plugin Name with Link -->\n\n                    <a class=\"plugin-title\" href=\"https:\/\/wordpress.org\/plugins\/wp-visitors-widget\" target=\"_blank\" rel=\"noopener\">\n                        Live Visitor Counter                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Live Visitor Counter is a WordPress plugin that displays real-time website traffic. The wp-visitors-widget tracks and showcases the number of active users on your site, enhancing user engagement.&quot;                <\/p>\n            <\/div>\n        <\/div>\n\n        <!-- Rating and Additional Info -->\n        <div class=\"plugin-meta\">\n            <span class=\"plugin-rating\">\n                <span class='stars'>\u2605\u2605\u2605\u2605\u2729<\/span> (11)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 5000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.2.3            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: 5.0            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[visitors_widget]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Live Visitor Counter [visitors_widget] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The wp-visitors-widget shortcode is used to display visitor statistics on a WordPress site. It generates a widget showing the number of visitors today, total visitors, and live visitors. It also provides the ability to customize the widget&#8217;s appearance, including type, colors, and shadow. The shortcode is: [visitors_widget].<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[visitors_widget]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[null]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode('visitors_widget', 'wvw_visitors_widget');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\nfunction wvw_visitors_widget($atts, $content = null)\n{\n    global $wpdb;\n\n    $widget_rand = rand(999, 10000);\n\n    $out = &#039;&lt;input type=&quot;hidden&quot; class=&quot;random_prefix_val&quot; value=&quot;&#039; . $widget_rand . &#039;&quot; \/&gt;&#039;;\n\n    $type = $atts&#91;&#039;type&#039;];\n    $colors = $atts&#91;&#039;colors&#039;];\n    $shadow = $atts&#91;&#039;shadow&#039;];\n    $initial_value = (int)$atts&#91;&#039;initial_value&#039;];\n\n    if (in_array($type, &#91;&quot;3&quot;, &quot;5&quot;])) {\n        add_Action(&#039;wp_footer&#039;, function () {\n            ?&gt;\n            &lt;script type=&quot;text\/javascript&quot; src=&quot;https:\/\/www.gstatic.com\/charts\/loader.js&quot;&gt;&lt;\/script&gt;\n            &lt;link href=&quot;https:\/\/fonts.googleapis.com\/css?family=Exo+2&quot; rel=&quot;stylesheet&quot;&gt;\n            &lt;?php\n        });\n    }\n\n    $data_1_param = $atts&#91;&#039;data_1&#039;];\n    $data_2_param = $atts&#91;&#039;data_2&#039;];\n    $data_3_param = $atts&#91;&#039;data_3&#039;];\n\n\n    $visitors_stat = &#039;visitors_stat&#039;;\n    $visitors_stat = $wpdb-&gt;prefix . $visitors_stat;\n\n    $logo_image = plugins_url(&#039;\/images\/logo-dark-copy-2.png&#039;, __FILE__);\n    $plugin_url = &#039;https:\/\/visitorplugin.com\/&#039;;\n\n    \/\/ get visitors per day\n    $current_timestamp = current_time(&#039;timestamp&#039;, false);\n    $beginOfDay = strtotime(&quot;midnight&quot;, $current_timestamp);\n    $endOfDay = strtotime(&quot;tomorrow&quot;, $beginOfDay) - 1;\n\n    $all_today_visitors = $wpdb-&gt;get_var(&quot;SELECT COUNT(*) FROM $visitors_stat WHERE time BETWEEN $beginOfDay AND $endOfDay &quot;);\n\n    \/\/ get all visitors total\n    $all_total_visitors = $wpdb-&gt;get_var(&quot;SELECT COUNT(*) FROM $visitors_stat &quot;) + $initial_value;\n\n    \/\/ get last active users\n    $start_time = $current_timestamp - 5 * HOUR_IN_SECONDS;\n    $end_time = $current_timestamp;\n    $all_active_users = count($wpdb-&gt;get_col(&quot;SELECT DISTINCT ip FROM $visitors_stat WHERE time BETWEEN $start_time AND $end_time &quot;));\n\n\n    \/\/ graph info\n\n    $out_graph = &quot;&quot;;\n    switch ($data_1_param) {\n        case &quot;visit_today&quot;:\n            $text_1 = __(&#039;Visitors Today&#039;, &quot;wvw&quot;);\n            $data_1 = $all_today_visitors;\n            $out_graph = wvw_get_graph_array(&quot;visit_today&quot;, $widget_rand);\n\n            break;\n        case &quot;visit_total&quot;:\n            $text_1 = __(&quot;Total Visitors&quot;, &quot;wvw&quot;);\n            $data_1 = $all_total_visitors;\n            $out_graph = wvw_get_graph_array(&quot;visit_total&quot;, $widget_rand);\n            break;\n        case &quot;visit_live&quot;:\n            $text_1 = &#039;&lt;div class=&quot;pulsing_overlap_small&quot;&gt;&lt;div class=&quot;pulsating-circle&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&#039; . __(&quot;Live visitors&quot;, &quot;wvw&quot;);\n            $data_1 = $all_active_users;\n            $out_graph = wvw_get_graph_array(&quot;visit_live&quot;, $widget_rand);\n            break;\n    }\n    switch ($data_2_param) {\n        case &quot;visit_today&quot;:\n            $text_2 = __(&#039;Visitors Today&#039;, &quot;wvw&quot;);\n            $data_2 = $all_today_visitors;\n\n            break;\n        case &quot;visit_total&quot;:\n            $text_2 = __(&quot;Total Visitors&quot;, &quot;wvw&quot;);\n            $data_2 = $all_total_visitors;\n            break;\n        case &quot;visit_live&quot;:\n            $text_2 = &#039;&lt;div class=&quot;pulsing_overlap_small&quot;&gt;&lt;div class=&quot;pulsating-circle&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&#039; . __(&quot;Live visitors&quot;, &quot;wvw&quot;);\n            $data_2 = $all_active_users;\n            break;\n    }\n    switch ($data_3_param) {\n        case &quot;visit_today&quot;:\n            $text_3 = &#039;&lt;div&gt;&#039; . __(&quot;Visitors&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt; &lt;div&gt;&#039; . __(&quot;Today&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt;&#039;;\n            $data_3 = $all_today_visitors;\n\n            break;\n        case &quot;visit_total&quot;:\n            $text_3 = &#039;&lt;div&gt;&#039; . __(&quot;Total&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt; &lt;div&gt;&#039; . __(&quot;Visitors&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt;&#039;;\n            $data_3 = $all_total_visitors;\n            break;\n        case &quot;visit_live&quot;:\n            \/\/$text_3 = &#039;&lt;div&gt;Live&lt;\/div&gt; &lt;div&gt;visitors&lt;\/div&gt;&#039;;\n            $text_3 = &#039;&lt;div class=&quot;pulsing_overlap_small&quot;&gt;&lt;div class=&quot;pulsating-circle&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&#039; . __(&quot;Live visitors&quot;, &quot;wvw&quot;);\n            $data_3 = $all_active_users;\n            break;\n    }\n\n\n    \/\/ graph info\n    $out .= $out_graph;\n\n    switch ($type) {\n        case &quot;1&quot;:\n            $out .= &#039;\n\t\t\t&lt;style&gt;&#039;;\n            if ($shadow) {\n\n                switch ($colors) {\n                    case &quot;light&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_1.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;light_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_1.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;dark_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_1.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 15px 40px 0 rgba(42, 64, 145, 0.35);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                }\n\n\n            }\n\n            switch ($colors) {\n                case &quot;light&quot;:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;light_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;dark_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#f4f6fc&#039;;\n                    $border_color = &#039;#171717&#039;;\n                    break;\n                default:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n            }\n\n\n            $out .= &#039;\n\t\t\t.widget_type_1{\n\t\t\t\tborder:1px solid &#039; . $border_color . &#039;;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tmax-width:176px;\n\t\t\t\tbackground-color: &#039; . $bg_color . &#039;;\n\t\t\t\tposition:relative;\n\t\t\t}\n\t\t\t.widget_type_1 .type_1_big{\n\t\t\t\tfont-family: &quot;Exo 2&quot;, sans-serif;\n\t\t\t\t  font-size: 42px;\n\t\t\t\t  font-weight: 300;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  line-height: normal;\n\t\t\t\t  letter-spacing: normal;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t  margin-top:30px;\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\t\t\t.widget_type_1 .type_1_small{\n\t\t\t\tfont-size: 11px;\n\t\t\t\t  font-weight: 600;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  margin-bottom: 50px;\n\t\t\t\t  letter-spacing: 0.8px;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: #b7c0cd;\n\t\t\t\t  text-transform:uppercase;\n\t\t\t}\n\t\t\t.widget_type_1 .bottom_branding{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:0px;\n\t\t\t\tleft:0px;\n\t\t\t\tright:0px;\n\t\t\t\tpadding:5px;\n\t\t\t\ttext-align:center;\n\t\t\t}\n\t\t\t&lt;\/style&gt;\n\t\t\t&lt;div class=&quot;visitor_widget widget_type_1&quot;&gt;\n\t\t\t\t&lt;div class=&quot;type_1_big&quot;&gt;&#039; . $data_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_1_small&quot;&gt;&#039; . $text_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;bottom_branding&quot;&gt;\t\t\t\t \n                    &lt;a href=&quot;&#039; . $plugin_url . &#039;&quot;&gt;\n                        &lt;img src=&quot;&#039; . $logo_image . &#039;&quot; width=&quot;80&quot; \/&gt;\n                    &lt;\/a&gt; \t\t\t \n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&#039;;\n            break;\n        case &quot;2&quot;:\n            $out .= &#039;\n\t\t\t&lt;style&gt;&#039;;\n            if ($shadow) {\n\n                switch ($colors) {\n                    case &quot;light&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_2.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;light_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_2.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;dark_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_2.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 15px 40px 0 rgba(42, 64, 145, 0.35);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                }\n\n\n            }\n\n            switch ($colors) {\n                case &quot;light&quot;:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;light_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;dark_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#f4f6fc&#039;;\n                    $border_color = &#039;#171717&#039;;\n                    break;\n                default:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n            }\n            $out .= &#039;\n\t\t\t.widget_type_2{\n\t\t\t\tborder:1px solid &#039; . $border_color . &#039;;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tmax-width:176px;\n\t\t\t\tbackground-color: &#039; . $bg_color . &#039;;\n\t\t\t\tposition:relative;\n\t\t\t\tfont-family: &quot;Exo 2&quot;, sans-serif;\n\t\t\t}\n\t\t\t.widget_type_2 .type_2_row_1{\n\t\t \n\t\t\t\t  font-size: 36px;\n\t\t\t\t  font-weight: 300;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  line-height: normal;\n\t\t\t\t  letter-spacing: normal;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\tmargin-top:20px;\n\t\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\t\t\t.widget_type_2 .type_2_row_2{\n\t\t\t\tfont-size: 11px;\n\t\t\t\tline-height: 11px;\n\t\t\t\tfont-weight: 600;\n\t\t\t\tfont-style: normal;\n\t\t\t\tfont-stretch: normal;\n\t\t\t\ttext-transform:uppercase;\n\t\t\t\tletter-spacing: 0.8px;\n\t\t\t\ttext-align: center;\n\t\t\t\tcolor: #b7c0cd;\n\t\t\t\tmargin-bottom: 20px;\n\t\t\t}\n\t\t\t.widget_type_2 .type_2_row_3{\n\t\t\t\tfont-size: 20px;\n\t\t\t\t  font-weight: 300;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  line-height: normal;\n\t\t\t\t  letter-spacing: normal;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t}\n\t\t\t.widget_type_2 .type_2_row_4{\n\t\t\t\tfont-size: 11px;\n\t\t\t\t  font-weight: 600;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  letter-spacing: 0.8px;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: #b7c0cd;\n\t\t\t\t  margin-bottom:40px;\n\t\t\t\t  text-transform:uppercase;\n\t\t\t}\n\t\t\t.widget_type_2 .bottom_branding{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:0px;\n\t\t\t\tleft:0px;\n\t\t\t\tright:0px;\n\t\t\t\tpadding:5px;\n\t\t\t\ttext-align:center;\n\t\t\t}\n\t\t\t&lt;\/style&gt;\n\t\t\t&lt;div class=&quot;visitor_widget widget_type_2&quot;&gt;\n\t\t\t\t&lt;div class=&quot;type_2_row_1&quot;&gt;&#039; . $data_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_2_row_2&quot;&gt;&#039; . $text_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_2_row_3&quot;&gt;&#039; . $data_2 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_2_row_4&quot;&gt;&#039; . $text_2 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;bottom_branding&quot;&gt;\n                    &lt;a href=&quot;&#039; . $plugin_url . &#039;&quot;&gt;\n                        &lt;img src=&quot;&#039; . $logo_image . &#039;&quot; width=&quot;80&quot; \/&gt;\n                    &lt;\/a&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&#039;;\n            break;\n        case &quot;3&quot;:\n            $out .= &#039;\n\t\t\t&lt;style&gt;&#039;;\n            if ($shadow) {\n\n                switch ($colors) {\n                    case &quot;light&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_3.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;light_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_3.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;dark_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_3.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 15px 40px 0 rgba(42, 64, 145, 0.35);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                }\n\n\n            }\n\n            switch ($colors) {\n                case &quot;light&quot;:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;light_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;dark_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#f4f6fc&#039;;\n                    $border_color = &#039;#171717&#039;;\n                    break;\n                default:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n            }\n            $out .= &#039;\n\t\t\t.widget_type_3{\n\t\t\t\tborder:1px solid &#039; . $border_color . &#039;;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tmax-width:176px;\n\t\t\t\tbackground-color: &#039; . $bg_color . &#039;;\n\t\t\t\tposition:relative;\n\t\t\t}\n\t\t\t.widget_type_3 .type_1_big{\n\t\t\t\tfont-family: &quot;Exo 2&quot;, sans-serif;\n\t\t\t\t  font-size: 42px;\n\t\t\t\t  font-weight: 300;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  line-height: normal;\n\t\t\t\t  letter-spacing: normal;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t  margin-top:10px;\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\t\t\t.widget_type_3 .type_1_graph{\n\t\t\t\toverflow: hidden;\n\t\t\t\theight: 80px;\n\t\t\t}\n\t\t\t.widget_type_3 .type_1_graph #chart_div{\n\t\t\t\theight: 100px;\n\t\t\t}\n\t\t\t.widget_type_3 .type_1_small{\n\t\t\t\tfont-size: 11px;\n\t\t\t\t  font-weight: 600;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  margin-bottom1: 40px;\n\t\t\t\t  letter-spacing: 0.8px;\n\t\t\t\t  text-align: center;\n\t\t\t\t  color: #b7c0cd;\n\t\t\t\t  text-transform:uppercase;\n\t\t\t}\n\t\t\t.widget_type_3 .bottom_branding{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:0px;\n\t\t\t\tleft:0px;\n\t\t\t\tright:0px;\n\t\t\t\tpadding:5px;\n\t\t\t\ttext-align:center;\n\t\t\t}\n\t\t\t&lt;\/style&gt;\n\t\t\t&lt;div class=&quot;visitor_widget widget_type_3&quot;&gt;\n\t\t\t\t&lt;div class=&quot;type_1_big&quot;&gt;&#039; . $data_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_1_small&quot;&gt;&#039; . $text_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_1_graph&quot;&gt; &lt;div id=&quot;chart_div_&#039; . $widget_rand . &#039;&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;bottom_branding&quot;&gt;\n                    &lt;a href=&quot;&#039; . $plugin_url . &#039;&quot;&gt;\n                        &lt;img src=&quot;&#039; . $logo_image . &#039;&quot; width=&quot;80&quot; \/&gt;\n                    &lt;\/a&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&#039;;\n            break;\n        case &quot;4&quot;:\n            $out .= &#039;\n\t\t\t&lt;style&gt;&#039;;\n            if ($shadow) {\n\n                switch ($colors) {\n                    case &quot;light&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_4.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;light_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_4.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;dark_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_4.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 15px 40px 0 rgba(42, 64, 145, 0.35);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                }\n\n\n            }\n\n            switch ($colors) {\n                case &quot;light&quot;:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;light_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;dark_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#f4f6fc&#039;;\n                    $border_color = &#039;#171717&#039;;\n                    break;\n                default:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n            }\n            $out .= &#039;\n\t\t\t.widget_type_4{\n\t\t\t\tborder:1px solid &#039; . $border_color . &#039;;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tmax-width:176px;\n\t\t\t\tbackground-color: &#039; . $bg_color . &#039;;\n\t\t\t\tposition:relative;\n\t\t\t\tfont-family: &quot;Exo 2&quot;, sans-serif;\n\t\t\t}\n\t\t\t.widget_type_4 .type_4_row_1{\n\t\t \n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t\tfont-stretch: normal;\n\t\t\t\t\ttext-transform:uppercase;\n\t\t\t\t\tletter-spacing: 0.8px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: #b7c0cd;\n\t\t\t\t\tmargin-top:30px;\n\t\t\t\t\t \n\t\t\t}\n\t\t\t.widget_type_4 .type_4_row_2{\n\t\t \n\t\t\t\t\tfont-size: 32px;\n\t\t\t\t\tline-height: 32px;\n\t\t\t\t\t  font-weight: 300;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t \n\t\t\t\t\t  letter-spacing: normal;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\t \n\t\t\t\t\tmargin-bottom: 30px;\n\t\t\t}\n\t\t\t.widget_type_4 .type_4_row_3{\n\t\t \n\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t  font-weight: 300;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  line-height: normal;\n\t\t\t\t\t  letter-spacing: normal;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\tmargin-top:5px;\n\t\t\t\t\tmargin-bottom: 0px;\n\t\t\t}\n\t\t\t.widget_type_4 .type_4_row_4{\n\t\t \n\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t  font-weight: 600;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  text-transform: uppercase;\n\t\t\t\t\t  letter-spacing: 0.5px;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: #b7c0cd;\n\t\t\t\t\tmargin-top:0px;\n\t\t\t\t\tmargin-bottom: 30px;\n\t\t\t}\n\t\t\t.widget_type_4 .type_4_row_5{\n\t\t \n\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t  font-weight: 300;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  line-height: normal;\n\t\t\t\t\t  letter-spacing: normal;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\tmargin-top:5px;\n\t\t\t\t\tmargin-bottom: 0px;\n\t\t\t}\n\t\t\t.widget_type_4 .type_4_row_6{\n\t\t \n\t\t\t\t\t font-size: 10px;\n\t\t\t\t\t  font-weight: 600;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  text-transform: uppercase;\n\t\t\t\t\t  letter-spacing: 0.5px;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: #b7c0cd;\n\t\t\t\t\tmargin-top:0px;\n\t\t\t\t\tmargin-bottom: 50px;\n\t\t\t}\n\t\t\t \n\t\t\t.widget_type_4 .bottom_branding{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:0px;\n\t\t\t\tleft:0px;\n\t\t\t\tright:0px;\n\t\t\t\tpadding:5px;\n\t\t\t\ttext-align:center;\n\t\t\t}\n\t\t\t&lt;\/style&gt;\n\t\t\t&lt;div class=&quot;visitor_widget widget_type_4&quot;&gt;\n\t\t\t\t&lt;div class=&quot;type_4_row_1&quot;&gt;&#039; . $text_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_4_row_2&quot;&gt;&#039; . $data_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_4_row_3&quot;&gt;&#039; . $data_2 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_4_row_4&quot;&gt;&#039; . $text_2 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_4_row_5&quot;&gt;&#039; . $data_3 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_4_row_6&quot;&gt;&#039; . $text_3 . &#039;&lt;\/div&gt;\n\t\t\t\t \n\t\t\t\t&lt;div class=&quot;bottom_branding&quot;&gt;\n                    &lt;a href=&quot;&#039; . $plugin_url . &#039;&quot;&gt;\n                        &lt;img src=&quot;&#039; . $logo_image . &#039;&quot; width=&quot;80&quot; \/&gt;\n                    &lt;\/a&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&#039;;\n            break;\n\n        case &quot;5&quot;:\n            $out .= &#039;\n\t\t\t&lt;style&gt;&#039;;\n            if ($shadow) {\n\n                switch ($colors) {\n                    case &quot;light&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_5.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;light_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_5.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;dark_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_5.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 15px 40px 0 rgba(42, 64, 145, 0.35);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                }\n\n\n            }\n\n            switch ($colors) {\n                case &quot;light&quot;:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;light_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;dark_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#f4f6fc&#039;;\n                    $border_color = &#039;#171717&#039;;\n                    break;\n                default:\n                    $bg_color = &#039;#ffffff&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n            }\n            $out .= &#039;\n\t\t\t.widget_type_5{\n\t\t\t\tborder:1px solid &#039; . $border_color . &#039;;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tmax-width:176px;\n\t\t\t\tbackground-color: &#039; . $bg_color . &#039;;\n\t\t\t\tposition:relative;\n\t\t\t\tfont-family: &quot;Exo 2&quot;, sans-serif;\n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_1{\n\t\t \n\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t\tfont-stretch: normal;\n\t\t\t\t\ttext-transform:uppercase;\n\t\t\t\t\tletter-spacing: 0.8px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: #b7c0cd;\n\t\t\t\t\tmargin-top:30px;\n\t\t\t\t\t \n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_2{\n\t\t \n\t\t\t\t\tfont-size: 32px;\n\t\t\t\t\tline-height: 32px;\n\t\t\t\t\t  font-weight: 300;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t \n\t\t\t\t\t  letter-spacing: normal;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\t \n\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t}\n\t\t\t.widget_type_5 .type_4_row_3{\n\t\t \n\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t  font-weight: 300;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  line-height: normal;\n\t\t\t\t\t  letter-spacing: normal;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\tmargin-top:10px;\n\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_4{\n\t\t \n\t\t\t\t\tfont-size: 10px;\n\t\t\t\t\t  font-weight: 600;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  text-transform: uppercase;\n\t\t\t\t\t  letter-spacing: 0.5px;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: #b7c0cd;\n\t\t\t\t\tmargin-top:0px;\n\t\t\t\t\tmargin-bottom: 30px;\n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_3{\n\t\t\t\toverflow: hidden;\n\t\t\t\theight: 100px;\n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_3 #chart_div_5{\n\t\t\t\theight: 100px;\n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_5{\n\t\t \n\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t  font-weight: 300;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  line-height: normal;\n\t\t\t\t\t  letter-spacing: normal;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t\t\tmargin-top:5px;\n\t\t\t\t\tmargin-bottom: 0px;\n\t\t\t}\n\t\t\t.widget_type_5 .type_5_row_6{\n\t\t \n\t\t\t\t\t font-size: 10px;\n\t\t\t\t\t  font-weight: 600;\n\t\t\t\t\t  font-style: normal;\n\t\t\t\t\t  font-stretch: normal;\n\t\t\t\t\t  text-transform: uppercase;\n\t\t\t\t\t  letter-spacing: 0.5px;\n\t\t\t\t\t  text-align: center;\n\t\t\t\t\t  color: #b7c0cd;\n\t\t\t\t\tmargin-top:0px;\n\t\t\t\t\tmargin-bottom: 50px;\n\t\t\t}\n\t\t\t \n\t\t\t.widget_type_5 .bottom_branding{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:0px;\n\t\t\t\tleft:0px;\n\t\t\t\tright:0px;\n\t\t\t\tpadding:5px;\n\t\t\t\ttext-align:center;\n\t\t\t}\n\t\t\t&lt;\/style&gt;&#039;;\n\n            $out .= &#039;\n\t\t\t&lt;div class=&quot;visitor_widget widget_type_5&quot;&gt;\n\t\t\t\t&lt;div class=&quot;type_5_row_1&quot;&gt;&#039; . $text_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_5_row_2&quot;&gt;&#039; . $data_1 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_5_row_3&quot;&gt;&lt;div id=&quot;chart_div_&#039; . $widget_rand . &#039;&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n\t\t\t\t \n\t\t\t\t&lt;div class=&quot;type_5_row_5&quot;&gt;&#039; . $data_2 . &#039;&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;type_5_row_6&quot;&gt;&#039; . $text_2 . &#039;&lt;\/div&gt;\n\t\t\t\t \n\t\t\t\t&lt;div class=&quot;bottom_branding&quot;&gt;\n                    &lt;a href=&quot;&#039; . $plugin_url . &#039;&quot;&gt;\n                        &lt;img src=&quot;&#039; . $logo_image . &#039;&quot; width=&quot;80&quot; \/&gt;\n                    &lt;\/a&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&#039;;\n            break;\n        case &quot;6&quot;:\n\n            switch ($data_1_param) {\n                case &quot;visit_today&quot;:\n\n                    $text_1 = &#039;&lt;div&gt;&#039; . __(&quot;Visitors&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt; &lt;div&gt;&#039; . __(&quot;Today&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt;&#039;;\n                    $data_1 = $all_today_visitors;\n\n                    break;\n                case &quot;visit_total&quot;:\n\n                    $text_1 = &#039;&lt;div&gt;&#039; . __(&quot;Total&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt; &lt;div&gt;&#039; . __(&quot;Visitors&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt;&#039;;\n                    $data_1 = $all_total_visitors;\n                    break;\n                case &quot;visit_live&quot;:\n\n                    $text_1 = &#039;&lt;div&gt;&#039; . __(&quot;Live&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt; &lt;div&gt;&#039; . __(&quot;visitors&quot;, &quot;wvw&quot;) . &#039;&lt;\/div&gt;&#039;;\n                    $data_1 = $all_active_users;\n                    break;\n            }\n\n            $out .= &#039;&lt;style&gt;&#039;;\n\n            if ($shadow) {\n\n                switch ($colors) {\n                    case &quot;light&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_6.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;light_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_6.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 25px 46px 0 rgba(51, 59, 69, 0.15);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                    case &quot;dark_transparent&quot;:\n                        $out .= &#039;\n\t\t\t\t\t\t.widget_type_6.visitor_widget{\n\t\t\t\t\t\t\tbox-shadow: 0px 15px 40px 0 rgba(42, 64, 145, 0.35);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&#039;;\n                        break;\n                }\n\n\n            }\n\n            switch ($colors) {\n                case &quot;light&quot;:\n                    $bg_color = &#039;#f5f8fa&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;light_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n                case &quot;dark_transparent&quot;:\n                    $bg_color = &#039;transparent&#039;;\n                    $fontcolor = &#039;#f4f6fc&#039;;\n                    $border_color = &#039;#171717&#039;;\n                    break;\n                default:\n                    $bg_color = &#039;#f5f8fa&#039;;\n                    $fontcolor = &#039;#354052&#039;;\n                    $border_color = &#039;#e6eaee&#039;;\n                    break;\n            }\n            $out .= &#039;\n\t\t\t.widget_type_6{\n\t\t\t\toverflow:hidden;\n\t\t\t\tborder:1px solid &#039; . $border_color . &#039;;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tmax-width:176px;\n\t\t\t\tbackground-color: &#039; . $bg_color . &#039;;\n\t\t\t\tposition:relative;\n\t\t\t\tfont-family: &quot;Exo 2&quot;, sans-serif;\n\t\t\t}\n\t\t\t.widget_type_6 .left_col{\n\t\t\t\twidth:50%;\n\t\t\t\tfloat:left;\n\t\t\t}\n\t\t\t.widget_type_6 .right_col{\n\t\t\t\twidth:50%;\n\t\t\t\tfloat:left;\n\t\t\t\tpadding-top: 2px;\n\t\t\t}\n\t\t\t.widget_type_6 .left_col .count_num{\n\t\t\t\tfloat:left;\n\t\t\t\t margin-right: 5px;\n\t\t\t\t     padding: 5px;\n\t\t\t\t  font-size: 14px;\n\t\t\t\t  font-weight: 300;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\t  line-height: normal;\n\t\t\t\t  letter-spacing: normal;\n\t\t\t\t  text-align: left;\n\t\t\t\t  color: &#039; . $fontcolor . &#039;;\n\t\t\t}\n\t\t\t.widget_type_6 .left_col .count_text{\n\t\t\t\t\tfont-size: 8px;\n\t\t\t\t  font-weight: 500;\n\t\t\t\t  font-style: normal;\n\t\t\t\t  font-stretch: normal;\n\t\t\t\ttext-transform:uppercase;\n\t\t\t\t  letter-spacing: 0.8px;\n\t\t\t\t  text-align: left;\n\t\t\t\t  color: #b7c0cd;\n\t\t\t}\n\t\t\t&lt;\/style&gt;\n\t\t\t&lt;div class=&quot;visitor_widget widget_type_6&quot;&gt;\n\t\t\t\t&lt;div class=&quot;left_col&quot;&gt;\n\t\t\t\t\t&lt;div class=&quot;count_num&quot;&gt;\n\t\t\t\t\t\t&#039; . $data_1 . &#039;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;count_text&quot;&gt;\n\t\t\t\t\t\t&#039; . $text_1 . &#039;\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t\t&lt;div class=&quot;right_col&quot;&gt;\n                    &lt;a href=&quot;&#039; . $plugin_url . &#039;&quot;&gt;\n                        &lt;img src=&quot;&#039; . $logo_image . &#039;&quot; width=&quot;80&quot; \/&gt;\n                    &lt;\/a&gt;\n\t\t\t\t&lt;\/div&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&#039;;\n            break;\n    }\n\n    return $out;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">wp-visitors-widget\/wp-visitors-widget\/modules\/shortcodes.php<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you&#8217;ve learned how to embed the <strong>Live Visitor Counter Plugin shortcode<\/strong>, understood the parameters, and seen code examples, it&#8217;s easy to use and debug any issue that might cause it to &#8216;not work&#8217;. If you still have difficulties with it, don&#8217;t hesitate to leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below, you&#8217;ll find a detailed guide on how to add the Live Visitor Counter Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the Live Visitor Counter Plugin shortcode not to show or not to work correctly. Before starting, here is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Live Visitor Counter","slug":"","version":"2.2","author":"Adam Z","icons":"https:\/\/ps.w.org\/wp-visitors-widget\/assets\/icon-256x256.png?rev=2178611","plugin_tags":"{\"click-counter\":\"click counter\",\"marketing\":\"marketing\",\"wordpress-visitor-counter\":\"wordpress visitor counter\"}","author_profile":"https:\/\/profiles.wordpress.org\/liveplugins\/","requires":"4.0","tested":"6.2.3","requires_php":"5.0","rating":86,"num_ratings":11,"active_installs":5000,"downloaded":45503,"last_updated":"2023-06-20 10:26am GMT","added":"2019-02-26","homepage":"http:\/\/visitorplugin.com","short_description":"Wordpress Live Visitor Counter allows you to display how many times a page has been viewed with this simple, fast and easy to use the plugin.","description":"\"Live Visitor Counter is a WordPress plugin that displays real-time website traffic. The wp-visitors-widget tracks and showcases the number of active users on your site, enhancing user engagement.\"","shortcodes":"[\"visitors_widget\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1380","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/comments?post=1380"}],"version-history":[{"count":1,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1380\/revisions"}],"predecessor-version":[{"id":1667,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1380\/revisions\/1667"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=1380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=1380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=1380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}