Simply Exclude - Version 2.0.6.4

Version Description

  • Corrected reported error with second argument on se_widget_getarchives_where().
  • 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.
Download this release

Release Info

Developer pmenard
Plugin Icon wp plugin Simply Exclude
Version 2.0.6.4
Comparing to
See all releases

Code changes from version 2.0.6.2 to 2.0.6.4

Files changed (2) hide show
  1. readme.txt +10 -3
  2. simplyexclude.php +532 -207
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: pmenard
3
  Donate link: http://www.codehooligans.com
4
  Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
5
- Requires at least: 3.7
6
- Tested up to: 3.9
7
- Stable tag: 2.0.6.2
8
  License: GPLv2
9
  License URI: http://www.opensource.org/licenses/GPL-2.0
10
 
@@ -50,6 +50,13 @@ At the time (version 1.6.1) the plugin only effects Pages included in the tradit
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
 
 
53
  = 2.0.6.2 =
54
  - Corrected reported issue related to undefined 'action' settings in the widget hooks. Thanks Arnold.
55
  - Cleanup some of the CSS related to settings used within the dashboard area.
2
  Contributors: pmenard
3
  Donate link: http://www.codehooligans.com
4
  Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author
5
+ Requires at least: 3.9
6
+ Tested up to: 4.2
7
+ Stable tag: 2.0.6.4
8
  License: GPLv2
9
  License URI: http://www.opensource.org/licenses/GPL-2.0
10
 
50
 
51
  == Changelog ==
52
 
53
+ = 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.
56
+
57
+ = 2.0.6.3 =
58
+ - Updated logic such that excluding posts for Archive will also automatically exclude post from Archive Widget. This way you don't get links showing from the widget that cause 404 errors. See support thread https://wordpress.org/support/topic/archive-month-shows-when-all-posts-in-month-are-excluded-giving-404-error
59
+
60
  = 2.0.6.2 =
61
  - Corrected reported issue related to undefined 'action' settings in the widget hooks. Thanks Arnold.
62
  - Cleanup some of the CSS related to settings used within the dashboard area.
simplyexclude.php CHANGED
@@ -4,11 +4,15 @@ Plugin Name: Simply Exclude
4
  Plugin URI: http://www.codehooligans.com/projects/wordpress/simply-exclude/
5
  Description: Provides an interface to selectively exclude/include all Taxonomies, Post Types and Users from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed. Also provides access to some of the common widgets user like tag cloud and categories listings.
6
  Author: Paul Menard
7
- Version: 2.0.6.2
8
  Author URI: http://www.codehooligans.com
 
 
 
 
 
9
  */
10
 
11
- define('SIMPLY_EXCLUDE_I18N_DOMAIN', 'simplyexclude');
12
 
13
  class SimplyExclude
14
  {
@@ -30,11 +34,13 @@ class SimplyExclude
30
  private $tabs = array();
31
  private $current_tab;
32
 
 
 
33
  public function __construct() {
34
 
35
- $this->se_version = "2.0.6.2";
36
 
37
- $this->admin_menu_label = __("Simply Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN);
38
  $this->options_key = "simplyexclude_v2";
39
 
40
  $plugindir_node = dirname(plugin_basename(__FILE__));
@@ -45,42 +51,83 @@ class SimplyExclude
45
  $this->page_hooks = array();
46
 
47
  /* Setup the tetdomain for i18n language handling see http://codex.wordpress.org/Function_Reference/load_plugin_textdomain */
48
- load_plugin_textdomain( SIMPLY_EXCLUDE_I18N_DOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
49
 
50
- add_action( 'init', array(&$this,'init_proc') );
51
- add_action( 'admin_init', array(&$this,'admin_init_proc') );
52
- add_action( 'admin_menu', array(&$this,'se_add_nav') );
53
- add_action( 'admin_footer', array(&$this,'se_admin_footer') );
54
- add_action( 'wp_ajax_se_update', array(&$this, 'se_ajax_update') );
 
 
 
 
 
 
 
 
 
55
 
56
  // Used to limit the categories displayed on the home page. Simple
57
- add_filter('pre_get_posts', array(&$this,'se_filters'), 999);
58
  }
59
 
60
  function admin_init_proc()
61
  {
62
 
63
  $this->tabs = array(
64
- 'taxonomies' => __('Taxonomies', SIMPLY_EXCLUDE_I18N_DOMAIN),
65
- 'post_types' => __('Post Types', SIMPLY_EXCLUDE_I18N_DOMAIN),
66
- 'users' => __('Users', SIMPLY_EXCLUDE_I18N_DOMAIN),
67
  );
68
  $this->current_tab = '';
69
 
70
  $this->se_load_config();
 
 
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  if ( ($this->check_url('wp-admin/edit-tags.php'))
73
  || ($this->check_url('wp-admin/edit.php'))
74
  || ($this->check_url('wp-admin/users.php')) )
75
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  wp_enqueue_style( 'simplyexclude-stylesheet', $this->plugindir_url .'/simplyexclude_style_admin.css', false, $this->se_version);
77
 
78
  wp_enqueue_script('jquery');
79
  wp_enqueue_script('jquery-ui-core');
80
  wp_enqueue_script('jquery-ui-dialog');
 
81
 
82
  wp_enqueue_style( 'simplyexclude-jquery-ui',
83
- $this->plugindir_url .'/js/jquery-ui/css/flick/jquery-ui-1.8.17.custom.css',
84
  null, $this->se_version );
85
 
86
  wp_enqueue_script('simplyexclude-admin-dialog-js', $this->plugindir_url .'/js/simplyexclude_admin_dialog.js',
@@ -89,23 +136,11 @@ class SimplyExclude
89
  wp_enqueue_script('simplyexclude-admin-ajax-js', $this->plugindir_url .'/js/simplyexclude_admin_ajax.js',
90
  array('jquery', 'jquery-ui-core'), $this->se_version);
91
  }
92
-
93
- add_action('edit_category_form_fields', array(&$this,'se_show_taxonomy_term_fields'), 99, 1);
94
- add_action('edit_tag_form_fields', array(&$this,'se_show_taxonomy_term_fields'), 99, 1);
95
- add_action('edited_term', array(&$this,'se_save_taxonomy_term_fields'), 99, 3);
96
-
97
- add_action( 'show_user_profile', array(&$this,'se_show_user_profile'), 99 );
98
- add_action( 'edit_user_profile', array(&$this,'se_show_user_profile'), 99 );
99
-
100
- add_action( 'profile_update', array(&$this,'se_save_user_profile'), 99);
101
-
102
- add_filter( 'plugin_action_links_'. basename( dirname( __FILE__ ) ). '/' .basename( __FILE__ ), array(&$this,'plugin_settings'));
103
-
104
  }
105
 
106
  // Adds a 'Settings' link on the Plugins listing row. Cool!
107
  function plugin_settings( $links ) {
108
- $settings_link = '<a href="admin.php?page=se_manage_settings">'.__( 'Settings', SIMPLY_EXCLUDE_I18N_DOMAIN ).'</a>';
109
  array_unshift( $links, $settings_link );
110
 
111
  return $links;
@@ -115,17 +150,27 @@ class SimplyExclude
115
  {
116
  if (!is_admin())
117
  {
118
- add_filter('widget_pages_args', array(&$this, 'se_widget_pages_args_proc'));
119
 
120
  // Not needed since wp_list_pages is user managable.
121
- //aad_filter('wp_list_pages_excludes', array(&$this, 'se_wp_list_pages_excludes_proc'));
122
 
123
  // Suport for the Category list/dropdown widget
124
- add_filter('widget_categories_dropdown_args', array(&$this, 'se_widget_categories_dropdown_args_proc'));
125
- add_filter('widget_categories_args', array(&$this, 'se_widget_categories_dropdown_args_proc'));
 
 
 
 
126
 
127
  // Support for the Tag Clod widget. This widget supports both the post_tag and category taxonomies.
128
- add_filter('widget_tag_cloud_args', array(&$this, 'se_widget_tag_cloud_args_proc'));
 
 
 
 
 
 
129
  }
130
  }
131
 
@@ -133,18 +178,18 @@ class SimplyExclude
133
  {
134
  // Add the Main Nav item to the WP menu
135
  add_menu_page( 'Simply Exclude', 'Simply Exclude', 'manage_options', 'se_manage_settings',
136
- array(&$this, 'se_manage_settings'));
137
 
138
  // Add our Options sub menu.
139
  $this->pagehooks['se_manage_settings'] = add_submenu_page( 'se_manage_settings', 'Settings', 'Settings', 'manage_options',
140
- 'se_manage_settings', array(&$this, 'se_manage_settings'));
141
- add_action('load-'. $this->pagehooks['se_manage_settings'], array(&$this, 'on_load_settings_page'));
142
 
143
 
144
  // Add our Help sub menu.
145
  $this->pagehooks['se_manage_help'] = add_submenu_page( 'se_manage_settings', 'Help', 'Help', 'manage_options',
146
- 'se_manage_help', array(&$this, 'se_manage_help'));
147
- add_action('load-'. $this->pagehooks['se_manage_help'], array(&$this, 'on_load_help_page'));
148
 
149
  if ( !current_user_can('manage_options') )
150
  return;
@@ -160,11 +205,11 @@ class SimplyExclude
160
  if ((isset($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide']))
161
  && ($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide'] == 'show'))
162
  {
163
- add_filter( "manage_edit-". $t_item->name ."_columns", array( &$this, 'se_manage_taxonomy_columns' ), 99, 1);
164
- add_filter( "manage_". $t_item->name. "_custom_column", array(&$this, 'se_display_taxonomy_column_filters'), 99, 3);
165
  }
166
  }
167
- //add_action("delete_term", array(&$this, 'se_delete_taxonomy_term'), 99, 3);
168
  }
169
 
170
  // Now add a submenu for each registered post_type
@@ -176,11 +221,11 @@ class SimplyExclude
176
  if ((isset($this->se_cfg['data']['post_types'][$t_item->name]['options']['showhide']))
177
  && ($this->se_cfg['data']['post_types'][$t_item->name]['options']['showhide'] == 'show'))
178
  {
179
- add_filter( "manage_". $t_item->name ."_posts_columns", array( &$this, 'se_manage_post_type_columns' ), 99 );
180
- add_action( "manage_". $t_item->name ."_posts_custom_column", array(&$this, 'se_display_post_type_column_actions'), 99, 2);
181
 
182
- add_meta_box($this->options_key, $this->admin_menu_label, array(&$this,'show_post_type_exclude_sidebar_dbx'), $t_item->name, 'side');
183
- add_action('save_post', array(&$this,'save_post_type_exclude_sidebar_dbx'));
184
  }
185
  }
186
  }
@@ -189,8 +234,8 @@ class SimplyExclude
189
  if ((isset($this->se_cfg['data']['se_types']['users']['options']['showhide']))
190
  && ($this->se_cfg['data']['se_types']['users']['options']['showhide'] == 'show'))
191
  {
192
- add_filter( "manage_users_columns", array( &$this, 'se_manage_user_columns' ), 99 );
193
- add_filter( 'manage_users_custom_column', array(&$this, 'se_display_user_column_actions'), 99, 3);
194
  }
195
  }
196
 
@@ -231,9 +276,9 @@ class SimplyExclude
231
  $this->current_tab = 'taxonomies';
232
  }
233
 
234
- add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'),
235
  $this->pagehooks['se_manage_settings'], 'side', 'core');
236
- add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'),
237
  $this->pagehooks['se_manage_settings'], 'side', 'core');
238
 
239
  }
@@ -260,9 +305,9 @@ class SimplyExclude
260
  wp_enqueue_script('jquery-ui-accordion');
261
  }
262
 
263
- add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'),
264
  $this->pagehooks['se_manage_help'], 'side', 'core');
265
- add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'),
266
  $this->pagehooks['se_manage_help'], 'side', 'core');
267
  }
268
 
@@ -303,8 +348,8 @@ class SimplyExclude
303
  <td class="description"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'description');//$action_val['description'] ?></td>
304
  <td class="inc-excl">
305
  <ul class="se-actions-list">
306
- <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
307
- <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
308
  </td>
309
  <tr>
310
  <?php
@@ -346,17 +391,17 @@ class SimplyExclude
346
  <td class="inc-excl">
347
  <ul class="se-actions-list">
348
 
349
- <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
350
- <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
351
  <?php
352
  if (($action_key == "is_home")
353
  && ((isset($this->current_post_type['options']['capability_type']))
354
  && ($this->current_post_type['options']['capability_type'] == "post"))) {
355
- ?><li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="a" <?php if ($action_val == 'a') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a"><?php _e('Include All', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li><?php
356
  } else if (($action_key == "is_feed")
357
  && ((isset($this->current_post_type['options']['capability_type']))
358
  && ($this->current_post_type['options']['capability_type'] == "post"))) {
359
- ?><li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="a" <?php if ($action_val == 'a') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_a"><?php _e('Include All', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li><?php
360
  }
361
  ?>
362
  </td>
@@ -399,8 +444,8 @@ class SimplyExclude
399
  <td class="description"><?php echo $this->get_se_type_action_label($se_type, $action_key, 'description'); ?></td>
400
  <td class="inc-excl">
401
  <ul class="se-actions-list">
402
- <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
403
- <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li>
404
  </td>
405
  <tr>
406
  <?php
@@ -432,19 +477,19 @@ class SimplyExclude
432
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
433
  <thead>
434
  <tr>
435
- <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
436
  </tr>
437
  </thead>
438
  <tbody>
439
  <tr>
440
- <td class="description"><?php _e("Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
441
  <td class="inc-excl">
442
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="yes"
443
  <?php if ($this->current_taxonomy['options']['active'] == 'yes')
444
- echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
445
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="no"
446
  <?php if ($this->current_taxonomy['options']['active'] == 'no')
447
- echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
448
  </td>
449
  </tr>
450
  </tbody>
@@ -466,19 +511,19 @@ class SimplyExclude
466
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
467
  <thead>
468
  <tr>
469
- <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
470
  </tr>
471
  </thead>
472
  <tbody>
473
  <tr>
474
- <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>
475
  <td class="inc-excl">
476
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="yes"
477
  <?php if ($this->current_post_type['options']['active'] == 'yes')
478
- echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
479
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="no"
480
  <?php if ($this->current_post_type['options']['active'] == 'no')
481
- echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
482
  </td>
483
  </tr>
484
  </tbody>
@@ -500,19 +545,19 @@ class SimplyExclude
500
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
501
  <thead>
502
  <tr>
503
- <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
504
  </tr>
505
  </thead>
506
  <tbody>
507
  <tr>
508
- <td class="description"><?php _e("Active?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
509
  <td class="inc-excl">
510
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="yes"
511
  <?php if ($this->current_se_type['options']['active'] == 'yes')
512
- echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
513
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="no"
514
  <?php if ($this->current_se_type['options']['active'] == 'no')
515
- echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
516
  </td>
517
  </tr>
518
  </tbody>
@@ -541,19 +586,19 @@ class SimplyExclude
541
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
542
  <thead>
543
  <tr>
544
- <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
545
  </tr>
546
  </thead>
547
  <tbody>
548
  <tr>
549
- <td class="description"><?php _e("Show the extra columns on the Taxonomy listing and the Taxonomy edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
550
  <td class="inc-excl">
551
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="show"
552
  <?php if ($this->current_taxonomy['options']['showhide'] == 'show')
553
- echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
554
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="hide"
555
  <?php if ($this->current_taxonomy['options']['showhide'] == 'hide')
556
- echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
557
  </td>
558
  </tr>
559
  </table>
@@ -572,19 +617,19 @@ class SimplyExclude
572
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
573
  <thead>
574
  <tr>
575
- <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
576
  </tr>
577
  </thead>
578
  <tbody>
579
  <tr>
580
- <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>
581
  <td class="inc-excl">
582
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="show"
583
  <?php if ($this->current_post_type['options']['showhide'] == 'show')
584
- echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
585
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="hide"
586
  <?php if ($this->current_post_type['options']['showhide'] == 'hide')
587
- echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
588
  </td>
589
  </tr>
590
  </table>
@@ -603,19 +648,19 @@ class SimplyExclude
603
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
604
  <thead>
605
  <tr>
606
- <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
607
  </tr>
608
  </thead>
609
  <tbody>
610
  <tr>
611
- <td class="description"><?php _e("Show the extra columns on the listing and the edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td>
612
  <td class="inc-excl">
613
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="show"
614
  <?php if ($this->current_se_type['options']['showhide'] == 'show')
615
- echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
616
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="hide"
617
  <?php if ($this->current_se_type['options']['showhide'] == 'hide')
618
- echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
619
  </td>
620
  </tr>
621
  </table>
@@ -646,22 +691,22 @@ class SimplyExclude
646
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
647
  <thead>
648
  <tr>
649
- <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
650
  </tr>
651
  </thead>
652
  <tbody>
653
  <tr>
654
  <td class="description">
655
- <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p>
656
- <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>
657
  </td>
658
  <td class="inc-excl">
659
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="main"
660
  <?php if ($this->current_taxonomy['options']['qover'] == 'main')
661
- echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
662
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="all"
663
  <?php if ($this->current_taxonomy['options']['qover'] == 'all')
664
- echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
665
  </td>
666
  </tr>
667
  </table>
@@ -681,22 +726,22 @@ class SimplyExclude
681
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
682
  <thead>
683
  <tr>
684
- <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
685
  </tr>
686
  </thead>
687
  <tbody>
688
  <tr>
689
  <td class="description">
690
- <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p>
691
- <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>
692
  </td>
693
  <td class="inc-excl">
694
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="main"
695
  <?php if ($this->current_post_type['options']['qover'] == 'main')
696
- echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
697
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="all"
698
  <?php if ($this->current_post_type['options']['qover'] == 'all')
699
- echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
700
  </td>
701
  </tr>
702
  </table>
@@ -716,22 +761,22 @@ class SimplyExclude
716
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
717
  <thead>
718
  <tr>
719
- <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
720
  </tr>
721
  </thead>
722
  <tbody>
723
  <tr>
724
  <td class="description">
725
- <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p>
726
- <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>
727
  </td>
728
  <td class="inc-excl">
729
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="main"
730
  <?php if ($this->current_se_type['options']['qover'] == 'main')
731
- echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br />
732
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="all"
733
  <?php if ($this->current_se_type['options']['qover'] == 'all')
734
- echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>
735
  </td>
736
  </tr>
737
  </table>
@@ -747,8 +792,9 @@ class SimplyExclude
747
  function se_manage_taxonomy_columns($columns)
748
  {
749
  if (current_user_can('manage_options')) {
750
- if (!isset($columns['se-actions']))
751
- $columns['se-actions'] = '<a id="se-show-actions-panel" title="" href="#">'. __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
 
752
  }
753
  return $columns;
754
  }
@@ -756,8 +802,9 @@ class SimplyExclude
756
  function se_manage_post_type_columns($columns)
757
  {
758
  if (current_user_can('manage_options')) {
759
- if (!isset($columns['se_actions']))
760
- $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
 
761
  }
762
  return $columns;
763
  }
@@ -765,8 +812,9 @@ class SimplyExclude
765
  function se_manage_user_columns($columns)
766
  {
767
  if (current_user_can('manage_options')) {
768
- if (!isset($columns['se_actions']))
769
- $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>';
 
770
  }
771
  return $columns;
772
  }
@@ -870,6 +918,9 @@ class SimplyExclude
870
 
871
  if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions'])))
872
  {
 
 
 
873
  ?><ul class="se-actions-list"><?php
874
  foreach ($this->current_taxonomy['actions'] as $action_key => $action_val)
875
  {
@@ -881,7 +932,7 @@ class SimplyExclude
881
  if ((isset($this->current_taxonomy['terms'][$action_key][$term->term_id]))
882
  && ($this->current_taxonomy['terms'][$action_key][$term->term_id] == "on"))
883
  echo "checked='checked' ";
884
- ?> />&nbsp;<label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"
885
  class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label></li>
886
 
887
  <?php
@@ -911,8 +962,7 @@ class SimplyExclude
911
  if ((isset($this->current_post_type['terms'][$action_key][$p_item->ID]))
912
  && ($this->current_post_type['terms'][$action_key][$p_item->ID] == "on"))
913
  echo "checked='checked' ";
914
- ?> />&nbsp;<label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>">
915
- <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label></li>
916
 
917
  <?php
918
  }
@@ -941,8 +991,7 @@ class SimplyExclude
941
  if ((isset($this->current_se_type['terms'][$action_key][$user->ID]))
942
  && ($this->current_se_type['terms'][$action_key][$user->ID] == "on"))
943
  echo "checked='checked' ";
944
- ?> />&nbsp;<label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>">
945
- <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label></li>
946
 
947
  <?php
948
  }
@@ -1317,34 +1366,34 @@ class SimplyExclude
1317
  $this->se_cfg['options']['plugins'] = array();
1318
 
1319
  $this->se_cfg['options']['plugins']['google-sitemap-generator'] = array();
1320
- $this->se_cfg['options']['plugins']['google-sitemap-generator']['name'] = __("Google XML Sitemaps", SIMPLY_EXCLUDE_I18N_DOMAIN);
1321
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['url'] = "http://wordpress.org/extend/plugins/google-sitemap-generator/";
1322
- $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);
1323
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['version'] = "3.1.6";
1324
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['active'] = false;
1325
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['plugin_key'] = "google-sitemap-generator/sitemap.php";
1326
 
1327
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions'] = array();
1328
- $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['desc'] = __("Update Excluded Pages", SIMPLY_EXCLUDE_I18N_DOMAIN);
1329
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['update'] = false;
1330
- $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['desc'] = __("Update Excluded Categories", SIMPLY_EXCLUDE_I18N_DOMAIN);
1331
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['update'] = false;
1332
 
1333
 
1334
  $this->se_cfg['options']['plugins']['search-unleashed'] = array();
1335
- $this->se_cfg['options']['plugins']['search-unleashed']['name'] = __("Search Unleashed", SIMPLY_EXCLUDE_I18N_DOMAIN);
1336
  $this->se_cfg['options']['plugins']['search-unleashed']['url'] = "http://wordpress.org/extend/plugins/search-unleashed/";
1337
- $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);
1338
  $this->se_cfg['options']['plugins']['search-unleashed']['version'] = "1.0.5";
1339
  $this->se_cfg['options']['plugins']['search-unleashed']['active'] = false;
1340
  $this->se_cfg['options']['plugins']['search-unleashed']['plugin_key'] = "search-unleashed/search-unleashed.php";
1341
 
1342
  $this->se_cfg['options']['plugins']['search-unleashed']['actions'] = array();
1343
- $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['desc'] = __("Update Excluded Pages", SIMPLY_EXCLUDE_I18N_DOMAIN);
1344
  $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['update'] = false;
1345
- $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['desc'] = __("Update Excluded Categories", SIMPLY_EXCLUDE_I18N_DOMAIN);
1346
  $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['update'] = false;
1347
- $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);
1348
 
1349
  foreach($this->se_cfg['options']['plugins'] as $plugin => $plugin_data)
1350
  {
@@ -1636,13 +1685,15 @@ class SimplyExclude
1636
 
1637
  if ($taxonomy == "category")
1638
  {
1639
- $taxonomy_actions['widget_category'] = "e";
1640
- $taxonomy_actions['widget_tag_cloud'] = "e";
 
1641
  }
1642
 
1643
  if ($taxonomy == "post_tag")
1644
  {
1645
- $taxonomy_actions['widget_tag_cloud'] = "e";
 
1646
  }
1647
 
1648
  return $taxonomy_actions;
@@ -1659,10 +1710,13 @@ class SimplyExclude
1659
 
1660
  if ($post_type_object->capability_type == "post")
1661
  {
1662
- $taxonomy_actions['is_home'] = "i";
1663
- $taxonomy_actions['is_archive'] = "e";
1664
- $taxonomy_actions['is_search'] = "e";
1665
- $taxonomy_actions['is_feed'] = "e";
 
 
 
1666
  }
1667
  else if ($post_type == "page")
1668
  {
@@ -1708,11 +1762,11 @@ class SimplyExclude
1708
  switch($key)
1709
  {
1710
  case 'name':
1711
- return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);;
1712
  break;
1713
 
1714
  case 'description':
1715
- return __("Visibility on the front/main page.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1716
 
1717
  default:
1718
  return;
@@ -1725,11 +1779,11 @@ class SimplyExclude
1725
  switch($key)
1726
  {
1727
  case 'name':
1728
- return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
1729
  break;
1730
 
1731
  case 'description':
1732
- return __("Visibility on the archive of categories on the sidebar.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1733
 
1734
  default:
1735
  return;
@@ -1743,11 +1797,11 @@ class SimplyExclude
1743
  switch($key)
1744
  {
1745
  case 'name':
1746
- return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN);
1747
  break;
1748
 
1749
  case 'description':
1750
- return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1751
 
1752
  default:
1753
  return;
@@ -1761,11 +1815,11 @@ class SimplyExclude
1761
  switch($key)
1762
  {
1763
  case 'name':
1764
- return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN);
1765
  break;
1766
 
1767
  case 'description':
1768
- return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1769
 
1770
  default:
1771
  return;
@@ -1779,11 +1833,11 @@ class SimplyExclude
1779
  switch($key)
1780
  {
1781
  case 'name':
1782
- return __("Widget: Categories", SIMPLY_EXCLUDE_I18N_DOMAIN);
1783
  break;
1784
 
1785
  case 'description':
1786
- return __("Exclude from WordPress List Category Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1787
  break;
1788
 
1789
  default:
@@ -1800,11 +1854,11 @@ class SimplyExclude
1800
  switch($key)
1801
  {
1802
  case 'name':
1803
- return __("Widget: Tag Cloud", SIMPLY_EXCLUDE_I18N_DOMAIN);
1804
  break;
1805
 
1806
  case 'description':
1807
- return __("Exclude from WordPress Tag Cloud Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1808
  break;
1809
 
1810
  default:
@@ -1815,6 +1869,28 @@ class SimplyExclude
1815
  return;
1816
  break;
1817
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1818
  default:
1819
  return;
1820
  break;
@@ -1830,11 +1906,11 @@ class SimplyExclude
1830
  switch($key)
1831
  {
1832
  case 'name':
1833
- return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);
1834
  break;
1835
 
1836
  case 'description':
1837
- 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);
1838
 
1839
  default:
1840
  return;
@@ -1847,11 +1923,11 @@ class SimplyExclude
1847
  switch($key)
1848
  {
1849
  case 'name':
1850
- return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
1851
  break;
1852
 
1853
  case 'description':
1854
- return __("Visibility on the Post Type archive.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1855
 
1856
  default:
1857
  return;
@@ -1864,11 +1940,11 @@ class SimplyExclude
1864
  switch($key)
1865
  {
1866
  case 'name':
1867
- return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN);
1868
  break;
1869
 
1870
  case 'description':
1871
- return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1872
 
1873
  default:
1874
  return;
@@ -1881,11 +1957,11 @@ class SimplyExclude
1881
  switch($key)
1882
  {
1883
  case 'name':
1884
- return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN);
1885
  break;
1886
 
1887
  case 'description':
1888
- return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1889
 
1890
  default:
1891
  return;
@@ -1897,11 +1973,11 @@ class SimplyExclude
1897
  switch($key)
1898
  {
1899
  case 'name':
1900
- return __("Widget: Pages", SIMPLY_EXCLUDE_I18N_DOMAIN);
1901
  break;
1902
 
1903
  case 'description':
1904
- return __("Exclude from WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1905
 
1906
  default:
1907
  return;
@@ -1909,6 +1985,48 @@ class SimplyExclude
1909
  return;
1910
  break;
1911
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1912
  default:
1913
  return;
1914
  break;
@@ -1925,11 +2043,11 @@ class SimplyExclude
1925
  switch($key)
1926
  {
1927
  case 'name':
1928
- return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);
1929
  break;
1930
 
1931
  case 'description':
1932
- return __("Visibility on the front/main page.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1933
  break;
1934
 
1935
  default:
@@ -1943,11 +2061,11 @@ class SimplyExclude
1943
  switch($key)
1944
  {
1945
  case 'name':
1946
- return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN);
1947
  break;
1948
 
1949
  case 'description':
1950
- return __("Visibility on the archive of categories on the sidebar.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1951
  break;
1952
 
1953
  default:
@@ -1961,11 +2079,11 @@ class SimplyExclude
1961
  switch($key)
1962
  {
1963
  case 'name':
1964
- return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN);
1965
  break;
1966
 
1967
  case 'description':
1968
- return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1969
  break;
1970
 
1971
  default:
@@ -1979,11 +2097,11 @@ class SimplyExclude
1979
  switch($key)
1980
  {
1981
  case 'name':
1982
- return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN);
1983
  break;
1984
 
1985
  case 'description':
1986
- return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN);
1987
  break;
1988
 
1989
  default:
@@ -2014,7 +2132,7 @@ class SimplyExclude
2014
  return $query;
2015
 
2016
  // Check our debug
2017
- if (( current_user_can('manage_options') ) && (isset($_GET['SE_DEBUG'])))
2018
  $se_debug = true;
2019
  else
2020
  $se_debug = false;
@@ -2299,12 +2417,6 @@ class SimplyExclude
2299
  }
2300
 
2301
 
2302
-
2303
-
2304
-
2305
-
2306
-
2307
-
2308
  /****************************************************************************************************************************/
2309
  /* */
2310
  /* WIDGET FILTER LOGIC */
@@ -2351,20 +2463,28 @@ class SimplyExclude
2351
  return $args;
2352
  }
2353
 
2354
- function se_widget_categories_dropdown_args_proc($args)
2355
  {
2356
- if ((isset($args['include'])) || (isset($args['exclude'])))
2357
- return;
 
 
 
 
 
 
 
2358
 
2359
  $this->se_load_config();
 
 
 
2360
 
2361
- //echo "widget_category<pre>"; print_r($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category']); echo "</pre>";
2362
-
2363
- if ( (isset($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category']))
2364
- && (count($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category'])) )
2365
  {
2366
- $action = $this->se_cfg['data']['taxonomies']['category']['actions']['widget_category'];
2367
- $terms = $this->se_cfg['data']['taxonomies']['category']['terms']['widget_category'];
2368
 
2369
  $all_cat_ids = array();
2370
 
@@ -2391,9 +2511,89 @@ class SimplyExclude
2391
  $args['exclude'] = implode(',', $all_cat_ids);
2392
  }
2393
  }
 
 
2394
  return $args;
2395
  }
2396
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2397
  // The tag Cloud widget now supports using either taxonomy (post_tag or category).
2398
  function se_widget_tag_cloud_args_proc($args)
2399
  {
@@ -2494,9 +2694,142 @@ class SimplyExclude
2494
  return $args;
2495
  }
2496
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2497
 
2498
-
 
 
 
 
 
 
 
 
 
 
 
 
2499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2500
  function se_admin_footer()
2501
  {
2502
  if ( !current_user_can('manage_options') )
@@ -2742,29 +3075,29 @@ class SimplyExclude
2742
  switch ($item) {
2743
  case 'users':
2744
  ?>
2745
- <p><?php _e("Set the checkbox to exclude the User items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2746
- <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2747
- <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>
2748
- <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>
2749
 
2750
  <?php
2751
  break;
2752
 
2753
  case 'taxonomy':
2754
  ?>
2755
- <p><?php _e("Set the checkbox to exclude the Taxonomy items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2756
- <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2757
- <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>
2758
- <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>
2759
  <?php
2760
  break;
2761
 
2762
  case 'post_type':
2763
  ?>
2764
- <p><?php _e("Set the checkbox to exclude the Post Type items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2765
- <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2766
- <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>
2767
- <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>
2768
  <?php
2769
  break;
2770
 
@@ -2779,7 +3112,7 @@ class SimplyExclude
2779
  ?>
2780
  <div id="howto-se-manage-settings-metaboxes-general" class="wrap">
2781
  <?php screen_icon('options-general'); ?>
2782
- <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN);
2783
  foreach( $this->tabs as $tab => $name ){
2784
 
2785
  $class = ( $tab == $this->current_tab ) ? ' nav-tab-active' : '';
@@ -2798,23 +3131,15 @@ class SimplyExclude
2798
  switch ( $this->current_tab ) {
2799
 
2800
  case 'post_types':
2801
- //add_meta_box('se_display_options_post_type_actions_panel', 'Post Types Actions',
2802
- // array(&$this, 'se_display_options_post_type_actions_panel'),
2803
- // $this->pagehooks['se_manage_settings'], 'normal', 'core');
2804
  $this->se_display_options_post_type_actions_panel();
2805
  break;
2806
 
2807
  case 'users':
2808
- //add_meta_box('se_display_options_user_actions_panel', 'Users Actions', array(&$this, 'se_display_options_user_actions_panel'),
2809
- // $this->pagehooks['se_manage_settings'], 'normal', 'core');
2810
  $this->se_display_options_user_actions_panel();
2811
  break;
2812
 
2813
  case 'taxonomies':
2814
  default:
2815
- //add_meta_box('se_display_options_taxonomy_actions_panel', 'Taxonomies Actions',
2816
- // array(&$this, 'se_display_options_taxonomy_actions_panel'),
2817
- // $this->pagehooks['se_manage_settings'], 'normal', 'core');
2818
  $this->se_display_options_taxonomy_actions_panel();
2819
  break;
2820
  }
@@ -2892,7 +3217,7 @@ class SimplyExclude
2892
  $this->display_instructions('users');
2893
  ?>
2894
  <div class="postbox">
2895
- <h3 class="simplyexclude-section-title"><?php _e('Users', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h3>
2896
  <div class="inside">
2897
  <?php
2898
  $this->se_show_se_type_active_panel('users');
@@ -2914,18 +3239,18 @@ class SimplyExclude
2914
  $this->se_cfg = $local_cfg;
2915
  $this->se_save_config();
2916
 
2917
- ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong></p><?php
2918
  }
2919
  }
2920
  ?><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
2921
- option to force a reload of your Simply Exclude configuration into the new format.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
2922
 
2923
  <form name="" method="post" action"">
2924
  <select id="simple-exclude-configuration-reload" name="simple-exclude-configuration-reload">
2925
  <option value="">No</option>
2926
  <option value="Yes">Yes</option>
2927
  </select><br />
2928
- <input type="submit" value="<?php _e('Reload Configuration', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>" />
2929
 
2930
  </form>
2931
  <?php
@@ -2934,16 +3259,16 @@ class SimplyExclude
2934
  function se_options_thirdparty_panel()
2935
  {
2936
  ?>
2937
- <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>
2938
- <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>
2939
- <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>
2940
 
2941
  <table id="simplyexclude-options-thirdparty-panel" class="widefat simplyexclude-actions-panel" cellpadding="3" cellspacing="3" border="0">
2942
  <thead>
2943
  <tr>
2944
- <th class="action"><?php _e('Plugin Name', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
2945
- <th class="description"><?php _e('Description of Functionality', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
2946
- <th class="inc-excl"><?php _e('Actions', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th>
2947
  </tr>
2948
  </thead>
2949
  <tbody>
@@ -2998,16 +3323,16 @@ class SimplyExclude
2998
  function se_settings_about_sidebar()
2999
  {
3000
  ?><p><a class="" target="_blank" href="http://www.codehooligans.com/projects/wordpress/simply-exclude/"><?php
3001
- _e('Plugin Homepage', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></a></p><?php
3002
 
3003
  }
3004
  function se_settings_donate_sidebar()
3005
  {
3006
  ?>
3007
  <p><?php _e('Show your support of this plugin by making a small donation to support future development. No donation amount too small.',
3008
- SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p>
3009
  <p><a class="" target="_blank" href="http://www.codehooligans.com/donations/"><?php
3010
- _e('Make a donation today', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></a></p>
3011
  <?php
3012
  }
3013
 
@@ -3016,7 +3341,7 @@ class SimplyExclude
3016
  ?>
3017
  <div id="se-manage-help-metaboxes-general" class="wrap">
3018
  <?php screen_icon('options-general'); ?>
3019
- <h2><?php _ex("Simply Exclude Help", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h2>
3020
 
3021
  <div id="poststuff" class="metabox-holder has-right-sidebar simplyexclude-metabox-holder-right-sidebar">
3022
  <div id="side-info-column" class="inner-sidebar">
4
  Plugin URI: http://www.codehooligans.com/projects/wordpress/simply-exclude/
5
  Description: Provides an interface to selectively exclude/include all Taxonomies, Post Types and Users from the 4 actions used by WordPress. is_front, is_archive, is_search, is_feed. Also provides access to some of the common widgets user like tag cloud and categories listings.
6
  Author: Paul Menard
7
+ Version: 2.0.6.4
8
  Author URI: http://www.codehooligans.com
9
+ Text Domain: simply-exclude
10
+ Domain Path: /languages
11
+ License: GNU General Public License v2 or later
12
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
+
14
  */
15
 
 
16
 
17
  class SimplyExclude
18
  {
34
  private $tabs = array();
35
  private $current_tab;
36
 
37
+ private $FILTER_STATE = array();
38
+
39
  public function __construct() {
40
 
41
+ $this->se_version = "2.0.6.4";
42
 
43
+ $this->admin_menu_label = __("Simply Exclude", 'simply-exclude');
44
  $this->options_key = "simplyexclude_v2";
45
 
46
  $plugindir_node = dirname(plugin_basename(__FILE__));
51
  $this->page_hooks = array();
52
 
53
  /* 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') );
61
+
62
+ // In 2.0.6.4 added a define to allow control of the SE_FILTERS_PRIORITY
63
+ //https://wordpress.org/support/topic/first-install-problems-in-wordpress-40?replies=3#post-6579114
64
+ if (defined('SE_FILTERS_PRIORITY'))
65
+ $SE_FILTERS_PRIORITY = intval(SE_FILTERS_PRIORITY);
66
+ else {
67
+ $SE_FILTERS_PRIORITY = 999;
68
+ }
69
+ $SE_FILTERS_PRIORITY = apply_filters('se_filters_priority', $SE_FILTERS_PRIORITY);
70
 
71
  // Used to limit the categories displayed on the home page. Simple
72
+ add_filter('pre_get_posts', array($this,'se_filters'), $SE_FILTERS_PRIORITY);
73
  }
74
 
75
  function admin_init_proc()
76
  {
77
 
78
  $this->tabs = array(
79
+ 'taxonomies' => __('Taxonomies', 'simply-exclude'),
80
+ 'post_types' => __('Post Types', 'simply-exclude'),
81
+ 'users' => __('Users', 'simply-exclude'),
82
  );
83
  $this->current_tab = '';
84
 
85
  $this->se_load_config();
86
+
87
+ add_action( 'admin_enqueue_scripts', array($this,'admin_enqueue_scripts') );
88
 
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
+
104
  if ( ($this->check_url('wp-admin/edit-tags.php'))
105
  || ($this->check_url('wp-admin/edit.php'))
106
  || ($this->check_url('wp-admin/users.php')) )
107
  {
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
+
122
  wp_enqueue_style( 'simplyexclude-stylesheet', $this->plugindir_url .'/simplyexclude_style_admin.css', false, $this->se_version);
123
 
124
  wp_enqueue_script('jquery');
125
  wp_enqueue_script('jquery-ui-core');
126
  wp_enqueue_script('jquery-ui-dialog');
127
+ wp_enqueue_script('jquery-color'); // Needed for animate color fade on changed elements.
128
 
129
  wp_enqueue_style( 'simplyexclude-jquery-ui',
130
+ $this->plugindir_url .'/js/jquery-ui/css/flick/jquery-ui.css',
131
  null, $this->se_version );
132
 
133
  wp_enqueue_script('simplyexclude-admin-dialog-js', $this->plugindir_url .'/js/simplyexclude_admin_dialog.js',
136
  wp_enqueue_script('simplyexclude-admin-ajax-js', $this->plugindir_url .'/js/simplyexclude_admin_ajax.js',
137
  array('jquery', 'jquery-ui-core'), $this->se_version);
138
  }
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
140
 
141
  // Adds a 'Settings' link on the Plugins listing row. Cool!
142
  function plugin_settings( $links ) {
143
+ $settings_link = '<a href="admin.php?page=se_manage_settings">'.__( 'Settings', 'simply-exclude' ).'</a>';
144
  array_unshift( $links, $settings_link );
145
 
146
  return $links;
150
  {
151
  if (!is_admin())
152
  {
153
+ add_filter('widget_pages_args', array($this, 'se_widget_pages_args_proc'));
154
 
155
  // Not needed since wp_list_pages is user managable.
156
+ //aad_filter('wp_list_pages_excludes', array($this, 'se_wp_list_pages_excludes_proc'));
157
 
158
  // 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);
165
 
166
  // 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);
171
+
172
+ // 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);
174
  }
175
  }
176
 
178
  {
179
  // Add the Main Nav item to the WP menu
180
  add_menu_page( 'Simply Exclude', 'Simply Exclude', 'manage_options', 'se_manage_settings',
181
+ array($this, 'se_manage_settings'));
182
 
183
  // Add our Options sub menu.
184
  $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'));
187
 
188
 
189
  // Add our Help sub menu.
190
  $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'));
193
 
194
  if ( !current_user_can('manage_options') )
195
  return;
205
  if ((isset($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide']))
206
  && ($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide'] == 'show'))
207
  {
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);
213
  }
214
 
215
  // Now add a submenu for each registered post_type
221
  if ((isset($this->se_cfg['data']['post_types'][$t_item->name]['options']['showhide']))
222
  && ($this->se_cfg['data']['post_types'][$t_item->name]['options']['showhide'] == 'show'))
223
  {
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'));
229
  }
230
  }
231
  }
234
  if ((isset($this->se_cfg['data']['se_types']['users']['options']['showhide']))
235
  && ($this->se_cfg['data']['se_types']['users']['options']['showhide'] == 'show'))
236
  {
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);
239
  }
240
  }
241
 
276
  $this->current_tab = 'taxonomies';
277
  }
278
 
279
+ add_meta_box('se_settings_about_sidebar', 'About this Plugin', array($this, 'se_settings_about_sidebar'),
280
  $this->pagehooks['se_manage_settings'], 'side', 'core');
281
+ add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array($this, 'se_settings_donate_sidebar'),
282
  $this->pagehooks['se_manage_settings'], 'side', 'core');
283
 
284
  }
305
  wp_enqueue_script('jquery-ui-accordion');
306
  }
307
 
308
+ add_meta_box('se_settings_about_sidebar', 'About this Plugin', array($this, 'se_settings_about_sidebar'),
309
  $this->pagehooks['se_manage_help'], 'side', 'core');
310
+ add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array($this, 'se_settings_donate_sidebar'),
311
  $this->pagehooks['se_manage_help'], 'side', 'core');
312
  }
313
 
348
  <td class="description"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'description');//$action_val['description'] ?></td>
349
  <td class="inc-excl">
350
  <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>
353
  </td>
354
  <tr>
355
  <?php
391
  <td class="inc-excl">
392
  <ul class="se-actions-list">
393
 
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>
396
  <?php
397
  if (($action_key == "is_home")
398
  && ((isset($this->current_post_type['options']['capability_type']))
399
  && ($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
401
  } else if (($action_key == "is_feed")
402
  && ((isset($this->current_post_type['options']['capability_type']))
403
  && ($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
405
  }
406
  ?>
407
  </td>
444
  <td class="description"><?php echo $this->get_se_type_action_label($se_type, $action_key, 'description'); ?></td>
445
  <td class="inc-excl">
446
  <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>
449
  </td>
450
  <tr>
451
  <?php
477
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
478
  <thead>
479
  <tr>
480
+ <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>
481
  </tr>
482
  </thead>
483
  <tbody>
484
  <tr>
485
+ <td class="description"><?php _e("Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms.", 'simply-exclude'); ?></td>
486
  <td class="inc-excl">
487
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="yes"
488
  <?php if ($this->current_taxonomy['options']['active'] == 'yes')
489
+ echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />
490
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="no"
491
  <?php if ($this->current_taxonomy['options']['active'] == 'no')
492
+ echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>
493
  </td>
494
  </tr>
495
  </tbody>
511
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
512
  <thead>
513
  <tr>
514
+ <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>
515
  </tr>
516
  </thead>
517
  <tbody>
518
  <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>
520
  <td class="inc-excl">
521
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="yes"
522
  <?php if ($this->current_post_type['options']['active'] == 'yes')
523
+ echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />
524
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="no"
525
  <?php if ($this->current_post_type['options']['active'] == 'no')
526
+ echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>
527
  </td>
528
  </tr>
529
  </tbody>
545
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
546
  <thead>
547
  <tr>
548
+ <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>
549
  </tr>
550
  </thead>
551
  <tbody>
552
  <tr>
553
+ <td class="description"><?php _e("Active?", 'simply-exclude'); ?></td>
554
  <td class="inc-excl">
555
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="yes"
556
  <?php if ($this->current_se_type['options']['active'] == 'yes')
557
+ echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />
558
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="no"
559
  <?php if ($this->current_se_type['options']['active'] == 'no')
560
+ echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>
561
  </td>
562
  </tr>
563
  </tbody>
586
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
587
  <thead>
588
  <tr>
589
+ <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>
590
  </tr>
591
  </thead>
592
  <tbody>
593
  <tr>
594
+ <td class="description"><?php _e("Show the extra columns on the Taxonomy listing and the Taxonomy edit form?", 'simply-exclude'); ?></td>
595
  <td class="inc-excl">
596
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="show"
597
  <?php if ($this->current_taxonomy['options']['showhide'] == 'show')
598
+ echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />
599
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="hide"
600
  <?php if ($this->current_taxonomy['options']['showhide'] == 'hide')
601
+ echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>
602
  </td>
603
  </tr>
604
  </table>
617
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
618
  <thead>
619
  <tr>
620
+ <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>
621
  </tr>
622
  </thead>
623
  <tbody>
624
  <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>
626
  <td class="inc-excl">
627
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="show"
628
  <?php if ($this->current_post_type['options']['showhide'] == 'show')
629
+ echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />
630
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="hide"
631
  <?php if ($this->current_post_type['options']['showhide'] == 'hide')
632
+ echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>
633
  </td>
634
  </tr>
635
  </table>
648
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
649
  <thead>
650
  <tr>
651
+ <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>
652
  </tr>
653
  </thead>
654
  <tbody>
655
  <tr>
656
+ <td class="description"><?php _e("Show the extra columns on the listing and the edit form?", 'simply-exclude'); ?></td>
657
  <td class="inc-excl">
658
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="show"
659
  <?php if ($this->current_se_type['options']['showhide'] == 'show')
660
+ echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />
661
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="hide"
662
  <?php if ($this->current_se_type['options']['showhide'] == 'hide')
663
+ echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>
664
  </td>
665
  </tr>
666
  </table>
691
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
692
  <thead>
693
  <tr>
694
+ <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>
695
  </tr>
696
  </thead>
697
  <tbody>
698
  <tr>
699
  <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>
702
  </td>
703
  <td class="inc-excl">
704
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="main"
705
  <?php if ($this->current_taxonomy['options']['qover'] == 'main')
706
+ echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />
707
  <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="all"
708
  <?php if ($this->current_taxonomy['options']['qover'] == 'all')
709
+ echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>
710
  </td>
711
  </tr>
712
  </table>
726
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
727
  <thead>
728
  <tr>
729
+ <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>
730
  </tr>
731
  </thead>
732
  <tbody>
733
  <tr>
734
  <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>
737
  </td>
738
  <td class="inc-excl">
739
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="main"
740
  <?php if ($this->current_post_type['options']['qover'] == 'main')
741
+ echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />
742
  <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="all"
743
  <?php if ($this->current_post_type['options']['qover'] == 'all')
744
+ echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>
745
  </td>
746
  </tr>
747
  </table>
761
  <table class="widefat simply-exclude-settings-postbox simplyexclude-active-panel" cellpadding="3" cellspacing="3" border="0">
762
  <thead>
763
  <tr>
764
+ <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>
765
  </tr>
766
  </thead>
767
  <tbody>
768
  <tr>
769
  <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>
772
  </td>
773
  <td class="inc-excl">
774
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="main"
775
  <?php if ($this->current_se_type['options']['qover'] == 'main')
776
+ echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />
777
  <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="all"
778
  <?php if ($this->current_se_type['options']['qover'] == 'all')
779
+ echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>
780
  </td>
781
  </tr>
782
  </table>
792
  function se_manage_taxonomy_columns($columns)
793
  {
794
  if (current_user_can('manage_options')) {
795
+ if (!isset($columns['se-actions'])) {
796
+ $columns['se-actions'] = __('Simply Exclude', 'simply-exclude');
797
+ }
798
  }
799
  return $columns;
800
  }
802
  function se_manage_post_type_columns($columns)
803
  {
804
  if (current_user_can('manage_options')) {
805
+ if (!isset($columns['se_actions'])) {
806
+ $columns['se-actions'] = __('Simply Exclude', 'simply-exclude');
807
+ }
808
  }
809
  return $columns;
810
  }
812
  function se_manage_user_columns($columns)
813
  {
814
  if (current_user_can('manage_options')) {
815
+ if (!isset($columns['se_actions'])) {
816
+ $columns['se-actions'] = __('Simply Exclude', 'simply-exclude');
817
+ }
818
  }
819
  return $columns;
820
  }
918
 
919
  if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions'])))
920
  {
921
+ //echo "current_taxonomy<pre>"; print_r($this->current_taxonomy); echo "</pre>";
922
+
923
+
924
  ?><ul class="se-actions-list"><?php
925
  foreach ($this->current_taxonomy['actions'] as $action_key => $action_val)
926
  {
932
  if ((isset($this->current_taxonomy['terms'][$action_key][$term->term_id]))
933
  && ($this->current_taxonomy['terms'][$action_key][$term->term_id] == "on"))
934
  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 ?>"
936
  class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label></li>
937
 
938
  <?php
962
  if ((isset($this->current_post_type['terms'][$action_key][$p_item->ID]))
963
  && ($this->current_post_type['terms'][$action_key][$p_item->ID] == "on"))
964
  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>
 
966
 
967
  <?php
968
  }
991
  if ((isset($this->current_se_type['terms'][$action_key][$user->ID]))
992
  && ($this->current_se_type['terms'][$action_key][$user->ID] == "on"))
993
  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>
 
995
 
996
  <?php
997
  }
1366
  $this->se_cfg['options']['plugins'] = array();
1367
 
1368
  $this->se_cfg['options']['plugins']['google-sitemap-generator'] = array();
1369
+ $this->se_cfg['options']['plugins']['google-sitemap-generator']['name'] = __("Google XML Sitemaps", 'simply-exclude');
1370
  $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');
1372
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['version'] = "3.1.6";
1373
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['active'] = false;
1374
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['plugin_key'] = "google-sitemap-generator/sitemap.php";
1375
 
1376
  $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');
1378
  $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');
1380
  $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['update'] = false;
1381
 
1382
 
1383
  $this->se_cfg['options']['plugins']['search-unleashed'] = array();
1384
+ $this->se_cfg['options']['plugins']['search-unleashed']['name'] = __("Search Unleashed", 'simply-exclude');
1385
  $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');
1387
  $this->se_cfg['options']['plugins']['search-unleashed']['version'] = "1.0.5";
1388
  $this->se_cfg['options']['plugins']['search-unleashed']['active'] = false;
1389
  $this->se_cfg['options']['plugins']['search-unleashed']['plugin_key'] = "search-unleashed/search-unleashed.php";
1390
 
1391
  $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');
1393
  $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');
1395
  $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');
1397
 
1398
  foreach($this->se_cfg['options']['plugins'] as $plugin => $plugin_data)
1399
  {
1685
 
1686
  if ($taxonomy == "category")
1687
  {
1688
+ $taxonomy_actions['widget_category'] = "e";
1689
+ $taxonomy_actions['widget_tag_cloud'] = "e";
1690
+ //$taxonomy_actions['widget_recent_posts'] = "e";
1691
  }
1692
 
1693
  if ($taxonomy == "post_tag")
1694
  {
1695
+ $taxonomy_actions['widget_tag_cloud'] = "e";
1696
+ //$taxonomy_actions['widget_recent_posts'] = "e";
1697
  }
1698
 
1699
  return $taxonomy_actions;
1710
 
1711
  if ($post_type_object->capability_type == "post")
1712
  {
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
+
1720
  }
1721
  else if ($post_type == "page")
1722
  {
1762
  switch($key)
1763
  {
1764
  case 'name':
1765
+ return __("Front/Home", 'simply-exclude');;
1766
  break;
1767
 
1768
  case 'description':
1769
+ return __("Visibility on the front/main page.", 'simply-exclude');
1770
 
1771
  default:
1772
  return;
1779
  switch($key)
1780
  {
1781
  case 'name':
1782
+ return __("Archives", 'simply-exclude');
1783
  break;
1784
 
1785
  case 'description':
1786
+ return __("Visibility on the archive of categories on the sidebar.", 'simply-exclude');
1787
 
1788
  default:
1789
  return;
1797
  switch($key)
1798
  {
1799
  case 'name':
1800
+ return __("Searches", 'simply-exclude');
1801
  break;
1802
 
1803
  case 'description':
1804
+ return __("Visibility in search results.", 'simply-exclude');
1805
 
1806
  default:
1807
  return;
1815
  switch($key)
1816
  {
1817
  case 'name':
1818
+ return __("Feeds", 'simply-exclude');
1819
  break;
1820
 
1821
  case 'description':
1822
+ return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');
1823
 
1824
  default:
1825
  return;
1833
  switch($key)
1834
  {
1835
  case 'name':
1836
+ return __("Categories (W)", 'simply-exclude');
1837
  break;
1838
 
1839
  case 'description':
1840
+ return __("Exclude from WordPress List Category Widget.", 'simply-exclude');
1841
  break;
1842
 
1843
  default:
1854
  switch($key)
1855
  {
1856
  case 'name':
1857
+ return __("Tag Cloud (W)", 'simply-exclude');
1858
  break;
1859
 
1860
  case 'description':
1861
+ return __("Exclude from WordPress Tag Cloud Widget.", 'simply-exclude');
1862
  break;
1863
 
1864
  default:
1869
  return;
1870
  break;
1871
 
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
+ */
1894
  default:
1895
  return;
1896
  break;
1906
  switch($key)
1907
  {
1908
  case 'name':
1909
+ return __("Front/Home", 'simply-exclude');
1910
  break;
1911
 
1912
  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');
1914
 
1915
  default:
1916
  return;
1923
  switch($key)
1924
  {
1925
  case 'name':
1926
+ return __("Archives", 'simply-exclude');
1927
  break;
1928
 
1929
  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');
1931
 
1932
  default:
1933
  return;
1940
  switch($key)
1941
  {
1942
  case 'name':
1943
+ return __("Feeds", 'simply-exclude');
1944
  break;
1945
 
1946
  case 'description':
1947
+ return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');
1948
 
1949
  default:
1950
  return;
1957
  switch($key)
1958
  {
1959
  case 'name':
1960
+ return __("Searches", 'simply-exclude');
1961
  break;
1962
 
1963
  case 'description':
1964
+ return __("Visibility in search results.", 'simply-exclude');
1965
 
1966
  default:
1967
  return;
1973
  switch($key)
1974
  {
1975
  case 'name':
1976
+ return __("Pages (W)", 'simply-exclude');
1977
  break;
1978
 
1979
  case 'description':
1980
+ return __("Support for WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded.", 'simply-exclude');
1981
 
1982
  default:
1983
  return;
1985
  return;
1986
  break;
1987
 
1988
+ /*
1989
+ case 'widget_archives':
1990
+
1991
+ if ($post_type == "post") {
1992
+ switch($key)
1993
+ {
1994
+ case 'name':
1995
+ return __("Archives (W)", 'simply-exclude');
1996
+ break;
1997
+
1998
+ case 'description':
1999
+ return __("Exclude from WordPress Archives Widget.", 'simply-exclude');
2000
+
2001
+ default:
2002
+ return;
2003
+ }
2004
+ }
2005
+ return;
2006
+ 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
+ */
2030
  default:
2031
  return;
2032
  break;
2043
  switch($key)
2044
  {
2045
  case 'name':
2046
+ return __("Front/Home", 'simply-exclude');
2047
  break;
2048
 
2049
  case 'description':
2050
+ return __("Visibility on the front/main page.", 'simply-exclude');
2051
  break;
2052
 
2053
  default:
2061
  switch($key)
2062
  {
2063
  case 'name':
2064
+ return __("Archives", 'simply-exclude');
2065
  break;
2066
 
2067
  case 'description':
2068
+ return __("Visibility on the archive of categories on the sidebar.", 'simply-exclude');
2069
  break;
2070
 
2071
  default:
2079
  switch($key)
2080
  {
2081
  case 'name':
2082
+ return __("Searches", 'simply-exclude');
2083
  break;
2084
 
2085
  case 'description':
2086
+ return __("Visibility in search results.", 'simply-exclude');
2087
  break;
2088
 
2089
  default:
2097
  switch($key)
2098
  {
2099
  case 'name':
2100
+ return __("Feeds", 'simply-exclude');
2101
  break;
2102
 
2103
  case 'description':
2104
+ return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');
2105
  break;
2106
 
2107
  default:
2132
  return $query;
2133
 
2134
  // Check our debug
2135
+ if (( current_user_can('manage_options') ) && (isset($_GET['SE_DEBUG'])))
2136
  $se_debug = true;
2137
  else
2138
  $se_debug = false;
2417
  }
2418
 
2419
 
 
 
 
 
 
 
2420
  /****************************************************************************************************************************/
2421
  /* */
2422
  /* WIDGET FILTER LOGIC */
2463
  return $args;
2464
  }
2465
 
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';
2477
 
2478
  $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'];
2488
 
2489
  $all_cat_ids = array();
2490
 
2511
  $args['exclude'] = implode(',', $all_cat_ids);
2512
  }
2513
  }
2514
+
2515
+ //echo "AFTER: args<pre>"; print_r($args); echo "</pre>";
2516
  return $args;
2517
  }
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
+
2596
+
2597
  // The tag Cloud widget now supports using either taxonomy (post_tag or category).
2598
  function se_widget_tag_cloud_args_proc($args)
2599
  {
2694
  return $args;
2695
  }
2696
 
2697
+ function se_widget_recent_posts_proc($args) {
2698
+ //echo "args<pre>"; print_r($args); echo "</pre>";
2699
+
2700
+ $this->se_load_config();
2701
+
2702
+ //echo "se_cfg<pre>"; print_r($this->se_cfg); echo "</pre>";
2703
+ $action_data = $this->se_get_action_data('is_archive');
2704
+ //echo "action_data<pre>"; print_r($action_data); echo "</pre>";
2705
+ //die();
2706
+
2707
+ $post__in = array();
2708
+ $post__not_in = array();
2709
+
2710
+ if ($action_data) {
2711
+ foreach($action_data as $key => $key_data) {
2712
+ if ($key == "post_types") {
2713
+
2714
+ 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
+
2718
+ if ($key_key_data['actions'] == 'e') {
2719
+ $post__not_in = array_merge($post__not_in, $key_key_data['terms']);
2720
+
2721
+ } else if ($key_key_data['actions'] == 'i') {
2722
+ $post__in = array_merge($post__in, $key_key_data['terms']);
2723
+ }
2724
+ }
2725
+ } else if ($key == "taxonomies") {
2726
+
2727
+ 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>";
2730
+ if ((isset($key_key_data['terms'])) && (!empty($key_key_data['terms']))) {
2731
+ $posts_ids = get_objects_in_term( $key_key_data['terms'], $key_key );
2732
+ if ( !is_wp_error( $posts_ids ) ) {
2733
+ //echo "posts_ids<pre>"; print_r($posts_ids); echo "</pre>";
2734
+
2735
+ if ($key_key_data['actions'] == 'e') {
2736
+ $post__not_in = array_merge($post__not_in, $posts_ids);
2737
+ } else if ($key_key_data['actions'] == 'i') {
2738
+ $post__in = array_merge($post__in, $posts_ids);
2739
+ }
2740
+ }
2741
+ }
2742
+ }
2743
+ }
2744
+ }
2745
+ }
2746
+
2747
+ 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) .") ";
2754
+
2755
+ } 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
+ }
2761
+ }
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
+
2830
+ return $where_sql;
2831
+ }
2832
+
2833
  function se_admin_footer()
2834
  {
2835
  if ( !current_user_can('manage_options') )
3075
  switch ($item) {
3076
  case 'users':
3077
  ?>
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>
3082
 
3083
  <?php
3084
  break;
3085
 
3086
  case 'taxonomy':
3087
  ?>
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>
3092
  <?php
3093
  break;
3094
 
3095
  case 'post_type':
3096
  ?>
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>
3101
  <?php
3102
  break;
3103
 
3112
  ?>
3113
  <div id="howto-se-manage-settings-metaboxes-general" class="wrap">
3114
  <?php screen_icon('options-general'); ?>
3115
+ <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", 'simply-exclude');
3116
  foreach( $this->tabs as $tab => $name ){
3117
 
3118
  $class = ( $tab == $this->current_tab ) ? ' nav-tab-active' : '';
3131
  switch ( $this->current_tab ) {
3132
 
3133
  case 'post_types':
 
 
 
3134
  $this->se_display_options_post_type_actions_panel();
3135
  break;
3136
 
3137
  case 'users':
 
 
3138
  $this->se_display_options_user_actions_panel();
3139
  break;
3140
 
3141
  case 'taxonomies':
3142
  default:
 
 
 
3143
  $this->se_display_options_taxonomy_actions_panel();
3144
  break;
3145
  }
3217
  $this->display_instructions('users');
3218
  ?>
3219
  <div class="postbox">
3220
+ <h3 class="simplyexclude-section-title"><?php _e('Users', 'simply-exclude'); ?></h3>
3221
  <div class="inside">
3222
  <?php
3223
  $this->se_show_se_type_active_panel('users');
3239
  $this->se_cfg = $local_cfg;
3240
  $this->se_save_config();
3241
 
3242
+ ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', 'simply-exclude'); ?></strong></p><?php
3243
  }
3244
  }
3245
  ?><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>
3247
 
3248
  <form name="" method="post" action"">
3249
  <select id="simple-exclude-configuration-reload" name="simple-exclude-configuration-reload">
3250
  <option value="">No</option>
3251
  <option value="Yes">Yes</option>
3252
  </select><br />
3253
+ <input type="submit" value="<?php _e('Reload Configuration', 'simply-exclude'); ?>" />
3254
 
3255
  </form>
3256
  <?php
3259
  function se_options_thirdparty_panel()
3260
  {
3261
  ?>
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>
3265
 
3266
  <table id="simplyexclude-options-thirdparty-panel" class="widefat simplyexclude-actions-panel" cellpadding="3" cellspacing="3" border="0">
3267
  <thead>
3268
  <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>
3272
  </tr>
3273
  </thead>
3274
  <tbody>
3323
  function se_settings_about_sidebar()
3324
  {
3325
  ?><p><a class="" target="_blank" href="http://www.codehooligans.com/projects/wordpress/simply-exclude/"><?php
3326
+ _e('Plugin Homepage', 'simply-exclude'); ?></a></p><?php
3327
 
3328
  }
3329
  function se_settings_donate_sidebar()
3330
  {
3331
  ?>
3332
  <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>
3334
  <p><a class="" target="_blank" href="http://www.codehooligans.com/donations/"><?php
3335
+ _e('Make a donation today', 'simply-exclude'); ?></a></p>
3336
  <?php
3337
  }
3338
 
3341
  ?>
3342
  <div id="se-manage-help-metaboxes-general" class="wrap">
3343
  <?php screen_icon('options-general'); ?>
3344
+ <h2><?php _ex("Simply Exclude Help", "Options Page Title", 'simply-exclude'); ?></h2>
3345
 
3346
  <div id="poststuff" class="metabox-holder has-right-sidebar simplyexclude-metabox-holder-right-sidebar">
3347
  <div id="side-info-column" class="inner-sidebar">