options = new Serialize_Options(); } public function get_default_options() { return $this->options; } /** * Builds options page */ public function options_form() { $default_post_types = get_post_types('', 'names'); foreach ($default_post_types as $post_type) { if ($post_type != 'attachment' && $post_type != 'revision' && $post_type != 'nav_menu_item') { $this->post_types[] = $post_type; } } if (empty($this->options->post_types)) { $this->options->post_types = $this->post_types; } if (isset($_POST['submit'])) { if (function_exists('current_user_can') && !current_user_can('manage_options')) { die(_e('Hacker?', 'statistics_info')); } if (function_exists('check_admin_referer')) { check_admin_referer('stats_options_form'); } $this->options->is_stats_together = $_POST['is_stats_together']; $this->options->post_types = empty($_POST['post_types']) ? $this->post_types : $_POST['post_types']; $this->options->is_simple_tabs_default = isset($_POST['is_simple_tabs_default']) ? $_POST['is_simple_tabs_default'] : 0; $this->options->is_display_author_name = isset($_POST['is_display_author_name']) ? $_POST['is_display_author_name'] : 0; $this->options->is_display_author_avatar = isset($_POST['is_display_author_avatar']) ? $_POST['is_display_author_avatar'] : 0; $this->options->is_author_popular_by_post_count = isset($_POST['is_author_popular_by_post_count']) ? $_POST['is_author_popular_by_post_count'] : '1'; $this->options->is_popular_posts_by_post_views = isset($_POST['is_popular_posts_by_post_views']) ? $_POST['is_popular_posts_by_post_views'] : '1'; $this->options->popular_authors_limit = isset($_POST['popular_authors_limit']) ? $_POST['popular_authors_limit'] : '10'; $this->options->is_post_view_by_ip = isset($_POST['is_post_view_by_ip']) ? $_POST['is_post_view_by_ip'] : '1'; $this->options->popular_posts_limit = isset($_POST['popular_posts_limit']) ? $_POST['popular_posts_limit'] : '10'; $this->options->active_theme_name = isset($_POST['active_theme_name']) ? $_POST['active_theme_name'] : 'smoothness'; $this->options->custom_css = $_POST['custom_css']; $this->options->apsw_tab_active_bg_color = isset($_POST['apsw_tab_active_bg_color']) ? $_POST['apsw_tab_active_bg_color'] : '#fff'; $this->options->apsw_tab_bg_color = isset($_POST['apsw_tab_bg_color']) ? $_POST['apsw_tab_bg_color'] : '#ccc'; $this->options->apsw_tab_border_color = isset($_POST['apsw_tab_border_color']) ? $_POST['apsw_tab_border_color'] : '#d4d4d1'; $this->options->apsw_tab_active_text_color = isset($_POST['apsw_tab_active_text_color']) ? $_POST['apsw_tab_active_text_color'] : '#2e7da3'; $this->options->apsw_tab_text_color = isset($_POST['apsw_tab_text_color']) ? $_POST['apsw_tab_text_color'] : '#fff'; $this->options->apsw_tab_hover_text_color = isset($_POST['apsw_tab_hover_text_color']) ? $_POST['apsw_tab_hover_text_color'] : '#21759b'; $this->options->updateOptions(); } ?>



Author & Post Statistic Widgets PRO     Update to Pro Now!
APSW Pro generates graphical statistic for authors' activity and posts' popularity.

 Like Author & Post Statistic Widgets plugin?
  • If you like APSW and want to encourage us to develop and maintain it,why not do any or all of the following:
  • - Link to it so other folks can find out about it.
  • - Give it a good rating on WordPress.org.
  • - We spend as much of my spare time as possible working on Author & Post Statistic Widgets plugin and any donation is appreciated. Donations play a crucial role in supporting Free and Open Source Software projects.

    You have my sincere thanks and appreciation for using APSW.