function essb_register_settings_metabox_stats() { global $post, $essb_networks; if (isset($_GET['action'])) { $post_id = $post->ID; ESSBSocialShareAnalyticsBackEnd::init_addional_settings(); // overall stats by social network $overall_stats = ESSBSocialShareAnalyticsBackEnd::essb_stats_by_networks('', $post_id); $position_stats = ESSBSocialShareAnalyticsBackEnd::essb_stats_by_position('', $post_id); // print_r($overall_stats); $calculated_total = 0; $networks_with_data = array(); if (isset($overall_stats)) { $cnt = 0; foreach ($essb_networks as $k => $v) { $calculated_total += intval($overall_stats->{$k}); if (intval($overall_stats->{$k}) != 0) { $networks_with_data[$k] = $k; } } } $device_stats = ESSBSocialShareAnalyticsBackEnd::essb_stats_by_device('', $post_id); $essb_date_to = ""; $essb_date_from = ""; if ($essb_date_to == '') { $essb_date_to = date("Y-m-d"); } if ($essb_date_from == '') { $essb_date_from = date("Y-m-d", strtotime(date("Y-m-d", strtotime(date("Y-m-d"))) . "-1 month")); } $sqlMonthsData = ESSBSocialShareAnalyticsBackEnd::essb_stats_by_networks_by_date_for_post($essb_date_from, $essb_date_to, $post_id); ?> <div class="essb-dashboard essb-metabox-dashboard"> <!-- dashboard type2 --> <div class="essb-dashboard-panel"> <div class="essb-dashboard-panel-title"> <h4>Total clicks on social buttons since statistics is activated</h4> </div> <div class="essb-dashboard-panel-content"> <div class="row"> <div class="oneforth"> <div class="essb-stats-panel shadow panel100 total"> <div class="essb-stats-panel-inner"> <div class="essb-stats-panel-text">Total clicks on share buttons</div> <div class="essb-stats-panel-value"><?php echo ESSBSocialShareAnalyticsBackEnd::prettyPrintNumber($calculated_total); ?> </div> </div> <?php if (isset($device_stats)) { $desktop = $device_stats->desktop; $mobile = $device_stats->mobile; if ($calculated_total > 0) { $percentd = $desktop * 100 / $calculated_total; } else { $percentd = 0; } $print_percentd = round($percentd, 2); $percentd = round($percentd); if ($percentd > 90) { $percentd -= 2; } if ($calculated_total > 0) { $percentm = $mobile * 100 / $calculated_total; } else { $percentm = 0; } $print_percentm = round($percentm, 2); $percentm = round($percentm); if ($percentm > 90) { $percentm -= 2; } } ?> </div> <div class="essb-stats-panel shadow panel50"> <div class="essb-stats-panel-inner"> <div class="essb-stats-panel-text"> Desktop <span class="percent"><?php echo $print_percentd; ?> %</span> </div> <div class="essb-stats-panel-value"><?php echo ESSBSocialShareAnalyticsBackEnd::prettyPrintNumber($desktop); ?> </div> </div> <div class="essb-stats-panel-graph"> <div class="graph widget-color-mwp" style="width: <?php echo $percentd; ?> %;"></div> </div> </div> <div class="essb-stats-panel shadow panel50"> <div class="essb-stats-panel-inner"> <div class="essb-stats-panel-text"> Mobile <span class="percent"><?php echo $print_percentm; ?> %</span> </div> <div class="essb-stats-panel-value"><?php echo ESSBSocialShareAnalyticsBackEnd::prettyPrintNumber($mobile); ?> </div> </div> <div class="essb-stats-panel-graph"> <div class="graph widget-color-mwp" style="width: <?php echo $percentm; ?> %;"></div> </div> </div> <h5>Stats by position</h5> <!-- begin stats by displayed position --> <?php if (isset($overall_stats)) { $cnt = 0; foreach (ESSBSocialShareAnalyticsBackEnd::$positions as $k) { $key = "position_" . $k; $single = intval($position_stats->{$key}); if ($single > 0) { if ($calculated_total != 0) { $percent = $single * 100 / $calculated_total; } else { $percent = 0; } $print_percent = round($percent, 2); $percent = round($percent); ?> <div class="essb-stats-panel shadow panel50"> <div class="essb-stats-panel-inner"> <div class="essb-stats-panel-text"><?php echo $k; ?> <span class="percent"><?php echo $print_percent; ?> %</span> </div> <div class="essb-stats-panel-value"><?php echo ESSBSocialShareAnalyticsBackEnd::prettyPrintNumber($single); ?> </div> </div> <div class="essb-stats-panel-graph"> <div class="graph widget-color-ok" style="width: <?php echo $percent; ?> %;"></div> </div> </div> <?php } } } ?> </div> <div class="threeforth"> <?php if (isset($overall_stats)) { $cnt = 0; foreach ($essb_networks as $k => $v) { $single = intval($overall_stats->{$k}); if ($single > 0) { $percent = $single * 100 / $calculated_total; $print_percent = round($percent, 2); $percent = round($percent); ?> <div class="essb-stats-panel shadow panel20"> <div class="essb-stats-panel-inner"> <div class="essb-stats-panel-text"><?php echo $v["name"]; ?> <span class="percent"><?php echo $print_percent; ?> %</span> </div> <div class="essb-stats-panel-value"><?php echo ESSBSocialShareAnalyticsBackEnd::prettyPrintNumber($single); ?> </div> </div> <div class="essb-stats-panel-graph"> <div class="graph widget-color-<?php echo $k; ?> " style="width: <?php echo $percent; ?> %;"></div> </div> </div> <?php } } } ?> </div> </div> </div> </div> <div class="clear"></div> <!-- end dashboard 2 --> <div class="essb-dashboard-panel"> <div class="essb-dashboard-panel-title"> <h4>Social activity for the last 30 days</h4> </div> <div class="essb-dashboard-panel-content"> <?php ESSBSocialShareAnalyticsBackEnd::essb_stat_admin_detail_by_month($sqlMonthsData, $networks_with_data, '', 'Date'); ?> </div> </div> <div class="clear"></div> </div> <?php } }
public function update_optons() { global $essb_navigation_tabs, $essb_sidebar_sections, $essb_section_options; $current_options = get_option(ESSB3_OPTIONS_NAME); if (!is_array($current_options)) { $current_options = array(); } $current_tab = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : ''; $user_options = isset($_REQUEST['essb_options']) ? $_REQUEST['essb_options'] : array(); $reset_settings = isset($_REQUEST['reset_settings']) ? $_REQUEST['reset_settings'] : ''; //print_r($user_options); if ($current_tab == '') { return; } if ($current_tab == 'advanced') { $this->temporary_activate_post_type_settings(); } if ($current_tab == "display") { $this->temporary_activate_positions_by_posttypes(); } $options = $essb_section_options[$current_tab]; foreach ($options as $section => $fields) { $section_options = $fields; foreach ($section_options as $option) { $type = $option['type']; $id = isset($option['id']) ? $option['id'] : ''; if ($id == '') { continue; } if (strpos($id, 'essb3fans_') !== false) { continue; } // custom ID parser for functions if ($id == 'essb3_options_template_select') { $id = 'style'; } if ($id == 'essb3_network_selection') { $type = "network_select"; } if ($id == "essb3_network_rename") { $type = "network_rename"; } if ($id == "essb3_post_type_select") { $id = "display_in_types"; } if ($id == "essb3_esml_post_type_select") { $id = "esml_monitor_types"; } if ($id == 'essb3_network_selection' && defined('ESSB3_LIGHTMODE')) { $twitteruser = isset($user_options['twitteruser']) ? $user_options['twitteruser'] : ''; $current_options['twitteruser'] = $twitteruser; $twitterhashtags = isset($user_options['twitterhashtags']) ? $user_options['twitterhashtags'] : ''; $current_options['twitterhashtags'] = $twitterhashtags; } // quick setup options if ($id == "quick_setup_recommended") { $current_options['twitter_shareshort'] = 'true'; $current_options['twitter_shareshort_service'] = 'wp'; $current_options['twitter_message_optimize'] = 'true'; $current_options['facebookadvanced'] = 'false'; $current_options['buffer_twitter_user'] = '******'; } if ($id == "quick_setup_static") { $current_options['use_minified_css'] = 'true'; $current_options['use_minified_js'] = 'true'; $current_options['load_js_async'] = 'true'; $current_options['load_css_footer'] = 'true'; } if ($id == 'quick_setup_easy') { update_option(ESSB3_EASYMODE_NAME, 'true'); } switch ($type) { case "network_rename": $option_value = isset($_REQUEST['essb_options_names']) ? $_REQUEST['essb_options_names'] : array(); foreach ($option_value as $key => $value) { $network_option_value = "user_network_name_" . $key; $current_options[$network_option_value] = $value; } break; case "network_select": $option_value = isset($user_options['networks']) ? $user_options['networks'] : array(); $current_options['networks'] = $option_value; $option_value = isset($user_options['networks_order']) ? $user_options['networks_order'] : array(); $current_options['networks_order'] = $option_value; break; case "checkbox_list_sortable": $option_value = isset($user_options[$id]) ? $user_options[$id] : ''; $current_options[$id] = $option_value; $option_value = isset($user_options[$id . '_order']) ? $user_options[$id . '_order'] : ''; $current_options[$id . '_order'] = $option_value; break; default: $option_value = isset($user_options[$id]) ? $user_options[$id] : ''; $current_options[$id] = $option_value; if ($id == "stats_active") { if ($option_value == "true") { ESSBSocialShareAnalyticsBackEnd::install(); } } break; } } } $current_options = $this->clean_blank_values($current_options); // initially reset plugin settings to default one if ($reset_settings == 'true') { $current_options = array(); $default_options = 'eyJidXR0b25fc3R5bGUiOiJidXR0b24iLCJzdHlsZSI6IjIyIiwiY3NzX2FuaW1hdGlvbnMiOiJubyIsImZ1bGx3aWR0aF9zaGFyZV9idXR0b25zX2NvbHVtbnMiOiIxIiwibmV0d29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CJkaWdnfERpZ2ciLCJkZWx8RGVsIiwic3R1bWJsZXVwb258U3R1bWJsZVVwb24iLCJ0dW1ibHJ8VHVtYmxyIiwidmt8VktvbnRha3RlIiwicHJpbnR8UHJpbnQiLCJtYWlsfEVtYWlsIiwiZmxhdHRyfEZsYXR0ciIsInJlZGRpdHxSZWRkaXQiLCJidWZmZXJ8QnVmZmVyIiwibG92ZXxMb3ZlIFRoaXMiLCJ3ZWlib3xXZWlibyIsInBvY2tldHxQb2NrZXQiLCJ4aW5nfFhpbmciLCJva3xPZG5va2xhc3NuaWtpIiwibXdwfE1hbmFnZVdQLm9yZyIsIm1vcmV8TW9yZSBCdXR0b24iLCJ3aGF0c2FwcHxXaGF0c0FwcCIsIm1lbmVhbWV8TWVuZWFtZSIsImJsb2dnZXJ8QmxvZ2dlciIsImFtYXpvbnxBbWF6b24iLCJ5YWhvb21haWx8WWFob28gTWFpbCIsImdtYWlsfEdtYWlsIiwiYW9sfEFPTCIsIm5ld3N2aW5lfE5ld3N2aW5lIiwiaGFja2VybmV3c3xIYWNrZXJOZXdzIiwiZXZlcm5vdGV8RXZlcm5vdGUiLCJteXNwYWNlfE15U3BhY2UiLCJtYWlscnV8TWFpbC5ydSIsInZpYWRlb3xWaWFkZW8iLCJsaW5lfExpbmUiLCJmbGlwYm9hcmR8RmxpcGJvYXJkIiwiY29tbWVudHN8Q29tbWVudHMiLCJ5dW1tbHl8WXVtbWx5Il0sImNvbnRlbnRfcG9zaXRpb24iOiJjb250ZW50X2JvdHRvbSIsImVzc2JfY2FjaGVfbW9kZSI6ImZ1bGwiLCJ0dXJub2ZmX2Vzc2JfYWR2YW5jZWRfYm94IjoidHJ1ZSIsImVzc2JfYWNjZXNzIjoibWFuYWdlX29wdGlvbnMiLCJhcHBseV9jbGVhbl9idXR0b25zX21ldGhvZCI6ImRlZmF1bHQifQ=='; $options_base = ESSB_Manager::convert_ready_made_option($default_options); //print_r($options_base); if ($options_base) { $current_options = $options_base; } } update_option(ESSB3_OPTIONS_NAME, $current_options); $esml_active = ESSBOptionValuesHelper::options_bool_value($current_options, 'esml_active'); if (!$esml_active) { delete_option("esml_version"); $this->removeAllQueuedMetricsUpdates(); } }
ESSBSocialShareAnalyticsBackEnd::essb_stat_admin_detail_by_post('', $networks_with_data, '', $date); ?> </div> </div> <?php } ?> <?php } ?> </div> <script type="text/javascript"> jQuery(document).ready(function($){ <?php if ($mode == "1" || $mode == '2') { echo ESSBSocialShareAnalyticsBackEnd::keyObjectToMorrisLineGraph('essb-changes-graph', $dataPeriodObject, 'Social activity'); } ?> }); var essb_analytics_date_report = function(date) { window.location='admin.php?page=essb_redirect_analytics&tab=analytics&mode=4&date='+date; } </script>