8889841chome/clixcotz/iec.clix.co.tz/wp-content/themes/bambini/framework/function/views.php000064400000002736150524551320024553 0ustar00 'cmsmasters_view', 'post_status' => 'draft', 'post_parent' => $post_ID, 'name' => $ip_name )); $ipCheck = $ipPost->posts; if ( is_single() && ( !isset($_COOKIE['view-' . $post_ID]) || count($ipCheck) == 0 ) ) { $active = ' no_active'; } elseif ( isset($_COOKIE['view-' . $post_ID]) || count($ipCheck) != 0 ) { $active = ' active'; } else { $active = ''; } $counter = '' . '' . '' . esc_html($views) . '' . '' . ''; } else { $counter = ''; } if ($show) { echo bambini_return_content($counter); } else { return $counter; } }