Plugin Directory

Changeset 768586


Ignore:
Timestamp:
09/08/2013 03:22:17 PM (12 years ago)
Author:
pmenard
Message:

Simply Exclude 2.0.6.1

Location:
simply-exclude/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • simply-exclude/trunk/js/simplyexclude_admin_ajax.js

    r514092 r768586  
    22       
    33    jQuery('td.column-se-actions input.se-term-input').click(function(){
    4         //alert('click');
    54        var input_name = jQuery(this).attr('name');
    65        var is_checked = jQuery(this).attr('checked');
    7         var label = jQuery(this).parent('td.column-se-actions');
     6        //var label = jQuery(this).parents('td.column-se-actions');
     7        var label = jQuery(this).next('label');
    88
    99
    1010        if (is_checked == 'checked') is_checked = "yes";
    1111        else is_checked = "no";
    12        
    13         //alert('input_name=['+input_name+'] checked=['+is_checked+']');
    14         //se_send_update(input_name, is_checked);
    1512       
    1613        var data = {
     
    2219
    2320        jQuery.post(ajaxurl, data, function(response) {
    24             if (response == "SUCCESS")   // SUCCESS is yellow fade to white
    25                 jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: "#FFFFFF"}, 1500);
    26             else // On !SUCCESS is red fade to white
    27                 jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: "#FFFFFF"}, 1500);               
     21            var label_background_color = jQuery(label).css('background-color');
     22            if (response == "SUCCESS") {     // SUCCESS is yellow fade to white
     23                jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: label_background_color}, 1500, 'swing', function(){
     24                    jQuery(label).css('background-color', label_background_color);
     25                });
     26            } else { // On !SUCCESS is red fade to white
     27                jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: label_background_color}, 1500, 'swing', function(){
     28                    jQuery(label).css('background-color', label_background_color);
     29                });
     30            }
    2831        });                 
    2932    });
     
    3235    jQuery('table.simply-exclude-settings-postbox input[type="radio"]').click(function(){
    3336       
    34         //alert('click');
    3537        var input_name = jQuery(this).attr('name');
    3638        var value = jQuery(this).attr('value');
    37         var label = jQuery(this).parent('td.inc-excl');
    38        
    39         //alert("input_name=["+input_name+"] value=["+value+"]");
     39        var label = jQuery(this).parents('td.inc-excl');
     40        //var label = jQuery(this).next('label');
    4041       
    4142        var data = {
     
    4748
    4849        jQuery.post(ajaxurl, data, function(response) {         
     50            var label_background_color = jQuery(label).css('background-color');
     51
    4952            if (response == "SUCCESS") // SUCCESS is yellow fade to white
    50                 jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: "#FFFFFF"}, 1500);
     53                jQuery(label).stop().css("background-color", "#FFFF9C").animate({ backgroundColor: label_background_color}, 1500);
    5154            else    // On !SUCCESS is red fade to white
    52                 jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: "#FFFFFF"}, 1500);           
     55                jQuery(label).stop().css("background-color", "#FF0000").animate({ backgroundColor: label_background_color}, 1500);         
    5356        });                 
    5457    });
  • simply-exclude/trunk/readme.txt

    r684769 r768586  
    33Donate link: http://www.codehooligans.com
    44Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
    5 Requires at least: 3.2
    6 Tested up to: 3.3.1
    7 Stable tag: 2.0.6
     5Requires at least: 3.5
     6Tested up to: 3.6
     7Stable tag: 2.0.6.1
    88
    99== Description ==
     
    4848
    4949== Changelog ==
     50
     51= 2.0.6.1 =
     52Corrected issue with reported PHP 5.4 related code.
     53Changes settings screen to split Taxonomies, Post Types and Users into tabbed screen. Better than one long screen.
     54Fixed issue with excluding categories on Home and Archive where it effects the pager. Note this is only for the default WordPress paging. Custom pagers may still have issue.
    5055
    5156= 2.0.6 =
  • simply-exclude/trunk/simplyexclude.php

    r684769 r768586  
    55Description: Provides an interface to selectively exclude/include all Taxonomies, Post Types and Users from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed. Also provides access to some of the common widgets user like tag cloud and categories listings.
    66Author: Paul Menard
    7 Version: 2.0.6
     7Version: 2.0.6.1
    88Author URI: http://www.codehooligans.com
    9 
    10 Revision history
    11 1.0 - 2007-11-20: Initial release
    12 1.1 - 2008-12-15: Added logic to work with WP version greater than 2.2
    13 1.5 - 20008-04-27 Fixed display issues. Changes 'List' to 'Archive'. Added tags inclusion/exclusion login. Works only with WP 2.3 and greater.
    14 1.6 - 2008-05-22 Fixed various items. Added format display for Categories and Pages to reveal heirarchy, Disable plugin functions when searching in admin. This also corrected a display exclusion bug when showing categories and pages.
    15 1.7 - 2008-05-29 Added Author to the Include/Exclude logic. Now you can exclude Author's Posts from Search, Home, RSS, Archive.
    16 1.7.1 - 2008-07-16 Fixed an issue with WP 2.6 where it automatically decided to unserialize the option data structure.
    17 1.7.2 - 2009-02-05 Fixed some PHP warning by checking variable is set. Also added style to 2.7 interface.
    18 1.7.2.1 - 2009-07-01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
    19 1.7.5 - 2009-07015 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.
    20 1.7.6 - 2009-11-14 Fixes: Issue with the Pages exclusion. Many users reporting a permissions issue. Additions: Added handler logic to interface with two other plugins. One of the often used Google XML Sitemaps. When setting Page or Category exclusions you now have the option to update the Google XML Sitemaps exclude pages and categories automatically. The other plugin is Search Unleashed.
    21 2.0 - 2012-03-03 Full rewrite of the plugin to support custom Taxonomies and Custom Post Types. Added support for managing items within the Taxonomy/Post Type panels. Added support for exclude/include on Post instead of just Categories and Tags. Dropped support for third-party plugins like Google XML Sitemaps and Seach Unleashed (Sorry!). Now correctly supporting Pages seach excludes. Yah!.
    22 2.0.1 - 2012-03-04 Small bug. On the new Simply Exclude Help panel I user the jQuery UI Accordion package. Seems I failed to check this when setting the minimum WordPress version I was supporting (3.2). Seems jQuery UI Accordion is not available in core WordPress until version 3.3. So have added my own libraries to cover the older versions of WordPress. Sorry about that. And thanks to @biswajeet for bringing this up in the WordPress forums.
    23 2.0.2 - 2012-03-05 Fixed some issues when converting from the previous version of the Simply Exclude configurations.
    24 2.0.3 - 2012-03-18 Fixes to core filtering logic.
    25 2.0.4 - 2012-05-16 Added new Settings option to allow control of filtering the main page WPQuery only or all WPQuery requests. Added exclusion for common post_types. General bug fixed for reported issues where filter was either not occurring or that filter was causing a blank page or missing navigation.
    26 2.0.5 - 2012-05-17 More tweaks to the widget exclude logic and cleanup logic on main query vs extra query.
    27 2.0.6 - 2013-03-20 Bug fixes for Illegal string offset 'action' PHP Warnings.
    289*/
    2910
     
    4728    private $page_hooks;
    4829   
     30    private $tabs = array();
     31    private $current_tab;
     32   
    4933    public function __construct() {
    5034       
    51         $this->se_version   = "2.0.3";
     35        $this->se_version   = "2.0.6.1";
    5236       
    5337        $this->admin_menu_label = __("Simply Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN);
     
    7660    function admin_init_proc()
    7761    {
     62       
     63        $this->tabs = array(   
     64            'taxonomies'    => __('Taxonomies', SIMPLY_EXCLUDE_I18N_DOMAIN),
     65            'post_types'    => __('Post Types', SIMPLY_EXCLUDE_I18N_DOMAIN),
     66            'users'         => __('Users', SIMPLY_EXCLUDE_I18N_DOMAIN),
     67        );
     68        $this->current_tab = '';
     69       
    7870        $this->se_load_config();
    7971                       
     
    230222        wp_enqueue_script('postbox');
    231223
    232         //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
     224        if ( isset( $_GET['tab'] )) {
     225            $this->current_tab = esc_attr($_GET['tab']);
     226            if (!isset($this->tabs[$this->current_tab])) {
     227                $this->current_tab = 'taxonomies';
     228            }
     229           
     230        } else {
     231            $this->current_tab = 'taxonomies';
     232        }
     233
    233234        add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'),
    234235            $this->pagehooks['se_manage_settings'], 'side', 'core');
    235236        add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'),
    236237            $this->pagehooks['se_manage_settings'], 'side', 'core');
    237 
    238         add_meta_box('se_display_options_taxonomy_actions_panel', 'Taxonomies Actions', array(&$this, 'se_display_options_taxonomy_actions_panel'),
    239             $this->pagehooks['se_manage_settings'], 'normal', 'core');
    240 
    241         add_meta_box('se_display_options_post_type_actions_panel', 'Post Types Actions', array(&$this, 'se_display_options_post_type_actions_panel'),
    242             $this->pagehooks['se_manage_settings'], 'normal', 'core');
    243 
    244         add_meta_box('se_display_options_user_actions_panel', 'Users Actions', array(&$this, 'se_display_options_user_actions_panel'),
    245             $this->pagehooks['se_manage_settings'], 'normal', 'core');
    246 
    247 //      add_meta_box('se_options_thirdparty_panel', 'Other Plugins', array(&$this, 'se_options_thirdparty_panel'),
    248 //          $this->pagehooks['se_manage_settings'], 'normal', 'core');
    249 
    250         // Check if there is an older version of the SE configuration.
    251         $tmp_se_cfg = get_option('simplyexclude');
    252         if ($tmp_se_cfg) {
    253             add_meta_box('se_display_configuration_reload_actions_panel', 'Reload Previous Configuration', array(&$this, 'se_display_configuration_reload_actions_panel'),
    254                 $this->pagehooks['se_manage_settings'], 'normal', 'core');
    255         }
    256238
    257239    }
     
    321303                <td class="description"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'description');//$action_val['description'] ?></td>
    322304                <td class="inc-excl">
    323                     <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="i"
    324                         <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    325                     <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="e"
    326                         <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
     305                    <ul class="se-actions-list">
     306                    <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
     307                    <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
    327308                </td>
    328309            <tr>
     
    364345                <td class="description"><?php echo $this->get_post_type_action_label($post_type, $action_key, 'description');  ?></td>
    365346                <td class="inc-excl">
    366                     <input type="radio" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="i"
    367                         <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    368                     <input type="radio" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="e"
    369                         <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    370                     <?php
    371                         if (($action_key == "is_home")
    372                          && ((isset($this->current_post_type['options']['capability_type'])) && ($this->current_post_type['options']['capability_type'] == "post")))
    373                         {
    374                             ?><br />
    375                             <input type="radio" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="a"
    376                                 <?php if ($action_val == 'a') echo "checked='checked'"; ?> /> <?php _e('Include All', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    377                             <?php
    378                         }
    379 
    380                         else if (($action_key == "is_feed")
    381                          && ((isset($this->current_post_type['options']['capability_type'])) && ($this->current_post_type['options']['capability_type'] == "post")))
    382                         {
    383                             ?><br />
    384                             <input type="radio" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="a"
    385                                 <?php if ($action_val == 'a') echo "checked='checked'"; ?> /> <?php _e('Include All', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    386                             <?php
    387                         }
    388                     ?>
     347                    <ul class="se-actions-list">
     348                   
     349                        <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
     350                        <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
     351                        <?php
     352                            if (($action_key == "is_home")
     353                                && ((isset($this->current_post_type['options']['capability_type']))
     354                                && ($this->current_post_type['options']['capability_type'] == "post"))) {
     355                                ?><li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="a" <?php if ($action_val == 'a') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a"><?php _e('Include All', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li><?php
     356                            } else if (($action_key == "is_feed")
     357                                && ((isset($this->current_post_type['options']['capability_type']))
     358                                && ($this->current_post_type['options']['capability_type'] == "post"))) {
     359                                ?><li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="a" <?php if ($action_val == 'a') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a"><?php _e('Include All', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li><?php
     360                            }
     361                        ?>
    389362                </td>
    390363            <tr>
     
    426399                <td class="description"><?php echo $this->get_se_type_action_label($se_type, $action_key, 'description');  ?></td>
    427400                <td class="inc-excl">
    428                     <input type="radio" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="i"
    429                         <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    430                     <input type="radio" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="e"
    431                         <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
     401                    <ul class="se-actions-list">
     402                        <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
     403                        <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
    432404                </td>
    433405            <tr>
     
    899871            if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions'])))
    900872            {
     873                ?><ul class="se-actions-list"><?php
    901874                foreach ($this->current_taxonomy['actions'] as $action_key => $action_val)
    902875                {
    903876                    ?>
    904                     <input type="checkbox"
     877                    <li><input type="checkbox"
    905878                        name="se_cfg[<?php echo $taxonomy; ?>][terms][<?php echo $action_key ?>][<?php echo $term->term_id ?>]"
    906879                        id="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>" class="se-term-input"
     
    910883                                echo "checked='checked' ";
    911884                        ?> />&nbsp;<label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"
    912                             class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label><br />
     885                            class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label></li>
    913886                                       
    914887                    <?php
    915888                }
     889                ?></ul><?php
    916890            }
    917891        }
     
    927901            if ((isset($this->current_post_type['actions'])) && (count($this->current_post_type['actions'])))
    928902            {
     903                ?><ul class="se-actions-list"><?php
    929904                foreach ($this->current_post_type['actions'] as $action_key => $action_val)
    930905                {
    931                     ?>
    932                     <input type="checkbox"
     906                    ?><li><input type="checkbox"
    933907                        name="se_cfg[<?php echo $post_type; ?>][terms][<?php echo $action_key ?>][<?php echo $p_item->ID ?>]"
    934908                        id="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>" class="se-term-input"
     
    939913                            echo "checked='checked' ";
    940914                        ?> />&nbsp;<label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>">
    941                                 <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label><br />
     915                                <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label></li>
    942916
    943917                    <?php
    944918                }
     919                ?></ul><?php
    945920            }
    946921        }
     
    956931            if ((isset($this->current_se_type['actions'])) && (count($this->current_se_type['actions'])))
    957932            {
     933                ?><ul class="se-actions-list"><?php
    958934                foreach ($this->current_se_type['actions'] as $action_key => $action_val)
    959935                {
    960                     ?>
    961                     <input type="checkbox"
     936                    ?><li><input type="checkbox"
    962937                        name="se_cfg[<?php echo $se_type; ?>][terms][<?php echo $action_key ?>][<?php echo $user->ID ?>]"
    963938                        id="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>" class="se-term-input"
     
    968943                            echo "checked='checked' ";
    969944                        ?> />&nbsp;<label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>">
    970                                 <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label><br />
     945                                <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label></li>
    971946
    972947                    <?php
    973948                }
     949                ?></ul><?php
    974950            }
    975951        }
     
    26902666                    $arg_parts[$idx] = str_replace(']', '', $val);
    26912667                }
    2692                 //echo "arg_parts<pre>"; print_r($arg_parts); echo "</pre>";
    2693                
     2668
    26942669                if ($arg_parts[1] == "users")
    26952670                {
     
    27032678                            $this->se_cfg['data']['se_types'][$se_type][$option] = array();
    27042679
    2705                         if (!isset($this->se_cfg['data']['se_types'][$se_type][$option][$action]))
    2706                             $this->se_cfg['data']['se_types'][$se_type][$option][$action] = array();
    2707                    
    2708                         $this->se_cfg['data']['se_types'][$se_type][$option][$action]['action'] = $is_checked;
     2680                        $this->se_cfg['data']['se_types'][$se_type][$option][$action] = $is_checked;
    27092681                    }
    27102682                    else if ($option == "options")
     
    27282700                            $this->se_cfg['data']['post_types'][$post_type][$option] = array();
    27292701
    2730                         if (!isset($this->se_cfg['data']['post_types'][$post_type][$option][$action]))
    2731                             $this->se_cfg['data']['post_types'][$post_type][$option][$action] = array();
    2732                    
    2733                         $this->se_cfg['data']['post_types'][$post_type][$option][$action]['action'] = $is_checked;
     2702                        $this->se_cfg['data']['post_types'][$post_type][$option][$action] = $is_checked;
    27342703                    }
    27352704                    else if ($option == "options")
     
    27522721                            $this->se_cfg['data']['taxonomies'][$taxonomy][$option] = array();
    27532722
    2754                         if (!isset($this->se_cfg['data']['taxonomies'][$taxonomy][$option][$action]))
    2755                             $this->se_cfg['data']['taxonomies'][$taxonomy][$option][$action] = array();
    2756                    
    2757                         $this->se_cfg['data']['taxonomies'][$taxonomy][$option][$action]['action'] = $is_checked;
     2723                        $this->se_cfg['data']['taxonomies'][$taxonomy][$option][$action] = $is_checked;
    27582724                    }
    27592725                    else if ($option == "options")
     
    27692735        die(); // this is required to return a proper result
    27702736    }
    2771 
    2772 
    2773 
    2774 
    2775 
    2776        
    27772737
    27782738    function display_instructions($item)
     
    28172777        ?>
    28182778        <div id="howto-se-manage-settings-metaboxes-general" class="wrap">
    2819         <?php screen_icon('options-general'); ?>
    2820         <h2><?php _ex("Simply Exclude Manage Settings", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h2>
    2821        
    2822             <div id="poststuff" class="metabox-holder has-right-sidebar simnplyexclude-metabox-holder-right-sidebar">
     2779            <?php screen_icon('options-general'); ?>
     2780            <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN);
     2781                foreach( $this->tabs as $tab => $name ){
     2782
     2783                    $class = ( $tab == $this->current_tab ) ? ' nav-tab-active' : '';
     2784                    echo "<a class='nav-tab$class' href='?page=se_manage_settings&tab=$tab'>$name</a>";
     2785                }
     2786            ?></h2>
     2787       
     2788            <div id="poststuff" class="metabox-holder has-right-sidebar simplyexclude-metabox-holder-right-sidebar">
    28232789                <div id="side-info-column" class="inner-sidebar">
    28242790                    <?php do_meta_boxes($this->pagehooks['se_manage_settings'], 'side', ''); ?>
    28252791                </div>
    28262792                <div id="post-body" class="has-sidebar ">
    2827                     <div id="post-body-content" class="has-sidebar-content simnplyexclude-metabox-holder-main">
    2828                         <?php do_meta_boxes($this->pagehooks['se_manage_settings'], 'normal', ''); ?>
     2793                    <div id="post-body-content" class="has-sidebar-content simplyexclude-metabox-holder-main">
     2794                        <?php //do_meta_boxes($this->pagehooks['se_manage_settings'], 'normal', ''); ?>
     2795                        <?php
     2796                            switch ( $this->current_tab ) {
     2797
     2798                                case 'post_types':
     2799                                    //add_meta_box('se_display_options_post_type_actions_panel', 'Post Types Actions',
     2800                                    //  array(&$this, 'se_display_options_post_type_actions_panel'),
     2801                                    //  $this->pagehooks['se_manage_settings'], 'normal', 'core');
     2802                                    $this->se_display_options_post_type_actions_panel();                                   
     2803                                    break;
     2804
     2805                                case 'users':
     2806                                    //add_meta_box('se_display_options_user_actions_panel', 'Users Actions', array(&$this, 'se_display_options_user_actions_panel'),
     2807                                    //  $this->pagehooks['se_manage_settings'], 'normal', 'core');
     2808                                    $this->se_display_options_user_actions_panel();
     2809                                    break;
     2810
     2811                                case 'taxonomies':
     2812                                default:
     2813                                    //add_meta_box('se_display_options_taxonomy_actions_panel', 'Taxonomies Actions',
     2814                                    //  array(&$this, 'se_display_options_taxonomy_actions_panel'),
     2815                                    //  $this->pagehooks['se_manage_settings'], 'normal', 'core');
     2816                                    $this->se_display_options_taxonomy_actions_panel();
     2817                                    break;
     2818                            }
     2819                        ?>
     2820                       
    28292821                    </div>
    28302822                </div>
     
    28522844            foreach($se_taxonomies as $key => $taxonomy)
    28532845            {
    2854                 ?><h4 class="simplyexclude-section-title"><?php echo $taxonomy->labels->name; ?> (<?php echo $key; ?>)</h4><?php
    2855                 $this->se_show_taxonomy_active_panel($taxonomy->name);
    2856                 $this->se_show_taxonomy_actions_panel($taxonomy->name);
    2857                 $this->se_show_taxonomy_showhide_panel($taxonomy->name);               
    2858                 $this->se_show_taxonomy_query_override_panel($taxonomy->name);             
     2846                ?>
     2847                <div class="postbox">
     2848                    <h3 class="simplyexclude-section-title"><?php echo $taxonomy->labels->name; ?> (<?php echo $key; ?>)</h3>
     2849                    <div class="inside">
     2850                        <?php
     2851                        $this->se_show_taxonomy_active_panel($taxonomy->name);
     2852                        $this->se_show_taxonomy_actions_panel($taxonomy->name);
     2853                        $this->se_show_taxonomy_showhide_panel($taxonomy->name);               
     2854                        $this->se_show_taxonomy_query_override_panel($taxonomy->name);
     2855                        ?>
     2856                    </div>
     2857                </div>
     2858                <?php
    28592859            }
    28602860        }
     
    28692869            foreach($se_post_types as $key => $post_type)
    28702870            {
    2871                 ?><h4 class="simplyexclude-section-title"><?php echo $post_type->labels->name; ?> (<?php echo $key; ?>)</h4><?php
    2872                 $this->se_show_post_type_active_panel($post_type->name);
    2873                 $this->se_show_post_type_actions_panel($post_type->name);
    2874                 $this->se_show_post_type_showhide_panel($post_type->name);
    2875                 $this->se_show_post_type_query_override_panel($post_type->name);
    2876                
     2871                ?>
     2872                <div class="postbox">
     2873                    <h3 class="simplyexclude-section-title"><?php echo $post_type->labels->name; ?> (<?php echo $key; ?>)</h3>
     2874                    <div class="inside">
     2875                    <?php
     2876                        $this->se_show_post_type_active_panel($post_type->name);
     2877                        $this->se_show_post_type_actions_panel($post_type->name);
     2878                        $this->se_show_post_type_showhide_panel($post_type->name);
     2879                        $this->se_show_post_type_query_override_panel($post_type->name);
     2880                    ?>
     2881                    </div>
     2882                </div>
     2883                <?php
    28772884            }
    28782885        }               
     
    28822889    {
    28832890        $this->display_instructions('users');
    2884         ?><h4 class="simplyexclude-section-title">Users</h4><?php
    2885         $this->se_show_se_type_active_panel('users');
    2886         $this->se_show_se_type_actions_panel('users');
    2887         $this->se_show_se_type_showhide_panel('users');
    2888         $this->se_show_se_type_query_override_panel('users');
     2891        ?>
     2892        <div class="postbox">
     2893            <h3 class="simplyexclude-section-title"><?php _e('Users', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h3>
     2894            <div class="inside">
     2895            <?php
     2896                $this->se_show_se_type_active_panel('users');
     2897                $this->se_show_se_type_actions_panel('users');
     2898                $this->se_show_se_type_showhide_panel('users');
     2899                $this->se_show_se_type_query_override_panel('users');
     2900            ?>
     2901            </div>
     2902        </div>
     2903        <?php
    28892904    }
    28902905   
     
    30023017        <h2><?php _ex("Simply Exclude Help", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h2>
    30033018       
    3004             <div id="poststuff" class="metabox-holder has-right-sidebar simnplyexclude-metabox-holder-right-sidebar">
     3019            <div id="poststuff" class="metabox-holder has-right-sidebar simplyexclude-metabox-holder-right-sidebar">
    30053020                <div id="side-info-column" class="inner-sidebar">
    30063021                    <?php do_meta_boxes($this->pagehooks['se_manage_help'], 'side', ''); ?>
    30073022                </div>
    30083023                <div id="post-body" class="has-sidebar ">
    3009                     <div id="post-body-content" class="has-sidebar-content simnplyexclude-metabox-holder-main">
     3024                    <div id="post-body-content" class="has-sidebar-content simplyexclude-metabox-holder-main">
    30103025                        <?php //do_meta_boxes($this->pagehooks['se_manage_help'], 'normal', ''); ?>
    30113026                        <?php $this->se_settings_help_faq_topics(); ?>
  • simply-exclude/trunk/simplyexclude_style_admin.css

    r514092 r768586  
    3434}
    3535
     36td.column-se-actions ul.se-actions-list,
     37td.inc-excl ul.se-actions-list {
     38    margin: 0;
     39    padding: 0;
     40    list-style: none;
     41    width: 100%;
     42}
     43
     44td.column-se-actions ul.se-actions-list li,
     45td.inc-excl ul.se-actions-list li {
     46    margin: 0;
     47    padding: 0;
     48    list-style: none;
     49    width: 100%;
     50}
     51
    3652.ui-accordion-header {
    3753    border-top-left-radius: 3px;
Note: See TracChangeset for help on using the changeset viewer.