tabs[$this->general_settings_key] = __('Settings'); register_setting( $this->general_settings_key, 'archivesCalendar', 'archivesCalendar_options_validate' ); add_settings_section( 'section_general', '', 'archivesCalendar_options', $this->general_settings_key ); } function register_advanced_settings() { $this->tabs[$this->advanced_settings_key] = __('Customize'); register_setting( $this->advanced_settings_key, 'archivesCalendarThemer', 'archivesCalendar_themer_validate' ); add_settings_section( 'section_themer', '', 'archivesCalendar_themer', $this->advanced_settings_key ); } function add_admin_menus() { global $archivesCalendar_options; $arcw_page = add_options_page('Archives Calendar Settings', 'Archives Calendar', 'manage_options', $this->plugin_options_key, array( &$this, 'archives_calendar_options_page' )); remove_submenu_page( 'options-general.php', 'archives_calendar_editor' ); if($archivesCalendar_options['show_settings'] == 0) remove_submenu_page( 'options-general.php', 'archives_calendar' ); add_action('admin_print_scripts-'.$arcw_page, 'arcw_admin_scripts'); } function archives_calendar_options_page() { $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : $this->general_settings_key; ?>
pubDate); echo '
'; } $i++; } if($count > 3){ $cat_url = 'http://labs.alek.be/category/archives-calendar/'; echo ''; echo ''. __('More') .' ...'; echo '
'; } if($count <= 0) _e( 'No posts', 'arwloc' ); ?>support my work, buy me a beer or a coffee. Click Donate and specify your amount.', 'arwloc');?>
null, 'id' => null, 'class' => null, 'show_current' => false ); $args = wp_parse_args( (array) $args, $defaults ); extract($args); echo ''; } /***** Walker for categories checkboxes *****/ class acw_Walker_Category_Checklist extends Walker { var $tree_type = 'category'; var $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); var $conf; function __construct($conf) { $this->conf = $conf; } function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent