Plugin Directory

Changeset 1117435


Ignore:
Timestamp:
03/21/2015 11:03:56 AM (11 years ago)
Author:
pmenard
Message:

Simply-Exclude 2.0.6.5

Location:
simply-exclude/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simply-exclude/trunk/readme.txt

    r1117193 r1117435  
    44Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
    55Requires at least: 3.9
    6 Tested up to: 4.2
     6Tested up to: 4,1
    77Stable tag: 2.0.6.4
    88License: GPLv2
     
    5252
    5353= 2.0.6.4 =
    54 - Corrected reported error with second argument on se_widget_getarchives_where().
    55 - Added a defined option 'SE_FILTERS_PRIORITY' to control the priority of the main pre_get_posts se_filter. This priority can also be controlled via a filter 'se_filters_priority' which is called prior to the setup for the pre_get_posts filter.
     54- Corrected issue reported related to Missing argument 2 for SimplyExclude::se_widget_getarchives_where()
     55- Added a filter 'se_filters_priority' to allow control the priority of the se_filter hook. This can also be set via a define in wp-config.php or functions.php as define('SE_FILTERS_PRIORITY', 99);
    5656
    5757= 2.0.6.3 =
  • simply-exclude/trunk/simplyexclude.php

    r1117193 r1117435  
    77Version: 2.0.6.4
    88Author URI: http://www.codehooligans.com
    9 Text Domain: simply-exclude
     9Text Domain: simplyexclude
    1010Domain Path: /languages
    1111License: GNU General Public License v2 or later
     
    1414*/
    1515
     16define('SIMPLY_EXCLUDE_I18N_DOMAIN', 'simplyexclude');
    1617
    1718class SimplyExclude
     
    3536    private $current_tab;
    3637   
    37     private $FILTER_STATE = array();
    38    
    3938    public function __construct() {
    4039       
    41         $this->se_version   = "2.0.6.4";
    42        
    43         $this->admin_menu_label = __("Simply Exclude", 'simply-exclude');
     40        $this->se_version   = "2.0.6.2";
     41       
     42        $this->admin_menu_label = __("Simply Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN);
    4443        $this->options_key      = "simplyexclude_v2";
    4544       
     
    5251       
    5352        /* Setup the tetdomain for i18n language handling see http://codex.wordpress.org/Function_Reference/load_plugin_textdomain */
    54         load_plugin_textdomain( 'simply-exclude', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    55        
    56         add_action( 'init',                     array($this,'init_proc') );
    57         add_action( 'admin_init',               array($this,'admin_init_proc') );
    58         add_action( 'admin_menu',               array($this,'se_add_nav') );
    59         add_action( 'admin_footer',             array($this,'se_admin_footer') );               
    60         add_action( 'wp_ajax_se_update',        array($this, 'se_ajax_update') );
     53        load_plugin_textdomain( SIMPLY_EXCLUDE_I18N_DOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     54       
     55        add_action( 'init', array(&$this,'init_proc') );
     56        add_action( 'admin_init', array(&$this,'admin_init_proc') );
     57        add_action( 'admin_menu', array(&$this,'se_add_nav') );
     58        add_action( 'admin_footer', array(&$this,'se_admin_footer') );             
     59        add_action( 'wp_ajax_se_update', array(&$this, 'se_ajax_update') );
    6160
    6261        // In 2.0.6.4 added a define to allow control of the SE_FILTERS_PRIORITY
     
    7776       
    7877        $this->tabs = array(   
    79             'taxonomies'    => __('Taxonomies', 'simply-exclude'),
    80             'post_types'    => __('Post Types', 'simply-exclude'),
    81             'users'         => __('Users', 'simply-exclude'),
     78            'taxonomies'    => __('Taxonomies', SIMPLY_EXCLUDE_I18N_DOMAIN),
     79            'post_types'    => __('Post Types', SIMPLY_EXCLUDE_I18N_DOMAIN),
     80            'users'         => __('Users', SIMPLY_EXCLUDE_I18N_DOMAIN),
    8281        );
    8382        $this->current_tab = '';
    8483       
    8584        $this->se_load_config();
    86 
    87         add_action( 'admin_enqueue_scripts',            array($this,'admin_enqueue_scripts') );
    8885                       
    89         add_action('edit_category_form_fields',         array($this,'se_show_taxonomy_term_fields'), 99, 1);
    90         add_action('edit_tag_form_fields',              array($this,'se_show_taxonomy_term_fields'), 99, 1);
    91         add_action('edited_term',                       array($this,'se_save_taxonomy_term_fields'), 99, 3);
    92        
    93         add_action( 'show_user_profile',                array($this,'se_show_user_profile'), 99 );
    94         add_action( 'edit_user_profile',                array($this,'se_show_user_profile'), 99 );
    95        
    96         add_action( 'profile_update',                   array($this,'se_save_user_profile'), 99);
    97        
    98         add_filter( 'plugin_action_links_'. basename( dirname( __FILE__ ) ). '/' .basename( __FILE__ ), array($this,'plugin_settings'));
    99        
    100     }
    101    
    102     function admin_enqueue_scripts( $page = '' ) {
    103 
    10486        if ( ($this->check_url('wp-admin/edit-tags.php'))       
    10587          || ($this->check_url('wp-admin/edit.php'))
    10688          || ($this->check_url('wp-admin/users.php')) )
    10789        {           
    108            
    109             if (function_exists('get_current_screen'))
    110                 $current_screen = get_current_screen();
    111             else
    112             {
    113                 global $current_screen;         
    114             }
    115             //echo "current_screen<pre>"; print_r($current_screen); echo "</pre>";
    116             //echo "screen->id[". $current_screen->id ."]<br />";
    117        
    118             $se_taxonomies = $this->se_load_taxonomy_list();
    119             //echo "se_taxonomies<pre>"; print_r($se_taxonomies); echo "</pre>";
    120        
    121            
    12290            wp_enqueue_style( 'simplyexclude-stylesheet', $this->plugindir_url .'/simplyexclude_style_admin.css', false, $this->se_version);
    12391
     
    12593            wp_enqueue_script('jquery-ui-core');
    12694            wp_enqueue_script('jquery-ui-dialog');
    127             wp_enqueue_script('jquery-color'); // Needed for animate color fade on changed elements.
    12895           
    12996            wp_enqueue_style( 'simplyexclude-jquery-ui',
    130                 $this->plugindir_url .'/js/jquery-ui/css/flick/jquery-ui.css',
     97                $this->plugindir_url .'/js/jquery-ui/css/flick/jquery-ui-1.8.17.custom.css',
    13198                null, $this->se_version );
    13299           
     
    137104                array('jquery', 'jquery-ui-core'), $this->se_version);         
    138105        }
     106                       
     107        add_action('edit_category_form_fields', array(&$this,'se_show_taxonomy_term_fields'), 99, 1);
     108        add_action('edit_tag_form_fields', array(&$this,'se_show_taxonomy_term_fields'), 99, 1);
     109        add_action('edited_term', array(&$this,'se_save_taxonomy_term_fields'), 99, 3);
     110       
     111        add_action( 'show_user_profile', array(&$this,'se_show_user_profile'), 99 );
     112        add_action( 'edit_user_profile', array(&$this,'se_show_user_profile'), 99 );
     113       
     114        add_action( 'profile_update', array(&$this,'se_save_user_profile'), 99);
     115       
     116        add_filter( 'plugin_action_links_'. basename( dirname( __FILE__ ) ). '/' .basename( __FILE__ ), array(&$this,'plugin_settings'));
     117       
    139118    }
    140119   
    141120    // Adds a 'Settings' link on the Plugins listing row. Cool!
    142121    function plugin_settings( $links ) {
    143         $settings_link = '<a href="admin.php?page=se_manage_settings">'.__( 'Settings', 'simply-exclude' ).'</a>';
     122        $settings_link = '<a href="admin.php?page=se_manage_settings">'.__( 'Settings', SIMPLY_EXCLUDE_I18N_DOMAIN ).'</a>';
    144123        array_unshift( $links, $settings_link );
    145124
     
    151130        if (!is_admin())
    152131        {
    153             add_filter('widget_pages_args',                 array($this, 'se_widget_pages_args_proc'));
     132            add_filter('widget_pages_args', array(&$this, 'se_widget_pages_args_proc'));   
    154133           
    155134            // Not needed since wp_list_pages is user managable.
    156             //aad_filter('wp_list_pages_excludes', array($this, 'se_wp_list_pages_excludes_proc'));
     135            //aad_filter('wp_list_pages_excludes', array(&$this, 'se_wp_list_pages_excludes_proc'));
    157136           
    158137            // Suport for the Category list/dropdown widget
    159             add_filter( 'widget_categories_args',           array($this, 'widget_categories_args_proc'), 99);
    160             add_filter( 'widget_categories_dropdown_args',  array($this, 'widget_categories_args_proc'), 99);
    161 
    162             //add_filter( 'wp_list_categories',             array($this, 'se_wp_list_categories_proc'), 99);   
    163             add_filter( 'get_categories_taxonomy',          array($this, 'get_categories_taxonomy_proc'), 99);
    164             add_filter( 'get_terms',                        array($this, 'se_get_terms_proc'), 99, 3);
     138            add_filter('widget_categories_dropdown_args', array(&$this, 'se_widget_categories_dropdown_args_proc'));   
     139            add_filter('widget_categories_args', array(&$this, 'se_widget_categories_dropdown_args_proc'));
    165140
    166141            // Support for the Tag Clod widget. This widget supports both the post_tag and category taxonomies.
    167             add_filter('widget_tag_cloud_args',             array($this, 'se_widget_tag_cloud_args_proc'), 99);
    168            
    169             // Support for the Recent Posts widget.
    170             add_filter( 'widget_posts_args',                array($this, 'se_widget_recent_posts_proc'), 99);
     142            add_filter('widget_tag_cloud_args', array(&$this, 'se_widget_tag_cloud_args_proc'));   
    171143           
    172144            // Support for Archive widget. This widget will output a month or year archive listing/dropdown of posts
    173             add_filter('getarchives_where',                 array($this, 'se_widget_getarchives_where'), 99);
     145            add_filter('getarchives_where', array($this, 'se_widget_getarchives_where'), 99);
     146           
    174147        }
    175148    }
     
    179152        // Add the Main Nav item to the WP menu
    180153        add_menu_page( 'Simply Exclude', 'Simply Exclude', 'manage_options', 'se_manage_settings',
    181             array($this, 'se_manage_settings'));
     154            array(&$this, 'se_manage_settings'));
    182155
    183156        // Add our Options sub menu.
    184157        $this->pagehooks['se_manage_settings'] = add_submenu_page( 'se_manage_settings', 'Settings', 'Settings', 'manage_options',
    185             'se_manage_settings', array($this, 'se_manage_settings'));
    186         add_action('load-'. $this->pagehooks['se_manage_settings'], array($this, 'on_load_settings_page'));
     158            'se_manage_settings', array(&$this, 'se_manage_settings'));
     159        add_action('load-'. $this->pagehooks['se_manage_settings'], array(&$this, 'on_load_settings_page'));
    187160
    188161
    189162        // Add our Help sub menu.
    190163        $this->pagehooks['se_manage_help'] = add_submenu_page( 'se_manage_settings', 'Help', 'Help', 'manage_options',
    191             'se_manage_help', array($this, 'se_manage_help'));
    192         add_action('load-'. $this->pagehooks['se_manage_help'], array($this, 'on_load_help_page'));
     164            'se_manage_help', array(&$this, 'se_manage_help'));
     165        add_action('load-'. $this->pagehooks['se_manage_help'], array(&$this, 'on_load_help_page'));
    193166       
    194167        if ( !current_user_can('manage_options') )
     
    206179                 && ($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide'] == 'show'))
    207180                {
    208                     add_filter( "manage_edit-". $t_item->name ."_columns", array( $this, 'se_manage_taxonomy_columns' ), 99, 1);
    209                     add_filter( "manage_". $t_item->name. "_custom_column", array($this, 'se_display_taxonomy_column_filters'), 99, 3);                                     
    210                 }
    211             }
    212             //add_action("delete_term", array($this, 'se_delete_taxonomy_term'), 99, 3);           
     181                    add_filter( "manage_edit-". $t_item->name ."_columns", array( &$this, 'se_manage_taxonomy_columns' ), 99, 1);
     182                    add_filter( "manage_". $t_item->name. "_custom_column", array(&$this, 'se_display_taxonomy_column_filters'), 99, 3);                                       
     183                }
     184            }
     185            //add_action("delete_term", array(&$this, 'se_delete_taxonomy_term'), 99, 3);           
    213186        }
    214187
     
    222195                 && ($this->se_cfg['data']['post_types'][$t_item->name]['options']['showhide'] == 'show'))
    223196                {
    224                     add_filter( "manage_". $t_item->name ."_posts_columns", array( $this, 'se_manage_post_type_columns' ), 99 );
    225                     add_action( "manage_". $t_item->name ."_posts_custom_column", array($this, 'se_display_post_type_column_actions'), 99, 2);
    226            
    227                     add_meta_box($this->options_key, $this->admin_menu_label, array($this,'show_post_type_exclude_sidebar_dbx'), $t_item->name, 'side');                               
    228                     add_action('save_post', array($this,'save_post_type_exclude_sidebar_dbx'));             
     197                    add_filter( "manage_". $t_item->name ."_posts_columns", array( &$this, 'se_manage_post_type_columns' ), 99 );
     198                    add_action( "manage_". $t_item->name ."_posts_custom_column", array(&$this, 'se_display_post_type_column_actions'), 99, 2);
     199           
     200                    add_meta_box($this->options_key, $this->admin_menu_label, array(&$this,'show_post_type_exclude_sidebar_dbx'), $t_item->name, 'side');                               
     201                    add_action('save_post', array(&$this,'save_post_type_exclude_sidebar_dbx'));               
    229202                }
    230203            }
     
    235208         && ($this->se_cfg['data']['se_types']['users']['options']['showhide'] == 'show'))
    236209        {
    237             add_filter( "manage_users_columns", array( $this, 'se_manage_user_columns' ), 99 );
    238             add_filter( 'manage_users_custom_column', array($this, 'se_display_user_column_actions'), 99, 3);
     210            add_filter( "manage_users_columns", array( &$this, 'se_manage_user_columns' ), 99 );
     211            add_filter( 'manage_users_custom_column', array(&$this, 'se_display_user_column_actions'), 99, 3);
    239212        }
    240213    }
     
    277250        }
    278251
    279         add_meta_box('se_settings_about_sidebar', 'About this Plugin', array($this, 'se_settings_about_sidebar'),
     252        add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'),
    280253            $this->pagehooks['se_manage_settings'], 'side', 'core');
    281         add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array($this, 'se_settings_donate_sidebar'),
     254        add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'),
    282255            $this->pagehooks['se_manage_settings'], 'side', 'core');
    283256
     
    306279        }
    307280
    308         add_meta_box('se_settings_about_sidebar', 'About this Plugin', array($this, 'se_settings_about_sidebar'),
     281        add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'),
    309282            $this->pagehooks['se_manage_help'], 'side', 'core');
    310         add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array($this, 'se_settings_donate_sidebar'),
     283        add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'),
    311284            $this->pagehooks['se_manage_help'], 'side', 'core');       
    312285    }
     
    349322                <td class="inc-excl">
    350323                    <ul class="se-actions-list">
    351                     <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'); ?></label></li>
    352                     <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'); ?></label></li>
     324                    <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>
     325                    <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>
    353326                </td>
    354327            <tr>
     
    392365                    <ul class="se-actions-list">
    393366                   
    394                         <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'); ?></label></li>
    395                         <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'); ?></label></li>
     367                        <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>
     368                        <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>
    396369                        <?php
    397370                            if (($action_key == "is_home")
    398371                                && ((isset($this->current_post_type['options']['capability_type']))
    399372                                && ($this->current_post_type['options']['capability_type'] == "post"))) {
    400                                 ?><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'); ?></label></li><?php
     373                                ?><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
    401374                            } else if (($action_key == "is_feed")
    402375                                && ((isset($this->current_post_type['options']['capability_type']))
    403376                                && ($this->current_post_type['options']['capability_type'] == "post"))) {
    404                                 ?><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'); ?></label></li><?php
     377                                ?><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
    405378                            }
    406379                        ?>
     
    445418                <td class="inc-excl">
    446419                    <ul class="se-actions-list">
    447                         <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'); ?></label></li>
    448                         <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'); ?></label></li>
     420                        <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>
     421                        <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>
    449422                </td>
    450423            <tr>
     
    478451        <thead>
    479452        <tr>
    480             <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>
     453            <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    481454        </tr>
    482455        </thead>
    483456        <tbody>
    484457        <tr>
    485             <td class="description"><?php _e("Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms.", 'simply-exclude'); ?></td>
     458            <td class="description"><?php _e("Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
    486459            <td class="inc-excl">
    487460                <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="yes"
    488461                    <?php if ($this->current_taxonomy['options']['active'] == 'yes')
    489                         echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />
     462                        echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    490463                <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="no"
    491464                    <?php if ($this->current_taxonomy['options']['active'] == 'no')
    492                         echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>
     465                        echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    493466            </td>
    494467        </tr>
     
    512485        <thead>
    513486        <tr>
    514             <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>
     487            <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    515488        </tr>
    516489        </thead>
    517490        <tbody>
    518491        <tr>
    519             <td class="description"><?php _e("Is this Post Type Active? This is sometimes convenient instead of unsetting all Post Type items.", 'simply-exclude'); ?></td>
     492            <td class="description"><?php _e("Is this Post Type Active? This is sometimes convenient instead of unsetting all Post Type items.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
    520493            <td class="inc-excl">
    521494                <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="yes"
    522495                    <?php if ($this->current_post_type['options']['active'] == 'yes')
    523                         echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />
     496                        echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    524497                <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="no"
    525498                    <?php if ($this->current_post_type['options']['active'] == 'no')
    526                         echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>
     499                        echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    527500            </td>
    528501        </tr>
     
    546519        <thead>
    547520        <tr>
    548             <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>
     521            <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    549522        </tr>
    550523        </thead>
    551524        <tbody>
    552525        <tr>
    553             <td class="description"><?php _e("Active?", 'simply-exclude'); ?></td>
     526            <td class="description"><?php _e("Active?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
    554527            <td class="inc-excl">
    555528                <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="yes"
    556529                    <?php if ($this->current_se_type['options']['active'] == 'yes')
    557                         echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />
     530                        echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    558531                <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="no"
    559532                    <?php if ($this->current_se_type['options']['active'] == 'no')
    560                         echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>
     533                        echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    561534            </td>
    562535        </tr>
     
    587560        <thead>
    588561        <tr>
    589             <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>
     562            <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    590563        </tr>
    591564        </thead>
    592565        <tbody>
    593566        <tr>
    594             <td class="description"><?php _e("Show the extra columns on the Taxonomy listing and the Taxonomy edit form?", 'simply-exclude'); ?></td>
     567            <td class="description"><?php _e("Show the extra columns on the Taxonomy listing and the Taxonomy edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
    595568            <td class="inc-excl">
    596569                <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="show"
    597570                    <?php if ($this->current_taxonomy['options']['showhide'] == 'show')
    598                         echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />
     571                        echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    599572                <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="hide"
    600573                    <?php if ($this->current_taxonomy['options']['showhide'] == 'hide')
    601                         echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>
     574                        echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    602575            </td>
    603576        </tr>
     
    618591        <thead>
    619592        <tr>
    620             <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>
     593            <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    621594        </tr>
    622595        </thead>
    623596        <tbody>
    624597        <tr>
    625             <td class="description"><?php _e("Show the extra columns on the Post Type listing and the Post Type edit form?", 'simply-exclude'); ?></td>
     598            <td class="description"><?php _e("Show the extra columns on the Post Type listing and the Post Type edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
    626599            <td class="inc-excl">
    627600                <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="show"
    628601                    <?php if ($this->current_post_type['options']['showhide'] == 'show')
    629                         echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />
     602                        echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    630603                <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="hide"
    631604                    <?php if ($this->current_post_type['options']['showhide'] == 'hide')
    632                         echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>
     605                        echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    633606            </td>
    634607        </tr>
     
    649622        <thead>
    650623        <tr>
    651             <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>
     624            <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    652625        </tr>
    653626        </thead>
    654627        <tbody>
    655628        <tr>
    656             <td class="description"><?php _e("Show the extra columns on the listing and the edit form?", 'simply-exclude'); ?></td>
     629            <td class="description"><?php _e("Show the extra columns on the listing and the edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
    657630            <td class="inc-excl">
    658631                <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="show"
    659632                    <?php if ($this->current_se_type['options']['showhide'] == 'show')
    660                         echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />
     633                        echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    661634                <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="hide"
    662635                    <?php if ($this->current_se_type['options']['showhide'] == 'hide')
    663                         echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>
     636                        echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    664637            </td>
    665638        </tr>
     
    692665        <thead>
    693666        <tr>
    694             <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>
     667            <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    695668        </tr>
    696669        </thead>
     
    698671        <tr>
    699672            <td class="description">
    700                 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", 'simply-exclude') ?></p>
    701                 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", 'simply-exclude'); ?></p>
     673                <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p>
     674                <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    702675                </td>
    703676            <td class="inc-excl">
    704677                <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="main"
    705678                    <?php if ($this->current_taxonomy['options']['qover'] == 'main')
    706                         echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />
     679                        echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    707680                <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="all"
    708681                    <?php if ($this->current_taxonomy['options']['qover'] == 'all')
    709                         echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>
     682                        echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    710683            </td>
    711684        </tr>
     
    727700        <thead>
    728701        <tr>
    729             <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>
     702            <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    730703        </tr>
    731704        </thead>
     
    733706        <tr>
    734707            <td class="description">
    735                 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", 'simply-exclude') ?></p>
    736                 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", 'simply-exclude'); ?></p>
     708                <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p>
     709                <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    737710            </td>
    738711            <td class="inc-excl">
    739712                <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="main"
    740713                    <?php if ($this->current_post_type['options']['qover'] == 'main')
    741                         echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />
     714                        echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    742715                <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="all"
    743716                    <?php if ($this->current_post_type['options']['qover'] == 'all')
    744                         echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>
     717                        echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    745718            </td>
    746719        </tr>
     
    762735        <thead>
    763736        <tr>
    764             <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>
     737            <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    765738        </tr>
    766739        </thead>
     
    768741        <tr>
    769742            <td class="description">
    770                 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", 'simply-exclude') ?></p>
    771                 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", 'simply-exclude'); ?></p>
     743                <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p>
     744                <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    772745            </td>
    773746            <td class="inc-excl">
    774747                <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="main"
    775748                    <?php if ($this->current_se_type['options']['qover'] == 'main')
    776                         echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />
     749                        echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
    777750                <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="all"
    778751                    <?php if ($this->current_se_type['options']['qover'] == 'all')
    779                         echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>
     752                        echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
    780753            </td>
    781754        </tr>
     
    793766    {
    794767        if (current_user_can('manage_options')) {       
    795             if (!isset($columns['se-actions'])) {
    796                 $columns['se-actions'] = __('Simply Exclude', 'simply-exclude');
    797             }
     768            if (!isset($columns['se-actions']))
     769                $columns['se-actions'] = '<a id="se-show-actions-panel" title="" href="#">'. __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
    798770        }
    799771        return $columns;
     
    803775    {
    804776        if (current_user_can('manage_options')) {           
    805             if (!isset($columns['se_actions'])) {
    806                 $columns['se-actions'] = __('Simply Exclude', 'simply-exclude');
    807             }
     777            if (!isset($columns['se_actions']))
     778                $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
    808779        }
    809780        return $columns;
     
    813784    {
    814785        if (current_user_can('manage_options')) {           
    815             if (!isset($columns['se_actions'])) {
    816                 $columns['se-actions'] = __('Simply Exclude', 'simply-exclude');
    817             }
     786            if (!isset($columns['se_actions']))
     787                $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
    818788        }       
    819789        return $columns;
     
    919889            if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions'])))
    920890            {
    921                 //echo "current_taxonomy<pre>"; print_r($this->current_taxonomy); echo "</pre>";
    922                
    923                
    924891                ?><ul class="se-actions-list"><?php
    925892                foreach ($this->current_taxonomy['actions'] as $action_key => $action_val)
     
    933900                             && ($this->current_taxonomy['terms'][$action_key][$term->term_id] == "on"))
    934901                                echo "checked='checked' ";
    935                         ?> />&nbsp;<a class="se-show-actions-panel" title="" href="#">(<span class="se-action-label-<?php echo $action_key ?>"><?php echo $action_val ?></span>)</a>&nbsp;<label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"
     902                        ?> />&nbsp;<label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"
    936903                            class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label></li>
    937904                                       
     
    963930                         && ($this->current_post_type['terms'][$action_key][$p_item->ID] == "on"))
    964931                            echo "checked='checked' ";
    965                         ?> />&nbsp;<a class="se-show-actions-panel" title="" href="#">(<span class="se-action-label-<?php echo $action_key ?>"><?php echo $action_val ?></span>)</a>&nbsp;<label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>"><?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label></li>
     932                        ?> />&nbsp;<label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>">
     933                                <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label></li>
    966934
    967935                    <?php
     
    992960                         && ($this->current_se_type['terms'][$action_key][$user->ID] == "on"))
    993961                            echo "checked='checked' ";
    994                         ?> />&nbsp;<a class="se-show-actions-panel" title="" href="#">(<span class="se-action-label-<?php echo $action_key ?>"><?php echo $action_val ?></span>)</a>&nbsp;<label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>"><?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label></li>
     962                        ?> />&nbsp;<label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>">
     963                                <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label></li>
    995964
    996965                    <?php
     
    13671336       
    13681337        $this->se_cfg['options']['plugins']['google-sitemap-generator']                 = array();
    1369         $this->se_cfg['options']['plugins']['google-sitemap-generator']['name']         = __("Google XML Sitemaps", 'simply-exclude');
     1338        $this->se_cfg['options']['plugins']['google-sitemap-generator']['name']         = __("Google XML Sitemaps", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13701339        $this->se_cfg['options']['plugins']['google-sitemap-generator']['url']          = "http://wordpress.org/extend/plugins/google-sitemap-generator/";
    1371         $this->se_cfg['options']['plugins']['google-sitemap-generator']['desc']         = __("Warning: Page ID listed in the Sitemap plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", 'simply-exclude');
     1340        $this->se_cfg['options']['plugins']['google-sitemap-generator']['desc']         = __("Warning: Page ID listed in the Sitemap plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13721341        $this->se_cfg['options']['plugins']['google-sitemap-generator']['version']      = "3.1.6";
    13731342        $this->se_cfg['options']['plugins']['google-sitemap-generator']['active']       = false;
     
    13751344           
    13761345        $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']                          = array();
    1377         $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['desc']         = __("Update Excluded Pages", 'simply-exclude');       
     1346        $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['desc']         = __("Update Excluded Pages", SIMPLY_EXCLUDE_I18N_DOMAIN);     
    13781347        $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['update']       = false;       
    1379         $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['desc']    = __("Update Excluded Categories", 'simply-exclude');       
     1348        $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['desc']    = __("Update Excluded Categories", SIMPLY_EXCLUDE_I18N_DOMAIN);     
    13801349        $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['update']  = false;       
    13811350       
    13821351       
    13831352        $this->se_cfg['options']['plugins']['search-unleashed']                     = array();
    1384         $this->se_cfg['options']['plugins']['search-unleashed']['name']             = __("Search Unleashed", 'simply-exclude');
     1353        $this->se_cfg['options']['plugins']['search-unleashed']['name']             = __("Search Unleashed", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13851354        $this->se_cfg['options']['plugins']['search-unleashed']['url']              = "http://wordpress.org/extend/plugins/search-unleashed/";
    1386         $this->se_cfg['options']['plugins']['search-unleashed']['desc']             = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", 'simply-exclude');
     1355        $this->se_cfg['options']['plugins']['search-unleashed']['desc']             = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13871356        $this->se_cfg['options']['plugins']['search-unleashed']['version']          = "1.0.5";
    13881357        $this->se_cfg['options']['plugins']['search-unleashed']['active']           = false;
     
    13901359           
    13911360        $this->se_cfg['options']['plugins']['search-unleashed']['actions']                          = array();
    1392         $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['desc']         = __("Update Excluded Pages", 'simply-exclude');
     1361        $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['desc']         = __("Update Excluded Pages", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13931362        $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['update']       = false;
    1394         $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['desc']    = __("Update Excluded Categories", 'simply-exclude');
     1363        $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['desc']    = __("Update Excluded Categories", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13951364        $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['update']  = false;               
    1396         $this->se_cfg['options']['plugins']['search-unleashed']['desc']                             = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", 'simply-exclude');
     1365        $this->se_cfg['options']['plugins']['search-unleashed']['desc']                             = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", SIMPLY_EXCLUDE_I18N_DOMAIN);
    13971366       
    13981367        foreach($this->se_cfg['options']['plugins'] as $plugin => $plugin_data)
     
    16861655        if ($taxonomy == "category")
    16871656        {
    1688             $taxonomy_actions['widget_category']        = "e";         
    1689             $taxonomy_actions['widget_tag_cloud']       = "e";         
    1690             //$taxonomy_actions['widget_recent_posts']  = "e";         
     1657            $taxonomy_actions['widget_category']    = "e";         
     1658            $taxonomy_actions['widget_tag_cloud']   = "e";         
    16911659        }
    16921660
    16931661        if ($taxonomy == "post_tag")
    16941662        {
    1695             $taxonomy_actions['widget_tag_cloud']       = "e";         
    1696             //$taxonomy_actions['widget_recent_posts']  = "e";
     1663            $taxonomy_actions['widget_tag_cloud']   = "e";         
    16971664        }
    16981665
     
    17111678        if ($post_type_object->capability_type == "post")
    17121679        {           
    1713             $taxonomy_actions['is_home']                = "i";
    1714             $taxonomy_actions['is_archive']             = "e";
    1715             $taxonomy_actions['is_search']              = "e";
    1716             $taxonomy_actions['is_feed']                = "e";
    1717             //$taxonomy_actions['widget_archives']      = "e";
    1718             //$taxonomy_actions['widget_recent_posts']  = "e";
    1719            
     1680            $taxonomy_actions['is_home']            = "i";
     1681            $taxonomy_actions['is_archive']         = "e";
     1682            $taxonomy_actions['is_search']          = "e";
     1683            $taxonomy_actions['is_feed']            = "e";
     1684            //$taxonomy_actions['widget_archives']  = "e";
    17201685        }
    17211686        else if ($post_type == "page")
     
    17631728                {
    17641729                    case 'name':
    1765                         return __("Front/Home", 'simply-exclude');;
     1730                        return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);;
    17661731                        break;
    17671732
    17681733                    case 'description':
    1769                         return __("Visibility on the front/main page.", 'simply-exclude');
     1734                        return __("Visibility on the front/main page.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    17701735
    17711736                    default:
     
    17801745                {
    17811746                    case 'name':
    1782                         return __("Archives", 'simply-exclude');
     1747                        return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
    17831748                        break;
    17841749
    17851750                    case 'description':
    1786                         return __("Visibility on the archive of categories on the sidebar.", 'simply-exclude');
     1751                        return __("Visibility on the archive of categories on the sidebar.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    17871752
    17881753                    default:
     
    17981763                {
    17991764                    case 'name':
    1800                         return __("Searches", 'simply-exclude');
     1765                        return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18011766                        break;
    18021767
    18031768                    case 'description':
    1804                         return __("Visibility in search results.", 'simply-exclude');
     1769                        return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18051770
    18061771                    default:
     
    18161781                {
    18171782                    case 'name':
    1818                         return __("Feeds", 'simply-exclude');
     1783                        return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18191784                        break;
    18201785
    18211786                    case 'description':
    1822                         return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');
     1787                        return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18231788
    18241789                    default:
     
    18341799                    {
    18351800                        case 'name':
    1836                             return __("Categories (W)", 'simply-exclude');
     1801                            return __("Widget: Categories", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18371802                            break;
    18381803
    18391804                        case 'description':
    1840                             return __("Exclude from WordPress List Category Widget.", 'simply-exclude');
     1805                            return __("Exclude from WordPress List Category Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18411806                            break;
    18421807
     
    18551820                    {
    18561821                        case 'name':
    1857                             return __("Tag Cloud (W)", 'simply-exclude');
     1822                            return __("Widget: Tag Cloud", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18581823                            break;
    18591824
    18601825                        case 'description':
    1861                             return __("Exclude from WordPress Tag Cloud Widget.", 'simply-exclude');
     1826                            return __("Exclude from WordPress Tag Cloud Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    18621827                            break;
    18631828
     
    18701835                break;
    18711836
    1872 /*
    1873             case 'widget_recent_posts':
    1874                 if (($taxonomy == "post_tag") || ($taxonomy == "category"))
    1875                 {
    1876                     switch($key)
    1877                     {
    1878                         case 'name':
    1879                             return __("Recent Posts (W)", 'simply-exclude');
    1880                             break;
    1881 
    1882                         case 'description':
    1883                             return __("Exclude from WordPress Recent Posts Widget.", 'simply-exclude');
    1884                             break;
    1885 
    1886                         default:
    1887                             return;
    1888                             break;
    1889                     }
    1890                 }
    1891                 return;
    1892                 break;
    1893 */
    18941837            default:
    18951838                return;
     
    19071850                {
    19081851                    case 'name':
    1909                         return __("Front/Home", 'simply-exclude');
     1852                        return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19101853                        break;
    19111854
    19121855                    case 'description':
    1913                         return __("Visibility on the front/main page. Set 'Include All' to have this Post Type displayed in addition to the normal Posts.", 'simply-exclude');
     1856                        return __("Visibility on the front/main page. Set 'Include All' to have this Post Type displayed in addition to the normal Posts.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19141857
    19151858                    default:
     
    19241867                {
    19251868                    case 'name':
    1926                         return __("Archives", 'simply-exclude');
     1869                        return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19271870                        break;
    19281871
    19291872                    case 'description':
    1930                         return __("Visibility on the Post Type archives page output. This selection will also include include/exclude for Archive, Recent Posts, Category, Tag Cloud Widgets.", 'simply-exclude');
     1873                        return __("Visibility on the Post Type archive.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19311874
    19321875                    default:
     
    19411884                {
    19421885                    case 'name':
    1943                         return __("Feeds", 'simply-exclude');
     1886                        return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19441887                        break;
    19451888
    19461889                    case 'description':
    1947                         return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');
     1890                        return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19481891
    19491892                    default:
     
    19581901                {
    19591902                    case 'name':
    1960                         return __("Searches", 'simply-exclude');
     1903                        return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19611904                        break;
    19621905
    19631906                    case 'description':
    1964                         return __("Visibility in search results.", 'simply-exclude');
     1907                        return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19651908
    19661909                    default:
     
    19741917                {
    19751918                    case 'name':
    1976                         return __("Pages (W)", 'simply-exclude');
     1919                        return __("Widget: Pages", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19771920                        break;
    19781921
    19791922                    case 'description':
    1980                         return __("Support for WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded.", 'simply-exclude');
     1923                        return __("Exclude from WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19811924
    19821925                    default:
     
    19861929                break;
    19871930
    1988 /*
    19891931            case 'widget_archives':
    19901932
     
    19931935                    {
    19941936                        case 'name':
    1995                             return __("Archives (W)", 'simply-exclude');
     1937                            return __("Widget: Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
    19961938                            break;
    19971939
    19981940                        case 'description':
    1999                             return __("Exclude from WordPress Archives Widget.", 'simply-exclude');
     1941                            return __("Exclude from Post Archives Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20001942
    20011943                        default:
     
    20051947                return;
    20061948                break;
    2007 */
    2008 /*
    2009             case 'widget_recent_posts':
    2010                 if ($post_type == "post") {
    2011            
    2012                     switch($key)
    2013                     {
    2014                         case 'name':
    2015                             return __("Recent Posts (W)", 'simply-exclude');
    2016                             break;
    2017 
    2018                         case 'description':
    2019                             return __("Exclude from WordPress Recent Posts Widget.", 'simply-exclude');
    2020                             break;
    2021 
    2022                         default:
    2023                             return;
    2024                             break;
    2025                     }
    2026                 }
    2027                 return;
    2028                 break;
    2029 */
     1949
    20301950            default:
    20311951                return;
     
    20441964                {
    20451965                    case 'name':
    2046                         return __("Front/Home", 'simply-exclude');
     1966                        return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20471967                        break;
    20481968
    20491969                    case 'description':
    2050                         return __("Visibility on the front/main page.", 'simply-exclude');
     1970                        return __("Visibility on the front/main page.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20511971                        break;
    20521972
     
    20621982                {
    20631983                    case 'name':
    2064                         return __("Archives", 'simply-exclude');
     1984                        return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20651985                        break;
    20661986
    20671987                    case 'description':
    2068                         return __("Visibility on the archive of categories on the sidebar.", 'simply-exclude');
     1988                        return __("Visibility on the archive of categories on the sidebar.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20691989                        break;
    20701990
     
    20802000                {
    20812001                    case 'name':
    2082                         return __("Searches", 'simply-exclude');
     2002                        return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20832003                        break;
    20842004
    20852005                    case 'description':
    2086                         return __("Visibility in search results.", 'simply-exclude');
     2006                        return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    20872007                        break;
    20882008
     
    20982018                {                   
    20992019                    case 'name':
    2100                         return __("Feeds", 'simply-exclude');
     2020                        return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN);
    21012021                        break;
    21022022
    21032023                    case 'description':
    2104                         return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');
     2024                        return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN);
    21052025                        break;
    21062026
     
    21332053
    21342054        // Check our debug
    2135         if (( current_user_can('manage_options') ) && (isset($_GET['SE_DEBUG'])))
     2055        if (( current_user_can('manage_options') )  && (isset($_GET['SE_DEBUG'])))
    21362056            $se_debug = true;
    21372057        else
     
    24182338   
    24192339   
     2340   
     2341   
     2342   
     2343   
     2344   
     2345   
    24202346    /****************************************************************************************************************************/
    24212347    /*                                                                                                                          */
     
    24642390    }
    24652391       
    2466     function widget_categories_args_proc($args)
    2467     {
    2468         //echo "args<pre>"; print_r($args); echo "</pre>";
    2469        
    2470         //if ((isset($args['include'])) || (isset($args['exclude'])))
    2471         //  return;
    2472        
    2473         if (isset($args['taxonomy']))
    2474             $taxonomy = $args['taxonomy'];
    2475         else
    2476             $taxonomy = 'category';
     2392    function se_widget_categories_dropdown_args_proc($args)
     2393    {
     2394        if ((isset($args['include'])) || (isset($args['exclude'])))
     2395            return;
    24772396           
    24782397        $this->se_load_config();
    2479                
    2480         $this->FILTER_STATE = array();
    2481         $this->FILTER_STATE[] = 'widget_categories_args';       
    2482        
    2483         if ( (isset($this->se_cfg['data']['taxonomies'][$taxonomy]['terms']['widget_category']))
    2484           && (count($this->se_cfg['data']['taxonomies'][$taxonomy]['terms']['widget_category'])) )
    2485         {
    2486             $action = $this->se_cfg['data']['taxonomies'][$taxonomy]['actions']['widget_category'];
    2487             $terms  = $this->se_cfg['data']['taxonomies'][$taxonomy]['terms']['widget_category'];
     2398       
     2399        //echo "widget_category<pre>"; print_r($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category']); echo "</pre>";
     2400       
     2401        if ( (isset($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category']))
     2402          && (count($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category'])) )
     2403        {
     2404            $action = $this->se_cfg['data']['taxonomies']['category']['actions']['widget_category'];
     2405            $terms  = $this->se_cfg['data']['taxonomies']['category']['terms']['widget_category'];
    24882406
    24892407            $all_cat_ids = array();
     
    25122430            }
    25132431        }
    2514                
    2515         //echo "AFTER: args<pre>"; print_r($args); echo "</pre>";
    25162432        return $args;
    25172433    }
    2518    
    2519 //  function se_wp_list_categories_proc($output, $args) {
    2520 //      $this->FILTER_STATE[] = 'wp_list_categories';
    2521 //      //echo "output<pre>"; print_r($output); echo "</pre>";
    2522 //      //echo "args<pre>"; print_r($args); echo "</pre>";
    2523 //     
    2524 //      return $args;
    2525 //  }
    2526    
    2527     function get_categories_taxonomy_proc( $taxonomy, $args ) {
    2528         $this->FILTER_STATE[] = 'get_categories_taxonomy';     
    2529        
    2530         return $taxonomy;
    2531     }
    2532    
    2533     function se_get_terms_proc( $terms, $taxonomies, $args ) {
    2534         //echo "FILTER_STATE<pre>"; print_r($this->FILTER_STATE); echo "</pre>";
    2535        
    2536         //echo "BEFORE: terms<pre>"; print_r($terms); echo "</pre>";
    2537        
    2538         if (count($this->FILTER_STATE) < 2) return $terms;
    2539         if (($this->FILTER_STATE[0] == 'widget_categories_args') && ($this->FILTER_STATE[1] = 'get_categories_taxonomy')) {
    2540            
    2541             //echo "terms<pre>"; print_r($terms); echo "</pre>";
    2542             //echo "taxonomies<pre>"; print_r($taxonomies); echo "</pre>";
    2543             //echo "args<pre>"; print_r($args); echo "</pre>";
    2544 
    2545             //echo "se_cfg[data]<br />"; print_r($this->se_cfg['data']['post_types']); echo "</pre>";
    2546            
    2547             if ( (isset($this->se_cfg['data']['post_types'])) && (count($this->se_cfg['data']['post_types'])) ) {
    2548                 foreach($this->se_cfg['data']['post_types'] as $post_type => $post_type_set) {
    2549                     //echo "post_type[". $post_type ."]<pre>"; print_r($post_type_set); echo "</pre>";
    2550 
    2551                     if ((isset($post_type_set['actions']['is_archive'])) && ($post_type_set['actions']['is_archive'] == 'e')
    2552                      && (isset($post_type_set['terms']['is_archive'])) && (!empty($post_type_set['terms']['is_archive']))) {
    2553                    
    2554                         $post_type_taxonomy_names = get_object_taxonomies( $post_type );
    2555                         if (!empty($post_type_taxonomy_names)) {
    2556                             //echo "post_type_taxonomy_names<pre>"; print_r($post_type_taxonomy_names); echo "</pre>";
    2557                            
    2558                             $common_taxonomy_names = array_intersect_assoc($taxonomies, $post_type_taxonomy_names);
    2559                             if (!empty($common_taxonomy_names)) {
    2560                                 //echo "common_taxonomy_names<pre>"; print_r($common_taxonomy_names); echo "</pre>";
    2561                                
    2562                                 foreach($common_taxonomy_names as $common_taxonomy_name) {
    2563                                     foreach($post_type_set['terms']['is_archive'] as $post_id => $state) {
    2564                                         //echo "post_id[". $post_id ."] common_taxonomy_name[". $common_taxonomy_name ."]<br />";
    2565                                         $post_terms = get_the_terms( $post_id, $common_taxonomy_name );
    2566                                         //echo "post_terms<pre>"; print_r($post_terms); echo "</pre>";
    2567                                         if (!empty($post_terms)) {
    2568                                             foreach($post_terms as $post_term_idx => $post_term) {
    2569                                                 foreach($terms as $term_idx => $term) {
    2570                                                     if ($post_term->term_id == $term->term_id) {
    2571                                                         if ($term->count > 0) {
    2572                                                             $terms[$term_idx]->count -= 1;
    2573                                                         }
    2574                                                     }
    2575                                                 }
    2576                                             }
    2577                                         }
    2578                                     }
    2579                                 }
    2580                             }
    2581                         }
    2582                     }
    2583                 }
    2584             }
    2585         }
    2586         foreach($terms as $term_idx => $term) {
    2587             if ($term->count == 0) {
    2588                 unset($terms[$term_idx]);
    2589             }
    2590         }
    2591         $terms = array_values($terms);
    2592         //echo "AFTER: terms<pre>"; print_r($terms); echo "</pre>";
    2593         return $terms;
    2594     }
    2595 
    25962434   
    25972435    // The tag Cloud widget now supports using either taxonomy (post_tag or category).
     
    26952533    }
    26962534   
    2697     function se_widget_recent_posts_proc($args) {
    2698         //echo "args<pre>"; print_r($args); echo "</pre>";
     2535    function se_widget_getarchives_where($where_sql) {
     2536
     2537        if (is_admin()) return $where_sql;
    26992538       
    27002539        $this->se_load_config();
    27012540       
    2702         //echo "se_cfg<pre>"; print_r($this->se_cfg); echo "</pre>";
    27032541        $action_data = $this->se_get_action_data('is_archive');         
    2704         //echo "action_data<pre>"; print_r($action_data); echo "</pre>";
    2705         //die();
    27062542       
    27072543        $post__in = array();
     
    27132549                   
    27142550                    foreach($key_data as $key_key => $key_key_data) {
    2715                         //echo "key_key[". $key_key ."]<br />";
    2716                         //echo "key_key_data<pre>"; print_r($key_key_data); echo "</pre>";
    2717                        
    27182551                        if ($key_key_data['actions'] == 'e') {
    27192552                            $post__not_in = array_merge($post__not_in, $key_key_data['terms']);
     
    27262559                   
    27272560                    foreach($key_data as $key_key => $key_key_data) {
    2728                         //echo "key_key[". $key_key ."]<br />";
    2729                         //echo "key_key_data<pre>"; print_r($key_key_data); echo "</pre>";
    27302561                        if ((isset($key_key_data['terms'])) && (!empty($key_key_data['terms']))) {
    27312562                            $posts_ids = get_objects_in_term( $key_key_data['terms'], $key_key );
    27322563                            if ( !is_wp_error( $posts_ids ) ) {
    2733                                 //echo "posts_ids<pre>"; print_r($posts_ids); echo "</pre>";
    2734                        
    27352564                                if ($key_key_data['actions'] == 'e') {
    27362565                                    $post__not_in = array_merge($post__not_in, $posts_ids);
     
    27462575       
    27472576        if (!empty($post__not_in)) {
    2748             if (isset($args['post__not_in'])) {
    2749                 $args['post__not_in'] = array_unique(array_merge($args['post__not_in'], $post__not_in));
    2750             } else {
    2751                 $args['post__not_in'] = array_unique($post__not_in);
    2752             }
    2753             //$where_sql .= " AND ID NOT IN(". implode(',', $post__not_in) .") ";
     2577            $where_sql .= " AND ID NOT IN(". implode(',', $post__not_in) .") ";
    27542578           
    27552579        } else if (!empty($post__in)) {
    2756             if (isset($args['post__in'])) {
    2757                 $args['post__in'] = array_unique(array_merge($args['post__in'], $post__not_in));
    2758             } else {
    2759                 $args['post__in'] = array_unique($post__in);
    2760             }
     2580            $where_sql .= " AND ID IN(". implode(',', $post__not_in) .") ";
    27612581        }       
    2762         //echo "args<pre>"; print_r($args); echo "</pre>";
    2763         return $args;
    2764     }
    2765    
    2766     function se_widget_getarchives_where($where_sql) {
    2767         if (is_admin()) return $where;
    2768        
    2769         //echo "where_sql[". $where_sql ."]<br />";
    2770         //echo "args<pre>"; print_r($args); echo "</pre>";
    2771        
    2772         $this->se_load_config();
    2773        
    2774         //echo "se_cfg<pre>"; print_r($this->se_cfg); echo "</pre>";
    2775         $action_data = $this->se_get_action_data('is_archive');         
    2776         //echo "action_data<pre>"; print_r($action_data); echo "</pre>";
    2777         //die();
    2778        
    2779        
    2780         $post__in = array();
    2781         $post__not_in = array();
    2782        
    2783         if ($action_data) {
    2784             foreach($action_data as $key => $key_data) {
    2785                 if ($key == "post_types") {
    2786                    
    2787                     foreach($key_data as $key_key => $key_key_data) {
    2788                         //echo "key_key[". $key_key ."]<br />";
    2789                         //echo "key_key_data<pre>"; print_r($key_key_data); echo "</pre>";
    2790                        
    2791                         if ($key_key_data['actions'] == 'e') {
    2792                             $post__not_in = array_merge($post__not_in, $key_key_data['terms']);
    2793                            
    2794                         } else if ($key_key_data['actions'] == 'i') {
    2795                             $post__in = array_merge($post__in, $key_key_data['terms']);
    2796                         }
    2797                     }
    2798                 } else if ($key == "taxonomies") {
    2799                    
    2800                     foreach($key_data as $key_key => $key_key_data) {
    2801                         //echo "key_key[". $key_key ."]<br />";
    2802                         //echo "key_key_data<pre>"; print_r($key_key_data); echo "</pre>";
    2803                         if ((isset($key_key_data['terms'])) && (!empty($key_key_data['terms']))) {
    2804                             $posts_ids = get_objects_in_term( $key_key_data['terms'], $key_key );
    2805                             if ( !is_wp_error( $posts_ids ) ) {
    2806                                 //echo "posts_ids<pre>"; print_r($posts_ids); echo "</pre>";
    2807                        
    2808                                 if ($key_key_data['actions'] == 'e') {
    2809                                     $post__not_in = array_merge($post__not_in, $posts_ids);
    2810                                 } else if ($key_key_data['actions'] == 'i') {
    2811                                     $post__in = array_merge($post__in, $posts_ids);
    2812                                 }
    2813                             }
    2814                         }
    2815                     }
    2816                 }
    2817             }
    2818         }
    2819        
    2820         if (!empty($post__not_in)) {
    2821             //echo "post__not_in<pre>"; print_r($post__not_in); echo "</pre>";
    2822             $where_sql .= " AND ID NOT IN(". implode(',', array_unique($post__not_in)) .") ";
    2823            
    2824         } else if (!empty($post__in)) {
    2825             //echo "post__in<pre>"; print_r($post__in); echo "</pre>";
    2826             $where_sql .= " AND ID IN(". implode(',', array_unique($post__not_in)) .") ";
    2827         }
    2828         //echo "where_sql[". $where_sql ."]<br />";
    2829        
    28302582        return $where_sql;
    28312583    }
     
    30762828            case 'users':
    30772829                ?>
    3078                 <p><?php _e("Set the checkbox to exclude the User items from the action", 'simply-exclude'); ?></p>
    3079                 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", 'simply-exclude'); ?></p>
    3080                 <p><strong><?php _e("Include only", 'simply-exclude'); ?></strong>: <?php _e("For example you have 3 Users but always want to show Posts for only 1  specific User in the Archives. New Users are automatically hidden.", 'simply-exclude'); ?></p>
    3081                 <p><strong><?php _e("Exclude", 'simply-exclude'); ?></strong>: <?php _e("For example you have 3 Users but want to hide Posts from one User in the Archives. New Users will by visible.", 'simply-exclude'); ?></p>
     2830                <p><?php _e("Set the checkbox to exclude the User items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2831                <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2832                <p><strong><?php _e("Include only", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 3 Users but always want to show Posts for only 1  specific User in the Archives. New Users are automatically hidden.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2833                <p><strong><?php _e("Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 3 Users but want to hide Posts from one User in the Archives. New Users will by visible.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    30822834               
    30832835                <?php
     
    30862838            case 'taxonomy':
    30872839                ?>
    3088                 <p><?php _e("Set the checkbox to exclude the Taxonomy items from the action", 'simply-exclude'); ?></p>
    3089                 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", 'simply-exclude'); ?></p>
    3090                 <p><strong><?php _e("Include only", 'simply-exclude'); ?></strong>: <?php _e("For example you have 100 tags but only always want 3 to be used on the home page. New tags added are automatically hidden.", 'simply-exclude'); ?></p>
    3091                 <p><strong><?php _e("Exclude", 'simply-exclude'); ?></strong>: <?php _e("For example you have 100 categories but want to hide 3 from being seen. New tags will be visible.", 'simply-exclude'); ?></p>
     2840                <p><?php _e("Set the checkbox to exclude the Taxonomy items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2841                <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2842                <p><strong><?php _e("Include only", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 100 tags but only always want 3 to be used on the home page. New tags added are automatically hidden.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2843                <p><strong><?php _e("Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 100 categories but want to hide 3 from being seen. New tags will be visible.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    30922844                <?php
    30932845                break;
     
    30952847            case 'post_type':
    30962848                ?>
    3097                 <p><?php _e("Set the checkbox to exclude the Post Type items from the action", 'simply-exclude'); ?></p>
    3098                 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", 'simply-exclude'); ?></p>
    3099                 <p><strong><?php _e("Include only", 'simply-exclude'); ?></strong>: <?php _e("For example you have 10 Pages but only always want to include only 4 Pages shown in a Search. New Pages are automatically hidden.", 'simply-exclude'); ?></p>
    3100                 <p><strong><?php _e("Exclude", 'simply-exclude'); ?></strong>: <?php _e("For example you have 10 Pages and want to hide 3 specific Pages from Search. New Pages will be visible.", 'simply-exclude'); ?></p>
     2849                <p><?php _e("Set the checkbox to exclude the Post Type items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2850                <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2851                <p><strong><?php _e("Include only", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 10 Pages but only always want to include only 4 Pages shown in a Search. New Pages are automatically hidden.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     2852                <p><strong><?php _e("Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 10 Pages and want to hide 3 specific Pages from Search. New Pages will be visible.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    31012853                <?php
    31022854                break;
     
    31132865        <div id="howto-se-manage-settings-metaboxes-general" class="wrap">
    31142866            <?php screen_icon('options-general'); ?>
    3115             <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", 'simply-exclude');
     2867            <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN);
    31162868                foreach( $this->tabs as $tab => $name ){
    31172869
     
    31322884
    31332885                                case 'post_types':
     2886                                    //add_meta_box('se_display_options_post_type_actions_panel', 'Post Types Actions',
     2887                                    //  array(&$this, 'se_display_options_post_type_actions_panel'),
     2888                                    //  $this->pagehooks['se_manage_settings'], 'normal', 'core');
    31342889                                    $this->se_display_options_post_type_actions_panel();                                   
    31352890                                    break;
    31362891
    31372892                                case 'users':
     2893                                    //add_meta_box('se_display_options_user_actions_panel', 'Users Actions', array(&$this, 'se_display_options_user_actions_panel'),
     2894                                    //  $this->pagehooks['se_manage_settings'], 'normal', 'core');
    31382895                                    $this->se_display_options_user_actions_panel();
    31392896                                    break;
     
    31412898                                case 'taxonomies':
    31422899                                default:
     2900                                    //add_meta_box('se_display_options_taxonomy_actions_panel', 'Taxonomies Actions',
     2901                                    //  array(&$this, 'se_display_options_taxonomy_actions_panel'),
     2902                                    //  $this->pagehooks['se_manage_settings'], 'normal', 'core');
    31432903                                    $this->se_display_options_taxonomy_actions_panel();
    31442904                                    break;
     
    32182978        ?>
    32192979        <div class="postbox">
    3220             <h3 class="simplyexclude-section-title"><?php _e('Users', 'simply-exclude'); ?></h3>
     2980            <h3 class="simplyexclude-section-title"><?php _e('Users', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h3>
    32212981            <div class="inside">
    32222982            <?php
     
    32403000                $this->se_save_config();
    32413001               
    3242                 ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', 'simply-exclude'); ?></strong></p><?php
     3002                ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong></p><?php
    32433003            }           
    32443004        }
    32453005        ?><p><?php _e('Version 2.0 and 2.0.1 of the plugins incorrectly converted your previous configuration of excluded items into a new format. You can use this
    3246             option to force a reload of your Simply Exclude configuration into the new format.', 'simply-exclude'); ?></p>
     3006            option to force a reload of your Simply Exclude configuration into the new format.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    32473007       
    32483008        <form name="" method="post" action"">
     
    32513011                <option value="Yes">Yes</option>
    32523012            </select><br />
    3253             <input type="submit" value="<?php _e('Reload Configuration', 'simply-exclude'); ?>" />
     3013            <input type="submit" value="<?php _e('Reload Configuration', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>" />
    32543014           
    32553015        </form>
     
    32603020    {
    32613021        ?>
    3262         <p><?php _e('The Simply Exclude plugin now works with a few other plugins. Check the box for support of the listed third party plugins options below', 'simply-exclude'); ?></p>
    3263         <p><?php _e('When you update this section you will then also need to go back into the Simply Exclude Category or Pages section and re-save the settings. This re-save will then update the third-party plugin settings with the update excluded values. On the respective Category or Pages sections of Simply Exclude you can use either include or exclude action.', 'simply-exclude'); ?></p>
    3264         <p style="color: #ff0000"><?php _e('Warning: Once enabled it is suggested you make edits to the exclusion/inclusion via Simply Exclude. Any Page or Category exclusion made in the third-party plugins will be over written by changed from Simply Exclude.', 'simply-exclude'); ?></p>
     3022        <p><?php _e('The Simply Exclude plugin now works with a few other plugins. Check the box for support of the listed third party plugins options below', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     3023        <p><?php _e('When you update this section you will then also need to go back into the Simply Exclude Category or Pages section and re-save the settings. This re-save will then update the third-party plugin settings with the update excluded values. On the respective Category or Pages sections of Simply Exclude you can use either include or exclude action.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
     3024        <p style="color: #ff0000"><?php _e('Warning: Once enabled it is suggested you make edits to the exclusion/inclusion via Simply Exclude. Any Page or Category exclusion made in the third-party plugins will be over written by changed from Simply Exclude.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    32653025
    32663026        <table id="simplyexclude-options-thirdparty-panel" class="widefat simplyexclude-actions-panel" cellpadding="3" cellspacing="3" border="0">
    32673027        <thead>
    32683028        <tr>
    3269             <th class="action"><?php _e('Plugin Name', 'simply-exclude') ?></th>
    3270             <th class="description"><?php _e('Description of Functionality', 'simply-exclude') ?></th>
    3271             <th class="inc-excl"><?php _e('Actions', 'simply-exclude') ?></th>
     3029            <th class="action"><?php _e('Plugin Name', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
     3030            <th class="description"><?php _e('Description of Functionality', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
     3031            <th class="inc-excl"><?php _e('Actions', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
    32723032        </tr>
    32733033        </thead>
     
    33243084    {
    33253085        ?><p><a class="" target="_blank" href="http://www.codehooligans.com/projects/wordpress/simply-exclude/"><?php
    3326             _e('Plugin Homepage', 'simply-exclude'); ?></a></p><?php
     3086            _e('Plugin Homepage', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></a></p><?php
    33273087       
    33283088    }
     
    33313091        ?>
    33323092        <p><?php _e('Show your support of this plugin by making a small donation to support future development. No donation amount too small.',
    3333             'simply-exclude'); ?></p>
     3093            SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
    33343094        <p><a class="" target="_blank" href="http://www.codehooligans.com/donations/"><?php
    3335             _e('Make a donation today', 'simply-exclude'); ?></a></p>
     3095            _e('Make a donation today', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></a></p>
    33363096        <?php
    33373097    }
     
    33423102        <div id="se-manage-help-metaboxes-general" class="wrap">
    33433103        <?php screen_icon('options-general'); ?>
    3344         <h2><?php _ex("Simply Exclude Help", "Options Page Title", 'simply-exclude'); ?></h2>
     3104        <h2><?php _ex("Simply Exclude Help", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h2>
    33453105       
    33463106            <div id="poststuff" class="metabox-holder has-right-sidebar simplyexclude-metabox-holder-right-sidebar">
Note: See TracChangeset for help on using the changeset viewer.