Changeset 1117435
- Timestamp:
- 03/21/2015 11:03:56 AM (11 years ago)
- Location:
- simply-exclude/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
simplyexclude.php (modified) (81 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simply-exclude/trunk/readme.txt
r1117193 r1117435 4 4 Tags: admin, posts, pages, categories, tags, Post Type, Taxonomy, exclude, include, is_front, is_archive, is_search, is_feed, is_author 5 5 Requires at least: 3.9 6 Tested up to: 4 .26 Tested up to: 4,1 7 7 Stable tag: 2.0.6.4 8 8 License: GPLv2 … … 52 52 53 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.54 - Corrected issue reported related to Missing argument 2 for SimplyExclude::se_widget_getarchives_where() 55 - Added a filter 'se_filters_priority' to allow control the priority of the se_filter hook. This can also be set via a define in wp-config.php or functions.php as define('SE_FILTERS_PRIORITY', 99); 56 56 57 57 = 2.0.6.3 = -
simply-exclude/trunk/simplyexclude.php
r1117193 r1117435 7 7 Version: 2.0.6.4 8 8 Author URI: http://www.codehooligans.com 9 Text Domain: simply -exclude9 Text Domain: simplyexclude 10 10 Domain Path: /languages 11 11 License: GNU General Public License v2 or later … … 14 14 */ 15 15 16 define('SIMPLY_EXCLUDE_I18N_DOMAIN', 'simplyexclude'); 16 17 17 18 class SimplyExclude … … 35 36 private $current_tab; 36 37 37 private $FILTER_STATE = array();38 39 38 public function __construct() { 40 39 41 $this->se_version = "2.0.6. 4";42 43 $this->admin_menu_label = __("Simply Exclude", 'simply-exclude');40 $this->se_version = "2.0.6.2"; 41 42 $this->admin_menu_label = __("Simply Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); 44 43 $this->options_key = "simplyexclude_v2"; 45 44 … … 52 51 53 52 /* Setup the tetdomain for i18n language handling see http://codex.wordpress.org/Function_Reference/load_plugin_textdomain */ 54 load_plugin_textdomain( 'simply-exclude', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );55 56 add_action( 'init', array($this,'init_proc') );57 add_action( 'admin_init', array($this,'admin_init_proc') );58 add_action( 'admin_menu', array($this,'se_add_nav') );59 add_action( 'admin_footer', array($this,'se_admin_footer') );60 add_action( 'wp_ajax_se_update', array($this, 'se_ajax_update') );53 load_plugin_textdomain( SIMPLY_EXCLUDE_I18N_DOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 54 55 add_action( 'init', array(&$this,'init_proc') ); 56 add_action( 'admin_init', array(&$this,'admin_init_proc') ); 57 add_action( 'admin_menu', array(&$this,'se_add_nav') ); 58 add_action( 'admin_footer', array(&$this,'se_admin_footer') ); 59 add_action( 'wp_ajax_se_update', array(&$this, 'se_ajax_update') ); 61 60 62 61 // In 2.0.6.4 added a define to allow control of the SE_FILTERS_PRIORITY … … 77 76 78 77 $this->tabs = array( 79 'taxonomies' => __('Taxonomies', 'simply-exclude'),80 'post_types' => __('Post Types', 'simply-exclude'),81 'users' => __('Users', 'simply-exclude'),78 'taxonomies' => __('Taxonomies', SIMPLY_EXCLUDE_I18N_DOMAIN), 79 'post_types' => __('Post Types', SIMPLY_EXCLUDE_I18N_DOMAIN), 80 'users' => __('Users', SIMPLY_EXCLUDE_I18N_DOMAIN), 82 81 ); 83 82 $this->current_tab = ''; 84 83 85 84 $this->se_load_config(); 86 87 add_action( 'admin_enqueue_scripts', array($this,'admin_enqueue_scripts') );88 85 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 86 if ( ($this->check_url('wp-admin/edit-tags.php')) 105 87 || ($this->check_url('wp-admin/edit.php')) 106 88 || ($this->check_url('wp-admin/users.php')) ) 107 89 { 108 109 if (function_exists('get_current_screen'))110 $current_screen = get_current_screen();111 else112 {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 90 wp_enqueue_style( 'simplyexclude-stylesheet', $this->plugindir_url .'/simplyexclude_style_admin.css', false, $this->se_version); 123 91 … … 125 93 wp_enqueue_script('jquery-ui-core'); 126 94 wp_enqueue_script('jquery-ui-dialog'); 127 wp_enqueue_script('jquery-color'); // Needed for animate color fade on changed elements.128 95 129 96 wp_enqueue_style( 'simplyexclude-jquery-ui', 130 $this->plugindir_url .'/js/jquery-ui/css/flick/jquery-ui .css',97 $this->plugindir_url .'/js/jquery-ui/css/flick/jquery-ui-1.8.17.custom.css', 131 98 null, $this->se_version ); 132 99 … … 137 104 array('jquery', 'jquery-ui-core'), $this->se_version); 138 105 } 106 107 add_action('edit_category_form_fields', array(&$this,'se_show_taxonomy_term_fields'), 99, 1); 108 add_action('edit_tag_form_fields', array(&$this,'se_show_taxonomy_term_fields'), 99, 1); 109 add_action('edited_term', array(&$this,'se_save_taxonomy_term_fields'), 99, 3); 110 111 add_action( 'show_user_profile', array(&$this,'se_show_user_profile'), 99 ); 112 add_action( 'edit_user_profile', array(&$this,'se_show_user_profile'), 99 ); 113 114 add_action( 'profile_update', array(&$this,'se_save_user_profile'), 99); 115 116 add_filter( 'plugin_action_links_'. basename( dirname( __FILE__ ) ). '/' .basename( __FILE__ ), array(&$this,'plugin_settings')); 117 139 118 } 140 119 141 120 // Adds a 'Settings' link on the Plugins listing row. Cool! 142 121 function plugin_settings( $links ) { 143 $settings_link = '<a href="admin.php?page=se_manage_settings">'.__( 'Settings', 'simply-exclude').'</a>';122 $settings_link = '<a href="admin.php?page=se_manage_settings">'.__( 'Settings', SIMPLY_EXCLUDE_I18N_DOMAIN ).'</a>'; 144 123 array_unshift( $links, $settings_link ); 145 124 … … 151 130 if (!is_admin()) 152 131 { 153 add_filter('widget_pages_args', array($this, 'se_widget_pages_args_proc'));132 add_filter('widget_pages_args', array(&$this, 'se_widget_pages_args_proc')); 154 133 155 134 // Not needed since wp_list_pages is user managable. 156 //aad_filter('wp_list_pages_excludes', array( $this, 'se_wp_list_pages_excludes_proc'));135 //aad_filter('wp_list_pages_excludes', array(&$this, 'se_wp_list_pages_excludes_proc')); 157 136 158 137 // Suport for the Category list/dropdown widget 159 add_filter( 'widget_categories_args', array($this, 'widget_categories_args_proc'), 99); 160 add_filter( 'widget_categories_dropdown_args', array($this, 'widget_categories_args_proc'), 99); 161 162 //add_filter( 'wp_list_categories', array($this, 'se_wp_list_categories_proc'), 99); 163 add_filter( 'get_categories_taxonomy', array($this, 'get_categories_taxonomy_proc'), 99); 164 add_filter( 'get_terms', array($this, 'se_get_terms_proc'), 99, 3); 138 add_filter('widget_categories_dropdown_args', array(&$this, 'se_widget_categories_dropdown_args_proc')); 139 add_filter('widget_categories_args', array(&$this, 'se_widget_categories_dropdown_args_proc')); 165 140 166 141 // Support for the Tag Clod widget. This widget supports both the post_tag and category taxonomies. 167 add_filter('widget_tag_cloud_args', array($this, 'se_widget_tag_cloud_args_proc'), 99); 168 169 // Support for the Recent Posts widget. 170 add_filter( 'widget_posts_args', array($this, 'se_widget_recent_posts_proc'), 99); 142 add_filter('widget_tag_cloud_args', array(&$this, 'se_widget_tag_cloud_args_proc')); 171 143 172 144 // Support for Archive widget. This widget will output a month or year archive listing/dropdown of posts 173 add_filter('getarchives_where', array($this, 'se_widget_getarchives_where'), 99); 145 add_filter('getarchives_where', array($this, 'se_widget_getarchives_where'), 99); 146 174 147 } 175 148 } … … 179 152 // Add the Main Nav item to the WP menu 180 153 add_menu_page( 'Simply Exclude', 'Simply Exclude', 'manage_options', 'se_manage_settings', 181 array( $this, 'se_manage_settings'));154 array(&$this, 'se_manage_settings')); 182 155 183 156 // Add our Options sub menu. 184 157 $this->pagehooks['se_manage_settings'] = add_submenu_page( 'se_manage_settings', 'Settings', 'Settings', 'manage_options', 185 'se_manage_settings', array( $this, 'se_manage_settings'));186 add_action('load-'. $this->pagehooks['se_manage_settings'], array( $this, 'on_load_settings_page'));158 'se_manage_settings', array(&$this, 'se_manage_settings')); 159 add_action('load-'. $this->pagehooks['se_manage_settings'], array(&$this, 'on_load_settings_page')); 187 160 188 161 189 162 // Add our Help sub menu. 190 163 $this->pagehooks['se_manage_help'] = add_submenu_page( 'se_manage_settings', 'Help', 'Help', 'manage_options', 191 'se_manage_help', array( $this, 'se_manage_help'));192 add_action('load-'. $this->pagehooks['se_manage_help'], array( $this, 'on_load_help_page'));164 'se_manage_help', array(&$this, 'se_manage_help')); 165 add_action('load-'. $this->pagehooks['se_manage_help'], array(&$this, 'on_load_help_page')); 193 166 194 167 if ( !current_user_can('manage_options') ) … … 206 179 && ($this->se_cfg['data']['taxonomies'][$t_item->name]['options']['showhide'] == 'show')) 207 180 { 208 add_filter( "manage_edit-". $t_item->name ."_columns", array( $this, 'se_manage_taxonomy_columns' ), 99, 1);209 add_filter( "manage_". $t_item->name. "_custom_column", array( $this, 'se_display_taxonomy_column_filters'), 99, 3);210 } 211 } 212 //add_action("delete_term", array( $this, 'se_delete_taxonomy_term'), 99, 3);181 add_filter( "manage_edit-". $t_item->name ."_columns", array( &$this, 'se_manage_taxonomy_columns' ), 99, 1); 182 add_filter( "manage_". $t_item->name. "_custom_column", array(&$this, 'se_display_taxonomy_column_filters'), 99, 3); 183 } 184 } 185 //add_action("delete_term", array(&$this, 'se_delete_taxonomy_term'), 99, 3); 213 186 } 214 187 … … 222 195 && ($this->se_cfg['data']['post_types'][$t_item->name]['options']['showhide'] == 'show')) 223 196 { 224 add_filter( "manage_". $t_item->name ."_posts_columns", array( $this, 'se_manage_post_type_columns' ), 99 );225 add_action( "manage_". $t_item->name ."_posts_custom_column", array( $this, 'se_display_post_type_column_actions'), 99, 2);226 227 add_meta_box($this->options_key, $this->admin_menu_label, array( $this,'show_post_type_exclude_sidebar_dbx'), $t_item->name, 'side');228 add_action('save_post', array( $this,'save_post_type_exclude_sidebar_dbx'));197 add_filter( "manage_". $t_item->name ."_posts_columns", array( &$this, 'se_manage_post_type_columns' ), 99 ); 198 add_action( "manage_". $t_item->name ."_posts_custom_column", array(&$this, 'se_display_post_type_column_actions'), 99, 2); 199 200 add_meta_box($this->options_key, $this->admin_menu_label, array(&$this,'show_post_type_exclude_sidebar_dbx'), $t_item->name, 'side'); 201 add_action('save_post', array(&$this,'save_post_type_exclude_sidebar_dbx')); 229 202 } 230 203 } … … 235 208 && ($this->se_cfg['data']['se_types']['users']['options']['showhide'] == 'show')) 236 209 { 237 add_filter( "manage_users_columns", array( $this, 'se_manage_user_columns' ), 99 );238 add_filter( 'manage_users_custom_column', array( $this, 'se_display_user_column_actions'), 99, 3);210 add_filter( "manage_users_columns", array( &$this, 'se_manage_user_columns' ), 99 ); 211 add_filter( 'manage_users_custom_column', array(&$this, 'se_display_user_column_actions'), 99, 3); 239 212 } 240 213 } … … 277 250 } 278 251 279 add_meta_box('se_settings_about_sidebar', 'About this Plugin', array( $this, 'se_settings_about_sidebar'),252 add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'), 280 253 $this->pagehooks['se_manage_settings'], 'side', 'core'); 281 add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array( $this, 'se_settings_donate_sidebar'),254 add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'), 282 255 $this->pagehooks['se_manage_settings'], 'side', 'core'); 283 256 … … 306 279 } 307 280 308 add_meta_box('se_settings_about_sidebar', 'About this Plugin', array( $this, 'se_settings_about_sidebar'),281 add_meta_box('se_settings_about_sidebar', 'About this Plugin', array(&$this, 'se_settings_about_sidebar'), 309 282 $this->pagehooks['se_manage_help'], 'side', 'core'); 310 add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array( $this, 'se_settings_donate_sidebar'),283 add_meta_box('se_settings_donate_sidebar', 'Make a Donation', array(&$this, 'se_settings_donate_sidebar'), 311 284 $this->pagehooks['se_manage_help'], 'side', 'core'); 312 285 } … … 349 322 <td class="inc-excl"> 350 323 <ul class="se-actions-list"> 351 <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', 'simply-exclude'); ?></label></li>352 <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', 'simply-exclude'); ?></label></li>324 <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li> 325 <li><input type="radio" id="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $taxonomy; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $taxonomy; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li> 353 326 </td> 354 327 <tr> … … 392 365 <ul class="se-actions-list"> 393 366 394 <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', 'simply-exclude'); ?></label></li>395 <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', 'simply-exclude'); ?></label></li>367 <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li> 368 <li><input type="radio" id="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $post_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $post_type ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li> 396 369 <?php 397 370 if (($action_key == "is_home") 398 371 && ((isset($this->current_post_type['options']['capability_type'])) 399 372 && ($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><?php373 ?><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 401 374 } else if (($action_key == "is_feed") 402 375 && ((isset($this->current_post_type['options']['capability_type'])) 403 376 && ($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><?php377 ?><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 405 378 } 406 379 ?> … … 445 418 <td class="inc-excl"> 446 419 <ul class="se-actions-list"> 447 <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', 'simply-exclude'); ?></label></li>448 <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', 'simply-exclude'); ?></label></li>420 <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="i" <?php if ($action_val == 'i') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_i"><?php _e('Include only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li> 421 <li><input type="radio" id="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e" name="se_cfg[<?php echo $se_type; ?>][actions][<?php echo $action_key ?>]" value="e" <?php if ($action_val == 'e') echo "checked='checked'"; ?> /> <label for="se_cfg_<?php echo $se_type; ?>_actions_<?php echo $action_key ?>_e"><?php _e('Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></label></li> 449 422 </td> 450 423 <tr> … … 478 451 <thead> 479 452 <tr> 480 <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>453 <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 481 454 </tr> 482 455 </thead> 483 456 <tbody> 484 457 <tr> 485 <td class="description"><?php _e("Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms.", 'simply-exclude'); ?></td>458 <td class="description"><?php _e("Is this Taxonomy active? This is sometimes convenient instead of unsetting all Taxonomy terms.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td> 486 459 <td class="inc-excl"> 487 460 <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="yes" 488 461 <?php if ($this->current_taxonomy['options']['active'] == 'yes') 489 echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />462 echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 490 463 <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][active]" value="no" 491 464 <?php if ($this->current_taxonomy['options']['active'] == 'no') 492 echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>465 echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 493 466 </td> 494 467 </tr> … … 512 485 <thead> 513 486 <tr> 514 <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>487 <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 515 488 </tr> 516 489 </thead> 517 490 <tbody> 518 491 <tr> 519 <td class="description"><?php _e("Is this Post Type Active? This is sometimes convenient instead of unsetting all Post Type items.", 'simply-exclude'); ?></td>492 <td class="description"><?php _e("Is this Post Type Active? This is sometimes convenient instead of unsetting all Post Type items.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td> 520 493 <td class="inc-excl"> 521 494 <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="yes" 522 495 <?php if ($this->current_post_type['options']['active'] == 'yes') 523 echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />496 echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 524 497 <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][active]" value="no" 525 498 <?php if ($this->current_post_type['options']['active'] == 'no') 526 echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>499 echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 527 500 </td> 528 501 </tr> … … 546 519 <thead> 547 520 <tr> 548 <th class="action" colspan="2"><?php _e('Active', 'simply-exclude') ?></th>521 <th class="action" colspan="2"><?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 549 522 </tr> 550 523 </thead> 551 524 <tbody> 552 525 <tr> 553 <td class="description"><?php _e("Active?", 'simply-exclude'); ?></td>526 <td class="description"><?php _e("Active?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td> 554 527 <td class="inc-excl"> 555 528 <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="yes" 556 529 <?php if ($this->current_se_type['options']['active'] == 'yes') 557 echo "checked='checked'"; ?> /> <?php _e('Active', 'simply-exclude'); ?><br />530 echo "checked='checked'"; ?> /> <?php _e('Active', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 558 531 <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][active]" value="no" 559 532 <?php if ($this->current_se_type['options']['active'] == 'no') 560 echo "checked='checked'"; ?> /> <?php _e('Disabled', 'simply-exclude'); ?>533 echo "checked='checked'"; ?> /> <?php _e('Disabled', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 561 534 </td> 562 535 </tr> … … 587 560 <thead> 588 561 <tr> 589 <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>562 <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 590 563 </tr> 591 564 </thead> 592 565 <tbody> 593 566 <tr> 594 <td class="description"><?php _e("Show the extra columns on the Taxonomy listing and the Taxonomy edit form?", 'simply-exclude'); ?></td>567 <td class="description"><?php _e("Show the extra columns on the Taxonomy listing and the Taxonomy edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td> 595 568 <td class="inc-excl"> 596 569 <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="show" 597 570 <?php if ($this->current_taxonomy['options']['showhide'] == 'show') 598 echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />571 echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 599 572 <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][showhide]" value="hide" 600 573 <?php if ($this->current_taxonomy['options']['showhide'] == 'hide') 601 echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>574 echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 602 575 </td> 603 576 </tr> … … 618 591 <thead> 619 592 <tr> 620 <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>593 <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 621 594 </tr> 622 595 </thead> 623 596 <tbody> 624 597 <tr> 625 <td class="description"><?php _e("Show the extra columns on the Post Type listing and the Post Type edit form?", 'simply-exclude'); ?></td>598 <td class="description"><?php _e("Show the extra columns on the Post Type listing and the Post Type edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td> 626 599 <td class="inc-excl"> 627 600 <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="show" 628 601 <?php if ($this->current_post_type['options']['showhide'] == 'show') 629 echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />602 echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 630 603 <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][showhide]" value="hide" 631 604 <?php if ($this->current_post_type['options']['showhide'] == 'hide') 632 echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>605 echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 633 606 </td> 634 607 </tr> … … 649 622 <thead> 650 623 <tr> 651 <th class="action" colspan="2"><?php _e('Show/Hide', 'simply-exclude') ?></th>624 <th class="action" colspan="2"><?php _e('Show/Hide', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 652 625 </tr> 653 626 </thead> 654 627 <tbody> 655 628 <tr> 656 <td class="description"><?php _e("Show the extra columns on the listing and the edit form?", 'simply-exclude'); ?></td>629 <td class="description"><?php _e("Show the extra columns on the listing and the edit form?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></td> 657 630 <td class="inc-excl"> 658 631 <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="show" 659 632 <?php if ($this->current_se_type['options']['showhide'] == 'show') 660 echo "checked='checked'"; ?> /> <?php _e('Show', 'simply-exclude'); ?><br />633 echo "checked='checked'"; ?> /> <?php _e('Show', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 661 634 <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][showhide]" value="hide" 662 635 <?php if ($this->current_se_type['options']['showhide'] == 'hide') 663 echo "checked='checked'"; ?> /> <?php _e('Hide', 'simply-exclude'); ?>636 echo "checked='checked'"; ?> /> <?php _e('Hide', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 664 637 </td> 665 638 </tr> … … 692 665 <thead> 693 666 <tr> 694 <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>667 <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 695 668 </tr> 696 669 </thead> … … 698 671 <tr> 699 672 <td class="description"> 700 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", 'simply-exclude') ?></p>701 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", 'simply-exclude'); ?></p>673 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p> 674 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 702 675 </td> 703 676 <td class="inc-excl"> 704 677 <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="main" 705 678 <?php if ($this->current_taxonomy['options']['qover'] == 'main') 706 echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />679 echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 707 680 <input type="radio" name="se_cfg[<?php echo $taxonomy; ?>][options][qover]" value="all" 708 681 <?php if ($this->current_taxonomy['options']['qover'] == 'all') 709 echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>682 echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 710 683 </td> 711 684 </tr> … … 727 700 <thead> 728 701 <tr> 729 <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>702 <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 730 703 </tr> 731 704 </thead> … … 733 706 <tr> 734 707 <td class="description"> 735 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", 'simply-exclude') ?></p>736 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", 'simply-exclude'); ?></p>708 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p> 709 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 737 710 </td> 738 711 <td class="inc-excl"> 739 712 <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="main" 740 713 <?php if ($this->current_post_type['options']['qover'] == 'main') 741 echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />714 echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 742 715 <input type="radio" name="se_cfg[<?php echo $post_type; ?>][options][qover]" value="all" 743 716 <?php if ($this->current_post_type['options']['qover'] == 'all') 744 echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>717 echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 745 718 </td> 746 719 </tr> … … 762 735 <thead> 763 736 <tr> 764 <th class="action" colspan="2"><?php _e('Query Filtering', 'simply-exclude') ?></th>737 <th class="action" colspan="2"><?php _e('Query Filtering', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 765 738 </tr> 766 739 </thead> … … 768 741 <tr> 769 742 <td class="description"> 770 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", 'simply-exclude') ?></p>771 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", 'simply-exclude'); ?></p>743 <p><?php _e("Override query filtering for Main Loop Only or All Loops?", SIMPLY_EXCLUDE_I18N_DOMAIN) ?></p> 744 <p><?php _e("The Simply-Exclude plugin was designed to only work with the main page query. But sometimes other plugins or your theme will effect how the main filtering works. So if you are having trouble attempting to filter categories from your home page you might want to try and set this option to 'All' and see if it corrects your issue.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 772 745 </td> 773 746 <td class="inc-excl"> 774 747 <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="main" 775 748 <?php if ($this->current_se_type['options']['qover'] == 'main') 776 echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', 'simply-exclude'); ?><br />749 echo "checked='checked'"; ?> /> <?php _e('Main Loop Only', SIMPLY_EXCLUDE_I18N_DOMAIN); ?><br /> 777 750 <input type="radio" name="se_cfg[<?php echo $se_type; ?>][options][qover]" value="all" 778 751 <?php if ($this->current_se_type['options']['qover'] == 'all') 779 echo "checked='checked'"; ?> /> <?php _e('All Loops', 'simply-exclude'); ?>752 echo "checked='checked'"; ?> /> <?php _e('All Loops', SIMPLY_EXCLUDE_I18N_DOMAIN); ?> 780 753 </td> 781 754 </tr> … … 793 766 { 794 767 if (current_user_can('manage_options')) { 795 if (!isset($columns['se-actions'])) { 796 $columns['se-actions'] = __('Simply Exclude', 'simply-exclude'); 797 } 768 if (!isset($columns['se-actions'])) 769 $columns['se-actions'] = '<a id="se-show-actions-panel" title="" href="#">'. __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>'; 798 770 } 799 771 return $columns; … … 803 775 { 804 776 if (current_user_can('manage_options')) { 805 if (!isset($columns['se_actions'])) { 806 $columns['se-actions'] = __('Simply Exclude', 'simply-exclude'); 807 } 777 if (!isset($columns['se_actions'])) 778 $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>'; 808 779 } 809 780 return $columns; … … 813 784 { 814 785 if (current_user_can('manage_options')) { 815 if (!isset($columns['se_actions'])) { 816 $columns['se-actions'] = __('Simply Exclude', 'simply-exclude'); 817 } 786 if (!isset($columns['se_actions'])) 787 $columns['se-actions'] = __('Simply Exclude', SIMPLY_EXCLUDE_I18N_DOMAIN). ' <a id="se-show-actions-panel" href="#">'. __('show', SIMPLY_EXCLUDE_I18N_DOMAIN) .'</a>'; 818 788 } 819 789 return $columns; … … 919 889 if ((isset($this->current_taxonomy['actions'])) && (count($this->current_taxonomy['actions']))) 920 890 { 921 //echo "current_taxonomy<pre>"; print_r($this->current_taxonomy); echo "</pre>";922 923 924 891 ?><ul class="se-actions-list"><?php 925 892 foreach ($this->current_taxonomy['actions'] as $action_key => $action_val) … … 933 900 && ($this->current_taxonomy['terms'][$action_key][$term->term_id] == "on")) 934 901 echo "checked='checked' "; 935 ?> /> < a class="se-show-actions-panel" title="" href="#">(<span class="se-action-label-<?php echo $action_key ?>"><?php echo $action_val ?></span>)</a> <label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>"902 ?> /> <label for="<?php echo $taxonomy; ?>-<?php echo $action_key ?>-<?php echo $term->term_id ?>" 936 903 class="se-term-label"><?php echo $this->get_taxonomy_action_label($taxonomy, $action_key, 'name'); ?></label></li> 937 904 … … 963 930 && ($this->current_post_type['terms'][$action_key][$p_item->ID] == "on")) 964 931 echo "checked='checked' "; 965 ?> /> <a class="se-show-actions-panel" title="" href="#">(<span class="se-action-label-<?php echo $action_key ?>"><?php echo $action_val ?></span>)</a> <label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>"><?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label></li> 932 ?> /> <label for="<?php echo $post_type; ?>-<?php echo $action_key ?>-<?php echo $p_item->ID ?>"> 933 <?php echo $this->get_post_type_action_label($post_type, $action_key, 'name') ?></label></li> 966 934 967 935 <?php … … 992 960 && ($this->current_se_type['terms'][$action_key][$user->ID] == "on")) 993 961 echo "checked='checked' "; 994 ?> /> <a class="se-show-actions-panel" title="" href="#">(<span class="se-action-label-<?php echo $action_key ?>"><?php echo $action_val ?></span>)</a> <label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>"><?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label></li> 962 ?> /> <label for="<?php echo $se_type; ?>-<?php echo $action_key ?>-<?php echo $user->ID ?>"> 963 <?php echo $this->get_se_type_action_label($se_type, $action_key, 'name') ?></label></li> 995 964 996 965 <?php … … 1367 1336 1368 1337 $this->se_cfg['options']['plugins']['google-sitemap-generator'] = array(); 1369 $this->se_cfg['options']['plugins']['google-sitemap-generator']['name'] = __("Google XML Sitemaps", 'simply-exclude');1338 $this->se_cfg['options']['plugins']['google-sitemap-generator']['name'] = __("Google XML Sitemaps", SIMPLY_EXCLUDE_I18N_DOMAIN); 1370 1339 $this->se_cfg['options']['plugins']['google-sitemap-generator']['url'] = "http://wordpress.org/extend/plugins/google-sitemap-generator/"; 1371 $this->se_cfg['options']['plugins']['google-sitemap-generator']['desc'] = __("Warning: Page ID listed in the Sitemap plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", 'simply-exclude');1340 $this->se_cfg['options']['plugins']['google-sitemap-generator']['desc'] = __("Warning: Page ID listed in the Sitemap plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", SIMPLY_EXCLUDE_I18N_DOMAIN); 1372 1341 $this->se_cfg['options']['plugins']['google-sitemap-generator']['version'] = "3.1.6"; 1373 1342 $this->se_cfg['options']['plugins']['google-sitemap-generator']['active'] = false; … … 1375 1344 1376 1345 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions'] = array(); 1377 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['desc'] = __("Update Excluded Pages", 'simply-exclude');1346 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['desc'] = __("Update Excluded Pages", SIMPLY_EXCLUDE_I18N_DOMAIN); 1378 1347 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['pages']['update'] = false; 1379 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['desc'] = __("Update Excluded Categories", 'simply-exclude');1348 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['desc'] = __("Update Excluded Categories", SIMPLY_EXCLUDE_I18N_DOMAIN); 1380 1349 $this->se_cfg['options']['plugins']['google-sitemap-generator']['actions']['categories']['update'] = false; 1381 1350 1382 1351 1383 1352 $this->se_cfg['options']['plugins']['search-unleashed'] = array(); 1384 $this->se_cfg['options']['plugins']['search-unleashed']['name'] = __("Search Unleashed", 'simply-exclude');1353 $this->se_cfg['options']['plugins']['search-unleashed']['name'] = __("Search Unleashed", SIMPLY_EXCLUDE_I18N_DOMAIN); 1385 1354 $this->se_cfg['options']['plugins']['search-unleashed']['url'] = "http://wordpress.org/extend/plugins/search-unleashed/"; 1386 $this->se_cfg['options']['plugins']['search-unleashed']['desc'] = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", 'simply-exclude');1355 $this->se_cfg['options']['plugins']['search-unleashed']['desc'] = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", SIMPLY_EXCLUDE_I18N_DOMAIN); 1387 1356 $this->se_cfg['options']['plugins']['search-unleashed']['version'] = "1.0.5"; 1388 1357 $this->se_cfg['options']['plugins']['search-unleashed']['active'] = false; … … 1390 1359 1391 1360 $this->se_cfg['options']['plugins']['search-unleashed']['actions'] = array(); 1392 $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['desc'] = __("Update Excluded Pages", 'simply-exclude');1361 $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['desc'] = __("Update Excluded Pages", SIMPLY_EXCLUDE_I18N_DOMAIN); 1393 1362 $this->se_cfg['options']['plugins']['search-unleashed']['actions']['pages']['update'] = false; 1394 $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['desc'] = __("Update Excluded Categories", 'simply-exclude');1363 $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['desc'] = __("Update Excluded Categories", SIMPLY_EXCLUDE_I18N_DOMAIN); 1395 1364 $this->se_cfg['options']['plugins']['search-unleashed']['actions']['categories']['update'] = false; 1396 $this->se_cfg['options']['plugins']['search-unleashed']['desc'] = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", 'simply-exclude');1365 $this->se_cfg['options']['plugins']['search-unleashed']['desc'] = __("Warning: Page ID listed in the Search Unleashed plugin will be removed and replaced with Page ID from the Simply Exclude plugin. Post ID values will be ignored", SIMPLY_EXCLUDE_I18N_DOMAIN); 1397 1366 1398 1367 foreach($this->se_cfg['options']['plugins'] as $plugin => $plugin_data) … … 1686 1655 if ($taxonomy == "category") 1687 1656 { 1688 $taxonomy_actions['widget_category'] = "e"; 1689 $taxonomy_actions['widget_tag_cloud'] = "e"; 1690 //$taxonomy_actions['widget_recent_posts'] = "e"; 1657 $taxonomy_actions['widget_category'] = "e"; 1658 $taxonomy_actions['widget_tag_cloud'] = "e"; 1691 1659 } 1692 1660 1693 1661 if ($taxonomy == "post_tag") 1694 1662 { 1695 $taxonomy_actions['widget_tag_cloud'] = "e"; 1696 //$taxonomy_actions['widget_recent_posts'] = "e"; 1663 $taxonomy_actions['widget_tag_cloud'] = "e"; 1697 1664 } 1698 1665 … … 1711 1678 if ($post_type_object->capability_type == "post") 1712 1679 { 1713 $taxonomy_actions['is_home'] = "i"; 1714 $taxonomy_actions['is_archive'] = "e"; 1715 $taxonomy_actions['is_search'] = "e"; 1716 $taxonomy_actions['is_feed'] = "e"; 1717 //$taxonomy_actions['widget_archives'] = "e"; 1718 //$taxonomy_actions['widget_recent_posts'] = "e"; 1719 1680 $taxonomy_actions['is_home'] = "i"; 1681 $taxonomy_actions['is_archive'] = "e"; 1682 $taxonomy_actions['is_search'] = "e"; 1683 $taxonomy_actions['is_feed'] = "e"; 1684 //$taxonomy_actions['widget_archives'] = "e"; 1720 1685 } 1721 1686 else if ($post_type == "page") … … 1763 1728 { 1764 1729 case 'name': 1765 return __("Front/Home", 'simply-exclude');;1730 return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN);; 1766 1731 break; 1767 1732 1768 1733 case 'description': 1769 return __("Visibility on the front/main page.", 'simply-exclude');1734 return __("Visibility on the front/main page.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1770 1735 1771 1736 default: … … 1780 1745 { 1781 1746 case 'name': 1782 return __("Archives", 'simply-exclude');1747 return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN); 1783 1748 break; 1784 1749 1785 1750 case 'description': 1786 return __("Visibility on the archive of categories on the sidebar.", 'simply-exclude');1751 return __("Visibility on the archive of categories on the sidebar.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1787 1752 1788 1753 default: … … 1798 1763 { 1799 1764 case 'name': 1800 return __("Searches", 'simply-exclude');1765 return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN); 1801 1766 break; 1802 1767 1803 1768 case 'description': 1804 return __("Visibility in search results.", 'simply-exclude');1769 return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1805 1770 1806 1771 default: … … 1816 1781 { 1817 1782 case 'name': 1818 return __("Feeds", 'simply-exclude');1783 return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN); 1819 1784 break; 1820 1785 1821 1786 case 'description': 1822 return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');1787 return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1823 1788 1824 1789 default: … … 1834 1799 { 1835 1800 case 'name': 1836 return __(" Categories (W)", 'simply-exclude');1801 return __("Widget: Categories", SIMPLY_EXCLUDE_I18N_DOMAIN); 1837 1802 break; 1838 1803 1839 1804 case 'description': 1840 return __("Exclude from WordPress List Category Widget.", 'simply-exclude');1805 return __("Exclude from WordPress List Category Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1841 1806 break; 1842 1807 … … 1855 1820 { 1856 1821 case 'name': 1857 return __(" Tag Cloud (W)", 'simply-exclude');1822 return __("Widget: Tag Cloud", SIMPLY_EXCLUDE_I18N_DOMAIN); 1858 1823 break; 1859 1824 1860 1825 case 'description': 1861 return __("Exclude from WordPress Tag Cloud Widget.", 'simply-exclude');1826 return __("Exclude from WordPress Tag Cloud Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1862 1827 break; 1863 1828 … … 1870 1835 break; 1871 1836 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 1837 default: 1895 1838 return; … … 1907 1850 { 1908 1851 case 'name': 1909 return __("Front/Home", 'simply-exclude');1852 return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN); 1910 1853 break; 1911 1854 1912 1855 case 'description': 1913 return __("Visibility on the front/main page. Set 'Include All' to have this Post Type displayed in addition to the normal Posts.", 'simply-exclude');1856 return __("Visibility on the front/main page. Set 'Include All' to have this Post Type displayed in addition to the normal Posts.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1914 1857 1915 1858 default: … … 1924 1867 { 1925 1868 case 'name': 1926 return __("Archives", 'simply-exclude');1869 return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN); 1927 1870 break; 1928 1871 1929 1872 case 'description': 1930 return __("Visibility on the Post Type archive s page output. This selection will also include include/exclude for Archive, Recent Posts, Category, Tag Cloud Widgets.", 'simply-exclude');1873 return __("Visibility on the Post Type archive.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1931 1874 1932 1875 default: … … 1941 1884 { 1942 1885 case 'name': 1943 return __("Feeds", 'simply-exclude');1886 return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN); 1944 1887 break; 1945 1888 1946 1889 case 'description': 1947 return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');1890 return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1948 1891 1949 1892 default: … … 1958 1901 { 1959 1902 case 'name': 1960 return __("Searches", 'simply-exclude');1903 return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN); 1961 1904 break; 1962 1905 1963 1906 case 'description': 1964 return __("Visibility in search results.", 'simply-exclude');1907 return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1965 1908 1966 1909 default: … … 1974 1917 { 1975 1918 case 'name': 1976 return __(" Pages (W)", 'simply-exclude');1919 return __("Widget: Pages", SIMPLY_EXCLUDE_I18N_DOMAIN); 1977 1920 break; 1978 1921 1979 1922 case 'description': 1980 return __(" Support for WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded.", 'simply-exclude');1923 return __("Exclude from WordPress Pages Widget. Child pages are automatically excluded if the parent is Excluded.", SIMPLY_EXCLUDE_I18N_DOMAIN); 1981 1924 1982 1925 default: … … 1986 1929 break; 1987 1930 1988 /*1989 1931 case 'widget_archives': 1990 1932 … … 1993 1935 { 1994 1936 case 'name': 1995 return __(" Archives (W)", 'simply-exclude');1937 return __("Widget: Archives", SIMPLY_EXCLUDE_I18N_DOMAIN); 1996 1938 break; 1997 1939 1998 1940 case 'description': 1999 return __("Exclude from WordPress Archives Widget.", 'simply-exclude');1941 return __("Exclude from Post Archives Widget.", SIMPLY_EXCLUDE_I18N_DOMAIN); 2000 1942 2001 1943 default: … … 2005 1947 return; 2006 1948 break; 2007 */ 2008 /* 2009 case 'widget_recent_posts': 2010 if ($post_type == "post") { 2011 2012 switch($key) 2013 { 2014 case 'name': 2015 return __("Recent Posts (W)", 'simply-exclude'); 2016 break; 2017 2018 case 'description': 2019 return __("Exclude from WordPress Recent Posts Widget.", 'simply-exclude'); 2020 break; 2021 2022 default: 2023 return; 2024 break; 2025 } 2026 } 2027 return; 2028 break; 2029 */ 1949 2030 1950 default: 2031 1951 return; … … 2044 1964 { 2045 1965 case 'name': 2046 return __("Front/Home", 'simply-exclude');1966 return __("Front/Home", SIMPLY_EXCLUDE_I18N_DOMAIN); 2047 1967 break; 2048 1968 2049 1969 case 'description': 2050 return __("Visibility on the front/main page.", 'simply-exclude');1970 return __("Visibility on the front/main page.", SIMPLY_EXCLUDE_I18N_DOMAIN); 2051 1971 break; 2052 1972 … … 2062 1982 { 2063 1983 case 'name': 2064 return __("Archives", 'simply-exclude');1984 return __("Archives", SIMPLY_EXCLUDE_I18N_DOMAIN); 2065 1985 break; 2066 1986 2067 1987 case 'description': 2068 return __("Visibility on the archive of categories on the sidebar.", 'simply-exclude');1988 return __("Visibility on the archive of categories on the sidebar.", SIMPLY_EXCLUDE_I18N_DOMAIN); 2069 1989 break; 2070 1990 … … 2080 2000 { 2081 2001 case 'name': 2082 return __("Searches", 'simply-exclude');2002 return __("Searches", SIMPLY_EXCLUDE_I18N_DOMAIN); 2083 2003 break; 2084 2004 2085 2005 case 'description': 2086 return __("Visibility in search results.", 'simply-exclude');2006 return __("Visibility in search results.", SIMPLY_EXCLUDE_I18N_DOMAIN); 2087 2007 break; 2088 2008 … … 2098 2018 { 2099 2019 case 'name': 2100 return __("Feeds", 'simply-exclude');2020 return __("Feeds", SIMPLY_EXCLUDE_I18N_DOMAIN); 2101 2021 break; 2102 2022 2103 2023 case 'description': 2104 return __("Visibility in RSS/RSS2/Atom feeds.", 'simply-exclude');2024 return __("Visibility in RSS/RSS2/Atom feeds.", SIMPLY_EXCLUDE_I18N_DOMAIN); 2105 2025 break; 2106 2026 … … 2133 2053 2134 2054 // Check our debug 2135 if (( current_user_can('manage_options') ) && (isset($_GET['SE_DEBUG'])))2055 if (( current_user_can('manage_options') ) && (isset($_GET['SE_DEBUG']))) 2136 2056 $se_debug = true; 2137 2057 else … … 2418 2338 2419 2339 2340 2341 2342 2343 2344 2345 2420 2346 /****************************************************************************************************************************/ 2421 2347 /* */ … … 2464 2390 } 2465 2391 2466 function widget_categories_args_proc($args) 2467 { 2468 //echo "args<pre>"; print_r($args); echo "</pre>"; 2469 2470 //if ((isset($args['include'])) || (isset($args['exclude']))) 2471 // return; 2472 2473 if (isset($args['taxonomy'])) 2474 $taxonomy = $args['taxonomy']; 2475 else 2476 $taxonomy = 'category'; 2392 function se_widget_categories_dropdown_args_proc($args) 2393 { 2394 if ((isset($args['include'])) || (isset($args['exclude']))) 2395 return; 2477 2396 2478 2397 $this->se_load_config(); 2479 2480 $this->FILTER_STATE = array(); 2481 $this->FILTER_STATE[] = 'widget_categories_args'; 2482 2483 if ( (isset($this->se_cfg['data']['taxonomies'][$taxonomy]['terms']['widget_category'])) 2484 && (count($this->se_cfg['data']['taxonomies'][$taxonomy]['terms']['widget_category'])) ) 2485 { 2486 $action = $this->se_cfg['data']['taxonomies'][$taxonomy]['actions']['widget_category']; 2487 $terms = $this->se_cfg['data']['taxonomies'][$taxonomy]['terms']['widget_category']; 2398 2399 //echo "widget_category<pre>"; print_r($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category']); echo "</pre>"; 2400 2401 if ( (isset($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category'])) 2402 && (count($this->se_cfg['data']['taxonomies']['category']['terms']['widget_category'])) ) 2403 { 2404 $action = $this->se_cfg['data']['taxonomies']['category']['actions']['widget_category']; 2405 $terms = $this->se_cfg['data']['taxonomies']['category']['terms']['widget_category']; 2488 2406 2489 2407 $all_cat_ids = array(); … … 2512 2430 } 2513 2431 } 2514 2515 //echo "AFTER: args<pre>"; print_r($args); echo "</pre>";2516 2432 return $args; 2517 2433 } 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 2434 2597 2435 // The tag Cloud widget now supports using either taxonomy (post_tag or category). … … 2695 2533 } 2696 2534 2697 function se_widget_recent_posts_proc($args) { 2698 //echo "args<pre>"; print_r($args); echo "</pre>"; 2535 function se_widget_getarchives_where($where_sql) { 2536 2537 if (is_admin()) return $where_sql; 2699 2538 2700 2539 $this->se_load_config(); 2701 2540 2702 //echo "se_cfg<pre>"; print_r($this->se_cfg); echo "</pre>";2703 2541 $action_data = $this->se_get_action_data('is_archive'); 2704 //echo "action_data<pre>"; print_r($action_data); echo "</pre>";2705 //die();2706 2542 2707 2543 $post__in = array(); … … 2713 2549 2714 2550 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 2551 if ($key_key_data['actions'] == 'e') { 2719 2552 $post__not_in = array_merge($post__not_in, $key_key_data['terms']); … … 2726 2559 2727 2560 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 2561 if ((isset($key_key_data['terms'])) && (!empty($key_key_data['terms']))) { 2731 2562 $posts_ids = get_objects_in_term( $key_key_data['terms'], $key_key ); 2732 2563 if ( !is_wp_error( $posts_ids ) ) { 2733 //echo "posts_ids<pre>"; print_r($posts_ids); echo "</pre>";2734 2735 2564 if ($key_key_data['actions'] == 'e') { 2736 2565 $post__not_in = array_merge($post__not_in, $posts_ids); … … 2746 2575 2747 2576 if (!empty($post__not_in)) { 2748 if (isset($args['post__not_in'])) { 2749 $args['post__not_in'] = array_unique(array_merge($args['post__not_in'], $post__not_in)); 2750 } else { 2751 $args['post__not_in'] = array_unique($post__not_in); 2752 } 2753 //$where_sql .= " AND ID NOT IN(". implode(',', $post__not_in) .") "; 2577 $where_sql .= " AND ID NOT IN(". implode(',', $post__not_in) .") "; 2754 2578 2755 2579 } else if (!empty($post__in)) { 2756 if (isset($args['post__in'])) { 2757 $args['post__in'] = array_unique(array_merge($args['post__in'], $post__not_in)); 2758 } else { 2759 $args['post__in'] = array_unique($post__in); 2760 } 2580 $where_sql .= " AND ID IN(". implode(',', $post__not_in) .") "; 2761 2581 } 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 2582 return $where_sql; 2831 2583 } … … 3076 2828 case 'users': 3077 2829 ?> 3078 <p><?php _e("Set the checkbox to exclude the User items from the action", 'simply-exclude'); ?></p>3079 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", 'simply-exclude'); ?></p>3080 <p><strong><?php _e("Include only", 'simply-exclude'); ?></strong>: <?php _e("For example you have 3 Users but always want to show Posts for only 1 specific User in the Archives. New Users are automatically hidden.", 'simply-exclude'); ?></p>3081 <p><strong><?php _e("Exclude", 'simply-exclude'); ?></strong>: <?php _e("For example you have 3 Users but want to hide Posts from one User in the Archives. New Users will by visible.", 'simply-exclude'); ?></p>2830 <p><?php _e("Set the checkbox to exclude the User items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2831 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2832 <p><strong><?php _e("Include only", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 3 Users but always want to show Posts for only 1 specific User in the Archives. New Users are automatically hidden.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2833 <p><strong><?php _e("Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 3 Users but want to hide Posts from one User in the Archives. New Users will by visible.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3082 2834 3083 2835 <?php … … 3086 2838 case 'taxonomy': 3087 2839 ?> 3088 <p><?php _e("Set the checkbox to exclude the Taxonomy items from the action", 'simply-exclude'); ?></p>3089 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", 'simply-exclude'); ?></p>3090 <p><strong><?php _e("Include only", 'simply-exclude'); ?></strong>: <?php _e("For example you have 100 tags but only always want 3 to be used on the home page. New tags added are automatically hidden.", 'simply-exclude'); ?></p>3091 <p><strong><?php _e("Exclude", 'simply-exclude'); ?></strong>: <?php _e("For example you have 100 categories but want to hide 3 from being seen. New tags will be visible.", 'simply-exclude'); ?></p>2840 <p><?php _e("Set the checkbox to exclude the Taxonomy items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2841 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2842 <p><strong><?php _e("Include only", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 100 tags but only always want 3 to be used on the home page. New tags added are automatically hidden.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2843 <p><strong><?php _e("Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 100 categories but want to hide 3 from being seen. New tags will be visible.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3092 2844 <?php 3093 2845 break; … … 3095 2847 case 'post_type': 3096 2848 ?> 3097 <p><?php _e("Set the checkbox to exclude the Post Type items from the action", 'simply-exclude'); ?></p>3098 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", 'simply-exclude'); ?></p>3099 <p><strong><?php _e("Include only", 'simply-exclude'); ?></strong>: <?php _e("For example you have 10 Pages but only always want to include only 4 Pages shown in a Search. New Pages are automatically hidden.", 'simply-exclude'); ?></p>3100 <p><strong><?php _e("Exclude", 'simply-exclude'); ?></strong>: <?php _e("For example you have 10 Pages and want to hide 3 specific Pages from Search. New Pages will be visible.", 'simply-exclude'); ?></p>2849 <p><?php _e("Set the checkbox to exclude the Post Type items from the action", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2850 <p><?php _e("So what is the difference between <strong>Include only</strong> and <strong>Exclude</strong>?", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2851 <p><strong><?php _e("Include only", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 10 Pages but only always want to include only 4 Pages shown in a Search. New Pages are automatically hidden.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 2852 <p><strong><?php _e("Exclude", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong>: <?php _e("For example you have 10 Pages and want to hide 3 specific Pages from Search. New Pages will be visible.", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3101 2853 <?php 3102 2854 break; … … 3113 2865 <div id="howto-se-manage-settings-metaboxes-general" class="wrap"> 3114 2866 <?php screen_icon('options-general'); ?> 3115 <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", 'simply-exclude');2867 <h2><?php //_ex("Simply Exclude Manage Settings", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN); 3116 2868 foreach( $this->tabs as $tab => $name ){ 3117 2869 … … 3132 2884 3133 2885 case 'post_types': 2886 //add_meta_box('se_display_options_post_type_actions_panel', 'Post Types Actions', 2887 // array(&$this, 'se_display_options_post_type_actions_panel'), 2888 // $this->pagehooks['se_manage_settings'], 'normal', 'core'); 3134 2889 $this->se_display_options_post_type_actions_panel(); 3135 2890 break; 3136 2891 3137 2892 case 'users': 2893 //add_meta_box('se_display_options_user_actions_panel', 'Users Actions', array(&$this, 'se_display_options_user_actions_panel'), 2894 // $this->pagehooks['se_manage_settings'], 'normal', 'core'); 3138 2895 $this->se_display_options_user_actions_panel(); 3139 2896 break; … … 3141 2898 case 'taxonomies': 3142 2899 default: 2900 //add_meta_box('se_display_options_taxonomy_actions_panel', 'Taxonomies Actions', 2901 // array(&$this, 'se_display_options_taxonomy_actions_panel'), 2902 // $this->pagehooks['se_manage_settings'], 'normal', 'core'); 3143 2903 $this->se_display_options_taxonomy_actions_panel(); 3144 2904 break; … … 3218 2978 ?> 3219 2979 <div class="postbox"> 3220 <h3 class="simplyexclude-section-title"><?php _e('Users', 'simply-exclude'); ?></h3>2980 <h3 class="simplyexclude-section-title"><?php _e('Users', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h3> 3221 2981 <div class="inside"> 3222 2982 <?php … … 3240 3000 $this->se_save_config(); 3241 3001 3242 ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', 'simply-exclude'); ?></strong></p><?php3002 ?><p><strong><?php _e('Your Simply Excluded has successfully been reloaded.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></strong></p><?php 3243 3003 } 3244 3004 } 3245 3005 ?><p><?php _e('Version 2.0 and 2.0.1 of the plugins incorrectly converted your previous configuration of excluded items into a new format. You can use this 3246 option to force a reload of your Simply Exclude configuration into the new format.', 'simply-exclude'); ?></p>3006 option to force a reload of your Simply Exclude configuration into the new format.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3247 3007 3248 3008 <form name="" method="post" action""> … … 3251 3011 <option value="Yes">Yes</option> 3252 3012 </select><br /> 3253 <input type="submit" value="<?php _e('Reload Configuration', 'simply-exclude'); ?>" />3013 <input type="submit" value="<?php _e('Reload Configuration', SIMPLY_EXCLUDE_I18N_DOMAIN); ?>" /> 3254 3014 3255 3015 </form> … … 3260 3020 { 3261 3021 ?> 3262 <p><?php _e('The Simply Exclude plugin now works with a few other plugins. Check the box for support of the listed third party plugins options below', 'simply-exclude'); ?></p>3263 <p><?php _e('When you update this section you will then also need to go back into the Simply Exclude Category or Pages section and re-save the settings. This re-save will then update the third-party plugin settings with the update excluded values. On the respective Category or Pages sections of Simply Exclude you can use either include or exclude action.', 'simply-exclude'); ?></p>3264 <p style="color: #ff0000"><?php _e('Warning: Once enabled it is suggested you make edits to the exclusion/inclusion via Simply Exclude. Any Page or Category exclusion made in the third-party plugins will be over written by changed from Simply Exclude.', 'simply-exclude'); ?></p>3022 <p><?php _e('The Simply Exclude plugin now works with a few other plugins. Check the box for support of the listed third party plugins options below', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3023 <p><?php _e('When you update this section you will then also need to go back into the Simply Exclude Category or Pages section and re-save the settings. This re-save will then update the third-party plugin settings with the update excluded values. On the respective Category or Pages sections of Simply Exclude you can use either include or exclude action.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3024 <p style="color: #ff0000"><?php _e('Warning: Once enabled it is suggested you make edits to the exclusion/inclusion via Simply Exclude. Any Page or Category exclusion made in the third-party plugins will be over written by changed from Simply Exclude.', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3265 3025 3266 3026 <table id="simplyexclude-options-thirdparty-panel" class="widefat simplyexclude-actions-panel" cellpadding="3" cellspacing="3" border="0"> 3267 3027 <thead> 3268 3028 <tr> 3269 <th class="action"><?php _e('Plugin Name', 'simply-exclude') ?></th>3270 <th class="description"><?php _e('Description of Functionality', 'simply-exclude') ?></th>3271 <th class="inc-excl"><?php _e('Actions', 'simply-exclude') ?></th>3029 <th class="action"><?php _e('Plugin Name', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 3030 <th class="description"><?php _e('Description of Functionality', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 3031 <th class="inc-excl"><?php _e('Actions', SIMPLY_EXCLUDE_I18N_DOMAIN) ?></th> 3272 3032 </tr> 3273 3033 </thead> … … 3324 3084 { 3325 3085 ?><p><a class="" target="_blank" href="http://www.codehooligans.com/projects/wordpress/simply-exclude/"><?php 3326 _e('Plugin Homepage', 'simply-exclude'); ?></a></p><?php3086 _e('Plugin Homepage', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></a></p><?php 3327 3087 3328 3088 } … … 3331 3091 ?> 3332 3092 <p><?php _e('Show your support of this plugin by making a small donation to support future development. No donation amount too small.', 3333 'simply-exclude'); ?></p>3093 SIMPLY_EXCLUDE_I18N_DOMAIN); ?></p> 3334 3094 <p><a class="" target="_blank" href="http://www.codehooligans.com/donations/"><?php 3335 _e('Make a donation today', 'simply-exclude'); ?></a></p>3095 _e('Make a donation today', SIMPLY_EXCLUDE_I18N_DOMAIN); ?></a></p> 3336 3096 <?php 3337 3097 } … … 3342 3102 <div id="se-manage-help-metaboxes-general" class="wrap"> 3343 3103 <?php screen_icon('options-general'); ?> 3344 <h2><?php _ex("Simply Exclude Help", "Options Page Title", 'simply-exclude'); ?></h2>3104 <h2><?php _ex("Simply Exclude Help", "Options Page Title", SIMPLY_EXCLUDE_I18N_DOMAIN); ?></h2> 3345 3105 3346 3106 <div id="poststuff" class="metabox-holder has-right-sidebar simplyexclude-metabox-holder-right-sidebar">
Note: See TracChangeset
for help on using the changeset viewer.