function wpmp_analytics_admin() { if (sizeof($_POST) > 0) { print '<div id="message" class="updated fade"><p><strong>' . wpmp_analytics_options_write() . '</strong></p></div>'; if (isset($_POST['wpmp_analytics_local_reset']) && $_POST['wpmp_analytics_local_reset'] == 'true') { if (wpmp_analytics_local_enabled()) { wpmp_switcher_hit_reset(); print '<div id="message" class="updated fade"><p><strong>' . __('Hit counter reset.', 'wpmp') . '</strong></p></div>'; } } } include_once 'wpmp_analytics_admin.php'; }
?> <p style='font-size:small;font-style:italic;margin:0'> <?php _e('Part of the WordPress Mobile Pack', 'wpmp'); ?> </p> </h2> <form method="post" action=""> <p> <?php _e('The Mobile Pack keeps a basic local tally of mobile traffic. However, we recommend you register with an external provider to obtain much richer statistics.', 'wpmp'); ?> </p> <table class="form-table"> <?php if (wpmp_analytics_local_enabled()) { ?> <tr> <th><?php _e('Local analytics', 'wpmp'); ?> </th> <td> <?php print wpmp_analytics_local_summary(); ?> <br /> <?php print wpmp_analytics_option('wpmp_analytics_local_reset'); ?> <strong><?php