From 186bd80fe198cbc4daeef0c48ecec2d123f4eae3 Mon Sep 17 00:00:00 2001 From: lechuck <l3chuck@autistici.org> Date: Sat, 14 Jul 2012 08:14:25 +0000 Subject: [PATCH] Upgrade Extended Categories to 3.6.4 --- .../2.8/avh-ec.client.php | 2 +- .../2.8/class/avh-ec.admin.php | 502 ++++-- .../2.8/class/avh-ec.category-group.php | 65 +- .../2.8/class/avh-ec.core.php | 227 +-- .../2.8/class/avh-ec.widgets.php | 323 ++-- .../2.8/css/avh-ec.admin.css | 60 +- .../js/avh-ec.admin.manualorder.closure.js | 1 + .../2.8/js/avh-ec.admin.manualorder.js | 19 + .../2.8/js/avh-ec.categorygroup.closure.js | 1 + .../2.8/js/avh-ec.categorygroup.js | 22 +- .../2.8/js/avh-ec.categorygroup.js.closure.js | 1 + .../3.3/avh-ec.client.php | 82 + .../3.3/class/avh-ec.admin.php | 1490 +++++++++++++++++ .../3.3/class/avh-ec.category-group.php | 411 +++++ .../3.3/class/avh-ec.core.php | 759 +++++++++ .../3.3/class/avh-ec.widgets.php | 1004 +++++++++++ .../3.3/css/avh-ec.admin.css | 155 ++ .../3.3/css/avh-ec.widget.css | 12 + .../3.3/helpers/avh-forms.php | 44 + .../3.3/images/us_banner_logow_120x60.gif | Bin 0 -> 2253 bytes .../js/avh-ec.admin.manualorder.closure.js | 1 + .../3.3/js/avh-ec.admin.manualorder.js | 19 + .../3.3/js/avh-ec.categorygroup.closure.js | 1 + .../3.3/js/avh-ec.categorygroup.js | 21 + .../lang/avh-ec-cs_CZ.mo | Bin 0 -> 4482 bytes .../lang/avh-ec-de_DE.mo | Bin 0 -> 16245 bytes .../lang/avh-ec-el.mo | Bin 0 -> 1785 bytes .../lang/avh-ec-en_US.mo | Bin 0 -> 590 bytes .../lang/avh-ec-es_ES.mo | Bin 0 -> 4086 bytes .../lang/avh-ec-id_ID.mo | Bin 0 -> 4403 bytes .../lang/avh-ec-it_IT.mo | Bin 0 -> 16669 bytes .../lang/avh-ec-nl_NL.mo | Bin 0 -> 4350 bytes .../lang/avh-ec-ru_RU.mo | Bin 0 -> 5650 bytes .../lang/avh-ec-sv_SE.mo | Bin 0 -> 4300 bytes .../lang/avh-ec-tr.mo | Bin 0 -> 1081 bytes .../extended-categories-widget/lang/avh-ec.mo | Bin 0 -> 590 bytes .../extended-categories-widget/lang/avh-ec.po | 1056 ++++++++++++ .../libs/avh-common.php | 100 ++ .../libs/avh-db.php | 67 + .../libs/avh-registry.php | 144 ++ .../libs/avh-security.php | 47 + .../libs/avh-visitor.php | 60 + .../extended-categories-widget/readme.txt | 32 +- .../widget-pre2.8.php | 2 +- .../widget_extended_categories.php | 51 +- 45 files changed, 6346 insertions(+), 435 deletions(-) create mode 100644 wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.closure.js create mode 100644 wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.js create mode 100644 wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.closure.js create mode 100644 wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js.closure.js create mode 100644 wp-content/plugins/extended-categories-widget/3.3/avh-ec.client.php create mode 100644 wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.admin.php create mode 100644 wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.category-group.php create mode 100644 wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.core.php create mode 100644 wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.widgets.php create mode 100644 wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.admin.css create mode 100644 wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.widget.css create mode 100644 wp-content/plugins/extended-categories-widget/3.3/helpers/avh-forms.php create mode 100644 wp-content/plugins/extended-categories-widget/3.3/images/us_banner_logow_120x60.gif create mode 100644 wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.closure.js create mode 100644 wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.js create mode 100644 wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.closure.js create mode 100644 wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.js create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-cs_CZ.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-de_DE.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-el.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-en_US.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-es_ES.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-id_ID.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-it_IT.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-nl_NL.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-ru_RU.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-sv_SE.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec-tr.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec.mo create mode 100644 wp-content/plugins/extended-categories-widget/lang/avh-ec.po create mode 100755 wp-content/plugins/extended-categories-widget/libs/avh-common.php create mode 100755 wp-content/plugins/extended-categories-widget/libs/avh-db.php create mode 100755 wp-content/plugins/extended-categories-widget/libs/avh-registry.php create mode 100755 wp-content/plugins/extended-categories-widget/libs/avh-security.php create mode 100755 wp-content/plugins/extended-categories-widget/libs/avh-visitor.php diff --git a/wp-content/plugins/extended-categories-widget/2.8/avh-ec.client.php b/wp-content/plugins/extended-categories-widget/2.8/avh-ec.client.php index 6a00ddb8c..3acf5bce8 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/avh-ec.client.php +++ b/wp-content/plugins/extended-categories-widget/2.8/avh-ec.client.php @@ -58,7 +58,7 @@ function avhextendedcategories_init () $avhec_admin = new AVH_EC_Admin(); } AVH_EC_Singleton::getInstance('AVH_EC_Core'); - + add_action('widgets_init', 'avhextendedcategories_widgets_init'); } // End avhamazon_init() diff --git a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.admin.php b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.admin.php index 4d42f875a..2fa05dca0 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.admin.php +++ b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.admin.php @@ -7,13 +7,13 @@ class AVH_EC_Admin * @var AVH_EC_Core */ var $core; - + /** * * @var AVH_EC_Category_Group */ var $catgrp; - + var $hooks = array(); var $message; @@ -23,29 +23,29 @@ class AVH_EC_Admin */ function __construct () { - + // Initialize the plugin $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); $this->catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); - + add_action('wp_ajax_delete-group', array(&$this, 'ajaxDeleteGroup')); - + // Admin menu add_action('admin_init', array(&$this,'actionAdminInit')); add_action('admin_menu', array(&$this, 'actionAdminMenu')); add_filter('plugin_action_links_extended-categories-widget/widget_extended_categories.php', array(&$this, 'filterPluginActions'), 10, 2); - + // Actions used for editing posts add_action('load-post.php', array(&$this, 'actionLoadPostPage')); add_action('load-page.php', array(&$this, 'actionLoadPostPage')); - + // Actions related to adding and deletes categories add_action("created_category", array($this, 'actionCreatedCategory'), 10, 2); add_action("delete_category", array($this, 'actionDeleteCategory'), 10, 2); - + add_filter('manage_categories_group_columns', array(&$this, 'filterManageCategoriesGroupColumns')); add_filter('explain_nonce_delete-avhecgroup', array(&$this, 'filterExplainNonceDeleteGroup'), 10, 2); - + return; } @@ -65,7 +65,7 @@ class AVH_EC_Admin add_action('edit_term', array(&$this,'handleEditTerm'), 10, 3 ); } - + /** * * Adds Category Group form @@ -75,30 +75,30 @@ class AVH_EC_Admin * @param unknown_type $taxonomy */ function displayCategoryGroupForm($term, $taxonomy){ - + $current_selection = ''; $tax_meta = get_option($this->core->db_options_tax_meta); if ( isset($tax_meta[$taxonomy][$term->term_id]) ) { $tax_meta = $tax_meta[$taxonomy][$term->term_id]; $current_selection = $tax_meta['category_group_term_id']; } - + if (empty($current_selection)) { $current_group = $this->catgrp->getGroupByCategoryID($term->term_id); $current_selection= $current_group->term_id; } - + $cat_groups = get_terms($this->catgrp->taxonomy_name, array('hide_empty'=>FALSE)); foreach ($cat_groups as $group) { $temp_cat = get_term($group->term_id, $this->catgrp->taxonomy_name, OBJECT, 'edit'); $dropdown_value[] = $group->term_id; $dropdown_text[] = $temp_cat->name; } - + foreach ( $dropdown_value as $key => $sel) { $seldata .= '<option value="' . esc_attr($sel) . '" ' . (($current_selection == $sel) ? 'selected="selected"' : '') . ' >' . esc_html(ucfirst($dropdown_text[$key])) . '</option>' . "\n"; } - + echo '<h3>AVH Extended Categories - Category Group Widget</h3>'; echo '<table class="form-table"><tbody>'; echo '<tr class="form-field">'; @@ -113,7 +113,7 @@ class AVH_EC_Admin echo '</tr>'; echo '</tbody></table>'; } - + /** * Saves the association Category - Category Group fron the edit taxonomy page * @WordPress action edit_form. @@ -129,7 +129,7 @@ class AVH_EC_Admin update_option($this->core->db_options_tax_meta, $tax_meta); } } - + /** * When a category is created this function is called to add the new category to the group all * @param $term_id @@ -170,30 +170,32 @@ class AVH_EC_Admin */ function actionAdminMenu () { - + // Register Style and Scripts - $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : ''; + $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.closure'; wp_register_script('avhec-categorygroup-js', AVHEC_PLUGIN_URL . '/js/avh-ec.categorygroup' . $suffix . '.js', array('jquery'), $this->core->version, true); + wp_register_script('avhec-manualorder', AVHEC_PLUGIN_URL . '/js/avh-ec.admin.manualorder' . $suffix . '.js', array ( 'jquery-ui-sortable' ), $this->core->version, false); wp_register_style('avhec-admin-css', AVHEC_PLUGIN_URL . '/css/avh-ec.admin.css', array('wp-admin'), $this->core->version, 'screen'); - + // Add menu system $folder = $this->core->getBaseDirectory(AVHEC_PLUGIN_DIR); add_menu_page('AVH Extended Categories', 'AVH Extended Categories', 'manage_options', $folder, array(&$this, 'doMenuOverview')); $this->hooks['menu_overview'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('Overview', 'avh-ec'), __('Overview', 'avh-ec'), 'manage_options', $folder, array(&$this, 'doMenuOverview')); $this->hooks['menu_general'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('General Options', 'avh-ec'), __('General Options', 'avh-ec'), 'manage_options', 'avhec-general', array(&$this, 'doMenuGeneral')); $this->hooks['menu_category_groups'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('Category Groups', 'avh-ec'), __('Category Groups', 'avh-ec'), 'manage_options', 'avhec-grouped', array(&$this, 'doMenuCategoryGroup')); + $this->hooks['menu_manual_order'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('Manually Order', 'avh-ec'), __('Manually Order', 'avh-ec'), 'manage_options', 'avhec-manual-order', array(&$this, 'doMenuManualOrder')); $this->hooks['menu_faq'] = add_submenu_page($folder, 'AVH Extended Categories:' . __('F.A.Q', 'avh-ec'), __('F.A.Q', 'avh-ec'), 'manage_options', 'avhec-faq', array(&$this, 'doMenuFAQ')); - + // Add actions for menu pages // Overview Menu add_action('load-' . $this->hooks['menu_overview'], array(&$this, 'actionLoadPageHook_Overview')); - + // General Options Menu add_action('load-' . $this->hooks['menu_general'], array(&$this, 'actionLoadPageHook_General')); - + // Category Groups Menu add_action('load-' . $this->hooks['menu_category_groups'], array(&$this, 'actionLoadPageHook_CategoryGroup')); - + // FAQ Menu add_action('load-' . $this->hooks['menu_faq'], array(&$this, 'actionLoadPageHook_faq')); } @@ -207,20 +209,24 @@ class AVH_EC_Admin // Add metaboxes add_meta_box('avhecBoxCategoryGroupList', __('Group Overview', 'avh-ec'), array(&$this, 'metaboxCategoryGroupList'), $this->hooks['menu_overview'], 'normal', 'core'); add_meta_box('avhecBoxTranslation', __('Translation', 'avh-ec'), array(&$this, 'metaboxTranslation'), $this->hooks['menu_overview'], 'normal', 'core'); - - add_filter('screen_layout_columns', array(&$this, 'filterScreenLayoutColumns'), 10, 2); - + + if (AVH_Common::getWordpressVersion() >= 3.1 ) { + add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); + } else { + add_filter('screen_layout_columns', array ( &$this, 'filterScreenLayoutColumns' ), 10, 2); + } + // WordPress core Scripts wp_enqueue_script('common'); wp_enqueue_script('wp-lists'); wp_enqueue_script('postbox'); - + // Plugin Scripts wp_enqueue_script('avhec-categorygroup-js'); - + // WordPress core Styles wp_admin_css('css/dashboard'); - + // Plugin Style wp_enqueue_style('avhec-admin-css'); } @@ -233,11 +239,11 @@ class AVH_EC_Admin function doMenuOverview () { global $screen_layout_columns; - + // This box can't be unselectd in the the Screen Options add_meta_box('avhecBoxAnnouncements', __('Announcements', 'avh-ec'), array(&$this, 'metaboxAnnouncements'), $this->hooks['menu_overview'], 'side', ''); add_meta_box('avhecBoxDonations', __('Donations', 'avh-ec'), array(&$this, 'metaboxDonations'), $this->hooks['menu_overview'], 'side', ''); - + $hide2 = ''; switch ($screen_layout_columns) { case 2: @@ -247,7 +253,7 @@ class AVH_EC_Admin $width = 'width:98%;'; $hide2 = 'display:none;'; } - + echo '<div class="wrap avhec-metabox-wrap">'; echo $this->displayIcon('index'); echo '<h2>' . 'AVH Extended Categories - ' . __('Overview', 'avh-ec') . '</h2>'; @@ -260,11 +266,11 @@ class AVH_EC_Admin do_meta_boxes($this->hooks['menu_overview'], 'side', ''); echo ' </div>'; echo ' </div>'; - + echo '<br class="clear"/>'; echo ' </div>'; //dashboard-widgets-wrap echo '</div>'; // wrap - + $this->printMetaboxGeneralNonces(); $this->printMetaboxJS('overview'); @@ -279,20 +285,24 @@ class AVH_EC_Admin { // Add metaboxes add_meta_box('avhecBoxOptions', __('Options', 'avh-ec'), array(&$this, 'metaboxOptions'), $this->hooks['menu_general'], 'normal', 'core'); - - add_filter('screen_layout_columns', array(&$this, 'filterScreenLayoutColumns'), 10, 2); - + + if (AVH_Common::getWordpressVersion() >= 3.1 ) { + add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); + } else { + add_filter('screen_layout_columns', array ( &$this, 'filterScreenLayoutColumns' ), 10, 2); + } + // WordPress core Scripts wp_enqueue_script('common'); wp_enqueue_script('wp-lists'); wp_enqueue_script('postbox'); - + // WordPress core Styles wp_admin_css('css/dashboard'); - + // Plugin Style and Scripts wp_enqueue_style('avhec-admin-css'); - + } /** @@ -303,24 +313,24 @@ class AVH_EC_Admin function doMenuGeneral () { global $screen_layout_columns; - + $groups = get_terms($this->catgrp->taxonomy_name, array('hide_empty'=>FALSE)); foreach ($groups as $group) { $group_id[] = $group->term_id; $groupname[] = $group->name; } - + $options_general[] = array('avhec[general][alternative_name_select_category]', __('<em>Select Category</em> Alternative', 'avh-ec'), 'text', 20, __('Alternative text for Select Category.', 'avh-ec')); $options_general[] = array('avhec[cat_group][home_group]', 'Home Group', 'dropdown', $group_id, $groupname, __('Select which group to show on the home page.', 'avh-ec') . '<br />' . __('Selecting the group \'none\' will not show the widget on the page.', 'avh-ec')); $options_general[] = array('avhec[cat_group][no_group]', 'Nonexistence Group', 'dropdown', $group_id, $groupname, __('Select which group to show when there is no group associated with the post.', 'avh-ec') . '<br />' . __('Selecting the group \'none\' will not show the widget on the page.', 'avh-ec')); $options_general[] = array('avhec[cat_group][default_group]', 'Default Group', 'dropdown', $group_id, $groupname, __('Select which group will be the default group when editing a post.', 'avh-ec') . '<br />' . __('Selecting the group \'none\' will not show the widget on the page.', 'avh-ec')); - + if (isset($_POST['updateoptions'])) { check_admin_referer('avh_ec_generaloptions'); - + $formoptions = $_POST['avhec']; $options = $this->core->getOptions(); - + //$all_data = array_merge( $options_general ); $all_data = $options_general; foreach ($all_data as $option) { @@ -328,7 +338,7 @@ class AVH_EC_Admin $section = substr($section, 0, strpos($section, '][')); $option_key = rtrim($option[0], ']'); $option_key = substr($option_key, strpos($option_key, '][') + 2); - + switch ($section) { case 'general': case 'cat_group': @@ -349,17 +359,17 @@ class AVH_EC_Admin $this->core->saveOptions($options); $this->message = __('Options saved', 'avh-ec'); $this->status = 'updated fade'; - + } $this->displayMessage(); - + $actual_options = $this->core->getOptions(); foreach ($actual_options['cat_group'] as $key => $value) { if (! (in_array($value, (array) $group_id))) { $actual_options['cat_group'][$key] = $this->catgrp->getTermIDBy('slug', 'none'); } } - + $hide2 = ''; switch ($screen_layout_columns) { case 2: @@ -371,10 +381,10 @@ class AVH_EC_Admin } $data['options_general'] = $options_general; $data['actual_options'] = $actual_options; - + // This box can't be unselectd in the the Screen Options add_meta_box('avhecBoxDonations', __('Donations', 'avh-ec'), array(&$this, 'metaboxDonations'), $this->hooks['menu_general'], 'side', 'core'); - + $hide2 = ''; switch ($screen_layout_columns) { case 2: @@ -384,13 +394,13 @@ class AVH_EC_Admin $width = 'width:98%;'; $hide2 = 'display:none;'; } - + echo '<div class="wrap avhec-metabox-wrap">'; echo $this->displayIcon('index'); echo '<h2>' . 'AVH Extended Categories - ' . __('General Options', 'avh-ec') . '</h2>'; echo '<form name="avhec-generaloptions" id="avhec-generaloptions" method="POST" action="' . admin_url('admin.php?page=avhec-general') . '" accept-charset="utf-8" >'; wp_nonce_field('avh_ec_generaloptions'); - + echo ' <div id="dashboard-widgets-wrap">'; echo ' <div id="dashboard-widgets" class="metabox-holder">'; echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; @@ -400,14 +410,14 @@ class AVH_EC_Admin do_meta_boxes($this->hooks['menu_general'], 'side', $data); echo ' </div>'; echo ' </div>'; - + echo '<br class="clear"/>'; echo ' </div>'; //dashboard-widgets-wrap echo '<p class="submit"><input class="button" type="submit" name="updateoptions" value="' . __('Save Changes', 'avhf-ec') . '" /></p>'; echo '</form>'; - + echo '</div>'; // wrap - + $this->printMetaboxGeneralNonces(); $this->printMetaboxJS('general'); @@ -429,27 +439,32 @@ class AVH_EC_Admin */ function actionLoadPageHook_CategoryGroup () { - + // Add metaboxes add_meta_box('avhecBoxCategoryGroupAdd', __('Add Group', 'avh-ec'), array(&$this, 'metaboxCategoryGroupAdd'), $this->hooks['menu_category_groups'], 'normal', 'core'); add_meta_box('avhecBoxCategoryGroupList', __('Group Overview', 'avh-ec'), array(&$this, 'metaboxCategoryGroupList'), $this->hooks['menu_category_groups'], 'side', 'core'); add_meta_box('avhecBoxCategoryGroupSpecialPages', __('Special Pages', 'avh-ec'), array(&$this, 'metaboxCategoryGroupSpecialPages'), $this->hooks['menu_category_groups'], 'normal', 'core'); - - add_filter('screen_layout_columns', array(&$this, 'filterScreenLayoutColumns'), 10, 2); + + if (AVH_Common::getWordpressVersion() >= 3.1 ) { + add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); + } else { + add_filter('screen_layout_columns', array ( &$this, 'filterScreenLayoutColumns' ), 10, 2); + } + // WordPress core Scripts wp_enqueue_script('common'); wp_enqueue_script('wp-lists'); wp_enqueue_script('postbox'); - + // Plugin Scripts wp_enqueue_script('avhec-categorygroup-js'); - + // WordPress core Styles wp_admin_css('css/dashboard'); - + // Plugin Style wp_enqueue_style('avhec-admin-css'); - + } /** @@ -460,31 +475,31 @@ class AVH_EC_Admin function doMenuCategoryGroup () { global $screen_layout_columns; - + $data_add_group_default = array('name'=>'', 'slug'=>'', 'widget_title'=>'', 'description'=>''); $data_add_group_new = $data_add_group_default; - - $options_add_group[] = array('avhec_add_group[add][name]', __(' Group Name', 'avh-ec'), 'text', 20, __('The name is used to identify the group.', 'avh-ec')); - $options_add_group[] = array('avhec_add_group[add][slug]', __(' Slug Group', 'avh-ec'), 'text', 20, __('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'avh-ec')); - $options_add_group[] = array('avhec_add_group[add][widget_title]', __(' Widget Title,', 'avh-ec'), 'text', 20, __('When no title is given in the widget options, this will used as the title of the widget when this group is shown.', 'avh-ec')); - $options_add_group[] = array('avhec_add_group[add][description]', __(' Description', 'avh-ec'), 'textarea', 40, __('Description is not prominent by default.', 'avh-ec'), 5); - - $options_edit_group[] = array('avhec_edit_group[edit][name]', __(' Group Name', 'avh-ec'), 'text', 20, __('The name is used to identify the group.', 'avh-ec')); - $options_edit_group[] = array('avhec_edit_group[edit][slug]', __(' Slug Group', 'avh-ec'), 'text', 20, __('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'avh-ec')); - $options_edit_group[] = array('avhec_edit_group[edit][widget_title]', __(' Widget Title', 'avh-ec'), 'text', 20, __('When no title is given in the widget options, this will used as the title of the widget when this group is shown.', 'avh-ec')); - $options_edit_group[] = array('avhec_edit_group[edit][description]', __(' Description', 'avh-ec'), 'textarea', 40, __('Description is not prominent by default.', 'avh-ec'), 5); - $options_edit_group[] = array('avhec_edit_group[edit][categories]', __(' Categories', 'avh-ec'), 'catlist', 0, __('Select categories to be included in the group.', 'avh-ec')); - + + $options_add_group[] = array('avhec_add_group[add][name]', __('Group Name', 'avh-ec'), 'text', 20, __('The name is used to identify the group.', 'avh-ec')); + $options_add_group[] = array('avhec_add_group[add][slug]', __('Slug Group', 'avh-ec'), 'text', 20, __('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'avh-ec')); + $options_add_group[] = array('avhec_add_group[add][widget_title]', __('Widget Title', 'avh-ec'), 'text', 20, __('When no title is given in the widget options, this will used as the title of the widget when this group is shown.', 'avh-ec')); + $options_add_group[] = array('avhec_add_group[add][description]', __('Description', 'avh-ec'), 'textarea', 40, __('Description is not prominent by default.', 'avh-ec'), 5); + + $options_edit_group[] = array('avhec_edit_group[edit][name]', __('Group Name', 'avh-ec'), 'text', 20, __('The name is used to identify the group.', 'avh-ec')); + $options_edit_group[] = array('avhec_edit_group[edit][slug]', __('Slug Group', 'avh-ec'), 'text', 20, __('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'avh-ec')); + $options_edit_group[] = array('avhec_edit_group[edit][widget_title]', __('Widget Title', 'avh-ec'), 'text', 20, __('When no title is given in the widget options, this will used as the title of the widget when this group is shown.', 'avh-ec')); + $options_edit_group[] = array('avhec_edit_group[edit][description]', __('Description', 'avh-ec'), 'textarea', 40, __('Description is not prominent by default.', 'avh-ec'), 5); + $options_edit_group[] = array('avhec_edit_group[edit][categories]', __('Categories', 'avh-ec'), 'catlist', 0, __('Select categories to be included in the group.', 'avh-ec')); + if (isset($_POST['addgroup'])) { check_admin_referer('avh_ec_addgroup'); - + $formoptions = $_POST['avhec_add_group']; - + $data_add_group_new['name'] = $formoptions['add']['name']; $data_add_group_new['slug'] = empty($formoptions['add']['slug']) ? sanitize_title($data_add_group_new['name']) : sanitize_title($formoptions['add']['slug']); $data_add_group_new['widget_title'] = $formoptions['add']['widget_title']; $data_add_group_new['description'] = $formoptions['add']['description']; - + $id = $this->catgrp->getTermIDBy('slug', $data_add_group_new['slug']); if (! $id) { $group_id = $this->catgrp->doInsertGroup($data_add_group_new['name'], array('description'=>$data_add_group_new['description'], 'slug'=>$data_add_group_new['slug']), $data_add_group_new['widget_title']); @@ -492,32 +507,32 @@ class AVH_EC_Admin $this->message = __('Category group saved', 'avh-ec'); $this->status = 'updated fade'; $data_add_group_new = $data_add_group_default; - + } else { $group = $this->catgrp->getGroup($id); $this->message = __('Category group conflicts with ', 'avh-ec') . $group->name; $this->message .= '<br />' . __('Same slug is used. ', 'avh-ec'); $this->status = 'error'; - + } $this->displayMessage(); } $data_add_group['add'] = $data_add_group_new; $data['add'] = array('form'=>$options_add_group, 'data'=>$data_add_group); - + if (isset($_GET['action'])) { $action = $_GET['action']; - + switch ($action) { case 'edit': $group_id = (int) $_GET['group_ID']; $group = $this->catgrp->getGroup($group_id); $widget_title = $this->catgrp->getWidgetTitleForGroup($group_id); $cats = $this->catgrp->getCategoriesFromGroup($group_id); - + $data_edit_group['edit'] = array('group_id'=>$group_id, 'name'=>$group->name, 'slug'=>$group->slug, 'widget_title'=>$widget_title, 'description'=>$group->description, 'categories'=>$cats); $data['edit'] = array('form'=>$options_edit_group, 'data'=>$data_edit_group); - + add_meta_box('avhecBoxCategoryGroupEdit', __('Edit Group', 'avh-ec') . ': ' . $group->name, array(&$this, 'metaboxCategoryGroupEdit'), $this->hooks['menu_category_groups'], 'normal', 'low'); break; case 'delete': @@ -525,10 +540,10 @@ class AVH_EC_Admin wp_redirect($this->getBackLink()); exit(); } - + $group_id = (int) $_GET['group_ID']; check_admin_referer('delete-avhecgroup_' . $group_id); - + if (! current_user_can('manage_categories')) { wp_die(__('Cheatin’ uh?')); } @@ -539,13 +554,13 @@ class AVH_EC_Admin break; } } - + if (isset($_POST['editgroup'])) { check_admin_referer('avh_ec_editgroup'); - + $formoptions = $_POST['avhec_edit_group']; $selected_categories = $_POST['post_category']; - + $group_id = (int) $_POST['avhec-group_id']; $result = $this->catgrp->doUpdateGroup($group_id, array('name'=>$formoptions['edit']['name'], 'slug'=>$formoptions['edit']['slug'], 'description'=>$formoptions['edit']['description']), $selected_categories, $formoptions['edit']['widget_title']); switch ($result) { @@ -565,7 +580,7 @@ class AVH_EC_Admin } $this->displayMessage(); } - + $hide2 = ''; switch ($screen_layout_columns) { case 2: @@ -575,12 +590,12 @@ class AVH_EC_Admin $width = 'width:98%;'; $hide2 = 'display:none;'; } - + $data_special_pages_old = $this->core->options['sp_cat_group']; $data_special_pages_new = $data_special_pages_old; if (isset($_POST['avhec_special_pages'])) { check_admin_referer('avh_ec_specialpagesgroup'); - + $formoptions = $_POST['avhec_special_pages']; $formdata = $formoptions['sp']; foreach ($formdata as $key => $value) { @@ -588,11 +603,11 @@ class AVH_EC_Admin } $this->core->options['sp_cat_group'] = $data_special_pages_new; $this->core->saveOptions($this->core->options); - + } $data_special_pages['sp'] = $data_special_pages_new; $cat_groups = get_terms($this->catgrp->taxonomy_name, array('hide_empty'=>FALSE)); - + foreach ($cat_groups as $group) { $temp_cat = get_term($group->term_id, $this->catgrp->taxonomy_name, OBJECT, 'edit'); $dropdown_value[] = $group->term_id; @@ -605,33 +620,33 @@ class AVH_EC_Admin $options_special_pages[] = array('avhec_special_pages[sp][year_group]', __('Yearly Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.','avh-ec'),__('yearly archive','avhec'))); $options_special_pages[] = array('avhec_special_pages[sp][author_group]', __('Author Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.','avh-ec'),__('author archive','avhec'))); $options_special_pages[] = array('avhec_special_pages[sp][search_group]', __('Search Page', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.','avh-ec'),__('search','avhec'))); - + $data['sp'] = array('form'=>$options_special_pages, 'data'=>$data_special_pages); - + // This box can't be unselectd in the the Screen Options //add_meta_box( 'avhecBoxDonations', __( 'Donations', 'avh-ec' ), array (&$this, 'metaboxDonations' ), $this->hooks['menu_category_groups'], 'side', 'core' ); - + echo '<div class="wrap avhec-metabox-wrap">'; echo $this->displayIcon('index'); echo '<h2>' . 'AVH Extended Categories - ' . __('Category Groups', 'avh-ec') . '</h2>'; - + echo ' <div id="dashboard-widgets-wrap">'; echo ' <div id="dashboard-widgets" class="metabox-holder">'; - + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; do_meta_boxes($this->hooks['menu_category_groups'], 'normal', $data); echo " </div>"; - + echo ' <div class="postbox-container" style="' . $hide2 . $width . '">' . "\n"; do_meta_boxes($this->hooks['menu_category_groups'], 'side', $data); echo ' </div>'; - + echo ' </div>'; // dashboard-widgets echo '<br class="clear" />'; echo ' </div>'; //dashboard-widgets-wrap echo '</div>'; // wrap - + $this->printMetaboxGeneralNonces(); $this->printMetaboxJS('grouped'); @@ -659,30 +674,30 @@ class AVH_EC_Admin function metaboxCategoryGroupList ($data) { echo '<form id="posts-filter" action="" method="get">'; - + echo '<div class="clear"></div>'; - + echo '<table class="widefat fixed" cellspacing="0">'; echo '<thead>'; echo '<tr>'; print_column_headers('categories_group'); echo '</tr>'; echo '</thead>'; - + echo '<tfoot>'; echo '<tr>'; print_column_headers('categories_group', false); echo '</tr>'; echo '</tfoot>'; - + echo '<tbody id="the-list" class="list:group">'; $this->printCategoryGroupRows(); echo '</tbody>'; echo '</table>'; - + echo '<br class="clear" />'; echo '</form>'; - + //echo '</div>'; } @@ -713,29 +728,198 @@ class AVH_EC_Admin echo '</form>'; } + + /** + * Setup everything needed for the Manul Order page + * + */ + function actionLoadPageHook_ManualOrder () + { + + add_meta_box('avhecBoxManualOrder', __('Manually Order Categories', 'avh-ec'), array(&$this, 'metaboxManualOrder'), $this->hooks['menu_manual_order'], 'normal', 'core'); + + + if (AVH_Common::getWordpressVersion() >= 3.1 ) { + add_screen_option('layout_columns', array('max' => 1, 'default' => 1) ); + } else { + add_filter('screen_layout_columns', array ( &$this, 'filterScreenLayoutColumns' ), 10, 2); + } + + // WordPress core Styles and Scripts + wp_enqueue_script('common'); + wp_enqueue_script('wp-lists'); + wp_enqueue_script('postbox'); + wp_enqueue_script('jquery-ui-sortable'); + wp_enqueue_script('avhec-manualorder'); + + // WordPress core Styles + wp_admin_css('css/dashboard'); + + // Plugin Style + wp_enqueue_style('avhec-admin-css'); + + } + + /** + * Menu Page Manual Order + * + * @return none + */ + function doMenuManualOrder () + { + global $screen_layout_columns; + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + + echo '<div class="wrap">'; + echo $this->displayIcon('index'); + echo '<h2>' . 'AVH Extended Categories - ' . __('Manually Order Categories', 'avh-ec') . '</h2>'; + + echo '<div class="metabox-holder">'; + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_manual_order'], 'normal', ''); + echo ' </div>'; + echo '</div>'; + echo '</div>'; // wrap + echo '<div class="clear"></div>'; + + $this->printMetaboxGeneralNonces(); + $this->printMetaboxJS('manual_order'); + $this->printAdminFooter(); + } + + /** + * + * @return unknown_type + */ + function metaboxManualOrder () + { + global $wpdb; + + $parentID = 0; + + if (isset($_POST['btnSubCats'])) { + $parentID = $_POST['cats']; + } elseif (isset($_POST['hdnParentID'])) { + $parentID = $_POST['hdnParentID']; + } + + if (isset($_POST['btnReturnParent'])) { + $parentsParent = $wpdb->get_row("SELECT parent FROM $wpdb->term_taxonomy WHERE term_id = " . $_POST['hdnParentID'], ARRAY_N); + $parentID = $parentsParent[0]; + } + + $success = ""; + if (isset($_POST['btnOrderCats'])) { + if (isset($_POST['hdnManualOrder']) && $_POST['hdnManualOrder'] != "") { + + $hdnManualOrder = $_POST['hdnManualOrder']; + $IDs = explode(",", $hdnManualOrder); + $result = count($IDs); + + for ($i = 0; $i < $result; $i ++) { + $str = str_replace("id_", "", $IDs[$i]); + $wpdb->query($wpdb->prepare("UPDATE $wpdb->terms SET avhec_term_order = '$i' WHERE term_id ='$str'")); + } + + $success = '<div id="message" class="updated fade"><p>' . __('Categories updated successfully.', 'avh-ec') . '</p></div>'; + } else { + $success = '<div id="message" class="updated fade"><p>' . __('An error occured, order has not been saved.', 'avh-ec') . '</p></div>'; + } + + } + + $_SubCategories = ""; + $results = $wpdb->get_results($wpdb->prepare("SELECT t.term_id, t.name FROM $wpdb->term_taxonomy tt, $wpdb->terms t, $wpdb->term_taxonomy tt2 WHERE tt.parent = $parentID AND tt.taxonomy = 'category' AND t.term_id = tt.term_id AND tt2.parent = tt.term_id GROUP BY t.term_id, t.name HAVING COUNT(*) > 0 ORDER BY t.avhec_term_order ASC")); + foreach ($results as $row) { + $_SubCategories .= "<option value='$row->term_id'>$row->name</option>"; + } + + echo '<div class="wrap">'; + echo '<form name="frmMyCatOrder" method="post" action="">'; + echo $success; + + + + echo '<h4>'; + _e('Order the categories', 'avh-ec'); + if ($parentID == 0) { + echo ' at the Toplevel'; + } else { + $_cats = get_category_parents($parentID, false, ' » '); + echo ' in the category ' . trim($_cats, ' » '); + } + echo '</h4>'; + echo '<span class="description">'; + _e('Order the categories on this level by dragging and dropping them into the desired order.', 'avh-ec'); + echo '</span>'; + echo '<ul id="avhecManualOrder">'; + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->terms t inner join $wpdb->term_taxonomy tt on t.term_id = tt.term_id WHERE taxonomy = 'category' and parent = $parentID ORDER BY avhec_term_order ASC")); + foreach ($results as $row) + echo "<li id='id_$row->term_id' class='lineitem menu-item-settings'>" . __($row->name) . "</li>"; + + echo '</ul>'; + echo '<input type="submit" name="btnOrderCats" id="btnOrderCats" class="button-primary" value="' . __('Save Order', 'avh-ec') . '" onclick="javascript:orderCats(); return true;" />'; + + if ($parentID != 0) { + echo "<input type='submit' class='button' id='btnReturnParent' name='btnReturnParent' value='" . __('Return to parent category', 'avh-ec') . "' />"; + } + + echo '<strong id="updateText"></strong><br /><br />'; + if ($_SubCategories != "") { + + echo '<h4>'; + _e('Select Subcategory', 'avh-ec'); + echo '</h4>'; + echo '<select id="cats" name="cats">'; + echo $_SubCategories; + + echo '</select><input type="submit" name="btnSubCats" class="button" id="btnSubCats" value="' . __('Select', 'avh-ec') . '" />'; + echo '<span class="description">'; + _e('Choose a category from the drop down to order the subcategories in that category.', 'avh-ec'); + echo '</span>'; + } + + echo '<input type="hidden" id="hdnManualOrder" name="hdnManualOrder" />'; + echo '<input type="hidden" id="hdnParentID" name="hdnParentID" value="' . $parentID . '" /></form>'; + echo '</div>'; + } + /** * Setup everything needed for the FAQ page * */ function actionLoadPageHook_faq () { - + add_meta_box('avhecBoxFAQ', __('F.A.Q.', 'avh-ec'), array(&$this, 'metaboxFAQ'), $this->hooks['menu_faq'], 'normal', 'core'); add_meta_box('avhecBoxTranslation', __('Translation', 'avh-ec'), array(&$this, 'metaboxTranslation'), $this->hooks['menu_faq'], 'normal', 'core'); - - add_filter('screen_layout_columns', array(&$this, 'filterScreenLayoutColumns'), 10, 2); - + + if (AVH_Common::getWordpressVersion() >= 3.1 ) { + add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); + } else { + add_filter('screen_layout_columns', array ( &$this, 'filterScreenLayoutColumns' ), 10, 2); + } + // WordPress core Styles and Scripts wp_enqueue_script('common'); wp_enqueue_script('wp-lists'); wp_enqueue_script('postbox'); - + // WordPress core Styles wp_admin_css('css/dashboard'); - + // Plugin Style wp_enqueue_style('avhec-admin-css'); - + } /** @@ -746,11 +930,11 @@ class AVH_EC_Admin function doMenuFAQ () { global $screen_layout_columns; - + // This box can't be unselectd in the the Screen Options add_meta_box('avhecBoxAnnouncements', __('Announcements', 'avh-ec'), array(&$this, 'metaboxAnnouncements'), $this->hooks['menu_faq'], 'side', 'core'); add_meta_box('avhecBoxDonations', __('Donations', 'avh-ec'), array(&$this, 'metaboxDonations'), $this->hooks['menu_faq'], 'side', 'core'); - + $hide2 = ''; switch ($screen_layout_columns) { case 2: @@ -760,7 +944,7 @@ class AVH_EC_Admin $width = 'width:98%;'; $hide2 = 'display:none;'; } - + echo '<div class="wrap avhec-metabox-wrap">'; echo $this->displayIcon('index'); echo '<h2>' . 'AVH Extended Categories - ' . __('F.A.Q', 'avh-ec') . '</h2>'; @@ -776,7 +960,7 @@ class AVH_EC_Admin echo '<br class="clear"/>'; echo ' </div>'; //dashboard-widgets-wrap echo '</div>'; // wrap - + $this->printMetaboxGeneralNonces(); $this->printMetaboxJS('faq'); @@ -800,12 +984,12 @@ class AVH_EC_Admin $available_locale['es_ES'] = array('Spanish - Español',0); $available_locale['sv_SE'] = array('Swedish - Svenska',0); $available_locale['tr'] = array('Turkish - Türkçe',0); - + echo '<div class="p">'; echo __('This plugin is translated in several languages. Some of the languages might be incomplete. Please help to complete these translations or add a new language.', 'avh-ec') . '<br />'; echo '</div>'; - + echo '<div class="p">'; echo '<span class="b">' . __('Available Languages', 'avh-ec') . '</span>'; echo '<ul>'; @@ -817,7 +1001,7 @@ class AVH_EC_Admin } echo '</ul>'; echo '</div>'; - + echo '<div class="p">'; if ('en_US' != $locale & (!array_key_exists($locale, $available_locale))){ echo 'Currently the plugin is not available in your language ('.$locale.'). Why not help out and translate the plugin in your language. You can help by visiting <a href="https://translations.launchpad.net/avhextendedcategories/trunk" target="_blank">Launchpad</a>.'; @@ -825,7 +1009,7 @@ class AVH_EC_Admin echo __('You can visit ', 'avh-ec') . '<a href="https://translations.launchpad.net/avhextendedcategories/trunk" target="_blank">Launchpad</a> ' . __('to help complete these translations or add a new language.', 'avh-ec'); } echo '</div>'; - + } /** @@ -837,24 +1021,24 @@ class AVH_EC_Admin echo '<div class="p">'; echo __('If you enjoy this plug-in please consider a donation. There are several ways you can show your appreciation.', 'avh-ec'); echo '</div>'; - + echo '<div class="p">'; echo '<span class="b">Amazon</span><br />'; echo __('If you decide to buy something from Amazon click the button.', 'avh-ec') . '</span><br />'; - echo '<a href="https://www.amazon.com/?&tag=avh-donation-20" target="_blank" title="Amazon Homepage"><img alt="Amazon Button" src="' . $this->core->info['graphics_url'] . '/us_banner_logow_120x60.gif" /></a>'; + echo '<a href="https://www.amazon.com/?tag=avh-donation-20" target="_blank" title="Amazon Homepage"><img alt="Amazon Button" src="' . $this->core->info['graphics_url'] . '/us_banner_logow_120x60.gif" /></a>'; echo '</div>'; - + echo '<div class="p">'; - echo __('You can send me something from my ', 'avh-ec') . '<a href="http://www.amazon.com/gp/registry/wishlist/1U3DTWZ72PI7W?tag=avh-donation-20">' . __('Amazon Wish List', 'avh-ec') . '</a>'; + echo __('You can send me something from my ', 'avh-ec') . '<a href="http://www.amazon.com/registry/wishlist/1U3DTWZ72PI7W?tag=avh-donation-20">' . __('Amazon Wish List', 'avh-ec') . '</a>'; echo '</div>'; - + echo '<div class="p">'; echo '<span class="b">' . __('Through Paypal.', 'avh-ec') . '</span><br />'; echo __('Click on the Donate button and you will be directed to Paypal where you can make your donation and you don\'t need to have a Paypal account to make a donation.', 'avh-ec') . '<br />'; echo '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=S85FXJ9EBHAF2&lc=US&item_name=AVH%20Plugins&item_number=fdas¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank" title="Donate">'; echo '<img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Donate"/></a>'; echo '</div>'; - + } /*** @@ -867,14 +1051,14 @@ class AVH_EC_Admin echo '<span class="b">' . __('What about support?', 'avh-ec') . '</span><br />'; echo __('I created a support site at http://forums.avirtualhome.com where you can ask questions or request features.', 'avh-ec') . '<br />'; echo '</div>'; - + echo '<div class="p">'; echo '<span class="b">' . __('What is depth selection?', 'avh-ec') . '</span><br />'; echo __('Starting with version 2.0 and WordPress 2.8 you can select how many levels deep you want to show your categories. This option only works when you select Show Hierarchy as well.', 'avh-ec') . '<br /><br />'; echo __('Here is how it works: Say you have 5 top level categories and each top level has a number of children. You could manually select all the Top Level categories you want to show but now you can do the following:', 'avh-ec') . '<br />'; echo __('You select to display all categories, select to Show hierarchy and select how many levels you want to show, in this case Toplevel only.', 'avh-ec') . '<br />'; echo '</div>'; - + echo '<div class="p">'; echo '<span class="b">' . __('Multiple Category Groups', 'avh-ec') . '</span><br />'; echo __('The following is an explanation how assigning multiple groups to page/post works.', 'avh-ec') . '<br /><br />'; @@ -928,7 +1112,7 @@ class AVH_EC_Admin echo __('I run my personal blog there and I am very happy with their services. You can get an account with unlimited bandwidth, storage and much more for a low price.', 'avh-ec'); } echo '</div>'; - + } /** @@ -938,7 +1122,7 @@ class AVH_EC_Admin * @param $screen * @return strings */ - + function filterScreenLayoutColumns ($columns, $screen) { switch ($screen) { @@ -954,7 +1138,7 @@ class AVH_EC_Admin case $this->hooks['menu_faq']: $columns[$this->hooks['menu_faq']] = 2; break; - + } return $columns; } @@ -970,7 +1154,7 @@ class AVH_EC_Admin $settings_link = '<a href="admin.php?page=extended-categories-widget">' . __('Settings', 'avh-ec') . '</a>'; array_unshift($links, $settings_link); // before other links return $links; - + } /** @@ -998,13 +1182,13 @@ class AVH_EC_Admin function filterExplainNonceDeleteGroup ($text, $group_id) { $group = get_term($group_id, $this->catgrp->taxonomy_name, OBJECT, 'display'); - + $return = sprintf(__('Your attempt to delete this group: “%s” has failed.'), $group->name); return ($return); } ############## Admin WP Helper ############## - + /** * Get the backlink for forms @@ -1017,7 +1201,7 @@ class AVH_EC_Admin if (isset($_GET['page']) && ! empty($_GET['page'])) { $page = preg_replace('[^a-zA-Z0-9\.\_\-]', '', $_GET['page']); } - + if (function_exists("admin_url")) return admin_url(basename($_SERVER["PHP_SELF"])) . "?page=" . $page; else @@ -1033,7 +1217,7 @@ class AVH_EC_Admin function printCategoryGroupRows () { $cat_groups = get_terms($this->catgrp->taxonomy_name, array('hide_empty'=>FALSE)); - + foreach ($cat_groups as $group) { if ('none' != $group->slug) { echo $this->printCategoryGroupRow($group->term_id, $group->term_taxonomy_id); @@ -1051,18 +1235,18 @@ class AVH_EC_Admin function printCategoryGroupRow ($group_term_id, $group_term_taxonomy_id) { static $row_class = ''; - + $group = get_term($group_term_id, $this->catgrp->taxonomy_name, OBJECT, 'display'); - + $no_edit[$this->catgrp->getTermIDBy('slug', 'all')] = 0; $no_delete[$this->catgrp->getTermIDBy('slug', 'all')] = 0; - + if (current_user_can('manage_categories')) { $actions = array(); if (! array_key_exists($group->term_id, $no_edit)) { $edit_link = "admin.php?page=avhec-grouped&action=edit&group_ID=$group->term_id"; $edit = "<a class='row-title' href='$edit_link' title='" . esc_attr(sprintf(__('Edit “%s”'), $group->name)) . "'>" . esc_attr($group->name) . '</a><br />'; - + $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; } else { $edit = esc_attr($group->name); @@ -1082,23 +1266,23 @@ class AVH_EC_Admin } else { $edit = $group->name; } - + $row_class = 'alternate' == $row_class ? '' : 'alternate'; $qe_data = get_term($group->term_id, $this->catgrp->taxonomy_name, OBJECT, 'edit'); - + $output = "<tr id='group-$group->term_id' class='iedit $row_class'>"; - + $columns = get_column_headers('categories_group'); $hidden = get_hidden_columns('categories_group'); foreach ($columns as $column_name => $column_display_name) { $class = 'class="' . $column_name . ' column-' . $column_name . '"'; - + $style = ''; if (in_array($column_name, $hidden)) $style = ' style="display:none;"'; - + $attributes = $class . $style; - + switch ($column_name) { case 'cb': $output .= '<th scope="row" class="check-column">'; @@ -1120,7 +1304,7 @@ class AVH_EC_Admin $title = $this->catgrp->getWidgetTitleForGroup($group->term_id); $output .= '<td ' . $attributes . '>' . $title . '</td>'; break; - + case 'description': $output .= '<td ' . $attributes . '>' . $qe_data->description . '</td>'; break; @@ -1137,11 +1321,11 @@ class AVH_EC_Admin $cat = implode(', ', $catname); $output .= '<td ' . $attributes . '>' . $cat . '</td>'; break; - + } } $output .= '</tr>'; - + return $output; } @@ -1156,7 +1340,7 @@ class AVH_EC_Admin wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); echo '</p>'; echo '</form>'; - + } /** @@ -1176,7 +1360,7 @@ class AVH_EC_Admin echo ' });' . "\n"; echo ' //]]>' . "\n"; echo '</script>'; - + } /** @@ -1186,7 +1370,7 @@ class AVH_EC_Admin function printAdminFooter () { echo '<p class="footer_avhec">'; - printf('© Copyright 2011 <a href="http://blog.avirtualhome.com/" title="My Thoughts">Peter van der Does</a> | AVH Extended Categories Version %s', $this->core->version); + printf('© Copyright %d <a href="http://blog.avirtualhome.com/" title="My Thoughts">Peter van der Does</a> | AVH Extended Categories Version %s', date('Y'), $this->core->version); echo '</p>'; } @@ -1314,7 +1498,7 @@ class AVH_EC_Admin { $group_id = isset($_POST['id']) ? (int) $_POST['id'] : 0; check_ajax_referer('delete-avhecgroup_' . $group_id); - + if (! current_user_can('manage_categories')) { die('-1'); } @@ -1322,7 +1506,7 @@ class AVH_EC_Admin if (false === $check) { die('1'); } - + if ($this->catgrp->doDeleteGroup($group_id)) { die('1'); } else { diff --git a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.category-group.php b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.category-group.php index d8398e9a0..decf622d2 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.category-group.php +++ b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.category-group.php @@ -4,7 +4,6 @@ * AVH Extended Categorie Category Group Class * * @author Peter van der Does - * @copyright 2010 */ class AVH_EC_Category_Group { @@ -13,11 +12,11 @@ class AVH_EC_Category_Group * @var string */ var $taxonomy_name; - + var $db_options_widget_titles; - + var $options_widget_titles; - + var $widget_done_catgroup; /** @@ -37,19 +36,19 @@ class AVH_EC_Category_Group function __construct () { global $wpdb; - + register_shutdown_function(array(&$this, '__destruct')); - + /** * Taxonomy name * @var string */ $this->taxonomy_name = 'avhec_catgroup'; - + $this->db_options_widget_titles = 'avhec_widget_titles'; // add DB pointer $wpdb->avhec_cat_group = $wpdb->prefix . 'avhec_category_groups'; - + /** * Create the table if it doesn't exist. * @@ -59,9 +58,9 @@ class AVH_EC_Category_Group } add_action('init', array(&$this, 'doRegisterTaxonomy'), 2); // Priority for registering custom taxonomies is +1 over the creation of the initial taxonomies add_action('init', array(&$this, 'doSetupOptions')); - + add_action('admin_init', array(&$this, 'addMetaBoxes')); - + } /** @@ -82,19 +81,19 @@ class AVH_EC_Category_Group function doCreateTable () { global $wpdb; - + // Setup the DB Tables $charset_collate = ''; - + if (version_compare(mysql_get_server_info(), '4.1.0', '>=')) { if (! empty($wpdb->charset)) $charset_collate = 'DEFAULT CHARACTER SET ' . $wpdb->charset; if (! empty($wpdb->collate)) $charset_collate .= ' COLLATE ' . $wpdb->collate; } - + $sql = 'CREATE TABLE `' . $wpdb->avhec_cat_group . '` ( `group_term_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `term_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`group_term_id`, `term_id`) )' . $charset_collate . ';'; - + $result = $wpdb->query($sql); } @@ -112,7 +111,7 @@ class AVH_EC_Category_Group $labels = array('name'=>__('Category Groups', 'avh-ec'), 'singular_name'=>__('Category Group', 'avh-ec'), 'search_items'=>__('Search Category Groups', 'avh-ec'), 'popular_items'=>__('Popular Category Groups'), 'all_items'=>__('All Category Groups'), 'parent_item'=>__('Parent Category Group'), 'parent_item_colon'=>__('Parent Category Group:'), 'edit_item'=>__('Edit Category Group'), 'update_item'=>__('Update Category Group'), 'add_new_item'=>__('Add New Category Group'), 'new_item_name'=>__('New Category Group Name')); $caps = array('manage_terms'=>null, 'edit_terms'=>null, 'delete_terms'=>null, 'assign_terms'=>'edit_posts'); register_taxonomy($this->taxonomy_name, array('post', 'page'), array('hierarchical'=>TRUE, 'labels'=>$labels, 'query_var'=>TRUE, 'rewrite'=>TRUE, 'show_in_nav_menus'=>FALSE, 'public'=>TRUE, 'show_ui'=>FALSE, 'capabilities'=>$caps)); - + } /** @@ -128,13 +127,13 @@ class AVH_EC_Category_Group $none_group_id = wp_insert_term('none', $this->taxonomy_name, array('description'=>__('This group will not show the widget.', 'avh-ec'))); $all_group_id = wp_insert_term('All', $this->taxonomy_name, array('description'=>__('Holds all the categories.', 'avh-ec'))); $home_group_id = wp_insert_term('Home', $this->taxonomy_name, array('description'=>__('This group will be shown on the front page.', 'avh-ec'))); - + // Fill the standard groups with all categories $this->setCategoriesForGroup($home_group_id['term_id'], $all_categories); $this->setWidgetTitleForGroup($all_group_id['term_id'], ''); $this->setWidgetTitleForGroup($home_group_id['term_id'], ''); } - + $options = get_option($this->db_options_widget_titles); if (! $options) { $options = array(); @@ -186,10 +185,10 @@ class AVH_EC_Category_Group function getCategoriesFromGroup ($group_id) { global $wpdb; - + // Query database $result = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->terms . ' t, ' . $wpdb->avhec_cat_group . ' cg WHERE t.term_id = cg.term_id AND cg.group_term_id = %d', $group_id)); - + if (is_array($result)) { // Call succeeded if (empty($result)) { // No rows found $return = array(); @@ -215,9 +214,9 @@ class AVH_EC_Category_Group function setCategoriesForGroup ($group_id, $categories = array()) { global $wpdb; - + $old_categories = $this->getCategoriesFromGroup($group_id); - + if (! is_array($categories)) { $categories = array(); } @@ -228,10 +227,10 @@ class AVH_EC_Category_Group if ($new_categories === $old_categories) { return false; } - + $new = array_diff($new_categories, $old_categories); $removed = array_diff($old_categories, $new_categories); - + if (! empty($new)) { foreach ($new as $cat_term_id) { $insert[] = '(' . $group_id . ',' . $cat_term_id . ')'; @@ -239,16 +238,16 @@ class AVH_EC_Category_Group $value = implode(',', $insert); $sql = 'INSERT INTO ' . $wpdb->avhec_cat_group . ' (group_term_id, term_id) VALUES ' . $value; $result = $wpdb->query($sql); - + } - + if (! empty($removed)) { $delete = implode(',', $removed); $sql = $wpdb->prepare('DELETE FROM ' . $wpdb->avhec_cat_group . ' WHERE group_term_id=%d and term_id IN (' . $delete . ')', $group_id); $result = $wpdb->query($sql); - + } - + return $result; } @@ -316,7 +315,7 @@ class AVH_EC_Category_Group function getGroup ($group_id) { global $wpdb; - + $result = get_term((int) $group_id, $this->taxonomy_name); if (null === $result) { $result = false; @@ -327,7 +326,7 @@ class AVH_EC_Category_Group function getGroupByCategoryID($category_id){ $return = get_term_by('slug', 'none', $this->taxonomy_name); $cat_groups = get_terms($this->taxonomy_name, array('hide_empty'=>FALSE)); - + foreach ($cat_groups as $group) { $cats = $this->getCategoriesFromGroup($group->term_id); if ($group->slug != 'all' && in_array($category_id,$cats)) { @@ -357,14 +356,14 @@ class AVH_EC_Category_Group */ function doDeleteGroup ($group_id) { - + global $wpdb; - + $group = $this->getGroup($group_id); $result = $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->avhec_cat_group . ' WHERE group_term_id=%d', $group_id)); $this->doDeleteWidgetTitle($group_id); $return = wp_delete_term($group->term_id, $this->taxonomy_name); - + return ($return); } @@ -379,7 +378,7 @@ class AVH_EC_Category_Group */ function doUpdateGroup ($group_id, $args = array(), $selected_categories, $widget_title = '') { - + $group = $this->getGroup($group_id); if (is_object($group)) { $id = wp_update_term($group->term_id, $this->taxonomy_name, $args); diff --git a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.core.php b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.core.php index c1b93d1b0..66df6cdd1 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.core.php +++ b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.core.php @@ -10,9 +10,9 @@ class AVH_EC_Core var $default_options_general; var $default_options_category_group; var $default_options_sp_category_group; - + var $db_options_tax_meta; - + var $options; /** @@ -26,13 +26,13 @@ class AVH_EC_Core * @var AVH_EC_Category_Group */ $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); - - $this->version = '3.4.2'; + + $this->version = '3.6.4'; $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->'; $this->db_options_core = 'avhec'; $this->db_options_tax_meta = 'avhec-tax_meta'; - - add_action('init', array(&$this, 'handleInitializePlugin'), 10); + + add_action('init', array ( &$this, 'handleInitializePlugin' ), 10); } /** @@ -47,43 +47,66 @@ class AVH_EC_Core function handleInitializePlugin () { + global $wpdb; + $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); $db_version = 4; - + $info['siteurl'] = get_option('siteurl'); $info['plugin_dir'] = AVHEC_PLUGIN_DIR; - $info['lang_dir'] = AVHEC_RELATIVE_WORKING_DIR . '/lang'; $info['graphics_url'] = AVHEC_PLUGIN_URL . '/images'; - + // Set class property for info - $this->info = array('home'=>get_option('home'), 'siteurl'=>$info['siteurl'], 'plugin_dir'=>$info['plugin_dir'], 'lang_dir'=>$info['lang_dir'], 'graphics_url'=>$info['graphics_url']); - + $this->info = array ( 'home' => get_option('home'), 'siteurl' => $info['siteurl'], 'plugin_dir' => $info['plugin_dir'], 'js_dir' => $info['plugin_dir'] . '/js', 'graphics_url' => $info['graphics_url'] ); + // Set the default options - $this->default_options_general = array('version'=>$this->version, 'dbversion'=>$db_version, 'alternative_name_select_category'=>''); - + $this->default_options_general = array ( 'version' => $this->version, 'dbversion' => $db_version, 'alternative_name_select_category' => '' ); + // Set the default category group options $no_group_id = $catgrp->getTermIDBy('slug', 'none'); $home_group_id = $catgrp->getTermIDBy('slug', 'home'); $default_group_id = $catgrp->getTermIDBy('slug', 'all'); - $this->default_options_category_group = array('no_group'=>$no_group_id, 'home_group'=>$home_group_id, 'default_group'=>$default_group_id); - - $this->default_options_sp_category_group = array('home_group'=>$home_group_id, 'category_group'=>$default_group_id, 'day_group'=>$default_group_id, 'month_group'=>$default_group_id, 'year_group'=>$default_group_id, 'author_group'=>$default_group_id, 'search_group'=>$default_group_id); - - $this->default_options = array('general'=>$this->default_options_general, 'cat_group'=>$this->default_options_category_group, 'widget_titles'=>array(), 'sp_cat_group'=>$this->default_options_sp_category_group); - + $this->default_options_category_group = array ( 'no_group' => $no_group_id, 'home_group' => $home_group_id, 'default_group' => $default_group_id ); + + $this->default_options_sp_category_group = array ( 'home_group' => $home_group_id, 'category_group' => $default_group_id, 'day_group' => $default_group_id, 'month_group' => $default_group_id, 'year_group' => $default_group_id, 'author_group' => $default_group_id, 'search_group' => $default_group_id ); + + $this->default_options = array ( 'general' => $this->default_options_general, 'cat_group' => $this->default_options_category_group, 'widget_titles' => array (), 'sp_cat_group' => $this->default_options_sp_category_group ); + /** * Set the options for the program * */ $this->loadOptions(); - + // Check if we have to do updates if ((! isset($this->options['general']['dbversion'])) || $this->options['general']['dbversion'] < $db_version) { $this->doUpdateOptions($db_version); } - + + $db = new AVH_DB(); + if (! $db->field_exists('avhec_term_order', $wpdb->terms)) { + $wpdb->query("ALTER TABLE $wpdb->terms ADD `avhec_term_order` INT( 4 ) NULL DEFAULT '0'"); + } + $this->handleTextdomain(); - + add_filter('get_terms_orderby', array ( &$this, 'applyOrderFilter' ), 10, 2); + + } + + function applyOrderFilter ($orderby, $args) + { + switch ($args['orderby']) { + case 'avhec_manualorder': + $new_orderby = 't.avhec_term_order'; + break; + case 'avhec_3rdparty_mycategoryorder': + $new_orderby = 't.term_order'; + break; + default: + $new_orderby = $orderby; + break; + } + return $new_orderby; } /** @@ -93,9 +116,9 @@ class AVH_EC_Core */ function handleTextdomain () { - - load_plugin_textdomain('avh-ec', false, $this->info['lang_dir']); - + + load_plugin_textdomain('avh-ec', false, AVHEC_RELATIVE_PLUGIN_DIR . '/lang'); + } /** @@ -107,7 +130,7 @@ class AVH_EC_Core function doUpdateOptions ($db_version) { $options = $this->getOptions(); - + // Add none existing sections and/or elements to the options foreach ($this->default_options as $section => $default_data) { if (! array_key_exists($section, $options)) { @@ -120,7 +143,19 @@ class AVH_EC_Core } } } - + + // Remove none existing sections and/or elements from the options + foreach ($options as $section => $data) { + if (! array_key_exists($section, $this->default_options)) { + unset($options[$section]); + continue; + } + foreach ($data as $element => $value) { + if (! array_key_exists($element, $this->default_options[$section])) { + unset($options[$section][$element]); + } + } + } /** * Update the options to the latests versions */ @@ -172,7 +207,7 @@ class AVH_EC_Core { //place each directory into array and get the last element $return = end(explode('/', $directory)); - + return $return; } @@ -181,7 +216,7 @@ class AVH_EC_Core * Methods for variable: options * * * ********************************/ - + /** * @param array $data */ @@ -288,44 +323,44 @@ class AVH_EC_Core function avh_wp_dropdown_categories ($args = '', $selectedonly) { $mywalker = new AVH_Walker_CategoryDropdown(); - - $defaults = array('show_option_all'=>'', 'show_option_none'=>'', 'orderby'=>'id', 'order'=>'ASC', 'show_last_update'=>0, 'show_count'=>0, 'hide_empty'=>1, 'child_of'=>0, 'exclude'=>'', 'echo'=>1, 'selected'=>0, 'hierarchical'=>0, 'name'=>'cat', 'class'=>'postform', 'depth'=>0, 'tab_index'=>0, 'walker'=>$mywalker); - + + $defaults = array ( 'show_option_all' => '', 'show_option_none' => '', 'orderby' => 'id', 'order' => 'ASC', 'show_last_update' => 0, 'show_count' => 0, 'hide_empty' => 1, 'child_of' => 0, 'exclude' => '', 'echo' => 1, 'selected' => 0, 'hierarchical' => 0, 'name' => 'cat', 'class' => 'postform', 'depth' => 0, 'tab_index' => 0, 'walker' => $mywalker ); + $defaults['selected'] = (is_category()) ? get_query_var('cat') : 0; - + $r = wp_parse_args($args, $defaults); - + if (! isset($r['pad_counts']) && $r['show_count'] && $r['hierarchical']) { $r['pad_counts'] = true; } - + $r['include_last_update_time'] = $r['show_last_update']; extract($r); - + $tab_index_attribute = ''; if ((int) $tab_index > 0) $tab_index_attribute = ' tabindex="' . $tab_index . '"'; - + $categories = get_categories($r); $name = esc_attr($name); $class = esc_attr($class); - + $output = ''; if (! empty($categories)) { $output = '<select name="' . $name . '" id="' . $name . '" class="' . $class . '" ' . $tab_index_attribute . '>' . "\n"; - + if ($show_option_all) { $show_option_all = apply_filters('list_cats', $show_option_all); $selected = ('0' === strval($r['selected'])) ? " selected='selected'" : ''; $output .= "\t" . '<option value="0"' . $selected . '>' . $show_option_all . '</option>' . "\n"; } - + if ($show_option_none) { $show_option_none = apply_filters('list_cats', $show_option_none); $selected = ('-1' === strval($r['selected'])) ? " selected='selected'" : ''; $output .= "\t" . '<option value="-1"' . $selected . '>' . $show_option_none . '</option>' . "\n"; } - + if ($hierarchical) { $depth = $r['depth']; // Walk the full depth. } else { @@ -334,12 +369,12 @@ class AVH_EC_Core $output .= walk_category_dropdown_tree($categories, $depth, $r); $output .= "</select>\n"; } - + $output = apply_filters('wp_dropdown_cats', $output); - + if ($echo) echo $output; - + return $output; } @@ -379,35 +414,35 @@ class AVH_EC_Core function avh_wp_list_categories ($args = '', $selectedonly) { $mywalker = new AVHEC_Walker_Category(); - $defaults = array('show_option_all'=>'', 'orderby'=>'name', 'order'=>'ASC', 'show_last_update'=>0, 'style'=>'list', 'show_count'=>0, 'hide_empty'=>1, 'use_desc_for_title'=>1, 'child_of'=>0, 'feed'=>'', 'feed_type'=>'', 'feed_image'=>'', 'exclude'=>'', 'exclude_tree'=>'', 'current_category'=>0, 'hierarchical'=>true, 'title_li'=>__('Categories'), 'echo'=>1, 'depth'=>0, 'walker'=>$mywalker); - + $defaults = array ( 'show_option_all' => '', 'orderby' => 'name', 'order' => 'ASC', 'show_last_update' => 0, 'style' => 'list', 'show_count' => 0, 'hide_empty' => 1, 'use_desc_for_title' => 1, 'child_of' => 0, 'feed' => '', 'feed_type' => '', 'feed_image' => '', 'exclude' => '', 'exclude_tree' => '', 'current_category' => 0, 'hierarchical' => true, 'title_li' => __('Categories'), 'echo' => 1, 'depth' => 0, 'walker' => $mywalker ); + $r = wp_parse_args($args, $defaults); - + if (! isset($r['pad_counts']) && $r['show_count'] && $r['hierarchical']) { $r['pad_counts'] = true; } - + if (! isset($r['pad_counts']) && $r['show_count'] && $r['hierarchical']) { $r['pad_counts'] = true; } - + if (isset($r['show_date'])) { $r['include_last_update_time'] = $r['show_date']; } - + if (true == $r['hierarchical']) { $r['exclude_tree'] = $r['exclude']; $r['exclude'] = ''; } - + extract($r); - + $categories = get_categories($r); - + $output = ''; if ($title_li && 'list' == $style) $output = '<li class="categories">' . $r['title_li'] . '<ul>'; - + if (empty($categories)) { if ('list' == $style) $output .= '<li>' . __("No categories") . '</li>'; @@ -415,30 +450,30 @@ class AVH_EC_Core $output .= __("No categories"); } else { global $wp_query; - + if (! empty($show_option_all)) if ('list' == $style) $output .= '<li><a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a></li>'; else $output .= '<a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a>'; - + if (empty($r['current_category']) && is_category()) $r['current_category'] = $wp_query->get_queried_object_id(); - + if ($hierarchical) { $depth = $r['depth']; } else { $depth = - 1; // Flat. } - + $output .= walk_category_tree($categories, $depth, $r); } - + if ($title_li && 'list' == $style) $output .= '</ul></li>'; - + $output = apply_filters('wp_list_categories', $output); - + if ($echo) echo $output; else @@ -476,53 +511,53 @@ class AVH_Walker_CategoryDropdown extends Walker_CategoryDropdown function walk ($elements, $max_depth) { - + $args = array_slice(func_get_args(), 2); $output = ''; - + if ($max_depth < - 1) //invalid parameter return $output; - + if (empty($elements)) //nothing to walk return $output; - + $id_field = $this->db_fields['id']; $parent_field = $this->db_fields['parent']; - + // flat display if (- 1 == $max_depth) { - $empty_array = array(); + $empty_array = array (); foreach ($elements as $e) $this->display_element($e, $empty_array, 1, 0, $args, $output); return $output; } - + /* * need to display in hierarchical order * seperate elements into two buckets: top level and children elements * children_elements is two dimensional array, eg. * children_elements[10][] contains all sub-elements whose parent is 10. */ - $top_level_elements = array(); - $children_elements = array(); + $top_level_elements = array (); + $children_elements = array (); foreach ($elements as $e) { if (0 == $e->$parent_field) $top_level_elements[] = $e; else $children_elements[$e->$parent_field][] = $e; } - + /* * when none of the elements is top level * assume the first one must be root of the sub elements */ if (empty($top_level_elements)) { - + $first = array_slice($elements, 0, 1); $root = $first[0]; - - $top_level_elements = array(); - $children_elements = array(); + + $top_level_elements = array (); + $children_elements = array (); foreach ($elements as $e) { if ($root->$parent_field == $e->$parent_field) $top_level_elements[] = $e; @@ -530,21 +565,21 @@ class AVH_Walker_CategoryDropdown extends Walker_CategoryDropdown $children_elements[$e->$parent_field][] = $e; } } - + foreach ($top_level_elements as $e) $this->display_element($e, $children_elements, $max_depth, 0, $args, $output); - - /* + + /* * if we are displaying all levels, and remaining children_elements is not empty, * then we got orphans, which should be displayed regardless */ if ((0 == $max_depth) && count($children_elements) > 0) { - $empty_array = array(); + $empty_array = array (); foreach ($children_elements as $orphans) foreach ($orphans as $op) $this->display_element($op, $empty_array, 1, 0, $args, $output); } - + return $output; } } @@ -562,14 +597,14 @@ class AVHEC_Walker_Category extends Walker * @var string */ var $tree_type = 'category'; - + /** * @see Walker::$db_fields * @since 2.1.0 * @todo Decouple this * @var array */ - var $db_fields = array('parent'=>'parent', 'id'=>'term_id'); + var $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' ); /** * @see Walker::start_lvl() @@ -583,7 +618,7 @@ class AVHEC_Walker_Category extends Walker { if ('list' != $args['style']) return; - + $indent = str_repeat("\t", $depth); $output .= $indent . '<ul class="children">' . "\n"; } @@ -600,7 +635,7 @@ class AVHEC_Walker_Category extends Walker { if ('list' != $args['style']) return; - + $indent = str_repeat("\t", $depth); $output .= $indent . '</ul>' . "\n"; } @@ -617,7 +652,7 @@ class AVHEC_Walker_Category extends Walker function start_el (&$output, $category, $depth, $args) { extract($args); - + $cat_name = esc_attr($category->name); $cat_name = apply_filters('list_cats', $cat_name, $category); $link = '<div class="avhec-widget-line"><a href="' . get_category_link($category->term_id) . '" '; @@ -627,15 +662,15 @@ class AVHEC_Walker_Category extends Walker $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"'; $link .= '>'; $link .= $cat_name . '</a>'; - + if ((! empty($feed_image)) || (! empty($feed))) { $link .= '<div class="avhec-widget-rss"> '; - + if (empty($feed_image)) $link .= '('; - + $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"'; - + if (empty($feed)) $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"'; else { @@ -644,9 +679,9 @@ class AVHEC_Walker_Category extends Walker $name = $feed; $link .= $title; } - + $link .= '>'; - + if (empty($feed_image)) $link .= $name; else @@ -656,17 +691,17 @@ class AVHEC_Walker_Category extends Walker $link .= ')'; $link .= '</div>'; } - + if (isset($show_count) && $show_count) $link .= '<div class="avhec-widget-count"> (' . intval($category->count) . ')</div>'; - + if (isset($show_date) && $show_date) { $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); } - + if (isset($current_category) && $current_category) $_current_category = get_category($current_category); - + if ('list' == $args['style']) { $output .= "\t" . '<li'; $class = 'cat-item cat-item-' . $category->term_id; @@ -694,7 +729,7 @@ class AVHEC_Walker_Category extends Walker { if ('list' != $args['style']) return; - + $output .= '</li>' . "\n"; } } diff --git a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.widgets.php b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.widgets.php index 387f524b3..c7824f5c0 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.widgets.php +++ b/wp-content/plugins/extended-categories-widget/2.8/class/avh-ec.widgets.php @@ -19,7 +19,7 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget function __construct () { $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); - + //Convert the old option widget_extended_categories to widget_extended-categories $old = get_option('widget_extended_categories'); if (! (FALSE === $old)) { @@ -27,10 +27,10 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget delete_option('widget_extended_categories'); } $widget_ops = array('description'=>__("An extended version of the default Categories widget.", 'avh-ec')); - WP_Widget::__construct('extended-categories', __('AVH Extended Categories'), $widget_ops); - + WP_Widget::__construct('extended-categories', 'AVH Extended Categories', $widget_ops); + add_action('wp_print_styles', array(&$this, 'actionWpPrintStyles')); - + } function WP_Widget_AVH_ExtendedCategories_Normal () @@ -40,7 +40,7 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget function actionWpPrintStyles () { - + if (! (FALSE === is_active_widget(FALSE, FALSE, $this->id_base, TRUE))) { wp_register_style('avhec-widget', AVHEC_PLUGIN_URL . '/css/avh-ec.widget.css', array(), $this->core->version); wp_enqueue_style('avhec-widget'); @@ -55,9 +55,9 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget */ function widget ($args, $instance) { - + extract($args); - + $selectedonly = $instance['selectedonly'] ? TRUE : FALSE; $c = $instance['count'] ? TRUE : FALSE; $h = $instance['hierarchical'] ? TRUE : FALSE; @@ -69,18 +69,18 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget $r = $instance['rssfeed'] ? 'RSS' : ''; $i = $instance['rssimage'] ? $instance['rssimage'] : ''; $invert = $instance['invert_included'] ? TRUE : FALSE; - + if (empty($r)) { $i = ''; } - + if (empty($d)) { $d = 0; } - + $title = apply_filters('widget_title', empty($instance['title']) ? __('Categories', 'avh-ec') : $instance['title']); $style = empty($instance['style']) ? 'list' : $instance['style']; - + $included_cats = ''; if ($instance['post_category']) { $post_category = unserialize($instance['post_category']); @@ -92,24 +92,24 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget } $included_cats = implode(",", array_merge($post_category, $children)); } - + if ($invert) { $inc_exc = 'exclude'; } else { $inc_exc = 'include'; } - + $options = $this->core->getOptions(); $show_option_none = __('Select Category', 'avh-ec'); if ($options['general']['alternative_name_select_category']) { $show_option_none = $options['general']['alternative_name_select_category']; } - + $cat_args = array($inc_exc=>$included_cats, 'orderby'=>$s, 'order'=>$o, 'show_count'=>$c, 'use_desc_for_title'=>$use_desc_for_title, 'hide_empty'=>$e, 'hierarchical'=>$h, 'depth'=>$d, 'title_li'=>'', 'show_option_none'=>$show_option_none, 'feed'=>$r, 'feed_image'=>$i, 'name'=>'extended-categories-select-' . $this->number); echo $before_widget; echo $this->core->comment; echo $before_title . $title . $after_title; - + if ($style == 'list') { echo '<ul>'; $this->core->avh_wp_list_categories($cat_args, $selectedonly); @@ -144,9 +144,9 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget if (! isset($new_instance['submit'])) { return FALSE; } - + $instance = $old_instance; - + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); $instance['selectedonly'] = $new_instance['selectedonly'] ? TRUE : FALSE; $instance['count'] = $new_instance['count'] ? TRUE : FALSE; @@ -168,7 +168,7 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget $instance['depth'] = 0; } $instance['invert_included'] = $new_instance['invert_included'] ? TRUE : FALSE; - + return $instance; } @@ -181,64 +181,68 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget { // displays the widget admin form $instance = wp_parse_args((array) $instance, array('title'=>'', 'rssimage'=>'', 'depth'=>0)); - + // Prepare data for display $depth = (int) $instance['depth']; if ($depth < 0 || 11 < $depth) { $depth = 0; } $selected_cats = ($instance['post_category'] != '') ? unserialize($instance['post_category']) : FALSE; - + echo '<p>'; avh_doWidgetFormText($this->get_field_id('title'), $this->get_field_name('title'), __('Title', 'avh-ec'), $instance['title']); echo '</p>'; - + echo '<p>'; avh_doWidgetFormCheckbox($this->get_field_id('selectedonly'), $this->get_field_name('selectedonly'), __('Show selected categories only', 'avh-ec'), (bool) $instance['selectedonly']); - + avh_doWidgetFormCheckbox($this->get_field_id('count'), $this->get_field_name('count'), __('Show post counts', 'avh-ec'), (bool) $instance['count']); - + avh_doWidgetFormCheckbox($this->get_field_id('hierarchical'), $this->get_field_name('hierarchical'), __('Show hierarchy', 'avh-ec'), (bool) $instance['hierarchical']); - + $options = array(0=>__('All Levels', 'avh-ec'), 1=>__('Toplevel only', 'avh-ec')); for ($i = 2; $i <= 11; $i ++) { $options[$i] = __('Child ', 'avh-ec') . ($i - 1); } avh_doWidgetFormSelect($this->get_field_id('depth'), $this->get_field_name('depth'), __('How many levels to show', 'avh-ec'), $options, $depth); unset($options); - + avh_doWidgetFormCheckbox($this->get_field_id('hide_empty'), $this->get_field_name('hide_empty'), __('Hide empty categories', 'avh-ec'), (bool) $instance['hide_empty']); - + avh_doWidgetFormCheckbox($this->get_field_id('use_desc_for_title'), $this->get_field_name('use_desc_for_title'), __('Use description for title', 'avh-ec'), (bool) $instance['use_desc_for_title']); echo '</p>'; - + echo '<p>'; $options['ID'] = __('ID', 'avh-ec'); $options['name'] = __('Name', 'avh-ec'); $options['count'] = __('Count', 'avh-ec'); $options['slug'] = __('Slug', 'avh-ec'); + if (is_plugin_active('my-category-order/mycategoryorder.php')) { + $options['avhec_3rdparty_mycategoryorder'] = 'My Category Order'; + } + avh_doWidgetFormSelect($this->get_field_id('sort_column'), $this->get_field_name('sort_column'), __('Sort by', 'avh-ec'), $options, $instance['sort_column']); unset($options); - + $options['asc'] = __('Ascending', 'avh-ec'); $options['desc'] = __('Descending', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('sort_order'), $this->get_field_name('sort_order'), __('Sort order', 'avh-ec'), $options, $instance['sort_order']); unset($options); - + $options['list'] = __('List', 'avh-ec'); $options['drop'] = __('Drop down', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('style'), $this->get_field_name('style'), __('Display style', 'avh-ec'), $options, $instance['style']); unset($options); echo '</p>'; - + echo '<p>'; - + avh_doWidgetFormCheckbox($this->get_field_id('rssfeed'), $this->get_field_name('rssfeed'), __('Show RSS Feed', 'avh-ec'), (bool) $instance['rssfeed']); - + avh_doWidgetFormText($this->get_field_id('rssimage'), $this->get_field_name('rssimage'), __('Path (URI) to RSS image', 'avh-ec'), $instance['rssimage']); - + echo '</p>'; - + echo '<p>'; echo '<b>' . __('Select categories', 'avh-ec') . '</b><hr />'; echo '<ul id="categorychecklist" class="list:category categorychecklist form-no-clear" style="list-style-type: none; margin-left: 5px; padding-left: 0px; margin-bottom: 20px;">'; @@ -253,11 +257,11 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget ob_end_flush(); echo '</ul>'; echo '</p>'; - + echo '<p>'; avh_doWidgetFormCheckbox($this->get_field_id('invert_included'), $this->get_field_name('invert_included'), __('Exclude the selected categories', 'avh-ec'), (bool) $instance['invert_included']); echo '</p>'; - + echo '<input type="hidden" id="' . $this->get_field_id('submit') . '" name="' . $this->get_field_name('submit') . '" value="1" />'; } @@ -272,23 +276,23 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget */ function avh_wp_category_checklist ($selected_cats, $number) { - + $walker = new AVH_Walker_Category_Checklist(); $walker->number = $number; $walker->input_id = $this->get_field_id('post_category'); $walker->input_name = $this->get_field_name('post_category'); $walker->li_id = $this->get_field_id('category--1'); - + $args = array('taxonomy'=>'category', 'descendants_and_self'=>0, 'selected_cats'=>$selected_cats, 'popular_cats'=>array(), 'walker'=>$walker, 'checked_ontop'=>true, 'popular_cats'=>array()); - + if (is_array($selected_cats)) $args['selected_cats'] = $selected_cats; else $args['selected_cats'] = array(); - + $categories = $this->core->getCategories(); $_categories_id = $this->core->getCategoriesId($categories); - + // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache) $checked_categories = array(); foreach ($args['selected_cats'] as $key => $value) { @@ -298,11 +302,11 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget unset($categories[$category_key]); } } - + // Put checked cats on top - echo call_user_func_array(array(&$walker, 'walk'), array($checked_categories, 0, $args)); + echo $walker->walk($checked_categories, 0, array ( $args )); // Then the rest of them - echo call_user_func_array(array(&$walker, 'walk'), array($categories, 0, $args)); + echo $walker->walk($categories, 0, array ( $args )); } } @@ -325,11 +329,11 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget function __construct () { $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); - + $widget_ops = array('description'=>__("Shows the top categories.", 'avh-ec')); - WP_Widget::__construct(FALSE, __('AVH Extended Categories: Top Categories'), $widget_ops); + WP_Widget::__construct(FALSE, 'AVH Extended Categories: '.__('Top Categories'), $widget_ops); add_action('wp_print_styles', array(&$this, 'actionWpPrintStyles')); - + } function WP_Widget_AVH_ExtendedCategories_Top () @@ -355,7 +359,7 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget function widget ($args, $instance) { extract($args); - + $title = apply_filters('widget_title', empty($instance['title']) ? __('Categories', 'avh-ec') : $instance['title']); $style = empty($instance['style']) ? 'list' : $instance['style']; if (! $a = (int) $instance['amount']) { @@ -377,22 +381,22 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget $i = ''; } } - + $options = $this->core->getOptions(); $show_option_none = __('Select Category', 'avh-ec'); if ($options['general']['alternative_name_select_category']) { $show_option_none = $options['general']['alternative_name_select_category']; } - + $top_cats = get_terms('category', array('fields'=>'ids', 'orderby'=>'count', 'order'=>'DESC', 'number'=>$a, 'hierarchical'=>FALSE)); $included_cats = implode(",", $top_cats); - + $cat_args = array('include'=>$included_cats, 'orderby'=>$s, 'order'=>$o, 'show_count'=>$c, 'use_desc_for_title'=>$use_desc_for_title, 'hide_empty'=>FALSE, 'hierarchical'=>FALSE, 'depth'=>- 1, 'title_li'=>'', 'show_option_none'=>$show_option_none, 'feed'=>$r, 'feed_image'=>$i, 'name'=>'extended-categories-top-select-' . $this->number); echo $before_widget; echo $this->core->comment; echo $before_title . $title . $after_title; echo '<ul>'; - + if ($style == 'list') { wp_list_categories($cat_args); } else { @@ -429,9 +433,9 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget if (! isset($new_instance['submit'])) { return FALSE; } - + $instance = $old_instance; - + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); $instance['amount'] = (int) $new_instance['amount']; $instance['count'] = $new_instance['count'] ? TRUE : FALSE; @@ -441,7 +445,7 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget $instance['style'] = strip_tags(stripslashes($new_instance['style'])); $instance['rssfeed'] = $new_instance['rssfeed'] ? TRUE : FALSE; $instance['rssimage'] = strip_tags(stripslashes($new_instance['rssimage'])); - + return $instance; } @@ -453,30 +457,30 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget { // displays the widget admin form $instance = wp_parse_args((array) $instance, array('title'=>'', 'rssimage'=>'')); - + // Prepare data for display if (! $amount = (int) $instance['amount']) { $amount = 5; } - + if ($amount < 1) { $amount = 1; } echo '<p>'; avh_doWidgetFormText($this->get_field_id('title'), $this->get_field_name('title'), __('Title', 'avh-ec'), $instance['title']); echo '</p>'; - + echo '<p>'; avh_doWidgetFormText($this->get_field_id('amount'), $this->get_field_name('amount'), __('How many categories to show', 'avh-ec'), $amount); echo '</p>'; - + echo '<p>'; avh_doWidgetFormCheckbox($this->get_field_id('count'), $this->get_field_name('count'), __('Show post counts', 'avh-ec'), (bool) $instance['count']); echo '<br />'; - + avh_doWidgetFormCheckbox($this->get_field_id('use_desc_for_title'), $this->get_field_name('use_desc_for_title'), __('Use description for title', 'avh-ec'), (bool) $instance['use_desc_for_title']); echo '</p>'; - + echo '<p>'; $options['ID'] = __('ID', 'avh-ec'); $options['name'] = __('Name', 'avh-ec'); @@ -484,26 +488,26 @@ class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget $options['slug'] = __('Slug', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('sort_column'), $this->get_field_name('sort_column'), __('Sort by', 'avh-ec'), $options, $instance['sort_column']); unset($options); - + $options['asc'] = __('Ascending', 'avh-ec'); $options['desc'] = __('Descending', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('sort_order'), $this->get_field_name('sort_order'), __('Sort order', 'avh-ec'), $options, $instance['sort_order']); unset($options); - + $options['list'] = __('List', 'avh-ec'); $options['drop'] = __('Drop down', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('style'), $this->get_field_name('style'), __('Display style', 'avh-ec'), $options, $instance['style']); unset($options); echo '</p>'; - + echo '<p>'; - + avh_doWidgetFormCheckbox($this->get_field_id('rssfeed'), $this->get_field_name('rssfeed'), __('Show RSS Feed', 'avh-ec'), (bool) $instance['rssfeed']); - + avh_doWidgetFormText($this->get_field_id('rssimage'), $this->get_field_name('rssimage'), __('Path (URI) to RSS image', 'avh-ec'), $instance['rssimage']); - + echo '</p>'; - + echo '<input type="hidden" id="' . $this->get_field_id('submit') . '" name="' . $this->get_field_name('submit') . '" value="1" />'; } } @@ -519,13 +523,13 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget * @var AVH_EC_Core */ var $core; - + /** * * @var AVH_EC_Category_Group */ var $catgrp; - + /** * PHP 5 Constructor * @@ -534,11 +538,11 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget { $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); $this->catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); - + $widget_ops = array('description'=>__("Shows grouped categories.", 'avh-ec')); - WP_Widget::__construct(FALSE, __('AVH Extended Category: Category Group'), $widget_ops); + WP_Widget::__construct(FALSE, 'AVH Extended Categories: '.__('Category Group'), $widget_ops); add_action('wp_print_styles', array(&$this, 'actionWpPrintStyles')); - + } function WP_Widget_AVH_ExtendedCategories_Category_Group () @@ -563,12 +567,12 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget function widget ($args, $instance) { global $post, $wp_query; - + $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); $options = $this->core->getOptions(); - + $row = array(); - + if (is_home()) { $special_page = 'home_group'; } elseif (is_category()) { @@ -586,7 +590,7 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget } else { $special_page = 'none'; } - + $toDisplay = FALSE; if ('none' == $special_page) { $terms = wp_get_object_terms($post->ID, $catgrp->taxonomy_name); @@ -623,12 +627,12 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget $row = get_term_by('id', $sp_category_group_id, $catgrp->taxonomy_name); // Returns FALSE when non-existance. (empty(FALSE)=TRUE) $group_found = TRUE; } - + if ($group_found) { $toDisplay = TRUE; $category_group_id_none = $this->catgrp->getTermIDBy('slug', 'none'); $selected_catgroups = unserialize($instance['post_group_category']); - + if ($category_group_id_none == $row->term_id ) { $toDisplay = FALSE; } elseif (! (FALSE == $selected_catgroups || array_key_exists($row->term_id, $selected_catgroups))) { @@ -637,10 +641,10 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget $toDisplay = FALSE; } } - + if ($toDisplay) { extract($args); - + $c = $instance['count'] ? TRUE : FALSE; $e = $instance['hide_empty'] ? TRUE : FALSE; $h = $instance['hierarchical'] ? TRUE : FALSE; @@ -649,11 +653,11 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget $o = $instance['sort_order'] ? $instance['sort_order'] : 'asc'; $r = $instance['rssfeed'] ? 'RSS' : ''; $i = $instance['rssimage'] ? $instance['rssimage'] : ''; - + if (empty($r)) { $i = ''; } - + $style = empty($instance['style']) ? 'list' : $instance['style']; $group_id = $row->term_id; $cats = $catgrp->getCategoriesFromGroup($group_id); @@ -666,19 +670,19 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget $title = $instance['title']; } $title = apply_filters('widget_title', $title); - + $included_cats = implode(',', $cats); - + $show_option_none = __('Select Category', 'avh-ec'); if ($options['general']['alternative_name_select_category']) { $show_option_none = $options['general']['alternative_name_select_category']; } - + $cat_args = array('include'=>$included_cats, 'orderby'=>$s, 'order'=>$o, 'show_count'=>$c, 'use_desc_for_title'=>$use_desc_for_title, 'hide_empty'=>$e, 'hierarchical'=>$h, 'title_li'=>'', 'show_option_none'=>$show_option_none, 'feed'=>$r, 'feed_image'=>$i, 'name'=>'extended-categories-select-group-' . $this->number); echo $before_widget; echo $this->core->comment; echo $before_title . $title . $after_title; - + if ($style == 'list') { echo '<ul>'; $this->core->avh_wp_list_categories($cat_args, TRUE); @@ -714,9 +718,9 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget if (! isset($new_instance['submit'])) { return FALSE; } - + $instance = $old_instance; - + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); $instance['count'] = $new_instance['count'] ? TRUE : FALSE; $instance['hierarchical'] = $new_instance['hierarchical'] ? TRUE : FALSE; @@ -744,7 +748,7 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget { // displays the widget admin form $instance = wp_parse_args((array) $instance, array('title'=>'', 'rssimage'=>'')); - + // Prepare data for display $title = esc_attr($instance['title']); $count = (bool) $instance['count']; @@ -760,24 +764,24 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget $style_drop = ($instance['style'] == 'drop') ? ' SELECTED' : ''; $rssfeed = (bool) $instance['rssfeed']; $rssimage = esc_attr($instance['rssimage']); - + $selected_cats = ($instance['post_group_category'] != '') ? unserialize($instance['post_group_category']) : FALSE; - + ob_start(); echo '<p>'; avh_doWidgetFormText($this->get_field_id('title'), $this->get_field_name('title'), __('Title', 'avh-ec'), $instance['title']); echo '</p>'; - + echo '<p>'; - + avh_doWidgetFormCheckbox($this->get_field_id('count'), $this->get_field_name('count'), __('Show post counts', 'avh-ec'), (bool) $instance['count']); - + avh_doWidgetFormCheckbox($this->get_field_id('hierarchical'), $this->get_field_name('hierarchical'), __('Show hierarchy', 'avh-ec'), (bool) $instance['hierarchical']); - + avh_doWidgetFormCheckbox($this->get_field_id('hide_empty'), $this->get_field_name('hide_empty'), __('Hide empty categories', 'avh-ec'), (bool) $instance['hide_empty']); - + avh_doWidgetFormCheckbox($this->get_field_id('use_desc_for_title'), $this->get_field_name('use_desc_for_title'), __('Use description for title', 'avh-ec'), (bool) $instance['use_desc_for_title']); echo '</p>'; - + echo '<p>'; $options['ID'] = __('ID', 'avh-ec'); $options['name'] = __('Name', 'avh-ec'); @@ -785,25 +789,25 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget $options['slug'] = __('Slug', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('sort_column'), $this->get_field_name('sort_column'), __('Sort by', 'avh-ec'), $options, $instance['sort_column']); unset($options); - + $options['asc'] = __('Ascending', 'avh-ec'); $options['desc'] = __('Descending', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('sort_order'), $this->get_field_name('sort_order'), __('Sort order', 'avh-ec'), $options, $instance['sort_order']); unset($options); - + $options['list'] = __('List', 'avh-ec'); $options['drop'] = __('Drop down', 'avh-ec'); avh_doWidgetFormSelect($this->get_field_id('style'), $this->get_field_name('style'), __('Display style', 'avh-ec'), $options, $instance['style']); unset($options); echo '</p>'; - + echo '<p>'; - + avh_doWidgetFormCheckbox($this->get_field_id('rssfeed'), $this->get_field_name('rssfeed'), __('Show RSS Feed', 'avh-ec'), (bool) $instance['rssfeed']); - + avh_doWidgetFormText($this->get_field_id('rssimage'), $this->get_field_name('rssimage'), __('Path (URI) to RSS image', 'avh-ec'), $instance['rssimage']); echo '</p>'; - + echo '<p>'; echo '<b>' . __('Select Groups', 'avh-ec') . '</b><hr />'; echo '<ul id="categorychecklist" class="list:category categorychecklist form-no-clear" style="list-style-type: none; margin-left: 5px; padding-left: 0px; margin-bottom: 20px;">'; @@ -813,48 +817,49 @@ class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget _e('Any Group', 'avh-ec'); echo '</label>'; echo '</li>'; - ob_start(); + $this->avh_wp_group_category_checklist($selected_cats, $this->number); - ob_end_flush(); + echo '</ul>'; echo '</p>'; - + echo '<input type="hidden" id="' . $this->get_field_id('submit') . '" name="' . $this->get_field_name('submit') . '" value="1" />'; + ob_end_flush(); } function avh_wp_group_category_checklist ($selected_cats, $number) { - + $walker = new AVH_Walker_Category_Checklist(); $walker->number = $number; $walker->input_id = $this->get_field_id('post_group_category'); $walker->input_name = $this->get_field_name('post_group_category'); $walker->li_id = $this->get_field_id('group_category--1'); - + $args = array('taxonomy'=>'avhec_catgroup', 'descendants_and_self'=>0, 'selected_cats'=>array(), 'popular_cats'=>array(), 'walker'=>$walker, 'checked_ontop'=>true); - + if (is_array($selected_cats)) $args['selected_cats'] = $selected_cats; else $args['selected_cats'] = array(); - + $categories = (array) get_terms($args['taxonomy'], array('get'=>'all')); - + // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache) $checked_categories = array(); $keys = array_keys($categories); - + foreach ($keys as $k) { if (in_array($categories[$k]->term_id, $args['selected_cats'])) { $checked_categories[] = $categories[$k]; unset($categories[$k]); } } - + // Put checked cats on top - echo call_user_func_array(array(&$walker, 'walk'), array($checked_categories, 0, $args)); + echo $walker->walk($checked_categories, 0, array ( $args )); // Then the rest of them - echo call_user_func_array(array(&$walker, 'walk'), array($categories, 0, $args)); + echo $walker->walk($categories, 0, array ( $args )); } function getWidgetDoneCatGroup ($id) @@ -881,6 +886,92 @@ class AVH_Walker_Category_Checklist extends Walker var $input_name; var $li_id; + /** + * Display array of elements hierarchically. + * + * It is a generic function which does not assume any existing order of + * elements. max_depth = -1 means flatly display every element. max_depth = + * 0 means display all levels. max_depth > 0 specifies the number of + * display levels. + * + * @since 2.1.0 + * + * @param array $elements + * @param int $max_depth + * @param array $args; + * @return string + */ + function walk( $elements, $max_depth, $args) { + + $output = ''; + + if ($max_depth < -1) //invalid parameter + return $output; + + if (empty($elements)) //nothing to walk + return $output; + + $id_field = $this->db_fields['id']; + $parent_field = $this->db_fields['parent']; + + // flat display + if ( -1 == $max_depth ) { + $empty_array = array(); + foreach ( $elements as $e ) + $this->display_element( $e, $empty_array, 1, 0, $args, $output ); + return $output; + } + + /* + * need to display in hierarchical order + * separate elements into two buckets: top level and children elements + * children_elements is two dimensional array, eg. + * children_elements[10][] contains all sub-elements whose parent is 10. + */ + $top_level_elements = array(); + $children_elements = array(); + foreach ( $elements as $e) { + if ( 0 == $e->$parent_field ) + $top_level_elements[] = $e; + else + $children_elements[ $e->$parent_field ][] = $e; + } + + /* + * when none of the elements is top level + * assume the first one must be root of the sub elements + */ + if ( empty($top_level_elements) ) { + + $first = array_slice( $elements, 0, 1 ); + $root = $first[0]; + + $top_level_elements = array(); + $children_elements = array(); + foreach ( $elements as $e) { + if ( $root->$parent_field == $e->$parent_field ) + $top_level_elements[] = $e; + else + $children_elements[ $e->$parent_field ][] = $e; + } + } + + foreach ( $top_level_elements as $e ) + $this->display_element( $e, $children_elements, $max_depth, 0, $args, $output ); + + /* + * if we are displaying all levels, and remaining children_elements is not empty, + * then we got orphans, which should be displayed regardless + */ + if ( ( $max_depth == 0 ) && count( $children_elements ) > 0 ) { + $empty_array = array(); + foreach ( $children_elements as $orphans ) + foreach( $orphans as $op ) + $this->display_element( $op, $empty_array, 1, 0, $args, $output ); + } + + return $output; + } function start_lvl (&$output, $depth, $args) { $indent = str_repeat("\t", $depth); diff --git a/wp-content/plugins/extended-categories-widget/2.8/css/avh-ec.admin.css b/wp-content/plugins/extended-categories-widget/2.8/css/avh-ec.admin.css index e1813b536..d810bc877 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/css/avh-ec.admin.css +++ b/wp-content/plugins/extended-categories-widget/2.8/css/avh-ec.admin.css @@ -12,15 +12,15 @@ div.clearer { /* Metabox in General */ table.avhec-options { - font-size: 11px; + } .avhec-metabox-wrap { - font-size: 11px; + } .avhec-metabox-wrap .p { - font-size: 11px; + line-height: 140%; margin: 1em 0; } @@ -30,7 +30,7 @@ table.avhec-options { } .avhec-metabox-wrap span.description { - font-size: 11px; + } .avhec-metabox-wrap .b { @@ -48,16 +48,16 @@ table.avhec-options { } #avhec-options input { - font-size: 11px; + } #avhec-generaloptions input { - font-size: 11px; + } /* Metabox FAQ */ #avhecBoxFAQ .inside ul { - font-size: 11px; + margin-bottom: 6px; } #avhecBoxFAQ .inside ul li{ @@ -68,7 +68,7 @@ table.avhec-options { /* Metabox Donations*/ #avhecBoxDonations .inside { - font-size: 12px; + } #avhecBoxDonations .versions { @@ -77,7 +77,7 @@ table.avhec-options { /* Metabox Donations*/ #avhecBoxTranslation .inside { - font-size: 12px; + } /* Metabox in post and page */ @@ -105,4 +105,46 @@ table.avhec-options { #avhec-catlist li { margin-bottom: 0px; +} + +#avhecManualOrder { + width: 25%; +/* border: 1px solid #B2B2B2;*/ +/* margin: 10px 10px 10px 0px;*/ +/* padding: 5px 10px 5px 10px;*/ +/* list-style: none;*/ +/* background-color: #fff;*/ +/* border-radius: 3px;*/ +/* -webkit-border-radius: 3px;*/ +} + +#avhecManualOrder li.lineitem { + border: 1px solid #DFDFDF; + background-image: none; + border-radius: 3px; + -webkit-border-radius: 3px; + background-color: #FFFFFF; + color: #555555; + cursor: move; + margin-top: 5px; + margin-bottom: 5px; + padding: 2px 5px 2px 5px; + list-style: none outside none; +} + +#avhecManualOrder .sortable-placeholder { + border: 1px dashed #B2B2B2; + margin-top: 5px; + margin-bottom: 5px; + padding: 2px 5px 2px 5px; + height: 1.5em; + line-height: 1.5em; + list-style: none outside none; + background-color: transparent; + background-image: -ms-linear-gradient(top, #f9f9f9, #f5f5f5); /* IE10 */ + background-image: -moz-linear-gradient(top, #f9f9f9, #f5f5f5); /* Firefox */ + background-image: -o-linear-gradient(top, #f9f9f9, #f5f5f5); /* Opera */ + background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5)); /* old Webkit */ + background-image: -webkit-linear-gradient(top, #f9f9f9, #f5f5f5); /* new Webkit */ + background-image: linear-gradient(top, #f9f9f9, #f5f5f5); /* proposed W3C Markup */ } \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.closure.js b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.closure.js new file mode 100644 index 000000000..5536f60bc --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.closure.js @@ -0,0 +1 @@ +function avhecManualOrder(){jQuery("#avhecManualOrder").sortable({placeholder:"sortable-placeholder",revert:false,items:".lineitem",opacity:0.65,cursor:"move",forcePlaceholderSize:true,tolerance:"pointer"})}addLoadEvent(avhecManualOrder);function orderCats(){jQuery("#updateText").html("Updating Category Order...");jQuery("#hdnManualOrder").val(jQuery("#avhecManualOrder").sortable("toArray"))}; \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.js b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.js new file mode 100644 index 000000000..34b4ae168 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.admin.manualorder.js @@ -0,0 +1,19 @@ +function avhecManualOrder() { + jQuery("#avhecManualOrder").sortable({ + placeholder : "sortable-placeholder", + revert : false, + items : '.lineitem', + opacity: 0.65, + cursor: 'move', + forcePlaceholderSize: true, + tolerance : "pointer" + }); +}; + +addLoadEvent(avhecManualOrder); + +function orderCats() { + jQuery("#updateText").html("Updating Category Order..."); + jQuery("#hdnManualOrder").val( + jQuery("#avhecManualOrder").sortable("toArray")); +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.closure.js b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.closure.js new file mode 100644 index 000000000..615208921 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.closure.js @@ -0,0 +1 @@ +jQuery(document).ready(function(a){a("#the-list").wpList({delBefore:function(b){if("undefined"!=showNotice)return showNotice.warn()?b:false;return b}});a('.delete a[class^="delete"]').live("click",function(){return false})}); \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js index 06077d2a2..62365c3c2 100644 --- a/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js +++ b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js @@ -1 +1,21 @@ -jQuery(document).ready(function(d){var b=false,c,a;a=function(f,e){var h=d("cat",f).attr("id"),g;for(g=0;g<b.length;g++){if(h==b[g].value){b[g]=null}}};c=function(e){if("undefined"!=showNotice){return showNotice.warn()?e:false}return e};d("#the-list").wpList({delBefore:c});d('.delete a[class^="delete"]').live("click",function(){return false})}); \ No newline at end of file +jQuery(document).ready(function($) { + var options = false, delBefore, delAfter; + + delAfter = function( r, settings ) { + var id = $('cat', r).attr('id'), o; + for ( o = 0; o < options.length; o++ ) + if ( id == options[o].value ) + options[o] = null; + }; + + delBefore = function(s) { + if ( 'undefined' != showNotice ) + return showNotice.warn() ? s : false; + + return s; + }; + + $('#the-list').wpList({ delBefore: delBefore }); + + $('.delete a[class^="delete"]').live('click', function(){return false;}); +}); \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js.closure.js b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js.closure.js new file mode 100644 index 000000000..615208921 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/2.8/js/avh-ec.categorygroup.js.closure.js @@ -0,0 +1 @@ +jQuery(document).ready(function(a){a("#the-list").wpList({delBefore:function(b){if("undefined"!=showNotice)return showNotice.warn()?b:false;return b}});a('.delete a[class^="delete"]').live("click",function(){return false})}); \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/avh-ec.client.php b/wp-content/plugins/extended-categories-widget/3.3/avh-ec.client.php new file mode 100644 index 000000000..d29fd0ce5 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/avh-ec.client.php @@ -0,0 +1,82 @@ +<?php + +/** + * Singleton Class + * + */ +class AVH_EC_Singleton +{ + + /** + * + * @param $class + * @param $arg1 + */ + function &getInstance ($class, $arg1 = null) + { + static $instances = array (); // array of instance names + if (array_key_exists($class, $instances)) { + $instance = & $instances[$class]; + } else { + if (! class_exists($class)) { + switch ($class) { + case 'AVH_EC_Core': + require_once (AVHEC_ABSOLUTE_WORKING_DIR . '/class/avh-ec.core.php'); + break; + case 'AVH_EC_Category_Group': + require_once (AVHEC_ABSOLUTE_WORKING_DIR . '/class/avh-ec.category-group.php'); + break; + case 'AVH_EC_Widget_Helper_Class': + require_once (AVHEC_ABSOLUTE_WORKING_DIR . '/class/avh-ec.widget-helper.php'); + break; + } + } + $instances[$class] = new $class($arg1); + $instance = & $instances[$class]; + } + return $instance; + } // getInstance +} // singleton + + +/** + * Include the necessary files + * + */ +require_once (AVHEC_ABSOLUTE_WORKING_DIR . '/helpers/avh-forms.php'); +require_once (AVHEC_ABSOLUTE_WORKING_DIR . '/class/avh-ec.widgets.php'); + +/** + * Initialize the plugin + * + */ +function avhextendedcategories_init () +{ + // Admin + if (is_admin()) { + require_once (AVHEC_ABSOLUTE_WORKING_DIR . '/class/avh-ec.admin.php'); + $avhec_admin = new AVH_EC_Admin(); + } + AVH_EC_Singleton::getInstance('AVH_EC_Core'); + + add_action('widgets_init', 'avhextendedcategories_widgets_init'); + +} // End avhamazon_init() + + +/** + * Register the widget + * + * @WordPress Action widgets_init + * @since 3.0 + * + */ +function avhextendedcategories_widgets_init () +{ + register_widget('WP_Widget_AVH_ExtendedCategories_Normal'); + register_widget('WP_Widget_AVH_ExtendedCategories_Top'); + register_widget('WP_Widget_AVH_ExtendedCategories_Category_Group'); +} + +add_action('plugins_loaded', 'avhextendedcategories_init'); +?> \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.admin.php b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.admin.php new file mode 100644 index 000000000..d90b4f57c --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.admin.php @@ -0,0 +1,1490 @@ +<?php + +class AVH_EC_Admin +{ + /** + * + * @var AVH_EC_Core + */ + var $core; + + /** + * + * @var AVH_EC_Category_Group + */ + var $catgrp; + + var $hooks = array (); + var $message; + + /** + * PHP5 constructor + * + */ + function __construct () + { + + // Initialize the plugin + $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); + $this->catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); + + add_action('wp_ajax_delete-group', array ( &$this, 'ajaxDeleteGroup' )); + + // Admin menu + add_action('admin_init', array ( &$this, 'actionAdminInit' )); + add_action('admin_menu', array ( &$this, 'actionAdminMenu' )); + add_filter('plugin_action_links_extended-categories-widget/widget_extended_categories.php', array ( &$this, 'filterPluginActions' ), 10, 2); + + // Actions used for editing posts + add_action('load-post.php', array ( &$this, 'actionLoadPostPage' )); + add_action('load-page.php', array ( &$this, 'actionLoadPostPage' )); + + // Actions related to adding and deletes categories + add_action("created_category", array ( $this, 'actionCreatedCategory' ), 10, 2); + add_action("delete_category", array ( $this, 'actionDeleteCategory' ), 10, 2); + + add_filter('manage_categories_group_columns', array ( &$this, 'filterManageCategoriesGroupColumns' )); + add_filter('explain_nonce_delete-avhecgroup', array ( &$this, 'filterExplainNonceDeleteGroup' ), 10, 2); + + return; + } + + /** + * PHP4 Constructor + * + */ + function AVH_EC_Admin () + { + $this->__construct(); + } + + function actionAdminInit () + { + if (is_admin() && isset($_GET['taxonomy']) && 'category' == $_GET['taxonomy']) { + add_action($_GET['taxonomy'] . '_edit_form', array ( &$this, 'displayCategoryGroupForm' ), 10, 2); + } + add_action('edit_term', array ( &$this, 'handleEditTerm' ), 10, 3); + + } + + /** + * + * Adds Category Group form + * @WordPress action category_edit_form + * + * @param unknown_type $term + * @param unknown_type $taxonomy + */ + function displayCategoryGroupForm ($term, $taxonomy) + { + + $current_selection = ''; + $tax_meta = get_option($this->core->db_options_tax_meta); + if (isset($tax_meta[$taxonomy][$term->term_id])) { + $tax_meta = $tax_meta[$taxonomy][$term->term_id]; + $current_selection = $tax_meta['category_group_term_id']; + } + + if (empty($current_selection)) { + $current_group = $this->catgrp->getGroupByCategoryID($term->term_id); + $current_selection = $current_group->term_id; + } + + $cat_groups = get_terms($this->catgrp->taxonomy_name, array ( 'hide_empty' => FALSE )); + foreach ($cat_groups as $group) { + $temp_cat = get_term($group->term_id, $this->catgrp->taxonomy_name, OBJECT, 'edit'); + $dropdown_value[] = $group->term_id; + $dropdown_text[] = $temp_cat->name; + } + + foreach ($dropdown_value as $key => $sel) { + $seldata .= '<option value="' . esc_attr($sel) . '" ' . (($current_selection == $sel) ? 'selected="selected"' : '') . ' >' . esc_html(ucfirst($dropdown_text[$key])) . '</option>' . "\n"; + } + + echo '<h3>AVH Extended Categories - Category Group Widget</h3>'; + echo '<table class="form-table"><tbody>'; + echo '<tr class="form-field">'; + echo '<th valign="top" scope="row">'; + echo '<label for="avhec_categorygroup">Category Group</label></th>'; + echo '<td>'; + echo '<select id="avhec_categorygroup" name="avhec_categorygroup">'; + echo $seldata; + echo '</select>'; + echo '<p class="description">Select the category group to show on the archive page.</p>'; + echo '</td>'; + echo '</tr>'; + echo '</tbody></table>'; + } + + /** + * Saves the association Category - Category Group fron the edit taxonomy page + * @WordPress action edit_form. + * + * @param unknown_type $term_id + * @param unknown_type $tt_id + * @param unknown_type $taxonomy + */ + function handleEditTerm ($term_id, $tt_id, $taxonomy) + { + $tax_meta = get_option($this->core->db_options_tax_meta); + if (isset($_POST['avhec_categorygroup']) && $tax_meta[$taxonomy][$term_id]['category_group_term_id'] != $_POST['avhec_categorygroup']) { + $tax_meta[$taxonomy][$term_id]['category_group_term_id'] = $_POST['avhec_categorygroup']; + update_option($this->core->db_options_tax_meta, $tax_meta); + } + } + + /** + * When a category is created this function is called to add the new category to the group all + * @param $term_id + * @param $term_taxonomy_id + */ + function actionCreatedCategory ($term_id, $term_taxonomy_id) + { + $group_id = $this->catgrp->getTermIDBy('slug', 'all'); + $this->catgrp->setCategoriesForGroup($group_id, (array) $term_id); + } + + /** + * When a category is deleted this function is called so the category is deleted from every group as well. + * + * @param object $term + * @param int $term_taxonomy_id + */ + function actionDeleteCategory ($term_id, $term_taxonomy_id) + { + $this->catgrp->doDeleteCategoryFromGroup($term_id); + } + + /** + * Enqueues the style on the post.php and page.php pages + * @WordPress Action load-$pagenow + * + */ + function actionLoadPostPage () + { + wp_enqueue_style('avhec-admin-css'); + } + + /** + * Add the Tools and Options to the Management and Options page repectively + * + * @WordPress Action admin_menu + * + */ + function actionAdminMenu () + { + + // Register Style and Scripts + $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.closure'; + wp_register_script('avhec-categorygroup-js', AVHEC_PLUGIN_URL . '/js/avh-ec.categorygroup' . $suffix . '.js', array ( 'jquery' ), $this->core->version, true); + wp_register_script('avhec-manualorder', AVHEC_PLUGIN_URL . '/js/avh-ec.admin.manualorder' . $suffix . '.js', array ( 'jquery-ui-sortable' ), $this->core->version, false); + wp_register_style('avhec-admin-css', AVHEC_PLUGIN_URL . '/css/avh-ec.admin.css', array ( 'wp-admin' ), $this->core->version, 'screen'); + + // Add menu system + $folder = $this->core->getBaseDirectory(AVHEC_PLUGIN_DIR); + add_menu_page('AVH Extended Categories', 'AVH Extended Categories', 'manage_options', $folder, array ( &$this, 'doMenuOverview' )); + $this->hooks['menu_overview'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('Overview', 'avh-ec'), __('Overview', 'avh-ec'), 'manage_options', $folder, array ( &$this, 'doMenuOverview' )); + $this->hooks['menu_general'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('General Options', 'avh-ec'), __('General Options', 'avh-ec'), 'manage_options', 'avhec-general', array ( &$this, 'doMenuGeneral' )); + $this->hooks['menu_category_groups'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('Category Groups', 'avh-ec'), __('Category Groups', 'avh-ec'), 'manage_options', 'avhec-grouped', array ( &$this, 'doMenuCategoryGroup' )); + $this->hooks['menu_manual_order'] = add_submenu_page($folder, 'AVH Extended Categories: ' . __('Manually Order', 'avh-ec'), __('Manually Order', 'avh-ec'), 'manage_options', 'avhec-manual-order', array ( &$this, 'doMenuManualOrder' )); + $this->hooks['menu_faq'] = add_submenu_page($folder, 'AVH Extended Categories:' . __('F.A.Q', 'avh-ec'), __('F.A.Q', 'avh-ec'), 'manage_options', 'avhec-faq', array ( &$this, 'doMenuFAQ' )); + + // Add actions for menu pages + // Overview Menu + add_action('load-' . $this->hooks['menu_overview'], array ( &$this, 'actionLoadPageHook_Overview' )); + + // General Options Menu + add_action('load-' . $this->hooks['menu_general'], array ( &$this, 'actionLoadPageHook_General' )); + + // Category Groups Menu + add_action('load-' . $this->hooks['menu_category_groups'], array ( &$this, 'actionLoadPageHook_CategoryGroup' )); + + // Manual Order Menu + add_action('load-' . $this->hooks['menu_manual_order'], array ( &$this, 'actionLoadPageHook_ManualOrder' )); + + // FAQ Menu + add_action('load-' . $this->hooks['menu_faq'], array ( &$this, 'actionLoadPageHook_faq' )); + } + + /** + * Setup everything needed for the Overview page + * + */ + function actionLoadPageHook_Overview () + { + // Add metaboxes + add_meta_box('avhecBoxCategoryGroupList', __('Group Overview', 'avh-ec'), array ( &$this, 'metaboxCategoryGroupList' ), $this->hooks['menu_overview'], 'normal', 'core'); + add_meta_box('avhecBoxTranslation', __('Translation', 'avh-ec'), array ( &$this, 'metaboxTranslation' ), $this->hooks['menu_overview'], 'normal', 'core'); + + add_screen_option('layout_columns', array ( 'max' => 2, 'default' => 2 )); + + // WordPress core Scripts + wp_enqueue_script('common'); + wp_enqueue_script('wp-lists'); + wp_enqueue_script('postbox'); + + // Plugin Scripts + wp_enqueue_script('avhec-categorygroup-js'); + + // Plugin Style + wp_enqueue_style('avhec-admin-css'); + } + + /** + * Menu Page Overview + * + * @return none + */ + function doMenuOverview () + { + global $screen_layout_columns; + + // This box can't be unselectd in the the Screen Options + //add_meta_box('avhecBoxAnnouncements', __('Announcements', 'avh-ec'), array ( &$this, 'metaboxAnnouncements' ), $this->hooks['menu_overview'], 'side', ''); + add_meta_box('avhecBoxDonations', __('Donations', 'avh-ec'), array ( &$this, 'metaboxDonations' ), $this->hooks['menu_overview'], 'side', ''); + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + + echo '<div class="wrap avhec-metabox-wrap">'; + echo $this->displayIcon('index'); + echo '<h2>' . 'AVH Extended Categories - ' . __('Overview', 'avh-ec') . '</h2>'; + echo ' <div id="dashboard-widgets-wrap">'; + echo ' <div id="dashboard-widgets" class="metabox-holder">'; + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_overview'], 'normal', ''); + echo " </div>"; + echo ' <div class="postbox-container" style="' . $hide2 . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_overview'], 'side', ''); + echo ' </div>'; + echo ' </div>'; + + echo '<br class="clear"/>'; + echo ' </div>'; //dashboard-widgets-wrap + echo '</div>'; // wrap + + + $this->printMetaboxGeneralNonces(); + $this->printMetaboxJS('overview'); + $this->printAdminFooter(); + } + + /** + * Setup everything needed for the General Options page + * + */ + function actionLoadPageHook_General () + { + // Add metaboxes + add_meta_box('avhecBoxOptions', __('Options', 'avh-ec'), array ( &$this, 'metaboxOptions' ), $this->hooks['menu_general'], 'normal', 'core'); + + add_screen_option('layout_columns', array ( 'max' => 2, 'default' => 2 )); + + // WordPress core Scripts + wp_enqueue_script('common'); + wp_enqueue_script('wp-lists'); + wp_enqueue_script('postbox'); + + // Plugin Style and Scripts + wp_enqueue_style('avhec-admin-css'); + + } + + /** + * Menu Page General Options + * + * @return none + */ + function doMenuGeneral () + { + global $screen_layout_columns; + + $groups = get_terms($this->catgrp->taxonomy_name, array ( 'hide_empty' => FALSE )); + foreach ($groups as $group) { + $group_id[] = $group->term_id; + $groupname[] = $group->name; + } + + $options_general[] = array ( 'avhec[general][alternative_name_select_category]', __('<em>Select Category</em> Alternative', 'avh-ec'), 'text', 20, __('Alternative text for Select Category.', 'avh-ec') ); + $options_general[] = array ( 'avhec[cat_group][home_group]', 'Home Group', 'dropdown', $group_id, $groupname, __('Select which group to show on the home page.', 'avh-ec') . '<br />' . __('Selecting the group \'none\' will not show the widget on the page.', 'avh-ec') ); + $options_general[] = array ( 'avhec[cat_group][no_group]', 'Nonexistence Group', 'dropdown', $group_id, $groupname, __('Select which group to show when there is no group associated with the post.', 'avh-ec') . '<br />' . __('Selecting the group \'none\' will not show the widget on the page.', 'avh-ec') ); + $options_general[] = array ( 'avhec[cat_group][default_group]', 'Default Group', 'dropdown', $group_id, $groupname, __('Select which group will be the default group when editing a post.', 'avh-ec') . '<br />' . __('Selecting the group \'none\' will not show the widget on the page.', 'avh-ec') ); + + if (isset($_POST['updateoptions'])) { + check_admin_referer('avh_ec_generaloptions'); + + $formoptions = $_POST['avhec']; + $options = $this->core->getOptions(); + + //$all_data = array_merge( $options_general ); + $all_data = $options_general; + foreach ($all_data as $option) { + $section = substr($option[0], strpos($option[0], '[') + 1); + $section = substr($section, 0, strpos($section, '][')); + $option_key = rtrim($option[0], ']'); + $option_key = substr($option_key, strpos($option_key, '][') + 2); + + switch ($section) { + case 'general': + case 'cat_group': + $current_value = $options[$section][$option_key]; + break; + } + // Every field in a form is set except unchecked checkboxes. Set an unchecked checkbox to 0. + $newval = (isset($formoptions[$section][$option_key]) ? esc_attr($formoptions[$section][$option_key]) : 0); + if ($newval != $current_value) { // Only process changed fields. + switch ($section) { + case 'general': + case 'cat_group': + $options[$section][$option_key] = $newval; + break; + } + } + } + $this->core->saveOptions($options); + $this->message = __('Options saved', 'avh-ec'); + $this->status = 'updated fade'; + + } + $this->displayMessage(); + + $actual_options = $this->core->getOptions(); + foreach ($actual_options['cat_group'] as $key => $value) { + if (! (in_array($value, (array) $group_id))) { + $actual_options['cat_group'][$key] = $this->catgrp->getTermIDBy('slug', 'none'); + } + } + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + $data['options_general'] = $options_general; + $data['actual_options'] = $actual_options; + + // This box can't be unselectd in the the Screen Options + add_meta_box('avhecBoxDonations', __('Donations', 'avh-ec'), array ( &$this, 'metaboxDonations' ), $this->hooks['menu_general'], 'side', 'core'); + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + + echo '<div class="wrap avhec-metabox-wrap">'; + echo $this->displayIcon('index'); + echo '<h2>' . 'AVH Extended Categories - ' . __('General Options', 'avh-ec') . '</h2>'; + echo '<form name="avhec-generaloptions" id="avhec-generaloptions" method="POST" action="' . admin_url('admin.php?page=avhec-general') . '" accept-charset="utf-8" >'; + wp_nonce_field('avh_ec_generaloptions'); + + echo ' <div id="dashboard-widgets-wrap">'; + echo ' <div id="dashboard-widgets" class="metabox-holder">'; + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_general'], 'normal', $data); + echo " </div>"; + echo ' <div class="postbox-container" style="' . $hide2 . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_general'], 'side', $data); + echo ' </div>'; + echo ' </div>'; + + echo '<br class="clear"/>'; + echo ' </div>'; //dashboard-widgets-wrap + echo '<p class="submit"><input class="button" type="submit" name="updateoptions" value="' . __('Save Changes', 'avhf-ec') . '" /></p>'; + echo '</form>'; + + echo '</div>'; // wrap + + + $this->printMetaboxGeneralNonces(); + $this->printMetaboxJS('general'); + $this->printAdminFooter(); + } + + /** + * Options Metabox + * + */ + function metaboxOptions ($data) + { + echo $this->printOptions($data['options_general'], $data['actual_options']); + } + + /** + * Setup everything needed for the Category Group page + * + */ + function actionLoadPageHook_CategoryGroup () + { + + // Add metaboxes + add_meta_box('avhecBoxCategoryGroupAdd', __('Add Group', 'avh-ec'), array ( &$this, 'metaboxCategoryGroupAdd' ), $this->hooks['menu_category_groups'], 'normal', 'core'); + add_meta_box('avhecBoxCategoryGroupList', __('Group Overview', 'avh-ec'), array ( &$this, 'metaboxCategoryGroupList' ), $this->hooks['menu_category_groups'], 'side', 'core'); + add_meta_box('avhecBoxCategoryGroupSpecialPages', __('Special Pages', 'avh-ec'), array ( &$this, 'metaboxCategoryGroupSpecialPages' ), $this->hooks['menu_category_groups'], 'normal', 'core'); + + add_screen_option('layout_columns', array ( 'max' => 2, 'default' => 2 )); + + // WordPress core Scripts + wp_enqueue_script('common'); + wp_enqueue_script('wp-lists'); + wp_enqueue_script('postbox'); + + // Plugin Scripts + wp_enqueue_script('avhec-categorygroup-js'); + + // Plugin Style + wp_enqueue_style('avhec-admin-css'); + + } + + /** + * Menu Page Category Group + * + * @return none + */ + function doMenuCategoryGroup () + { + global $screen_layout_columns; + + $data_add_group_default = array ( 'name' => '', 'slug' => '', 'widget_title' => '', 'description' => '' ); + $data_add_group_new = $data_add_group_default; + + $options_add_group[] = array ( 'avhec_add_group[add][name]', __('Group Name', 'avh-ec'), 'text', 20, __('The name is used to identify the group.', 'avh-ec') ); + $options_add_group[] = array ( 'avhec_add_group[add][slug]', __('Slug Group', 'avh-ec'), 'text', 20, __('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'avh-ec') ); + $options_add_group[] = array ( 'avhec_add_group[add][widget_title]', __('Widget Title', 'avh-ec'), 'text', 20, __('When no title is given in the widget options, this will used as the title of the widget when this group is shown.', 'avh-ec') ); + $options_add_group[] = array ( 'avhec_add_group[add][description]', __('Description', 'avh-ec'), 'textarea', 40, __('Description is not prominent by default.', 'avh-ec'), 5 ); + + $options_edit_group[] = array ( 'avhec_edit_group[edit][name]', __('Group Name', 'avh-ec'), 'text', 20, __('The name is used to identify the group.', 'avh-ec') ); + $options_edit_group[] = array ( 'avhec_edit_group[edit][slug]', __('Slug Group', 'avh-ec'), 'text', 20, __('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'avh-ec') ); + $options_edit_group[] = array ( 'avhec_edit_group[edit][widget_title]', __('Widget Title', 'avh-ec'), 'text', 20, __('When no title is given in the widget options, this will used as the title of the widget when this group is shown.', 'avh-ec') ); + $options_edit_group[] = array ( 'avhec_edit_group[edit][description]', __('Description', 'avh-ec'), 'textarea', 40, __('Description is not prominent by default.', 'avh-ec'), 5 ); + $options_edit_group[] = array ( 'avhec_edit_group[edit][categories]', __('Categories', 'avh-ec'), 'catlist', 0, __('Select categories to be included in the group.', 'avh-ec') ); + + if (isset($_POST['addgroup'])) { + check_admin_referer('avh_ec_addgroup'); + + $formoptions = $_POST['avhec_add_group']; + + $data_add_group_new['name'] = $formoptions['add']['name']; + $data_add_group_new['slug'] = empty($formoptions['add']['slug']) ? sanitize_title($data_add_group_new['name']) : sanitize_title($formoptions['add']['slug']); + $data_add_group_new['widget_title'] = $formoptions['add']['widget_title']; + $data_add_group_new['description'] = $formoptions['add']['description']; + + $id = $this->catgrp->getTermIDBy('slug', $data_add_group_new['slug']); + if (! $id) { + $group_id = $this->catgrp->doInsertGroup($data_add_group_new['name'], array ( 'description' => $data_add_group_new['description'], 'slug' => $data_add_group_new['slug'] ), $data_add_group_new['widget_title']); + $this->catgrp->setCategoriesForGroup($group_id); + $this->message = __('Category group saved', 'avh-ec'); + $this->status = 'updated fade'; + $data_add_group_new = $data_add_group_default; + + } else { + $group = $this->catgrp->getGroup($id); + $this->message = __('Category group conflicts with ', 'avh-ec') . $group->name; + $this->message .= '<br />' . __('Same slug is used. ', 'avh-ec'); + $this->status = 'error'; + + } + $this->displayMessage(); + } + $data_add_group['add'] = $data_add_group_new; + $data['add'] = array ( 'form' => $options_add_group, 'data' => $data_add_group ); + + if (isset($_GET['action'])) { + $action = $_GET['action']; + + switch ($action) { + case 'edit': + $group_id = (int) $_GET['group_ID']; + $group = $this->catgrp->getGroup($group_id); + $widget_title = $this->catgrp->getWidgetTitleForGroup($group_id); + $cats = $this->catgrp->getCategoriesFromGroup($group_id); + + $data_edit_group['edit'] = array ( 'group_id' => $group_id, 'name' => $group->name, 'slug' => $group->slug, 'widget_title' => $widget_title, 'description' => $group->description, 'categories' => $cats ); + $data['edit'] = array ( 'form' => $options_edit_group, 'data' => $data_edit_group ); + + add_meta_box('avhecBoxCategoryGroupEdit', __('Edit Group', 'avh-ec') . ': ' . $group->name, array ( &$this, 'metaboxCategoryGroupEdit' ), $this->hooks['menu_category_groups'], 'normal', 'low'); + break; + case 'delete': + if (! isset($_GET['group_ID'])) { + wp_redirect($this->getBackLink()); + exit(); + } + + $group_id = (int) $_GET['group_ID']; + check_admin_referer('delete-avhecgroup_' . $group_id); + + if (! current_user_can('manage_categories')) { + wp_die(__('Cheatin’ uh?')); + } + $this->catgrp->doDeleteGroup($group_id); + break; + default: + ; + break; + } + } + + if (isset($_POST['editgroup'])) { + check_admin_referer('avh_ec_editgroup'); + + $formoptions = $_POST['avhec_edit_group']; + $selected_categories = $_POST['post_category']; + + $group_id = (int) $_POST['avhec-group_id']; + $result = $this->catgrp->doUpdateGroup($group_id, array ( 'name' => $formoptions['edit']['name'], 'slug' => $formoptions['edit']['slug'], 'description' => $formoptions['edit']['description'] ), $selected_categories, $formoptions['edit']['widget_title']); + switch ($result) { + case 1: + $this->message = __('Category group updated', 'avh-ec'); + $this->status = 'updated fade'; + break; + case 0: + $this->message = __('Category group not updated', 'avh-ec'); + $this->message .= '<br />' . __('Duplicate slug detected', 'avh-ec'); + $this->status = 'error'; + break; + case - 1: + $this->message = __('Unknown category group', 'avh-ec'); + $this->status = 'error'; + break; + } + $this->displayMessage(); + } + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + + $data_special_pages_old = $this->core->options['sp_cat_group']; + $data_special_pages_new = $data_special_pages_old; + if (isset($_POST['avhec_special_pages'])) { + check_admin_referer('avh_ec_specialpagesgroup'); + + $formoptions = $_POST['avhec_special_pages']; + $formdata = $formoptions['sp']; + foreach ($formdata as $key => $value) { + $data_special_pages_new[$key] = $value; + } + $this->core->options['sp_cat_group'] = $data_special_pages_new; + $this->core->saveOptions($this->core->options); + + } + $data_special_pages['sp'] = $data_special_pages_new; + $cat_groups = get_terms($this->catgrp->taxonomy_name, array ( 'hide_empty' => FALSE )); + + foreach ($cat_groups as $group) { + $temp_cat = get_term($group->term_id, $this->catgrp->taxonomy_name, OBJECT, 'edit'); + $dropdown_value[] = $group->term_id; + $dropdown_text[] = $temp_cat->name; + } + $options_special_pages[] = array ( 'avhec_special_pages[sp][home_group]', __('Home page', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.', 'avh-ec'), __('home', 'avhec')) ); + //$options_special_pages[] = array('avhec_special_pages[sp][category_group]', __('Category Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.','avh-ec'),__('category archive','avhec'))); + $options_special_pages[] = array ( 'avhec_special_pages[sp][day_group]', __('Daily Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.', 'avh-ec'), __('daily archive', 'avhec')) ); + $options_special_pages[] = array ( 'avhec_special_pages[sp][month_group]', __('Monthly Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.', 'avh-ec'), __('monthly archive', 'avhec')) ); + $options_special_pages[] = array ( 'avhec_special_pages[sp][year_group]', __('Yearly Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.', 'avh-ec'), __('yearly archive', 'avhec')) ); + $options_special_pages[] = array ( 'avhec_special_pages[sp][author_group]', __('Author Archive', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.', 'avh-ec'), __('author archive', 'avhec')) ); + $options_special_pages[] = array ( 'avhec_special_pages[sp][search_group]', __('Search Page', 'avh-ec'), 'dropdown', $dropdown_value, $dropdown_text, sprintf(__('Select which category to show on the %s page.', 'avh-ec'), __('search', 'avhec')) ); + + $data['sp'] = array ( 'form' => $options_special_pages, 'data' => $data_special_pages ); + + // This box can't be unselectd in the the Screen Options + //add_meta_box( 'avhecBoxDonations', __( 'Donations', 'avh-ec' ), array (&$this, 'metaboxDonations' ), $this->hooks['menu_category_groups'], 'side', 'core' ); + + + echo '<div class="wrap avhec-metabox-wrap">'; + echo $this->displayIcon('index'); + echo '<h2>' . 'AVH Extended Categories - ' . __('Category Groups', 'avh-ec') . '</h2>'; + + echo ' <div id="dashboard-widgets-wrap">'; + echo ' <div id="dashboard-widgets" class="metabox-holder">'; + + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_category_groups'], 'normal', $data); + echo " </div>"; + + echo ' <div class="postbox-container" style="' . $hide2 . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_category_groups'], 'side', $data); + echo ' </div>'; + + echo ' </div>'; // dashboard-widgets + echo '<br class="clear" />'; + echo ' </div>'; //dashboard-widgets-wrap + echo '</div>'; // wrap + + + $this->printMetaboxGeneralNonces(); + $this->printMetaboxJS('grouped'); + $this->printAdminFooter(); + } + + /** + * Metabox for Adding a group + * @param $data + */ + function metaboxCategoryGroupAdd ($data) + { + echo '<form name="avhec-addgroup" id="avhec-addgroup" method="POST" action="' . $this->getBackLink() . '" accept-charset="utf-8" >'; + wp_nonce_field('avh_ec_addgroup'); + echo $this->printOptions($data['add']['form'], $data['add']['data']); + echo '<p class="submit"><input class="button" type="submit" name="addgroup" value="' . __('Add group', 'avh-ec') . '" /></p>'; + echo '</form>'; + } + + /** + * Metabox for showing the groups as a list + * + * @param $data + */ + function metaboxCategoryGroupList ($data) + { + echo '<form id="posts-filter" action="" method="get">'; + + echo '<div class="clear"></div>'; + + echo '<table class="widefat fixed" cellspacing="0">'; + echo '<thead>'; + echo '<tr>'; + print_column_headers('categories_group'); + echo '</tr>'; + echo '</thead>'; + + echo '<tfoot>'; + echo '<tr>'; + print_column_headers('categories_group', false); + echo '</tr>'; + echo '</tfoot>'; + + echo '<tbody id="the-list" class="list:group">'; + $this->printCategoryGroupRows(); + echo '</tbody>'; + echo '</table>'; + + echo '<br class="clear" />'; + echo '</form>'; + + //echo '</div>'; + } + + /** + * Metabox Category Group Edit + * + */ + function metaboxCategoryGroupEdit ($data) + { + echo '<form name="avhec-editgroup" id="avhec-editgroup" method="POST" action="' . $this->getBackLink() . '" accept-charset="utf-8" >'; + wp_nonce_field('avh_ec_editgroup'); + echo $this->printOptions($data['edit']['form'], $data['edit']['data']); + echo '<input type="hidden" value="' . $data['edit']['data']['edit']['group_id'] . '" name="avhec-group_id" id="avhec-group_id">'; + echo '<p class="submit"><input class="button" type="submit" name="editgroup" value="' . __('Update group', 'avh-ec') . '" /></p>'; + echo '</form>'; + } + + /** + * Metabox Category Group Special pages + * + */ + function metaboxCategoryGroupSpecialPages ($data) + { + echo '<form name="avhec-specialpagesgroup" id="avhec-specialpagesgroup" method="POST" action="' . $this->getBackLink() . '" accept-charset="utf-8" >'; + wp_nonce_field('avh_ec_specialpagesgroup'); + echo $this->printOptions($data['sp']['form'], $data['sp']['data']); + echo '<p class="submit"><input class="button" type="submit" name="spgroup" value="' . __('Save settings', 'avh-ec') . '" /></p>'; + echo '</form>'; + } + + /** + * Setup everything needed for the Manul Order page + * + */ + function actionLoadPageHook_ManualOrder () + { + + add_meta_box('avhecBoxManualOrder', __('Manually Order Categories', 'avh-ec'), array ( &$this, 'metaboxManualOrder' ), $this->hooks['menu_manual_order'], 'normal', 'core'); + + add_screen_option('layout_columns', array ( 'max' => 1, 'default' => 1 )); + + // WordPress core Styles and Scripts + wp_enqueue_script('common'); + wp_enqueue_script('wp-lists'); + wp_enqueue_script('postbox'); + wp_enqueue_script('jquery-ui-sortable'); + wp_enqueue_script('avhec-manualorder'); + + // Plugin Style + wp_enqueue_style('avhec-admin-css'); + + } + + /** + * Menu Page Manual Order + * + * @return none + */ + function doMenuManualOrder () + { + global $screen_layout_columns; + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + + echo '<div class="wrap">'; + echo $this->displayIcon('index'); + echo '<h2>' . 'AVH Extended Categories - ' . __('Manually Order Categories', 'avh-ec') . '</h2>'; + + echo '<div class="metabox-holder">'; + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_manual_order'], 'normal', ''); + echo ' </div>'; + echo '</div>'; + echo '</div>'; // wrap + echo '<div class="clear"></div>'; + + $this->printMetaboxGeneralNonces(); + $this->printMetaboxJS('manual_order'); + $this->printAdminFooter(); + } + + /** + * + * Displays the Manual Order metabox. + * + * @author Andrew Charlton - original + * @author Peter van der Does - modifications + */ + function metaboxManualOrder () + { + global $wpdb; + + $parentID = 0; + + if (isset($_POST['btnSubCats'])) { + $parentID = $_POST['cats']; + } elseif (isset($_POST['hdnParentID'])) { + $parentID = $_POST['hdnParentID']; + } + + if (isset($_POST['btnReturnParent'])) { + $parentsParent = $wpdb->get_row($wpdb->prepare("SELECT parent FROM $wpdb->term_taxonomy WHERE term_id = %d", $_POST['hdnParentID']), ARRAY_N); + $parentID = $parentsParent[0]; + } + + $success = ""; + if (isset($_POST['btnOrderCats'])) { + if (isset($_POST['hdnManualOrder']) && $_POST['hdnManualOrder'] != "") { + + $manualOrder = $_POST['hdnManualOrder']; + $IDs = explode(",", $manualOrder); + $result = count($IDs); + + for ($i = 0; $i < $result; $i ++) { + $str = str_replace("id_", "", $IDs[$i]); + $wpdb->query($wpdb->prepare("UPDATE $wpdb->terms SET avhec_term_order = %d WHERE term_id =%d", $i, $str)); + } + + $success = '<div id="message" class="updated fade"><p>' . __('Manual order of the categories successfully updated.', 'avh-ec') . '</p></div>'; + } else { + $success = '<div id="message" class="updated fade"><p>' . __('An error occured, order has not been saved.', 'avh-ec') . '</p></div>'; + } + + } + + $subCategories = ""; + $results = $wpdb->get_results($wpdb->prepare("SELECT t.term_id, t.name FROM $wpdb->term_taxonomy tt, $wpdb->terms t, $wpdb->term_taxonomy tt2 WHERE tt.parent = %d AND tt.taxonomy = 'category' AND t.term_id = tt.term_id AND tt2.parent = tt.term_id GROUP BY t.term_id, t.name HAVING COUNT(*) > 0 ORDER BY t.avhec_term_order ASC", $parentID)); + foreach ($results as $row) { + $subCategories .= "<option value='$row->term_id'>$row->name</option>"; + } + + echo '<div class="wrap">'; + echo '<form name="frmMyCatOrder" method="post" action="">'; + echo $success; + + echo '<h4>'; + _e('Order the categories', 'avh-ec'); + if ($parentID == 0) { + echo ' at the Toplevel'; + } else { + $categories = get_category_parents($parentID, false, ' » '); + echo ' in the category ' . trim($categories, ' » '); + } + echo '</h4>'; + echo '<span class="description">'; + _e('Order the categories on this level by dragging and dropping them into the desired order.', 'avh-ec'); + echo '</span>'; + echo '<ul id="avhecManualOrder">'; + $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->terms t inner join $wpdb->term_taxonomy tt on t.term_id = tt.term_id WHERE taxonomy = 'category' and parent = %d ORDER BY avhec_term_order ASC", $parentID)); + foreach ($results as $row) + echo "<li id='id_$row->term_id' class='lineitem menu-item-settings'>" . __($row->name) . "</li>"; + + echo '</ul>'; + echo '<input type="submit" name="btnOrderCats" id="btnOrderCats" class="button-primary" value="' . __('Save Order', 'avh-ec') . '" onclick="javascript:orderCats(); return true;" />'; + + if ($parentID != 0) { + echo "<input type='submit' class='button' id='btnReturnParent' name='btnReturnParent' value='" . __('Return to parent category', 'avh-ec') . "' />"; + } + + echo '<strong id="updateText"></strong><br /><br />'; + if ($subCategories != "") { + + echo '<h4>'; + _e('Select Subcategory', 'avh-ec'); + echo '</h4>'; + echo '<select id="cats" name="cats">'; + echo $subCategories; + + echo '</select><input type="submit" name="btnSubCats" class="button" id="btnSubCats" value="' . __('Select', 'avh-ec') . '" />'; + echo '<span class="description">'; + _e('Choose a category from the drop down to order the subcategories in that category.', 'avh-ec'); + echo '</span>'; + } + + echo '<input type="hidden" id="hdnManualOrder" name="hdnManualOrder" />'; + echo '<input type="hidden" id="hdnParentID" name="hdnParentID" value="' . $parentID . '" /></form>'; + echo '</div>'; + } + + /** + * Setup everything needed for the FAQ page + * + */ + function actionLoadPageHook_faq () + { + + add_meta_box('avhecBoxFAQ', __('F.A.Q.', 'avh-ec'), array ( &$this, 'metaboxFAQ' ), $this->hooks['menu_faq'], 'normal', 'core'); + add_meta_box('avhecBoxTranslation', __('Translation', 'avh-ec'), array ( &$this, 'metaboxTranslation' ), $this->hooks['menu_faq'], 'normal', 'core'); + + add_screen_option('layout_columns', array ( 'max' => 2, 'default' => 2 )); + + // WordPress core Styles and Scripts + wp_enqueue_script('common'); + wp_enqueue_script('wp-lists'); + wp_enqueue_script('postbox'); + + // Plugin Style + wp_enqueue_style('avhec-admin-css'); + + } + + /** + * Menu Page FAQ + * + * @return none + */ + function doMenuFAQ () + { + global $screen_layout_columns; + + // This box can't be unselectd in the the Screen Options + // add_meta_box('avhecBoxAnnouncements', __('Announcements', 'avh-ec'), array ( &$this, 'metaboxAnnouncements' ), $this->hooks['menu_faq'], 'side', 'core'); + add_meta_box('avhecBoxDonations', __('Donations', 'avh-ec'), array ( &$this, 'metaboxDonations' ), $this->hooks['menu_faq'], 'side', 'core'); + + $hide2 = ''; + switch ($screen_layout_columns) { + case 2: + $width = 'width:49%;'; + break; + default: + $width = 'width:98%;'; + $hide2 = 'display:none;'; + } + + echo '<div class="wrap avhec-metabox-wrap">'; + echo $this->displayIcon('index'); + echo '<h2>' . 'AVH Extended Categories - ' . __('F.A.Q', 'avh-ec') . '</h2>'; + echo ' <div id="dashboard-widgets-wrap">'; + echo ' <div id="dashboard-widgets" class="metabox-holder">'; + echo ' <div class="postbox-container" style="' . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_faq'], 'normal', ''); + echo ' </div>'; + echo ' <div class="postbox-container" style="' . $hide2 . $width . '">' . "\n"; + do_meta_boxes($this->hooks['menu_faq'], 'side', ''); + echo ' </div>'; + echo ' </div>'; + echo '<br class="clear"/>'; + echo ' </div>'; //dashboard-widgets-wrap + echo '</div>'; // wrap + + + $this->printMetaboxGeneralNonces(); + $this->printMetaboxJS('faq'); + $this->printAdminFooter(); + } + + /** + * Translation Metabox + * @return unknown_type + */ + function metaboxTranslation () + { + $locale = apply_filters('plugin_locale', get_locale(), 'avh-ec'); + $available_locale['cs_CZ'] = array ( 'Czech - Čeština', 0 ); + $available_locale['nl_NL'] = array ( 'Dutch - Nederlands', 0 ); + $available_locale['de_DE'] = array ( 'German - Deutsch', 0 ); + $available_locale['el'] = array ( 'Greek - Čeština', 0 ); + $available_locale['id_ID'] = array ( 'Indonesian - Bahasa Indonesia - Čeština', 0 ); + $available_locale['it_IT'] = array ( 'Italian - Italiano', 1 ); + $available_locale['ru_RU'] = array ( 'Russian — Русский', 0 ); + $available_locale['es_ES'] = array ( 'Spanish - Español', 0 ); + $available_locale['sv_SE'] = array ( 'Swedish - Svenska', 0 ); + $available_locale['tr'] = array ( 'Turkish - Türkçe', 0 ); + + echo '<div class="p">'; + echo __('This plugin is translated in several languages. Some of the languages might be incomplete. Please help to complete these translations or add a new language.', 'avh-ec') . '<br />'; + + echo '</div>'; + + echo '<div class="p">'; + echo '<span class="b">' . __('Available Languages', 'avh-ec') . '</span>'; + echo '<ul>'; + foreach ($available_locale as $key => $value) { + echo '<li>'; + $complete = ($value[1] == 1 ? 'Complete' : 'Incomplete'); + echo $value[0] . ' (' . $key . ') - ' . $complete; + echo '</li>'; + } + echo '</ul>'; + echo '</div>'; + + echo '<div class="p">'; + if ('en_US' != $locale & (! array_key_exists($locale, $available_locale))) { + echo 'Currently the plugin is not available in your language (' . $locale . '). We\'re in the middle of changing the way you can help with translations. Keep an eye on the <a href="http:///blog.avirtualhome.com">website</a> for the announcement.'; + } else { + echo 'We\'re in the middle of changing the way you can help with translations. Keep an eye on the <a href="http:///blog.avirtualhome.com">website</a> for the announcement.'; + } + echo '</div>'; + + } + + /** + * Donation Metabox + * @return unknown_type + */ + function metaboxDonations () + { + echo '<div class="p">'; + echo __('If you enjoy this plug-in please consider a donation. There are several ways you can show your appreciation.', 'avh-ec'); + echo '</div>'; + + echo '<div class="p">'; + echo '<span class="b">Amazon</span><br />'; + echo __('If you decide to buy something from Amazon click the button.', 'avh-ec') . '</span><br />'; + echo '<a href="https://www.amazon.com/?tag=avh-donation-20" target="_blank" title="Amazon Homepage"><img alt="Amazon Button" src="' . $this->core->info['graphics_url'] . '/us_banner_logow_120x60.gif" /></a>'; + echo '</div>'; + + echo '<div class="p">'; + echo __('You can send me something from my ', 'avh-ec') . '<a href="http://www.amazon.com/registry/wishlist/1U3DTWZ72PI7W?tag=avh-donation-20">' . __('Amazon Wish List', 'avh-ec') . '</a>'; + echo '</div>'; + + echo '<div class="p">'; + echo '<span class="b">' . __('Through Paypal.', 'avh-ec') . '</span><br />'; + echo __('Click on the Donate button and you will be directed to Paypal where you can make your donation and you don\'t need to have a Paypal account to make a donation.', 'avh-ec') . '<br />'; + echo '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=S85FXJ9EBHAF2&lc=US&item_name=AVH%20Plugins&item_number=fdas¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank" title="Donate">'; + echo '<img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Donate"/></a>'; + echo '</div>'; + + } + + /*** + * F.A.Q Metabox + * @return none + */ + function metaboxFAQ () + { + echo '<div class="p">'; + echo '<span class="b">' . __('What about support?', 'avh-ec') . '</span><br />'; + echo __('I created a <a href="http://forums.avirtualhome.com" target="_blank">support site</a> where you can ask questions or request features.', 'avh-ec') . '<br />'; + echo '</div>'; + + echo '<div class="p">'; + echo '<span class="b">' . __('What is depth selection?', 'avh-ec') . '</span><br />'; + echo __('Starting with version 2.0 and WordPress 2.8 you can select how many levels deep you want to show your categories. This option only works when you select Show Hierarchy as well.', 'avh-ec') . '<br /><br />'; + echo __('Here is how it works: Say you have 5 top level categories and each top level has a number of children. You could manually select all the Top Level categories you want to show but now you can do the following:', 'avh-ec') . '<br />'; + echo __('You select to display all categories, select to Show hierarchy and select how many levels you want to show, in this case Toplevel only.', 'avh-ec') . '<br />'; + echo '</div>'; + + echo '<div class="p">'; + echo '<span class="b">' . __('Multiple Category Groups', 'avh-ec') . '</span><br />'; + echo __('The following is an explanation how assigning multiple groups to page/post works.', 'avh-ec') . '<br /><br />'; + echo __('Lets say you have the following groups:', 'avh-ec'); + echo '<ul>'; + echo '<li>' . __('Free Time', 'avh-ec') . '</li>'; + echo '<li>' . __('Theater', 'avh-ec') . '</li>'; + echo '<li>' . __('Movie', 'avh-ec') . '</li>'; + echo '<li>' . __('Music', 'avh-ec') . '</li>'; + echo '</ul>'; + echo __('Setup several Category Group widgets and associated each widget with one or more groups.', 'avh-ec') . '<br />'; + echo __('Widget 1 has association with Free Time', 'avh-ec') . '<br />'; + echo __('Widget 2 has association with Theater, Movie and Music', 'avh-ec') . '<br />'; + echo __('Widget 3 has association with Theater, Movie and Music', 'avh-ec') . '<br /><br />'; + echo __('Page has associations the groups Free Time and Theater', 'avh-ec'); + echo '<ul>'; + echo '<li>' . __('Widget 1: Shows categories of the Free Time group', 'avh-ec') . '</li>'; + echo '<li>' . __('Widget 2: Shows categories of the Theater group.', 'avh-ec') . '</li>'; + echo '<li>' . __('Widget 3: Not displayed', 'avh-ec') . '</li>'; + echo '</ul>'; + echo __('Page has associations the group Movie.', 'avh-ec'); + echo '<ul>'; + echo '<li>' . __('Widget 1: Not displayed', 'avh-ec') . '</li>'; + echo '<li>' . __('Widget 2: Shows categories of the Movie group.', 'avh-ec') . '</li>'; + echo '<li>' . __('Widget 3: Not displayed', 'avh-ec') . '</li>'; + echo '</ul>'; + echo __('Page has associations the groups Free Time, Movie and Music', 'avh-ec'); + echo '<ul>'; + echo '<li>' . __('Widget 1: Shows categories of the Free Time group', 'avh-ec') . '</li>'; + echo '<li>' . __('Widget 2: Shows categories of the Movie or Music group.', 'avh-ec') . '</li>'; + echo '<li>' . __('Widget 3: Shows categories of the Music or Movie group.', 'avh-ec') . '</li>'; + echo '</ul>'; + echo __('Whether Widget 2 shows Movie or Music depends on the creation order of groups. If Widget 2 shows Movie, Widget 3 will show Music but if Widget 2 shows Music, Widget 3 will show Movie.', 'avh-ec') . '<br />'; + echo '</div>'; + } + + function metaboxAnnouncements () + { + $php5 = version_compare('5.2', phpversion(), '<'); + echo '<div class="p">'; + echo '<span class="b">' . __('PHP4 Support', 'avh-ec') . '</span><br />'; + echo __('The next major release of the plugin will no longer support PHP4.', 'avh-ec') . '<br />'; + echo __('It will be written for PHP 5.2 and ', 'avh-ec'); + if ($php5) { + echo __('your blog already runs the needed PHP version. When the new release comes out you can safely update.', 'avh-ec') . '<br />'; + } else { + echo __('your blog still runs PHP4. When the new release comes out you can not use it.', 'avh-ec') . '<br />'; + echo __('I don\'t have a timeline for the next version but consider contacting your host if PHP 5.2 is available.', 'avh-ec') . '<br />'; + echo __('If your hosts doesn\'t offer PHP 5.2 you might want to consider switching hosts.', 'avh-ec') . '<br />'; + echo __('A host to consider is ', 'avh-ec') . '<a href="http://www.lunarpages.com/id/pdoes" target="_blank">Lunarpages</a>'; + echo __('I run my personal blog there and I am very happy with their services. You can get an account with unlimited bandwidth, storage and much more for a low price.', 'avh-ec'); + } + echo '</div>'; + + } + + /** + * Sets the amount of columns wanted for a particuler screen + * + * @WordPress filter screen_meta_screen + * @param $screen + * @return strings + */ + + function filterScreenLayoutColumns ($columns, $screen) + { + switch ($screen) { + case $this->hooks['menu_overview']: + $columns[$this->hooks['menu_overview']] = 2; + break; + case $this->hooks['menu_general']: + $columns[$this->hooks['menu_general']] = 2; + break; + case $this->hooks['menu_category_groups']: + $columns[$this->hooks['menu_category_groups']] = 2; + break; + case $this->hooks['menu_faq']: + $columns[$this->hooks['menu_faq']] = 2; + break; + + } + return $columns; + } + + /** + * Adds Settings next to the plugin actions + * + * @WordPress Filter plugin_action_links_avh-amazon/avh-amazon.php + * + */ + function filterPluginActions ($links, $file) + { + $settings_link = '<a href="admin.php?page=extended-categories-widget">' . __('Settings', 'avh-ec') . '</a>'; + array_unshift($links, $settings_link); // before other links + return $links; + + } + + /** + * Creates a new array for columns headers. Used in print_column_headers. The filter is called from get_column_headers + * + * @param $columns + * @return Array + * @see print_column_headers, get_column_headers + */ + function filterManageCategoriesGroupColumns ($columns) + { + $categories_group_columns = array ( 'name' => __('Name', 'avh-ec'), 'slug' => 'Slug', 'widget-title' => __('Widget Title', 'avh-ec'), 'description' => __('Description', 'avh-ec'), 'cat-in-group' => __('Categories in the group', 'avh-ec') ); + return $categories_group_columns; + } + + /** + * When not using AJAX, this function is called when the deletion fails. + * + * @param string $text + * @param int $group_id + * @return string + * @WordPress Filter explain_nonce_$verb-$noun + * @see wp_explain_nonce + */ + function filterExplainNonceDeleteGroup ($text, $group_id) + { + $group = get_term($group_id, $this->catgrp->taxonomy_name, OBJECT, 'display'); + + $return = sprintf(__('Your attempt to delete this group: “%s” has failed.'), $group->name); + return ($return); + } + + ############## Admin WP Helper ############## + + + /** + * Get the backlink for forms + * + * @return strings + */ + function getBackLink () + { + $page = basename(__FILE__); + if (isset($_GET['page']) && ! empty($_GET['page'])) { + $page = preg_replace('[^a-zA-Z0-9\.\_\-]', '', $_GET['page']); + } + + if (function_exists("admin_url")) + return admin_url(basename($_SERVER["PHP_SELF"])) . "?page=" . $page; + else + return $_SERVER['PHP_SELF'] . "?page=" . $page; + } + + /** + * Print all Category Group rows + * + * @uses printCategoryGroupRow + * + */ + function printCategoryGroupRows () + { + $cat_groups = get_terms($this->catgrp->taxonomy_name, array ( 'hide_empty' => FALSE )); + + foreach ($cat_groups as $group) { + if ('none' != $group->slug) { + echo $this->printCategoryGroupRow($group->term_id, $group->term_taxonomy_id); + } + } + } + + /** + * Displays all the information of a group in a row + * Adds inline link for delete and/or edit. + * + * @param int $group_term_id + * @param int $group_term_taxonomy_id + */ + function printCategoryGroupRow ($group_term_id, $group_term_taxonomy_id) + { + static $row_class = ''; + + $group = get_term($group_term_id, $this->catgrp->taxonomy_name, OBJECT, 'display'); + + $no_edit[$this->catgrp->getTermIDBy('slug', 'all')] = 0; + $no_delete[$this->catgrp->getTermIDBy('slug', 'all')] = 0; + + if (current_user_can('manage_categories')) { + $actions = array (); + if (! array_key_exists($group->term_id, $no_edit)) { + $edit_link = "admin.php?page=avhec-grouped&action=edit&group_ID=$group->term_id"; + $edit = "<a class='row-title' href='$edit_link' title='" . esc_attr(sprintf(__('Edit “%s”'), $group->name)) . "'>" . esc_attr($group->name) . '</a><br />'; + + $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; + } else { + $edit = esc_attr($group->name); + } + if (! (array_key_exists($group->term_id, $no_delete))) { + $actions['delete'] = "<a class='delete:the-list:group-$group->term_id submitdelete' href='" . wp_nonce_url("admin.php?page=avhec-grouped&action=delete&group_ID=$group->term_id", 'delete-avhecgroup_' . $group->term_id) . "'>" . __('Delete') . "</a>"; + } + $action_count = count($actions); + $i = 0; + $edit .= '<div class="row-actions">'; + foreach ($actions as $action => $link) { + ++ $i; + ($i == $action_count) ? $sep = '' : $sep = ' | '; + $edit .= "<span class='$action'>$link$sep</span>"; + } + $edit .= '</div>'; + } else { + $edit = $group->name; + } + + $row_class = 'alternate' == $row_class ? '' : 'alternate'; + $qe_data = get_term($group->term_id, $this->catgrp->taxonomy_name, OBJECT, 'edit'); + + $output = "<tr id='group-$group->term_id' class='iedit $row_class'>"; + + $columns = get_column_headers('categories_group'); + $hidden = get_hidden_columns('categories_group'); + foreach ($columns as $column_name => $column_display_name) { + $class = 'class="' . $column_name . ' column-' . $column_name . '"'; + + $style = ''; + if (in_array($column_name, $hidden)) + $style = ' style="display:none;"'; + + $attributes = $class . $style; + + switch ($column_name) { + case 'cb': + $output .= '<th scope="row" class="check-column">'; + if (! (array_key_exists($group->term_id, $no_delete))) { + $output .= '<input type="checkbox" name="delete[]" value="' . $group->term_id . '" />'; + } else { + $output .= " "; + } + $output .= '</th>'; + break; + case 'name': + $output .= '<td ' . $attributes . '>' . $edit; + $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">'; + $output .= '<div class="name">' . $qe_data->name . '</div>'; + $output .= '<div class="slug">' . apply_filters('editable_slug', $qe_data->slug) . '</div>'; + $output .= '</div></td>'; + break; + case 'widget-title': + $title = $this->catgrp->getWidgetTitleForGroup($group->term_id); + if (! $title) { + $title = " "; + } + $output .= '<td ' . $attributes . '>' . $title . '</td>'; + break; + + case 'description': + $output .= '<td ' . $attributes . '>' . $qe_data->description . '</td>'; + break; + case 'slug': + $output .= "<td $attributes>" . apply_filters('editable_slug', $qe_data->slug) . "</td>"; + break; + case 'cat-in-group': + $cats = $this->catgrp->getCategoriesFromGroup($group_term_id); + $catname = array (); + foreach ($cats as $cat_id) { + $catname[] = get_cat_name($cat_id); + } + natsort($catname); + $cat = implode(', ', $catname); + $output .= '<td ' . $attributes . '>' . $cat . '</td>'; + break; + + } + } + $output .= '</tr>'; + + return $output; + } + + /** + * Prints the general nonces, used by the AJAX + */ + function printMetaboxGeneralNonces () + { + echo '<form style="display:none" method="get" action="">'; + echo '<p>'; + wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); + wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); + echo '</p>'; + echo '</form>'; + + } + + /** + * Print the Metabox JS for toggling closed and open + * + * @param $boxid + */ + function printMetaboxJS ($boxid) + { + $a = $this->hooks['menu_' . $boxid]; + echo '<script type="text/javascript">' . "\n"; + echo ' //<![CDATA[' . "\n"; + echo ' jQuery(document).ready( function($) {' . "\n"; + echo ' $(\'.if-js-closed\').removeClass(\'if-js-closed\').addClass(\'closed\');' . "\n"; + echo ' // postboxes setup' . "\n"; + echo ' postboxes.add_postbox_toggles(\'' . $a . '\');' . "\n"; + echo ' });' . "\n"; + echo ' //]]>' . "\n"; + echo '</script>'; + + } + + /** + * Display plugin Copyright + * + */ + function printAdminFooter () + { + echo '<p class="footer_avhec">'; + printf('© Copyright %d <a href="http://blog.avirtualhome.com/" title="My Thoughts">Peter van der Does</a> | AVH Extended Categories Version %s', date('Y'), $this->core->version); + echo '</p>'; + } + + /** + * Display WP alert + * + */ + function displayMessage () + { + if ($this->message != '') { + $message = $this->message; + $status = $this->status; + $this->message = $this->status = ''; // Reset + } + if (isset($message)) { + $status = ($status != '') ? $status : 'updated fade'; + echo '<div id="message" class="' . $status . '">'; + echo '<p><strong>' . $message . '</strong></p></div>'; + } + } + + /** + * Ouput formatted options + * + * @param array $option_data + * @return string + */ + function printOptions ($option_data, $option_actual) + { + // Generate output + $output = ''; + $output .= "\n" . '<table class="form-table avhec-options">' . "\n"; + foreach ($option_data as $option) { + $section = substr($option[0], strpos($option[0], '[') + 1); + $section = substr($section, 0, strpos($section, '][')); + $option_key = rtrim($option[0], ']'); + $option_key = substr($option_key, strpos($option_key, '][') + 2); + // Helper + if ($option[2] == 'helper') { + $output .= '<tr style="vertical-align: top;"><td class="helper" colspan="2">' . wp_filter_post_kses($option[4]) . '</td></tr>' . "\n"; + continue; + } + switch ($option[2]) { + case 'checkbox': + $input_type = '<input type="checkbox" id="' . esc_attr($option[0]) . '" name="' . esc_attr($option[0]) . '" value="' . esc_attr($option[3]) . '" ' . $this->isChecked('1', $option_actual[$section][$option_key]) . ' />' . "\n"; + $explanation = $option[4]; + break; + case 'dropdown': + $selvalue = $option[3]; + $seltext = $option[4]; + $seldata = ''; + foreach ((array) $selvalue as $key => $sel) { + $seldata .= '<option value="' . esc_attr($sel) . '" ' . (($option_actual[$section][$option_key] == $sel) ? 'selected="selected"' : '') . ' >' . esc_html(ucfirst($seltext[$key])) . '</option>' . "\n"; + } + $input_type = '<select id="' . esc_attr($option[0]) . '" name="' . esc_attr($option[0]) . '">' . $seldata . '</select>' . "\n"; + $explanation = $option[5]; + break; + case 'text-color': + $input_type = '<input type="text" ' . (($option[3] > 1) ? ' style="width: 95%" ' : '') . 'id="' . esc_attr($option[0]) . '" name="' . esc_attr($option[0]) . '" value="' . esc_attr($option_actual[$section][$option_key]) . '" size="' . esc_attr($option[3]) . '" /><div class="box_color ' . esc_attr($option[0]) . '"></div>' . "\n"; + $explanation = $option[4]; + break; + case 'textarea': + $input_type = '<textarea rows="' . esc_attr($option[5]) . '" ' . (($option[3] > 1) ? ' style="width: 95%" ' : '') . 'id="' . esc_attr($option[0]) . '" name="' . esc_attr($option[0]) . '" size="' . esc_attr($option[3]) . '" />' . $option_actual[$section][$option_key] . '</textarea>'; + $explanation = $option[4]; + break; + case 'catlist': + ob_start(); + echo '<div id="avhec-catlist">'; + echo '<ul>'; + wp_category_checklist(0, 0, $option_actual[$section][$option_key]); + echo '</ul>'; + echo '</div>'; + $input_type = ob_get_contents(); + ob_end_clean(); + $explanation = $option[4]; + break; + case 'text': + default: + $input_type = '<input type="text" ' . (($option[3] > 1) ? ' style="width: 95%" ' : '') . 'id="' . esc_attr($option[0]) . '" name="' . esc_attr($option[0]) . '" value="' . esc_attr($option_actual[$section][$option_key]) . '" size="' . esc_attr($option[3]) . '" />' . "\n"; + $explanation = $option[4]; + break; + } + // Additional Information + $extra = ''; + if ($explanation) { + $extra = '<br /><span class="description">' . wp_filter_kses($explanation) . '</span>' . "\n"; + } + // Output + $output .= '<tr style="vertical-align: top;"><th align="left" scope="row"><label for="' . esc_attr($option[0]) . '">' . wp_filter_kses($option[1]) . '</label></th><td>' . $input_type . ' ' . $extra . '</td></tr>' . "\n"; + } + $output .= '</table>' . "\n"; + return $output; + } + + /** + * Used in forms to set an option checked + * + * @param mixed $checked + * @param mixed $current + * @return strings + */ + function isChecked ($checked, $current) + { + $return = ''; + if ($checked == $current) { + $return = ' checked="checked"'; + } + return $return; + } + + /** + * Displays the icon on the menu pages + * + * @param $icon + */ + function displayIcon ($icon) + { + return ('<div class="icon32" id="icon-' . $icon . '"><br/></div>'); + } + + /** + * Ajax Helper: inline delete of the groups + */ + function ajaxDeleteGroup () + { + $group_id = isset($_POST['id']) ? (int) $_POST['id'] : 0; + check_ajax_referer('delete-avhecgroup_' . $group_id); + + if (! current_user_can('manage_categories')) { + die('-1'); + } + $check = $this->catgrp->getGroup($group_id); + if (false === $check) { + die('1'); + } + + if ($this->catgrp->doDeleteGroup($group_id)) { + die('1'); + } else { + die('0'); + } + } +} +?> diff --git a/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.category-group.php b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.category-group.php new file mode 100644 index 000000000..7ca858da6 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.category-group.php @@ -0,0 +1,411 @@ +<?php + +/** + * AVH Extended Categorie Category Group Class + * + * @author Peter van der Does + */ +class AVH_EC_Category_Group +{ + /** + * Taxonomy name + * @var string + */ + var $taxonomy_name; + + var $db_options_widget_titles; + + var $options_widget_titles; + + var $widget_done_catgroup; + + /** + * PHP4 constructor. + * + */ + function AVH_EC_Category_Group () + { + return $this->__construct(); + } + + /** + * PHP5 Constructor + * Init the Database Abstraction layer + * + */ + function __construct () + { + global $wpdb; + + register_shutdown_function(array ( &$this, '__destruct' )); + + /** + * Taxonomy name + * @var string + */ + $this->taxonomy_name = 'avhec_catgroup'; + + $this->db_options_widget_titles = 'avhec_widget_titles'; + // add DB pointer + $wpdb->avhec_cat_group = $wpdb->prefix . 'avhec_category_groups'; + + /** + * Create the table if it doesn't exist. + * + */ + if ($wpdb->get_var('show tables like \'' . $wpdb->avhec_cat_group . '\'') != $wpdb->avhec_cat_group) { + add_action('init', array ( &$this, 'doCreateTable' ), 2); // Priority needs to be the same as the Register Taxonomy + } + add_action('init', array ( &$this, 'doRegisterTaxonomy' ), 2); // Priority for registering custom taxonomies is +1 over the creation of the initial taxonomies + add_action('init', array ( &$this, 'doSetupOptions' )); + + add_action('admin_init', array ( &$this, 'addMetaBoxes' )); + + } + + /** + * PHP5 style destructor and will run when database object is destroyed. + * + * @return bool Always true + */ + function __destruct () + { + return true; + } + + /** + * Create Table + * @WordPress action init + * + */ + function doCreateTable () + { + global $wpdb; + + // Setup the DB Tables + $charset_collate = ''; + + if (! empty($wpdb->charset)) { + $charset_collate = 'DEFAULT CHARACTER SET ' . $wpdb->charset; + } + if (! empty($wpdb->collate)) { + $charset_collate .= ' COLLATE ' . $wpdb->collate; + } + + $sql = 'CREATE TABLE `' . $wpdb->avhec_cat_group . '` ( `group_term_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `term_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`group_term_id`, `term_id`) )' . $charset_collate . ';'; + + $result = $wpdb->query($sql); + } + + /** + * Setup Group Categories Taxonomy + * @WordPress action init + * + */ + function doRegisterTaxonomy () + { + /** + * As we don't want to see the Menu Item we have to disable show_ui. This also disables the metabox on the posts and pages, so we add thse manually instead. + * We remove the capabilities to manage, edit and delete the terms. We have written this part ourselves and don't use WordPress for these functions. The only one we use is the assign_terms. + */ + $labels = array ( 'name' => __('Category Groups', 'avh-ec'), 'singular_name' => __('Category Group', 'avh-ec'), 'search_items' => __('Search Category Groups', 'avh-ec'), 'popular_items' => __('Popular Category Groups'), 'all_items' => __('All Category Groups'), 'parent_item' => __('Parent Category Group'), 'parent_item_colon' => __('Parent Category Group:'), 'edit_item' => __('Edit Category Group'), 'update_item' => __('Update Category Group'), 'add_new_item' => __('Add New Category Group'), 'new_item_name' => __('New Category Group Name') ); + $caps = array ( 'manage_terms' => null, 'edit_terms' => null, 'delete_terms' => null, 'assign_terms' => 'edit_posts' ); + register_taxonomy($this->taxonomy_name, array ( 'post', 'page' ), array ( 'hierarchical' => TRUE, 'labels' => $labels, 'query_var' => TRUE, 'rewrite' => TRUE, 'show_in_nav_menus' => FALSE, 'public' => TRUE, 'show_ui' => FALSE, 'capabilities' => $caps )); + + } + + /** + * Setup the options for the widget titles + * @WordPress action init + * + */ + function doSetupOptions () + { + // Setup the standard groups if the none group does not exists. + $all_categories = $this->getAllCategoriesTermID(); + if (false === $this->getTermIDBy('slug', 'none')) { + $none_group_id = wp_insert_term('none', $this->taxonomy_name, array ( 'description' => __('This group will not show the widget.', 'avh-ec') )); + $all_group_id = wp_insert_term('All', $this->taxonomy_name, array ( 'description' => __('Holds all the categories.', 'avh-ec') )); + $home_group_id = wp_insert_term('Home', $this->taxonomy_name, array ( 'description' => __('This group will be shown on the front page.', 'avh-ec') )); + + // Fill the standard groups with all categories + $this->setCategoriesForGroup($home_group_id['term_id'], $all_categories); + $this->setWidgetTitleForGroup($all_group_id['term_id'], ''); + $this->setWidgetTitleForGroup($home_group_id['term_id'], ''); + } + + $options = get_option($this->db_options_widget_titles); + if (! $options) { + $options = array (); + $id = $this->getTermIDBy('slug', 'all'); + $options[$id] = ''; + $id = $this->getTermIDBy('slug', 'home'); + $options[$id] = ''; + update_option($this->db_options_widget_titles, $options); + } + $this->options_widget_titles = $options; + $this->setCategoriesForGroup($this->getTermIDBy('slug', 'all'), $all_categories); + } + + /** + * Add the metaboxes for the pots and page pages. + * @WordPress action admin_init + * + */ + function addMetaBoxes () + { + add_meta_box($this->taxonomy_name . 'div', __('Category Groups', 'avh-ec'), 'post_categories_meta_box', 'post', 'side', 'core', array ( 'taxonomy' => $this->taxonomy_name )); + add_meta_box($this->taxonomy_name . 'div', __('Category Groups', 'avh-ec'), 'post_categories_meta_box', 'page', 'side', 'core', array ( 'taxonomy' => $this->taxonomy_name )); + } + + /** + * Get all groups term_id + * + * @return array Term_id + */ + function getAllCategoriesTermID () + { + $all_cat_id = array (); + $categories = get_categories(); + if (! is_wp_error($categories)) { + foreach ($categories as $category) { + $all_cat_id[] = $category->term_id; + } + } + return ($all_cat_id); + } + + /** + * Get the categories from the given group from the DB + * + * @param int $group_id The Taxonomy Term ID + * @return Array|False categories. Will return FALSE, if the row does not exists. + * + */ + function getCategoriesFromGroup ($group_id) + { + global $wpdb; + + // Query database + $result = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->terms . ' t, ' . $wpdb->avhec_cat_group . ' cg WHERE t.term_id = cg.term_id AND cg.group_term_id = %d', $group_id)); + + if (is_array($result)) { // Call succeeded + if (empty($result)) { // No rows found + $return = array (); + } else { + foreach ($result as $row) { + $return[] = $row->term_id; + } + } + } else { + $return = false; + } + return ($return); + } + + /** + * Set the categories for the given group from the DB. Insert the group if it doesn't exists. + * + * @param int $group_id The Taxonomy Term ID + * @param array $categories The categories + * @return Object (false if not found) + * + */ + function setCategoriesForGroup ($group_id, $categories = array()) + { + global $wpdb; + + $old_categories = $this->getCategoriesFromGroup($group_id); + + if (! is_array($categories)) { + $categories = array (); + } + $new_categories = $categories; + sort($old_categories); + sort($new_categories); + // If the new and old values are the same, no need to update. + if ($new_categories === $old_categories) { + return false; + } + + $new = array_diff($new_categories, $old_categories); + $removed = array_diff($old_categories, $new_categories); + + if (! empty($new)) { + foreach ($new as $cat_term_id) { + $insert[] = '(' . $group_id . ',' . $cat_term_id . ')'; + } + $value = implode(',', $insert); + $sql = 'INSERT INTO ' . $wpdb->avhec_cat_group . ' (group_term_id, term_id) VALUES ' . $value; + $result = $wpdb->query($sql); + + } + + if (! empty($removed)) { + $delete = implode(',', $removed); + $sql = $wpdb->prepare('DELETE FROM ' . $wpdb->avhec_cat_group . ' WHERE group_term_id=%d and term_id IN (' . $delete . ')', $group_id); + $result = $wpdb->query($sql); + + } + + return $result; + } + + /** + * Set the Widget Title for a Group + * @param int $group_id + * @param string $widget_title + * + */ + function setWidgetTitleForGroup ($group_id, $widget_title = '') + { + $this->options_widget_titles[$group_id] = $widget_title; + update_option($this->db_options_widget_titles, $this->options_widget_titles); + } + + /** + * Return the title for a group_id if exsist otherwise return false + * @param $group_id + * + */ + function getWidgetTitleForGroup ($group_id) + { + if (isset($this->options_widget_titles[$group_id])) { + return ($this->options_widget_titles[$group_id]); + } + return false; + } + + /** + * Delete the Widget Title for a group + * + * @param $group_id + */ + function doDeleteWidgetTitle ($group_id) + { + if (isset($this->db_options_widget_titles[$group_id])) { + unset($this->db_options_widget_titles[$group_id]); + } + update_option($this->db_options_widget_titles, $this->options_widget_titles); + } + + /** + * Same as get_term_by, but returns the ID only if found, else false + * @param string $field + * @param string $value + * @return int|boolean + */ + function getTermIDBy ($field, $value) + { + $row = get_term_by($field, $value, $this->taxonomy_name); + if (false === $row) { + $return = false; + } else { + $return = (int) $row->term_id; + } + return ($return); + } + + /** + * Gets all information of a group + * + * @param $group_id + * @return Object|False Returns False when the group doesn't exists. + */ + function getGroup ($group_id) + { + global $wpdb; + + $result = get_term((int) $group_id, $this->taxonomy_name); + if (null === $result) { + $result = false; + } + return ($result); + } + + function getGroupByCategoryID ($category_id) + { + $return = get_term_by('slug', 'none', $this->taxonomy_name); + $cat_groups = get_terms($this->taxonomy_name, array ( 'hide_empty' => FALSE )); + + foreach ($cat_groups as $group) { + $cats = $this->getCategoriesFromGroup($group->term_id); + if ($group->slug != 'all' && in_array($category_id, $cats)) { + $return = $group; + break; + } + } + return $return; + } + + /** + * Inserts a new group + * + * @param $term + * @param array $args + */ + function doInsertGroup ($term, $args = array(), $widget_title = '') + { + $row = wp_insert_term($term, $this->taxonomy_name, $args); + $this->setWidgetTitleForGroup($term, $widget_title); + return ($row['term_id']); + } + + /** + * Deletes a group + * + * @param $group_id + */ + function doDeleteGroup ($group_id) + { + + global $wpdb; + + $group = $this->getGroup($group_id); + $result = $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->avhec_cat_group . ' WHERE group_term_id=%d', $group_id)); + $this->doDeleteWidgetTitle($group_id); + $return = wp_delete_term($group->term_id, $this->taxonomy_name); + + return ($return); + } + + /** + * Update a group + * + * @param $group_id + * @param $selected_categories + * @param $widget_title + * + * return -1,0,1 Unknown Group, Duplicate Slug, Succesfull + */ + function doUpdateGroup ($group_id, $args = array(), $selected_categories, $widget_title = '') + { + + $group = $this->getGroup($group_id); + if (is_object($group)) { + $id = wp_update_term($group->term_id, $this->taxonomy_name, $args); + if (! is_wp_error($id)) { + $this->setWidgetTitleForGroup($group_id, $widget_title); + $this->setCategoriesForGroup($group_id, $selected_categories); + $return = 1; // Succesful + } else { + $return = 0; // Duplicate Slug + } + } else { + $return = - 1; // Unknown group + } + return ($return); + } + + /** + * Deletes the given category from all groups + * + * @param $category_id + */ + function doDeleteCategoryFromGroup ($category_id) + { + global $wpdb; + $result = $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->avhec_cat_group . ' WHERE term_id=%d', $category_id)); + } +} +?> \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.core.php b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.core.php new file mode 100644 index 000000000..90b14ba12 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.core.php @@ -0,0 +1,759 @@ +<?php + +class AVH_EC_Core +{ + var $version; + var $comment; + var $info; + var $db_options_core; + var $default_options; + var $default_options_general; + var $default_options_category_group; + var $default_options_sp_category_group; + + var $db_options_tax_meta; + + var $options; + + /** + * PHP5 constructor + * + */ + function __construct () + { + /** + * + * @var AVH_EC_Category_Group + */ + $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); + + $this->version = '3.6.4'; + $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->'; + $this->db_options_core = 'avhec'; + $this->db_options_tax_meta = 'avhec-tax_meta'; + + add_action('init', array ( &$this, 'handleInitializePlugin' ), 10); + } + + /** + * PHP4 Constructor + * + * @return AVHExtendedCategoriesCore + */ + function AVH_EC_Core () + { + $this->__construct(); + } + + function handleInitializePlugin () + { + global $wpdb; + + $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); + $db_version = 4; + + $info['siteurl'] = get_option('siteurl'); + $info['plugin_dir'] = AVHEC_PLUGIN_DIR; + $info['graphics_url'] = AVHEC_PLUGIN_URL . '/images'; + + // Set class property for info + $this->info = array ( 'home' => get_option('home'), 'siteurl' => $info['siteurl'], 'plugin_dir' => $info['plugin_dir'], 'js_dir' => $info['plugin_dir'] . '/js', 'graphics_url' => $info['graphics_url'] ); + + // Set the default options + $this->default_options_general = array ( 'version' => $this->version, 'dbversion' => $db_version, 'alternative_name_select_category' => '' ); + + // Set the default category group options + $no_group_id = $catgrp->getTermIDBy('slug', 'none'); + $home_group_id = $catgrp->getTermIDBy('slug', 'home'); + $default_group_id = $catgrp->getTermIDBy('slug', 'all'); + $this->default_options_category_group = array ( 'no_group' => $no_group_id, 'home_group' => $home_group_id, 'default_group' => $default_group_id ); + + $this->default_options_sp_category_group = array ( 'home_group' => $home_group_id, 'category_group' => $default_group_id, 'day_group' => $default_group_id, 'month_group' => $default_group_id, 'year_group' => $default_group_id, 'author_group' => $default_group_id, 'search_group' => $default_group_id ); + + $this->default_options = array ( 'general' => $this->default_options_general, 'cat_group' => $this->default_options_category_group, 'widget_titles' => array (), 'sp_cat_group' => $this->default_options_sp_category_group ); + + /** + * Set the options for the program + * + */ + $this->loadOptions(); + + // Check if we have to do updates + if ((! isset($this->options['general']['dbversion'])) || $this->options['general']['dbversion'] < $db_version) { + $this->doUpdateOptions($db_version); + } + + $db = new AVH_DB(); + if (! $db->field_exists('avhec_term_order', $wpdb->terms)) { + $wpdb->query("ALTER TABLE $wpdb->terms ADD `avhec_term_order` INT( 4 ) NULL DEFAULT '0'"); + } + + $this->handleTextdomain(); + add_filter('get_terms_orderby', array ( &$this, 'applyOrderFilter' ), 10, 2); + + } + + function applyOrderFilter ($orderby, $args) + { + switch ($args['orderby']) { + case 'avhec_manualorder': + $new_orderby = 't.avhec_term_order'; + break; + case 'avhec_3rdparty_mycategoryorder': + $new_orderby = 't.term_order'; + break; + default: + $new_orderby = $orderby; + break; + } + return $new_orderby; + } + + /** + * Loads the i18n + * + * @return + */ + function handleTextdomain () + { + + load_plugin_textdomain('avh-ec', false, AVHEC_RELATIVE_PLUGIN_DIR . '/lang'); + + } + + /** + * Checks if running version is newer and do upgrades if necessary + * + * @since 1.2.3 + * + */ + function doUpdateOptions ($db_version) + { + $options = $this->getOptions(); + + // Add none existing sections and/or elements to the options + foreach ($this->default_options as $section => $default_data) { + if (! array_key_exists($section, $options)) { + $options[$section] = $default_data; + continue; + } + foreach ($default_data as $element => $default_value) { + if (! array_key_exists($element, $options[$section])) { + $options[$section][$element] = $default_value; + } + } + } + + // Remove none existing sections and/or elements from the options + foreach ($options as $section => $data) { + if (! array_key_exists($section, $this->default_options)) { + unset($options[$section]); + continue; + } + foreach ($data as $element => $value) { + if (! array_key_exists($element, $this->default_options[$section])) { + unset($options[$section][$element]); + } + } + } + /** + * Update the options to the latests versions + */ + $options['general']['version'] = $this->version; + $options['general']['dbversion'] = $db_version; + $this->saveOptions($options); + } + + /** + * Used in forms to set the checked option. + * + * @param mixed $checked + * @param mixed_type $current + * @return string + * + * @since 2.0 + */ + function isChecked ($checked, $current) + { + if ($checked == $current) { + return (' checked="checked"'); + } + return (''); + } + + /** + * Used in forms to set the SELECTED option + * + * @param string $current + * @param string $field + * @return string + */ + function isSelected ($current, $field) + { + if ($current == $field) { + return (' SELECTED'); + } + return (''); + } + + /** + * Get the base directory of a directory structure + * + * @param string $directory + * @return string + * + */ + function getBaseDirectory ($directory) + { + //place each directory into array and get the last element + $return = end(explode('/', $directory)); + + return $return; + } + + /********************************* + * * + * Methods for variable: options * + * * + ********************************/ + + /** + * @param array $data + */ + function setOptions ($options) + { + $this->options = $options; + } + + /** + * return array + */ + function getOptions () + { + return ($this->options); + } + + /** + * Save all current options and set the options + * + */ + function saveOptions ($options) + { + update_option($this->db_options_core, $options); + wp_cache_flush(); // Delete cache + $this->setOptions($options); + } + + /** + * Retrieves the plugin options from the WordPress options table and assigns to class variable. + * If the options do not exists, like a new installation, the options are set to the default value. + * + * @return none + */ + function loadOptions () + { + $options = get_option($this->db_options_core); + if (false === $options) { // New installation + $this->resetToDefaultOptions(); + } else { + $this->setOptions($options); + } + } + + /** + * Get the value for an option element. If there's no option is set on the Admin page, return the default value. + * + * @param string $key + * @param string $option + * @return mixed + */ + function getOptionElement ($option, $key) + { + if ($this->options[$option][$key]) { + $return = $this->options[$option][$key]; // From Admin Page + } else { + $return = $this->default_options[$option][$key]; // Default + } + return ($return); + } + + /** + * Reset to default options and save in DB + * + */ + function resetToDefaultOptions () + { + $this->options = $this->default_options; + $this->saveOptions($this->default_options); + } + + /** + * Display or retrieve the HTML dropdown list of categories. + * + * The list of arguments is below: + * 'show_option_all' (string) - Text to display for showing all categories. + * 'show_option_none' (string) - Text to display for showing no categories. + * 'orderby' (string) default is 'ID' - What column to use for ordering the + * categories. + * 'order' (string) default is 'ASC' - What direction to order categories. + * 'show_last_update' (bool|int) default is 0 - See {@link get_categories()} + * 'show_count' (bool|int) default is 0 - Whether to show how many posts are + * in the category. + * 'hide_empty' (bool|int) default is 1 - Whether to hide categories that + * don't have any posts attached to them. + * 'child_of' (int) default is 0 - See {@link get_categories()}. + * 'exclude' (string) - See {@link get_categories()}. + * 'echo' (bool|int) default is 1 - Whether to display or retrieve content. + * 'depth' (int) - The max depth. + * 'tab_index' (int) - Tab index for select element. + * 'name' (string) - The name attribute value for selected element. + * 'class' (string) - The class attribute value for selected element. + * 'selected' (int) - Which category ID is selected. + * + * The 'hierarchical' argument, which is disabled by default, will override the + * depth argument, unless it is true. When the argument is false, it will + * display all of the categories. When it is enabled it will use the value in + * the 'depth' argument. + * + * @since 2.1.0 + * + * @param string|array $args Optional. Override default arguments. + * @return string HTML content only if 'echo' argument is 0. + */ + function avh_wp_dropdown_categories ($args = '', $selectedonly) + { + $mywalker = new AVH_Walker_CategoryDropdown(); + + // @format_off + $defaults = array( + 'show_option_all' => '', 'show_option_none' => '', + 'orderby' => 'id', 'order' => 'ASC', + 'show_last_update' => 0, 'show_count' => 0, + 'hide_empty' => 1, 'child_of' => 0, + 'exclude' => '', 'echo' => 1, + 'selected' => 0, 'hierarchical' => 0, + 'name' => 'cat', 'id' => '', + 'class' => 'postform', 'depth' => 0, + 'tab_index' => 0, 'taxonomy' => 'category', + 'walker' => $mywalker, + 'hide_if_empty' => false + ); + // @format_on + $defaults['selected'] = (is_category()) ? get_query_var('cat') : 0; + + $r = wp_parse_args($args, $defaults); + + if (! isset($r['pad_counts']) && $r['show_count'] && $r['hierarchical']) { + $r['pad_counts'] = true; + } + + $r['include_last_update_time'] = $r['show_last_update']; + extract($r); + + $tab_index_attribute = ''; + if ((int) $tab_index > 0) + $tab_index_attribute = ' tabindex="' . $tab_index . '"'; + + $categories = get_terms($taxonomy, $r); + $name = esc_attr($name); + $class = esc_attr($class); + $id = $id ? esc_attr($id) : $name; + + if (! $r['hide_if_empty'] || ! empty($categories)) + $output = "<select name='$name' id='$id' class='$class' $tab_index_attribute>\n"; + else + $output = ''; + + if (empty($categories) && ! $r['hide_if_empty'] && ! empty($show_option_none)) { + $show_option_none = apply_filters('list_cats', $show_option_none); + $output .= "\t<option value='-1' selected='selected'>$show_option_none</option>\n"; + } + if (! empty($categories)) { + + if ($show_option_all) { + $show_option_all = apply_filters('list_cats', $show_option_all); + $selected = ('0' === strval($r['selected'])) ? " selected='selected'" : ''; + $output .= "\t" . '<option value="0"' . $selected . '>' . $show_option_all . '</option>' . "\n"; + } + + if ($show_option_none) { + $show_option_none = apply_filters('list_cats', $show_option_none); + $selected = ('-1' === strval($r['selected'])) ? " selected='selected'" : ''; + $output .= "\t" . '<option value="-1"' . $selected . '>' . $show_option_none . '</option>' . "\n"; + } + + if ($hierarchical) { + $depth = $r['depth']; // Walk the full depth. + } else { + $depth = - 1; // Flat + } + $output .= walk_category_dropdown_tree($categories, $depth, $r); + } + if (! $r['hide_if_empty'] || ! empty($categories)) + $output .= "</select>\n"; + + $output = apply_filters('wp_dropdown_cats', $output); + + if ($echo) + echo $output; + + return $output; + } + + /** + * Display or retrieve the HTML list of categories. + * + * The list of arguments is below: + * 'show_option_all' (string) - Text to display for showing all categories. + * 'orderby' (string) default is 'ID' - What column to use for ordering the + * categories. + * 'order' (string) default is 'ASC' - What direction to order categories. + * 'show_last_update' (bool|int) default is 0 - See {@link + * walk_category_dropdown_tree()} + * 'show_count' (bool|int) default is 0 - Whether to show how many posts are + * in the category. + * 'hide_empty' (bool|int) default is 1 - Whether to hide categories that + * don't have any posts attached to them. + * 'use_desc_for_title' (bool|int) default is 1 - Whether to use the + * description instead of the category title. + * 'feed' - See {@link get_categories()}. + * 'feed_type' - See {@link get_categories()}. + * 'feed_image' - See {@link get_categories()}. + * 'child_of' (int) default is 0 - See {@link get_categories()}. + * 'exclude' (string) - See {@link get_categories()}. + * 'exclude_tree' (string) - See {@link get_categories()}. + * 'echo' (bool|int) default is 1 - Whether to display or retrieve content. + * 'current_category' (int) - See {@link get_categories()}. + * 'hierarchical' (bool) - See {@link get_categories()}. + * 'title_li' (string) - See {@link get_categories()}. + * 'depth' (int) - The max depth. + * + * @since 2.1.0 + * + * @param string|array $args Optional. Override default arguments. + * @return string HTML content only if 'echo' argument is 0. + */ + function avh_wp_list_categories ($args = '', $selectedonly) + { + $mywalker = new AVHEC_Walker_Category(); + $defaults = array ( 'show_option_all' => '', 'orderby' => 'name', 'order' => 'ASC', 'show_last_update' => 0, 'style' => 'list', 'show_count' => 0, 'hide_empty' => 1, 'use_desc_for_title' => 1, 'child_of' => 0, 'feed' => '', 'feed_type' => '', 'feed_image' => '', 'exclude' => '', 'exclude_tree' => '', 'current_category' => 0, 'hierarchical' => true, 'title_li' => __('Categories'), 'echo' => 1, 'depth' => 0, 'walker' => $mywalker ); + + $r = wp_parse_args($args, $defaults); + + if (! isset($r['pad_counts']) && $r['show_count'] && $r['hierarchical']) { + $r['pad_counts'] = true; + } + + if (! isset($r['pad_counts']) && $r['show_count'] && $r['hierarchical']) { + $r['pad_counts'] = true; + } + + if (isset($r['show_date'])) { + $r['include_last_update_time'] = $r['show_date']; + } + + if (true == $r['hierarchical']) { + $r['exclude_tree'] = $r['exclude']; + $r['exclude'] = ''; + } + + extract($r); + + $categories = get_categories($r); + + $output = ''; + if ($title_li && 'list' == $style) + $output = '<li class="categories">' . $r['title_li'] . '<ul>'; + + if (empty($categories)) { + if ('list' == $style) + $output .= '<li>' . __("No categories") . '</li>'; + else + $output .= __("No categories"); + } else { + global $wp_query; + + if (! empty($show_option_all)) + if ('list' == $style) + $output .= '<li><a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a></li>'; + else + $output .= '<a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a>'; + + if (empty($r['current_category']) && is_category()) + $r['current_category'] = $wp_query->get_queried_object_id(); + + if ($hierarchical) { + $depth = $r['depth']; + } else { + $depth = - 1; // Flat. + } + + $output .= walk_category_tree($categories, $depth, $r); + } + + if ($title_li && 'list' == $style) + $output .= '</ul></li>'; + + $output = apply_filters('wp_list_categories', $output); + + if ($echo) + echo $output; + else + return $output; + } + + function getCategories () + { + static $_categories = NULL; + if (NULL === $_categories) { + $_categories = get_categories('get=all'); + } + return $_categories; + } + + function getCategoriesId ($categories) + { + static $_categories_id = NULL; + if (NULL == $_categories_id) { + foreach ($categories as $key => $category) { + $_categories_id[$category->term_id] = $key; + } + } + return $_categories_id; + } +} + +/** + * Create HTML dropdown list of Categories. + * + * @uses Walker + */ +class AVH_Walker_CategoryDropdown extends Walker_CategoryDropdown +{ + + function walk ($elements, $max_depth) + { + + $args = array_slice(func_get_args(), 2); + $output = ''; + + if ($max_depth < - 1) //invalid parameter + return $output; + + if (empty($elements)) //nothing to walk + return $output; + + $id_field = $this->db_fields['id']; + $parent_field = $this->db_fields['parent']; + + // flat display + if (- 1 == $max_depth) { + $empty_array = array (); + foreach ($elements as $e) + $this->display_element($e, $empty_array, 1, 0, $args, $output); + return $output; + } + + /* + * need to display in hierarchical order + * seperate elements into two buckets: top level and children elements + * children_elements is two dimensional array, eg. + * children_elements[10][] contains all sub-elements whose parent is 10. + */ + $top_level_elements = array (); + $children_elements = array (); + foreach ($elements as $e) { + if (0 == $e->$parent_field) + $top_level_elements[] = $e; + else + $children_elements[$e->$parent_field][] = $e; + } + + /* + * when none of the elements is top level + * assume the first one must be root of the sub elements + */ + if (empty($top_level_elements)) { + + $first = array_slice($elements, 0, 1); + $root = $first[0]; + + $top_level_elements = array (); + $children_elements = array (); + foreach ($elements as $e) { + if ($root->$parent_field == $e->$parent_field) + $top_level_elements[] = $e; + else + $children_elements[$e->$parent_field][] = $e; + } + } + + foreach ($top_level_elements as $e) { + $this->display_element($e, $children_elements, $max_depth, 0, $args, $output); + } + + /* + * if we are displaying all levels, and remaining children_elements is not empty, + * then we got orphans, which should be displayed regardless + */ + if ((0 == $max_depth) && count($children_elements) > 0) { + $empty_array = array (); + foreach ($children_elements as $orphans) + foreach ($orphans as $op) + $this->display_element($op, $empty_array, 1, 0, $args, $output); + } + + return $output; + } +} + +/** + * Create HTML list of categories. + * + * @uses Walker + */ +class AVHEC_Walker_Category extends Walker +{ + /** + * @see Walker::$tree_type + * @since 2.1.0 + * @var string + */ + var $tree_type = 'category'; + + /** + * @see Walker::$db_fields + * @since 2.1.0 + * @todo Decouple this + * @var array + */ + var $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' ); + + /** + * @see Walker::start_lvl() + * @since 2.1.0 + * + * @param string $output Passed by reference. Used to append additional content. + * @param int $depth Depth of category. Used for tab indentation. + * @param array $args Will only append content if style argument value is 'list'. + */ + function start_lvl (&$output, $depth, $args) + { + if ('list' != $args['style']) + return; + + $indent = str_repeat("\t", $depth); + $output .= $indent . '<ul class="children">' . "\n"; + } + + /** + * @see Walker::end_lvl() + * @since 2.1.0 + * + * @param string $output Passed by reference. Used to append additional content. + * @param int $depth Depth of category. Used for tab indentation. + * @param array $args Will only append content if style argument value is 'list'. + */ + function end_lvl (&$output, $depth, $args) + { + if ('list' != $args['style']) + return; + + $indent = str_repeat("\t", $depth); + $output .= $indent . '</ul>' . "\n"; + } + + /** + * @see Walker::start_el() + * @since 2.1.0 + * + * @param string $output Passed by reference. Used to append additional content. + * @param object $category Category data object. + * @param int $depth Depth of category in reference to parents. + * @param array $args + */ + function start_el (&$output, $category, $depth, $args) + { + extract($args); + + $cat_name = esc_attr($category->name); + $cat_name = apply_filters('list_cats', $cat_name, $category); + $link = '<div class="avhec-widget-line"><a href="' . get_category_link($category->term_id) . '" '; + if ($use_desc_for_title == 0 || empty($category->description)) + $link .= 'title="' . sprintf(__('View all posts filed under %s'), $cat_name) . '"'; + else + $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"'; + $link .= '>'; + $link .= $cat_name . '</a>'; + + if ((! empty($feed_image)) || (! empty($feed))) { + $link .= '<div class="avhec-widget-rss"> '; + + if (empty($feed_image)) + $link .= '('; + + $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"'; + + if (empty($feed)) + $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"'; + else { + $title = ' title="' . $feed . '"'; + $alt = ' alt="' . $feed . '"'; + $name = $feed; + $link .= $title; + } + + $link .= '>'; + + if (empty($feed_image)) + $link .= $name; + else + $link .= '<img src="' . $feed_image . '"' . $alt . $title . ' />'; + $link .= '</a>'; + if (empty($feed_image)) + $link .= ')'; + $link .= '</div>'; + } + + if (isset($show_count) && $show_count) + $link .= '<div class="avhec-widget-count"> (' . intval($category->count) . ')</div>'; + + if (isset($show_date) && $show_date) { + $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); + } + + if (isset($current_category) && $current_category) + $_current_category = get_category($current_category); + + if ('list' == $args['style']) { + $output .= "\t" . '<li'; + $class = 'cat-item cat-item-' . $category->term_id; + if (isset($current_category) && $current_category && ($category->term_id == $current_category)) + $class .= ' current-cat'; + elseif (isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent)) + $class .= ' current-cat-parent'; + $output .= ' class="' . $class . '"'; + $output .= '>' . $link . '</div>' . "\n"; + } else { + $output .= "\t" . $link . '</div><br />' . "\n"; + } + } + + /** + * @see Walker::end_el() + * @since 2.1.0 + * + * @param string $output Passed by reference. Used to append additional content. + * @param object $page Not used. + * @param int $depth Depth of category. Not used. + * @param array $args Only uses 'list' for whether should append to output. + */ + function end_el (&$output, $page, $depth, $args) + { + if ('list' != $args['style']) + return; + + $output .= '</li>' . "\n"; + } +} +?> \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.widgets.php b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.widgets.php new file mode 100644 index 000000000..d48f6e53c --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/class/avh-ec.widgets.php @@ -0,0 +1,1004 @@ +<?php + +/** + * Widget Class for displaying categories. Extended version of the dfeault categories. + * + */ +class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget +{ + /** + * + * @var AVH_EC_Core + */ + var $core; + + /** + * PHP 5 Constructor + * + */ + function __construct () + { + $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); + + //Convert the old option widget_extended_categories to widget_extended-categories + $old = get_option('widget_extended_categories'); + if (! (FALSE === $old)) { + update_option('widget_extended-categories', $old); + delete_option('widget_extended_categories'); + } + $widget_ops = array ( 'description' => __("An extended version of the default Categories widget.", 'avh-ec') ); + WP_Widget::__construct('extended-categories', 'AVH Extended Categories', $widget_ops); + + add_action('wp_print_styles', array ( &$this, 'actionWpPrintStyles' )); + + } + + function WP_Widget_AVH_ExtendedCategories_Normal () + { + $this->__construct(); + } + + function actionWpPrintStyles () + { + + if (! (FALSE === is_active_widget(FALSE, FALSE, $this->id_base, TRUE))) { + wp_register_style('avhec-widget', AVHEC_PLUGIN_URL . '/css/avh-ec.widget.css', array (), $this->core->version); + wp_enqueue_style('avhec-widget'); + } + } + + /** + * Display the widget + * + * @param unknown_type $args + * @param unknown_type $instance + */ + function widget ($args, $instance) + { + + extract($args); + + $selectedonly = $instance['selectedonly'] ? TRUE : FALSE; + $c = $instance['count'] ? TRUE : FALSE; + $h = $instance['hierarchical'] ? TRUE : FALSE; + $d = $instance['depth'] ? $instance['depth'] : 0; + $e = $instance['hide_empty'] ? TRUE : FALSE; + $use_desc_for_title = $instance['use_desc_for_title'] ? TRUE : FALSE; + $s = $instance['sort_column'] ? $instance['sort_column'] : 'name'; + $o = $instance['sort_order'] ? $instance['sort_order'] : 'asc'; + $r = $instance['rssfeed'] ? 'RSS' : ''; + $i = $instance['rssimage'] ? $instance['rssimage'] : ''; + $invert = $instance['invert_included'] ? TRUE : FALSE; + + if (empty($r)) { + $i = ''; + } + + if (empty($d)) { + $d = 0; + } + + $title = apply_filters('widget_title', empty($instance['title']) ? __('Categories', 'avh-ec') : $instance['title']); + $style = empty($instance['style']) ? 'list' : $instance['style']; + + $included_cats = ''; + if ($instance['post_category']) { + $post_category = unserialize($instance['post_category']); + $children = array (); + if (! $instance['selectedonly']) { + foreach ($post_category as $cat_id) { + $children = array_merge($children, get_term_children($cat_id, 'category')); + } + } + $included_cats = implode(",", array_merge($post_category, $children)); + } + + if ($invert) { + $inc_exc = 'exclude'; + } else { + $inc_exc = 'include'; + } + + $options = $this->core->getOptions(); + $show_option_none = __('Select Category', 'avh-ec'); + if ($options['general']['alternative_name_select_category']) { + $show_option_none = $options['general']['alternative_name_select_category']; + } + + $cat_args = array ( $inc_exc => $included_cats, 'orderby' => $s, 'order' => $o, 'show_count' => $c, 'use_desc_for_title' => $use_desc_for_title, 'hide_empty' => $e, 'hierarchical' => $h, 'depth' => $d, 'title_li' => '', 'show_option_none' => $show_option_none, 'feed' => $r, 'feed_image' => $i, 'name' => 'extended-categories-select-' . $this->number ); + echo $before_widget; + echo $this->core->comment; + echo $before_title . $title . $after_title; + + if ($style == 'list') { + echo '<ul>'; + $this->core->avh_wp_list_categories($cat_args, $selectedonly); + echo '</ul>'; + } else { + $this->core->avh_wp_dropdown_categories($cat_args, $selectedonly); + echo '<script type=\'text/javascript\'>' . "\n"; + echo '/* <![CDATA[ */' . "\n"; + echo ' var ec_dropdown_' . $this->number . ' = document.getElementById("extended-categories-select-' . $this->number . '");' . "\n"; + echo ' function ec_onCatChange_' . $this->number . '() {' . "\n"; + echo ' if ( ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value > 0 ) {' . "\n"; + echo ' location.href = "' .home_url() . '/?cat="+ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value;' . "\n"; + echo ' }' . "\n"; + echo ' }' . "\n"; + echo ' ec_dropdown_' . $this->number . '.onchange = ec_onCatChange_' . $this->number . ';' . "\n"; + echo '/* ]]> */' . "\n"; + echo '</script>' . "\n"; + } + echo $after_widget; + } + + /** + * When Widget Control Form Is Posted + * + * @param unknown_type $new_instance + * @param unknown_type $old_instance + * @return unknown + */ + function update ($new_instance, $old_instance) + { + // update the instance's settings + if (! isset($new_instance['submit'])) { + return FALSE; + } + + $instance = $old_instance; + + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); + $instance['selectedonly'] = $new_instance['selectedonly'] ? TRUE : FALSE; + $instance['count'] = $new_instance['count'] ? TRUE : FALSE; + $instance['hierarchical'] = $new_instance['hierarchical'] ? TRUE : FALSE; + $instance['hide_empty'] = $new_instance['hide_empty'] ? TRUE : FALSE; + $instance['use_desc_for_title'] = $new_instance['use_desc_for_title'] ? TRUE : FALSE; + $instance['sort_column'] = strip_tags(stripslashes($new_instance['sort_column'])); + $instance['sort_order'] = strip_tags(stripslashes($new_instance['sort_order'])); + $instance['style'] = strip_tags(stripslashes($new_instance['style'])); + $instance['rssfeed'] = $new_instance['rssfeed'] ? TRUE : FALSE; + $instance['rssimage'] = strip_tags(stripslashes($new_instance['rssimage'])); + if (array_key_exists('all', $new_instance['post_category'])) { + $instance['post_category'] = FALSE; + } else { + $instance['post_category'] = serialize($new_instance['post_category']); + } + $instance['depth'] = (int) $new_instance['depth']; + if ($instance['depth'] < 0 || 11 < $instance['depth']) { + $instance['depth'] = 0; + } + $instance['invert_included'] = $new_instance['invert_included'] ? TRUE : FALSE; + + return $instance; + } + + /** + * Display Widget Control Form + * + * @param unknown_type $instance + */ + function form ($instance) + { + // displays the widget admin form + $instance = wp_parse_args((array) $instance, array ( 'title' => '', 'rssimage' => '', 'depth' => 0 )); + + // Prepare data for display + $depth = (int) $instance['depth']; + if ($depth < 0 || 11 < $depth) { + $depth = 0; + } + $selected_cats = ($instance['post_category'] != '') ? unserialize($instance['post_category']) : FALSE; + + echo '<p>'; + avh_doWidgetFormText($this->get_field_id('title'), $this->get_field_name('title'), __('Title', 'avh-ec'), $instance['title']); + echo '</p>'; + + echo '<p>'; + avh_doWidgetFormCheckbox($this->get_field_id('selectedonly'), $this->get_field_name('selectedonly'), __('Show selected categories only', 'avh-ec'), (bool) $instance['selectedonly']); + + avh_doWidgetFormCheckbox($this->get_field_id('count'), $this->get_field_name('count'), __('Show post counts', 'avh-ec'), (bool) $instance['count']); + + avh_doWidgetFormCheckbox($this->get_field_id('hierarchical'), $this->get_field_name('hierarchical'), __('Show hierarchy', 'avh-ec'), (bool) $instance['hierarchical']); + + $options = array ( 0 => __('All Levels', 'avh-ec'), 1 => __('Toplevel only', 'avh-ec') ); + for ($i = 2; $i <= 11; $i ++) { + $options[$i] = __('Child ', 'avh-ec') . ($i - 1); + } + avh_doWidgetFormSelect($this->get_field_id('depth'), $this->get_field_name('depth'), __('How many levels to show', 'avh-ec'), $options, $depth); + unset($options); + + avh_doWidgetFormCheckbox($this->get_field_id('hide_empty'), $this->get_field_name('hide_empty'), __('Hide empty categories', 'avh-ec'), (bool) $instance['hide_empty']); + + avh_doWidgetFormCheckbox($this->get_field_id('use_desc_for_title'), $this->get_field_name('use_desc_for_title'), __('Use description for title', 'avh-ec'), (bool) $instance['use_desc_for_title']); + echo '</p>'; + + echo '<p>'; + $options['ID'] = __('ID', 'avh-ec'); + $options['name'] = __('Name', 'avh-ec'); + $options['count'] = __('Count', 'avh-ec'); + $options['slug'] = __('Slug', 'avh-ec'); + $options['avhec_manualorder'] = 'AVH EC ' . __('Manual Order', 'avh-ec'); + if (is_plugin_active('my-category-order/mycategoryorder.php')) { + $options['avhec_3rdparty_mycategoryorder'] = 'My Category Order'; + } + + avh_doWidgetFormSelect($this->get_field_id('sort_column'), $this->get_field_name('sort_column'), __('Sort by', 'avh-ec'), $options, $instance['sort_column']); + unset($options); + + $options['asc'] = __('Ascending', 'avh-ec'); + $options['desc'] = __('Descending', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('sort_order'), $this->get_field_name('sort_order'), __('Sort order', 'avh-ec'), $options, $instance['sort_order']); + unset($options); + + $options['list'] = __('List', 'avh-ec'); + $options['drop'] = __('Drop down', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('style'), $this->get_field_name('style'), __('Display style', 'avh-ec'), $options, $instance['style']); + unset($options); + echo '</p>'; + + echo '<p>'; + + avh_doWidgetFormCheckbox($this->get_field_id('rssfeed'), $this->get_field_name('rssfeed'), __('Show RSS Feed', 'avh-ec'), (bool) $instance['rssfeed']); + + avh_doWidgetFormText($this->get_field_id('rssimage'), $this->get_field_name('rssimage'), __('Path (URI) to RSS image', 'avh-ec'), $instance['rssimage']); + + echo '</p>'; + + echo '<p>'; + echo '<b>' . __('Select categories', 'avh-ec') . '</b><hr />'; + echo '<ul id="categorychecklist" class="list:category categorychecklist form-no-clear" style="list-style-type: none; margin-left: 5px; padding-left: 0px; margin-bottom: 20px;">'; + echo '<li id="' . $this->get_field_id('category--1') . '" class="popular-category">'; + echo '<label for="' . $this->get_field_id('post_category') . '" class="selectit">'; + echo '<input value="all" id="' . $this->get_field_id('post_category') . '" name="' . $this->get_field_name('post_category') . '[all]" type="checkbox" ' . (FALSE === $selected_cats ? ' CHECKED' : '') . '> '; + _e('All Categories', 'avh-ec'); + echo '</label>'; + echo '</li>'; + ob_start(); + $this->avh_wp_category_checklist($selected_cats, $this->number); + ob_end_flush(); + echo '</ul>'; + echo '</p>'; + + echo '<p>'; + avh_doWidgetFormCheckbox($this->get_field_id('invert_included'), $this->get_field_name('invert_included'), __('Exclude the selected categories', 'avh-ec'), (bool) $instance['invert_included']); + echo '</p>'; + + echo '<input type="hidden" id="' . $this->get_field_id('submit') . '" name="' . $this->get_field_name('submit') . '" value="1" />'; + } + + /** + * Creates the categories checklist + * + * @param int $post_id + * @param int $descendants_and_self + * @param array $selected_cats + * @param array $popular_cats + * @param int $number + */ + function avh_wp_category_checklist ($selected_cats, $number) + { + + $walker = new AVH_Walker_Category_Checklist(); + $walker->number = $number; + $walker->input_id = $this->get_field_id('post_category'); + $walker->input_name = $this->get_field_name('post_category'); + $walker->li_id = $this->get_field_id('category--1'); + + $args = array ( 'taxonomy' => 'category', 'descendants_and_self' => 0, 'selected_cats' => $selected_cats, 'popular_cats' => array (), 'walker' => $walker, 'checked_ontop' => true, 'popular_cats' => array () ); + + if (is_array($selected_cats)) + $args['selected_cats'] = $selected_cats; + else + $args['selected_cats'] = array (); + + $categories = $this->core->getCategories(); + $_categories_id = $this->core->getCategoriesId($categories); + + // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache) + $checked_categories = array (); + foreach ($args['selected_cats'] as $key => $value) { + if (isset($_categories_id[$key])) { + $category_key = $_categories_id[$key]; + $checked_categories[] = $categories[$category_key]; + unset($categories[$category_key]); + } + } + + // Put checked cats on top + echo $walker->walk($checked_categories, 0, array ( $args )); + // Then the rest of them + echo $walker->walk($categories, 0, array ( $args )); + } +} + +/** + * Widget Class for displaying the top categories + * + */ +class WP_Widget_AVH_ExtendedCategories_Top extends WP_Widget +{ + /** + * + * @var AVH_EC_Core + */ + var $core; + + /** + * PHP 5 Constructor + * + */ + function __construct () + { + $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); + + $widget_ops = array ( 'description' => __("Shows the top categories.", 'avh-ec') ); + WP_Widget::__construct(FALSE, 'AVH Extended Categories: ' . __('Top Categories'), $widget_ops); + add_action('wp_print_styles', array ( &$this, 'actionWpPrintStyles' )); + + } + + function WP_Widget_AVH_ExtendedCategories_Top () + { + $this->__construct(); + } + + function actionWpPrintStyles () + { + if (! (FALSE === is_active_widget(FALSE, FALSE, $this->id_base, TRUE))) { + wp_register_style('avhec-widget', AVHEC_PLUGIN_URL . '/css/avh-ec.widget.css', array (), $this->core->version); + wp_enqueue_style('avhec-widget'); + } + } + + /** Echo the widget content. + * + * Subclasses should over-ride this function to generate their widget code. + * + * @param array $args Display arguments including before_title, after_title, before_widget, and after_widget. + * @param array $instance The settings for the particular instance of the widget + */ + function widget ($args, $instance) + { + extract($args); + + $title = apply_filters('widget_title', empty($instance['title']) ? __('Categories', 'avh-ec') : $instance['title']); + $style = empty($instance['style']) ? 'list' : $instance['style']; + if (! $a = (int) $instance['amount']) { + $a = 5; + } elseif ($a < 1) { + $a = 1; + } + $c = $instance['count'] ? TRUE : FALSE; + $use_desc_for_title = $instance['use_desc_for_title'] ? TRUE : FALSE; + $s = $instance['sort_column'] ? $instance['sort_column'] : 'name'; + $o = $instance['sort_order'] ? $instance['sort_order'] : 'asc'; + $r = $instance['rssfeed'] ? 'RSS' : ''; + $i = $instance['rssimage'] ? $instance['rssimage'] : ''; + if (empty($r)) { + $i = ''; + } + if (! empty($i)) { + if (! file_exists(ABSPATH . '/' . $i)) { + $i = ''; + } + } + + $options = $this->core->getOptions(); + $show_option_none = __('Select Category', 'avh-ec'); + if ($options['general']['alternative_name_select_category']) { + $show_option_none = $options['general']['alternative_name_select_category']; + } + + $top_cats = get_terms('category', array ( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => $a, 'hierarchical' => FALSE )); + $included_cats = implode(",", $top_cats); + + $cat_args = array ( 'include' => $included_cats, 'orderby' => $s, 'order' => $o, 'show_count' => $c, 'use_desc_for_title' => $use_desc_for_title, 'hide_empty' => FALSE, 'hierarchical' => FALSE, 'depth' => - 1, 'title_li' => '', 'show_option_none' => $show_option_none, 'feed' => $r, 'feed_image' => $i, 'name' => 'extended-categories-top-select-' . $this->number ); + echo $before_widget; + echo $this->core->comment; + echo $before_title . $title . $after_title; + echo '<ul>'; + + if ($style == 'list') { + wp_list_categories($cat_args); + } else { + wp_dropdown_categories($cat_args); + echo '<script type=\'text/javascript\'>' . "\n"; + echo '/* <![CDATA[ */' . "\n"; + echo ' var ec_dropdown_top_' . $this->number . ' = document.getElementById("extended-categories-top-select-' . $this->number . '");' . "\n"; + echo ' function ec_top_onCatChange_' . $this->number . '() {' . "\n"; + echo ' if ( ec_dropdown_top_' . $this->number . '.options[ec_dropdown_top_' . $this->number . '.selectedIndex].value > 0 ) {' . "\n"; + echo ' location.href = "' . get_option('home') . '/?cat="+ec_dropdown_top_' . $this->number . '.options[ec_dropdown_top_' . $this->number . '.selectedIndex].value;' . "\n"; + echo ' }' . "\n"; + echo ' }' . "\n"; + echo ' ec_dropdown_top_' . $this->number . '.onchange = ec_top_onCatChange_' . $this->number . ';' . "\n"; + echo '/* ]]> */' . "\n"; + echo '</script>' . "\n"; + } + echo '</ul>'; + echo $after_widget; + } + + /** Update a particular instance. + * + * This function should check that $new_instance is set correctly. + * The newly calculated value of $instance should be returned. + * If "FALSE" is returned, the instance won't be saved/updated. + * + * @param array $new_instance New settings for this instance as input by the user via form() + * @param array $old_instance Old settings for this instance + * @return array Settings to save or bool FALSE to cancel saving + */ + function update ($new_instance, $old_instance) + { + // update the instance's settings + if (! isset($new_instance['submit'])) { + return FALSE; + } + + $instance = $old_instance; + + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); + $instance['amount'] = (int) $new_instance['amount']; + $instance['count'] = $new_instance['count'] ? TRUE : FALSE; + $instance['use_desc_for_title'] = $new_instance['use_desc_for_title'] ? TRUE : FALSE; + $instance['sort_column'] = strip_tags(stripslashes($new_instance['sort_column'])); + $instance['sort_order'] = strip_tags(stripslashes($new_instance['sort_order'])); + $instance['style'] = strip_tags(stripslashes($new_instance['style'])); + $instance['rssfeed'] = $new_instance['rssfeed'] ? TRUE : FALSE; + $instance['rssimage'] = strip_tags(stripslashes($new_instance['rssimage'])); + + return $instance; + } + + /** Echo the settings update form + * + * @param array $instance Current settings + */ + function form ($instance) + { + // displays the widget admin form + $instance = wp_parse_args((array) $instance, array ( 'title' => '', 'rssimage' => '' )); + + // Prepare data for display + if (! $amount = (int) $instance['amount']) { + $amount = 5; + } + + if ($amount < 1) { + $amount = 1; + } + echo '<p>'; + avh_doWidgetFormText($this->get_field_id('title'), $this->get_field_name('title'), __('Title', 'avh-ec'), $instance['title']); + echo '</p>'; + + echo '<p>'; + avh_doWidgetFormText($this->get_field_id('amount'), $this->get_field_name('amount'), __('How many categories to show', 'avh-ec'), $amount); + echo '</p>'; + + echo '<p>'; + avh_doWidgetFormCheckbox($this->get_field_id('count'), $this->get_field_name('count'), __('Show post counts', 'avh-ec'), (bool) $instance['count']); + echo '<br />'; + + avh_doWidgetFormCheckbox($this->get_field_id('use_desc_for_title'), $this->get_field_name('use_desc_for_title'), __('Use description for title', 'avh-ec'), (bool) $instance['use_desc_for_title']); + echo '</p>'; + + echo '<p>'; + $options['ID'] = __('ID', 'avh-ec'); + $options['name'] = __('Name', 'avh-ec'); + $options['count'] = __('Count', 'avh-ec'); + $options['slug'] = __('Slug', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('sort_column'), $this->get_field_name('sort_column'), __('Sort by', 'avh-ec'), $options, $instance['sort_column']); + unset($options); + + $options['asc'] = __('Ascending', 'avh-ec'); + $options['desc'] = __('Descending', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('sort_order'), $this->get_field_name('sort_order'), __('Sort order', 'avh-ec'), $options, $instance['sort_order']); + unset($options); + + $options['list'] = __('List', 'avh-ec'); + $options['drop'] = __('Drop down', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('style'), $this->get_field_name('style'), __('Display style', 'avh-ec'), $options, $instance['style']); + unset($options); + echo '</p>'; + + echo '<p>'; + + avh_doWidgetFormCheckbox($this->get_field_id('rssfeed'), $this->get_field_name('rssfeed'), __('Show RSS Feed', 'avh-ec'), (bool) $instance['rssfeed']); + + avh_doWidgetFormText($this->get_field_id('rssimage'), $this->get_field_name('rssimage'), __('Path (URI) to RSS image', 'avh-ec'), $instance['rssimage']); + + echo '</p>'; + + echo '<input type="hidden" id="' . $this->get_field_id('submit') . '" name="' . $this->get_field_name('submit') . '" value="1" />'; + } +} + +/** + * Widget Class for displaying the grouped categories + * + */ +class WP_Widget_AVH_ExtendedCategories_Category_Group extends WP_Widget +{ + /** + * + * @var AVH_EC_Core + */ + var $core; + + /** + * + * @var AVH_EC_Category_Group + */ + var $catgrp; + + /** + * PHP 5 Constructor + * + */ + function __construct () + { + $this->core = & AVH_EC_Singleton::getInstance('AVH_EC_Core'); + $this->catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); + + $widget_ops = array ( 'description' => __("Shows grouped categories.", 'avh-ec') ); + WP_Widget::__construct(FALSE, 'AVH Extended Categories: ' . __('Category Group'), $widget_ops); + add_action('wp_print_styles', array ( &$this, 'actionWpPrintStyles' )); + + } + + function WP_Widget_AVH_ExtendedCategories_Category_Group () + { + $this->__construct(); + } + + function actionWpPrintStyles () + { + if (! (FALSE === is_active_widget(FALSE, FALSE, $this->id_base, TRUE))) { + wp_register_style('avhec-widget', AVHEC_PLUGIN_URL . '/css/avh-ec.widget.css', array (), $this->core->version); + wp_enqueue_style('avhec-widget'); + } + } + + /** + * Display the widget + * + * @param unknown_type $args + * @param unknown_type $instance + */ + function widget ($args, $instance) + { + global $post, $wp_query; + + $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); + $options = $this->core->getOptions(); + + $row = array (); + + if (is_home()) { + $special_page = 'home_group'; + } elseif (is_category()) { + $special_page = 'category_group'; + } elseif (is_day()) { + $special_page = 'day_group'; + } elseif (is_month()) { + $special_page = 'month_group'; + } elseif (is_year()) { + $special_page = 'year_group'; + } elseif (is_author()) { + $special_page = 'author_group'; + } elseif (is_search()) { + $special_page = 'search_group'; + } else { + $special_page = 'none'; + } + + $toDisplay = FALSE; + if ('none' == $special_page) { + $terms = wp_get_object_terms($post->ID, $catgrp->taxonomy_name); + if (! empty($terms)) { + $selected_catgroups = unserialize($instance['post_group_category']); + foreach ($terms as $key => $value) { + if ($selected_catgroups === FALSE || array_key_exists($value->term_id, $selected_catgroups)) { + if (! ($this->getWidgetDoneCatGroup($value->term_id))) { + $row = $value; + $group_found = TRUE; + break; + } + } + } + } else { + $options = $this->core->options; + $no_cat_group = $options['cat_group']['no_group']; + $row = get_term_by('id', $no_cat_group, $catgrp->taxonomy_name); + $group_found = TRUE; + } + } else { + if ('category_group' == $special_page) { + $tax_meta = get_option($this->core->db_options_tax_meta); + $term = $wp_query->get_queried_object(); + if (isset($tax_meta[$term->taxonomy][$term->term_id]['category_group_term_id'])) { + $sp_category_group_id = $tax_meta[$term->taxonomy][$term->term_id]['category_group_term_id']; + } else { + $sp_category_group = $this->catgrp->getGroupByCategoryID($term->term_id); + $sp_category_group_id = $sp_category_group->term_id; + } + } else { + $sp_category_group_id = $options['sp_cat_group'][$special_page]; + } + $row = get_term_by('id', $sp_category_group_id, $catgrp->taxonomy_name); // Returns FALSE when non-existance. (empty(FALSE)=TRUE) + $group_found = TRUE; + } + + if ($group_found) { + $toDisplay = TRUE; + $category_group_id_none = $this->catgrp->getTermIDBy('slug', 'none'); + $selected_catgroups = unserialize($instance['post_group_category']); + + if ($category_group_id_none == $row->term_id) { + $toDisplay = FALSE; + } elseif (! (FALSE == $selected_catgroups || array_key_exists($row->term_id, $selected_catgroups))) { + $toDisplay = FALSE; + } elseif ($special_page != 'none' && $this->getWidgetDoneCatGroup($sp_category_group_id)) { + $toDisplay = FALSE; + } + } + + if ($toDisplay) { + extract($args); + + $c = $instance['count'] ? TRUE : FALSE; + $e = $instance['hide_empty'] ? TRUE : FALSE; + $h = $instance['hierarchical'] ? TRUE : FALSE; + $use_desc_for_title = $instance['use_desc_for_title'] ? TRUE : FALSE; + $s = $instance['sort_column'] ? $instance['sort_column'] : 'name'; + $o = $instance['sort_order'] ? $instance['sort_order'] : 'asc'; + $r = $instance['rssfeed'] ? 'RSS' : ''; + $i = $instance['rssimage'] ? $instance['rssimage'] : ''; + + if (empty($r)) { + $i = ''; + } + + $style = empty($instance['style']) ? 'list' : $instance['style']; + $group_id = $row->term_id; + $cats = $catgrp->getCategoriesFromGroup($group_id); + if (empty($instance['title'])) { + $title = $catgrp->getWidgetTitleForGroup($group_id); + if (! $title) { + $title = __('Categories', 'avh-ec'); + } + } else { + $title = $instance['title']; + } + $title = apply_filters('widget_title', $title); + + $included_cats = implode(',', $cats); + + $show_option_none = __('Select Category', 'avh-ec'); + if ($options['general']['alternative_name_select_category']) { + $show_option_none = $options['general']['alternative_name_select_category']; + } + + $cat_args = array ( 'include' => $included_cats, 'orderby' => $s, 'order' => $o, 'show_count' => $c, 'use_desc_for_title' => $use_desc_for_title, 'hide_empty' => $e, 'hierarchical' => $h, 'title_li' => '', 'show_option_none' => $show_option_none, 'feed' => $r, 'feed_image' => $i, 'name' => 'extended-categories-select-group-' . $this->number ); + echo $before_widget; + echo $this->core->comment; + echo $before_title . $title . $after_title; + + if ($style == 'list') { + echo '<ul>'; + $this->core->avh_wp_list_categories($cat_args, TRUE); + echo '</ul>'; + } else { + $this->core->avh_wp_dropdown_categories($cat_args, TRUE); + echo '<script type=\'text/javascript\'>' . "\n"; + echo '/* <![CDATA[ */' . "\n"; + echo ' var ec_dropdown_' . $this->number . ' = document.getElementById("extended-categories-select-group-' . $this->number . '");' . "\n"; + echo ' function ec_onCatChange_' . $this->number . '() {' . "\n"; + echo ' if ( ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value > 0 ) {' . "\n"; + echo ' location.href = "' . get_option('home') . '/?cat="+ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value;' . "\n"; + echo ' }' . "\n"; + echo ' }' . "\n"; + echo ' ec_dropdown_' . $this->number . '.onchange = ec_onCatChange_' . $this->number . ';' . "\n"; + echo '/* ]]> */' . "\n"; + echo '</script>' . "\n"; + } + echo $after_widget; + } + } + + /** + * When Widget Control Form Is Posted + * + * @param unknown_type $new_instance + * @param unknown_type $old_instance + * @return unknown + */ + function update ($new_instance, $old_instance) + { + // update the instance's settings + if (! isset($new_instance['submit'])) { + return FALSE; + } + + $instance = $old_instance; + + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); + $instance['count'] = $new_instance['count'] ? TRUE : FALSE; + $instance['hierarchical'] = $new_instance['hierarchical'] ? TRUE : FALSE; + $instance['hide_empty'] = $new_instance['hide_empty'] ? TRUE : FALSE; + $instance['use_desc_for_title'] = $new_instance['use_desc_for_title'] ? TRUE : FALSE; + $instance['sort_column'] = strip_tags(stripslashes($new_instance['sort_column'])); + $instance['sort_order'] = strip_tags(stripslashes($new_instance['sort_order'])); + $instance['style'] = strip_tags(stripslashes($new_instance['style'])); + $instance['rssfeed'] = $new_instance['rssfeed'] ? TRUE : FALSE; + $instance['rssimage'] = strip_tags(stripslashes($new_instance['rssimage'])); + if (array_key_exists('all', $new_instance['post_group_category'])) { + $instance['post_group_category'] = FALSE; + } else { + $instance['post_group_category'] = serialize($new_instance['post_group_category']); + } + return $instance; + } + + /** + * Display Widget Control Form + * + * @param unknown_type $instance + */ + function form ($instance) + { + // displays the widget admin form + $instance = wp_parse_args((array) $instance, array ( 'title' => '', 'rssimage' => '' )); + + // Prepare data for display + $title = esc_attr($instance['title']); + $count = (bool) $instance['count']; + $hierarchical = (bool) $instance['hierarchical']; + $hide_empty = (bool) $instance['hide_empty']; + $use_desc_for_title = (bool) $instance['use_desc_for_title']; + $sort_id = ($instance['sort_column'] == 'ID') ? ' SELECTED' : ''; + $sort_name = ($instance['sort_column'] == 'name') ? ' SELECTED' : ''; + $sort_count = ($instance['sort_column'] == 'count') ? ' SELECTED' : ''; + $sort_order_a = ($instance['sort_order'] == 'asc') ? ' SELECTED' : ''; + $sort_order_d = ($instance['sort_order'] == 'desc') ? ' SELECTED' : ''; + $style_list = ($instance['style'] == 'list') ? ' SELECTED' : ''; + $style_drop = ($instance['style'] == 'drop') ? ' SELECTED' : ''; + $rssfeed = (bool) $instance['rssfeed']; + $rssimage = esc_attr($instance['rssimage']); + + $selected_cats = ($instance['post_group_category'] != '') ? unserialize($instance['post_group_category']) : FALSE; + ob_start(); + echo '<p>'; + avh_doWidgetFormText($this->get_field_id('title'), $this->get_field_name('title'), __('Title', 'avh-ec'), $instance['title']); + echo '</p>'; + + echo '<p>'; + + avh_doWidgetFormCheckbox($this->get_field_id('count'), $this->get_field_name('count'), __('Show post counts', 'avh-ec'), (bool) $instance['count']); + + avh_doWidgetFormCheckbox($this->get_field_id('hierarchical'), $this->get_field_name('hierarchical'), __('Show hierarchy', 'avh-ec'), (bool) $instance['hierarchical']); + + avh_doWidgetFormCheckbox($this->get_field_id('hide_empty'), $this->get_field_name('hide_empty'), __('Hide empty categories', 'avh-ec'), (bool) $instance['hide_empty']); + + avh_doWidgetFormCheckbox($this->get_field_id('use_desc_for_title'), $this->get_field_name('use_desc_for_title'), __('Use description for title', 'avh-ec'), (bool) $instance['use_desc_for_title']); + echo '</p>'; + + echo '<p>'; + $options['ID'] = __('ID', 'avh-ec'); + $options['name'] = __('Name', 'avh-ec'); + $options['count'] = __('Count', 'avh-ec'); + $options['slug'] = __('Slug', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('sort_column'), $this->get_field_name('sort_column'), __('Sort by', 'avh-ec'), $options, $instance['sort_column']); + unset($options); + + $options['asc'] = __('Ascending', 'avh-ec'); + $options['desc'] = __('Descending', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('sort_order'), $this->get_field_name('sort_order'), __('Sort order', 'avh-ec'), $options, $instance['sort_order']); + unset($options); + + $options['list'] = __('List', 'avh-ec'); + $options['drop'] = __('Drop down', 'avh-ec'); + avh_doWidgetFormSelect($this->get_field_id('style'), $this->get_field_name('style'), __('Display style', 'avh-ec'), $options, $instance['style']); + unset($options); + echo '</p>'; + + echo '<p>'; + + avh_doWidgetFormCheckbox($this->get_field_id('rssfeed'), $this->get_field_name('rssfeed'), __('Show RSS Feed', 'avh-ec'), (bool) $instance['rssfeed']); + + avh_doWidgetFormText($this->get_field_id('rssimage'), $this->get_field_name('rssimage'), __('Path (URI) to RSS image', 'avh-ec'), $instance['rssimage']); + echo '</p>'; + + echo '<p>'; + echo '<b>' . __('Select Groups', 'avh-ec') . '</b><hr />'; + echo '<ul id="categorychecklist" class="list:category categorychecklist form-no-clear" style="list-style-type: none; margin-left: 5px; padding-left: 0px; margin-bottom: 20px;">'; + echo '<li id="' . $this->get_field_id('group_category--1') . '" class="popular-group_category">'; + echo '<label for="' . $this->get_field_id('group_post_category') . '" class="selectit">'; + echo '<input value="all" id="' . $this->get_field_id('group_post_category') . '" name="' . $this->get_field_name('post_group_category') . '[all]" type="checkbox" ' . (FALSE === $selected_cats ? ' CHECKED' : '') . '> '; + _e('Any Group', 'avh-ec'); + echo '</label>'; + echo '</li>'; + + $this->avh_wp_group_category_checklist($selected_cats, $this->number); + + echo '</ul>'; + echo '</p>'; + + echo '<input type="hidden" id="' . $this->get_field_id('submit') . '" name="' . $this->get_field_name('submit') . '" value="1" />'; + ob_end_flush(); + } + + function avh_wp_group_category_checklist ($selected_cats, $number) + { + + $walker = new AVH_Walker_Category_Checklist(); + $walker->number = $number; + $walker->input_id = $this->get_field_id('post_group_category'); + $walker->input_name = $this->get_field_name('post_group_category'); + $walker->li_id = $this->get_field_id('group_category--1'); + + $args = array ( 'taxonomy' => 'avhec_catgroup', 'descendants_and_self' => 0, 'selected_cats' => array (), 'popular_cats' => array (), 'walker' => $walker, 'checked_ontop' => true ); + + if (is_array($selected_cats)) + $args['selected_cats'] = $selected_cats; + else + $args['selected_cats'] = array (); + + $categories = (array) get_terms($args['taxonomy'], array ( 'get' => 'all' )); + + // Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache) + $checked_categories = array (); + $keys = array_keys($categories); + + foreach ($keys as $k) { + if (in_array($categories[$k]->term_id, $args['selected_cats'])) { + $checked_categories[] = $categories[$k]; + unset($categories[$k]); + } + } + + // Put checked cats on top + echo $walker->walk($checked_categories, 0, array ( $args )); + // Then the rest of them + echo $walker->walk($categories, 0, array ( $args )); + } + + function getWidgetDoneCatGroup ($id) + { + $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group'); + if (is_array($catgrp->widget_done_catgroup) && array_key_exists($id, $catgrp->widget_done_catgroup)) { + return TRUE; + } + $catgrp->widget_done_catgroup[$id] = TRUE; + return FALSE; + } +} + +/** + * Class that will display the categories + * + */ +class AVH_Walker_Category_Checklist extends Walker +{ + var $tree_type = 'category'; + var $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' ); //TODO: decouple this + var $number; + var $input_id; + var $input_name; + var $li_id; + + /** + * Display array of elements hierarchically. + * + * It is a generic function which does not assume any existing order of + * elements. max_depth = -1 means flatly display every element. max_depth = + * 0 means display all levels. max_depth > 0 specifies the number of + * display levels. + * + * @since 2.1.0 + * + * @param array $elements + * @param int $max_depth + * @param array $args; + * @return string + */ + function walk ($elements, $max_depth, $args) + { + + $output = ''; + + if ($max_depth < - 1) //invalid parameter + return $output; + + if (empty($elements)) //nothing to walk + return $output; + + $id_field = $this->db_fields['id']; + $parent_field = $this->db_fields['parent']; + + // flat display + if (- 1 == $max_depth) { + $empty_array = array (); + foreach ($elements as $e) + $this->display_element($e, $empty_array, 1, 0, $args, $output); + return $output; + } + + /* + * need to display in hierarchical order + * separate elements into two buckets: top level and children elements + * children_elements is two dimensional array, eg. + * children_elements[10][] contains all sub-elements whose parent is 10. + */ + $top_level_elements = array (); + $children_elements = array (); + foreach ($elements as $e) { + if (0 == $e->$parent_field) + $top_level_elements[] = $e; + else + $children_elements[$e->$parent_field][] = $e; + } + + /* + * when none of the elements is top level + * assume the first one must be root of the sub elements + */ + if (empty($top_level_elements)) { + + $first = array_slice($elements, 0, 1); + $root = $first[0]; + + $top_level_elements = array (); + $children_elements = array (); + foreach ($elements as $e) { + if ($root->$parent_field == $e->$parent_field) + $top_level_elements[] = $e; + else + $children_elements[$e->$parent_field][] = $e; + } + } + + foreach ($top_level_elements as $e) + $this->display_element($e, $children_elements, $max_depth, 0, $args, $output); + + /* + * if we are displaying all levels, and remaining children_elements is not empty, + * then we got orphans, which should be displayed regardless + */ + if (($max_depth == 0) && count($children_elements) > 0) { + $empty_array = array (); + foreach ($children_elements as $orphans) + foreach ($orphans as $op) + $this->display_element($op, $empty_array, 1, 0, $args, $output); + } + + return $output; + } + + function start_lvl (&$output, $depth, $args) + { + $indent = str_repeat("\t", $depth); + $output .= $indent . '<ul class="children">' . "\n"; + } + + function end_lvl (&$output, $depth, $args) + { + $indent = str_repeat("\t", $depth); + $output .= $indent . '</ul>' . "\n"; + } + + function start_el (&$output, $category, $depth, $args) + { + extract($args); + $input_id = $this->input_id . '-' . $category->term_id; + $output .= "\n" . '<li id="' . $this->li_id . '">'; + $output .= '<label for="' . $input_id . '" class="selectit">'; + $output .= '<input value="' . $category->term_id . '" type="checkbox" name="' . $this->input_name . '[' . $category->term_id . ']" id="' . $input_id . '"' . (in_array($category->term_id, $selected_cats) ? ' checked="checked"' : "") . '/> ' . esc_html(apply_filters('the_category', $category->name)) . '</label>'; + } + + function end_el (&$output, $category, $depth, $args) + { + $output .= "</li>\n"; + } +} +?> \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.admin.css b/wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.admin.css new file mode 100644 index 000000000..d7c05485b --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.admin.css @@ -0,0 +1,155 @@ +.footer_avhec { + font-size: 0.8em; + text-align: center; +} + +div.clearer { + clear: both; + line-height: 1px; + font-size: 1px; + height: 1px; +} + +/* Metabox in General */ +table.avhec-options { + +} + +.avhec-metabox-wrap { + +} + +.avhec-metabox-wrap .p { + line-height: 140%; + margin: 1em 0; +} + +#avhecBoxOptions option { + padding: .5em; +} + +.avhec-metabox-wrap span.description { + +} + +.avhec-metabox-wrap .b { + font-weight: bold; +} + +.avhec-metabox-wrap ul { + margin-bottom: 1em; +} + +.avhec-metabox-wrap ul li { + line-height: 120%; + list-style: disc inside none; + margin-bottom: 0; +} + +#avhec-options input { + +} + +#avhec-generaloptions input { + +} + +/* Metabox FAQ */ +#avhecBoxFAQ .inside ul { + margin-bottom: 6px; +} + +#avhecBoxFAQ .inside ul li { + line-height: 120%; + list-style: disc inside none; + margin-bottom: 0; +} + +/* Metabox Donations*/ +#avhecBoxDonations .inside { + +} + +#avhecBoxDonations .versions { + padding: 6px 10px 12px; +} + +/* Metabox Donations*/ +#avhecBoxTranslation .inside { + +} + +/* Metabox in post and page */ +#post_avhec_category_group { + width: 100%; +} + +#avhec-catlist { + -moz-border-radius: 4px 4px 4px 4px; + background-color: #FFFFFF; + border: 1px solid #DFDFDF; + height: 20em; + margin-bottom: -1.8em; + overflow: auto; + width: 95%; +} + +#avhec-catlist ul { + padding: 3px; +} + +#avhec-catlist li ul { + padding: 0px; +} + +#avhec-catlist li { + margin-bottom: 0px; +} + +#avhecManualOrder { + width: 25%; + /* border: 1px solid #B2B2B2;*/ + /* margin: 10px 10px 10px 0px;*/ + /* padding: 5px 10px 5px 10px;*/ + /* list-style: none;*/ + /* background-color: #fff;*/ + /* border-radius: 3px;*/ + /* -webkit-border-radius: 3px;*/ +} + +#avhecManualOrder li.lineitem { + border: 1px solid #DFDFDF; + background-image: none; + border-radius: 3px; + -webkit-border-radius: 3px; + background-color: #FFFFFF; + color: #555555; + cursor: move; + margin-top: 5px; + margin-bottom: 5px; + padding: 2px 5px 2px 5px; + list-style: none outside none; +} + +#avhecManualOrder .sortable-placeholder { + border: 1px dashed #B2B2B2; + margin-top: 5px; + margin-bottom: 5px; + padding: 2px 5px 2px 5px; + height: 1.5em; + line-height: 1.5em; + list-style: none outside none; + background-color: transparent; + /* IE10 */ + background-image: -ms-linear-gradient(top, #f9f9f9, #f5f5f5); + /* Firefox */ + background-image: -moz-linear-gradient(top, #f9f9f9, #f5f5f5); + /* Opera */ + background-image: -o-linear-gradient(top, #f9f9f9, #f5f5f5); + /* old Webkit */ + background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5) ); + /* new Webkit */ + background-image: -webkit-linear-gradient(top, #f9f9f9, #f5f5f5); + /* proposed W3C Markup */ + background-image: linear-gradient(top, #f9f9f9, #f5f5f5); +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.widget.css b/wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.widget.css new file mode 100644 index 000000000..25a864920 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/css/avh-ec.widget.css @@ -0,0 +1,12 @@ +/* AVH Extended Categories Widget CSS */ +.avhec-widget-line { + display: inline-block; +} + +.avhec-widget-count { + display: inline; +} + +.avhec-widget-rss { + display: inline; +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/helpers/avh-forms.php b/wp-content/plugins/extended-categories-widget/3.3/helpers/avh-forms.php new file mode 100644 index 000000000..ff3b54e43 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/helpers/avh-forms.php @@ -0,0 +1,44 @@ +<?php +if (! function_exists('avh_doWidgetFormText')) { + + function avh_doWidgetFormText ($field_id, $field_name, $description, $value) + { + echo '<label for="' . $field_id . '">'; + echo $description; + echo '<input class="widefat" id="' . $field_id . '" name="' . $field_name . '" type="text" value="' . esc_attr($value) . '" /> '; + echo '</label>'; + echo '<br />'; + } +} + +if (! function_exists('avh_doWidgetFormCheckbox')) { + + function avh_doWidgetFormCheckbox ($field_id, $field_name, $description, $is_checked = FALSE) + { + + echo '<label for="' . $field_id . '">'; + echo '<input class="checkbox" type="checkbox" id="' . $field_id . '" name="' . $field_name . '"' . ($is_checked ? ' CHECKED' : '') . ' /> '; + echo $description; + echo '</label>'; + echo '<br />'; + } +} + +if (! function_exists('avh_doWidgetFormSelect')) { + + function avh_doWidgetFormSelect ($field_id, $field_name, $description, $options, $selected_value) + { + echo '<label for="' . $field_id . '">'; + echo $description . ' '; + echo '</label>'; + + $data = ''; + foreach ($options as $value => $text) { + $data .= '<option value="' . $value . '" ' . ($value == $selected_value ? "SELECTED" : '') . '>' . $text . '</option>' . "/n"; + } + echo '<select id="' . $field_id . '" name="' . $field_name . '"> '; + echo $data; + echo '</select>'; + echo '<br />'; + } +} diff --git a/wp-content/plugins/extended-categories-widget/3.3/images/us_banner_logow_120x60.gif b/wp-content/plugins/extended-categories-widget/3.3/images/us_banner_logow_120x60.gif new file mode 100644 index 0000000000000000000000000000000000000000..231a56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U1$f+WVr~WsRlk^Z&^#uu~3T+;>BBh2Y=m xc7L5hs+2@30(qrVtqLy8R=cXX@62*@??q0#98?sACtQer?sa|FK2rq-YXCB+s#yR4 literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.closure.js b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.closure.js new file mode 100644 index 000000000..5536f60bc --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.closure.js @@ -0,0 +1 @@ +function avhecManualOrder(){jQuery("#avhecManualOrder").sortable({placeholder:"sortable-placeholder",revert:false,items:".lineitem",opacity:0.65,cursor:"move",forcePlaceholderSize:true,tolerance:"pointer"})}addLoadEvent(avhecManualOrder);function orderCats(){jQuery("#updateText").html("Updating Category Order...");jQuery("#hdnManualOrder").val(jQuery("#avhecManualOrder").sortable("toArray"))}; \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.js b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.js new file mode 100644 index 000000000..34b4ae168 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.admin.manualorder.js @@ -0,0 +1,19 @@ +function avhecManualOrder() { + jQuery("#avhecManualOrder").sortable({ + placeholder : "sortable-placeholder", + revert : false, + items : '.lineitem', + opacity: 0.65, + cursor: 'move', + forcePlaceholderSize: true, + tolerance : "pointer" + }); +}; + +addLoadEvent(avhecManualOrder); + +function orderCats() { + jQuery("#updateText").html("Updating Category Order..."); + jQuery("#hdnManualOrder").val( + jQuery("#avhecManualOrder").sortable("toArray")); +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.closure.js b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.closure.js new file mode 100644 index 000000000..615208921 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.closure.js @@ -0,0 +1 @@ +jQuery(document).ready(function(a){a("#the-list").wpList({delBefore:function(b){if("undefined"!=showNotice)return showNotice.warn()?b:false;return b}});a('.delete a[class^="delete"]').live("click",function(){return false})}); \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.js b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.js new file mode 100644 index 000000000..7221dfa75 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/3.3/js/avh-ec.categorygroup.js @@ -0,0 +1,21 @@ +jQuery(document).ready(function($) { + var options = false, delBefore, delAfter; + + delAfter = function( r, settings ) { + var id = $('cat', r).attr('id'), o; + for ( o = 0; o < options.length; o++ ) + if ( id == options[o].value ) + options[o] = null; + }; + + delBefore = function(s) { + if ( 'undefined' != showNotice ) + return showNotice.warn() ? s : false; + + return s; + }; + + $('#the-list').wpList({ delBefore: delBefore }); + + $('.delete a[class^="delete"]').live('click', function(){return false;}); +}); diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-cs_CZ.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-cs_CZ.mo new file mode 100644 index 0000000000000000000000000000000000000000..443842cc464ced16da20d6657d7a99baac80d5bf GIT binary patch literal 4482 zcmca7#4?qEfq}t^fq_AWfq_AXiGd-Kfq}t>1tiMAuz;0;L7ahsVIeC6gE|8P!%kKP z22}<IhKH;S44e!M4D4(WT9A!_fscWKL7I($fs28GL5q!n!IXi4!IX`GftP`SAsec$ z5-Q)!1~In}s&5$^0|P$;1H)D}1_n6>28N?-3=C2X3=B`$7#Ktt7#RMuF))ZRFffR) zGcX7-FfeGdGcd3*FfiD$Gcd3+Ffh16`QGdh`-9jS7`Pc27-HEW?#qPI#q1D!YuOnX zKwg~6&cGnbz`!sIs&4~31A{yR1H*2pxwoO_K4fQLP-I|Wc)<>FCl?3Azfv3!{hAyM z4AKk?4E7ul^P@Q!7?>Cs7>YR{_LM>CY7R(vG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ugins/extended-categories-widget/lang/avh-ec-de_DE.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-de_DE.mo new file mode 100644 index 0000000000000000000000000000000000000000..1360a41a3ee4c5a29c3368178977ecb60b9dc7a4 GIT binary patch literal 16245 zcmca7#4?qEfq`K@0|SE$0|SEyD+9xQ1_lNmE|4e#LkBMd12+Q$Lnki-0}lfO!&E4L z5tLrX%fP_Pz`(GJmw|zgfq~%!F9U-L0|Uc#UIqp+1_p*dybKKD3=9myd<+cg3=9m~ zd<+b#3=9mxd<+bn3=9mFd=PcbQ2s1Fh&fC67#M^Z7#KG5F))CfavZAf5+4JD00RTV z4?YG4Qw9bGPJW2}_WTg@e4%tWKg66weuy~*{19_m_#y7;hsrPKXJFuGU|`tB&%hwZ zz`$^fpMgP&fq~&EKLdjZC<p`~?h_SYU=U(pV9*g@U|?flV6YcpV3^0iz~Cmpz`zPp zF931JYpDEB0f>DJf{^gz7Gz-1U|?Vn7lf#D5QMnb4@yS}Lfn-k$iTqDz`#%?$iN`V zz`#&12yy>ZL5O)P1sNFR85kJ02tw?=A_#HMEkOnbMFs|jhfwpFg&_Xo6@r9=tPlgk z1(5rNAm;uRVqlO2#fvb+9lF8{4AKk?4CcZRcLWPFFk~|@Fk}leFr<UxQ<#BaF38^^ z3=B*R3=DTg7#M6A7#JRiFfimWFfho9GBEfvFfeq9GB7AJFfiN_g~aziQHX!k#31g` z7Gq#I#=yW}Ee3HvlQ;u|1Oo#Dhd6|<C=OAtE)H>rjyNQ|T*Mg|*cliYf}s2;aRvqs z1_p)<aY(u>6lY*iV_;yY6K7yBV_;xdD$c-Q&A`BLM;zi`2?<C%>PbM%b%oNg5|HpM zm4KMjDFLx>8dUuf2}u0ymVmhbI8^?+1Oq5)8J<coFz7KbFnpI_V9;S;U{I4}VDJW| zZ%GCQM^L_!WMFUr#fv1wy-HFH3=yDwAO*3fMG6u>lcXT&dZ82pgDe9B!zL+6{9J(2 zucRR1!Xga`2To~7dJvR`m?I<2z_5X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y)?v zgJ;jcIVV@a4Ycq9RMLYR_XtgT44xT9;OYf5cneBqkg&iqbyiiXkOLi&)BzU-psbS) znxe=_Ob69trMaM%aYkxRS}M4?OiCFGuGuk5SJ<e(9zzOfj08L?0`5;JB&C7|Es8;9 zxk74D8hDNz95bLn7TAOjG$(^<9kAKZI=U#av=}sOQKADI1p<d>K~a8EPHJvWez5}5 kkTb|<=$7Z@Cue}{F(GULw3!Y{1F6N(#sI9BgER;Q06R7-uK)l5 literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-el.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-el.mo new file mode 100644 index 0000000000000000000000000000000000000000..ed71d0122359b0ca23f5981f41c02f1b0eab5536 GIT binary patch literal 1785 zcmca7#4?qEfq_Asfq_AWfq~%)0|SFR0|P@3BS@5ifrE*Gfs=uOffGs#GchpmF)%R5 zGBGf4F)%RbFflOjGB7ZhL;0>u3=G^13=9EK^)XBg3@i)`3~5mLY$gT<HU<WUGA0HF zeg+1HTBv+4l%51NZ#okL13Lo)!%`*&1`Y-WhP6x#3_J`B4BMdm!%PeevJ4CiXQ1}I zg35nmVqlof$iTqN43VGD0-^V^Ffb@FFfiO^VPKGAU|{&i!oVQGz`!8M%D^DPz`$U{ z%D^DRz`)?n3b7}Om4QKwfq@~Nm4QK-fq|ip6%sCsp!6YDi2ol!>9?#53_1)93_n;I z7z7v?7*yFH=9;lV^n0^G%+F_IU~pz&U}%E!kFi0_y~)PF019$YShF%f)Pll|iGhJZ zkb!}LnE?{cps*8VU|<ktfP@bumLMd^A0QUU-Jq}q#SbX1K<)vFgTfCK&mcAogW?Jl zz6_2jDGKgI`K1M5Ryu^0lcV6ASdyBaUzC|z%;1=lqu`TTmYP${;Fy<}Uz(Sknwy$e zQp|v)#wE2lxhS)sBr`vc!6iR05yU8Fa81c90TWOw-1Hpv0`(Z&Q}a@b5_1&%!Rm_{ zd@_qm82l1*QyKj76_ODa!{q(TQj5wmQ_C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P}%``9hP<g2I7;x literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-en_US.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-en_US.mo new file mode 100644 index 0000000000000000000000000000000000000000..5e0fa823714e631c06dae53dff4857d2eb8108c8 GIT binary patch literal 590 zcmca7#4?qEfq{XMfq_AWfq_AVfq{XUfq_8>B*?(PV8Ot^Ai~7JU<p+N6=q-vD9X=D zO)k;(OwkQXEh^5;&$Ci+4D(QMttd&&OG!;pa84{qP0ugNOfBXLN-fAQD$(^VPR~ry zbt+9S)(y$GQs4^k57BilN=+=u%+J$xNi0dVQZO<wG}1LN)HO6$FtoHXG}bjRH89`` z@YfAWEz1O10#(Q5lUQ7$8&Z^*SDcerl3!${5Rh7uTBJ~xn5U4ETBP8TpIWS7lUSBf zoS#-wo>-LXkXV*kR8pFllaZgBs+XLfYscl2n3rCfn4YQ|lA4%nr2yw!DRB9E`nn># zWvFMs<(!{alA2ed8&X-2YNb$;T2Z23kdv61XRVN&kyuomT4Ea-;-+hXPzQ2aT56H5 zYhH4GN@iZVm4Zc5W(ik>Za{u&N@j^}aDHh~a;h^#vz0<=Nt&(&Le@LAvOK>irPwF4 zxWq~!K0Yr!wFG3Tm7$K2b$q;ad@4e%Q(|#yL1IaUm4cogS3pi_QDTm+TYgb)v6Vtz z0hn8CYh<keVcO;?DB3C*S|hZ>g276`H7`9Uvp54G<(yxdS5j1Ir4Z`p8RF`q5FFwd a;u?&Q4^B-iO3nyKEXmL{uu{<DVgLY>gR~_8 literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-es_ES.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-es_ES.mo new file mode 100644 index 0000000000000000000000000000000000000000..723d28122772b3171c54d39058da667592cb885f GIT binary patch literal 4086 zcmca7#4?qEfq}t}fq_AWfq{XCiGd-Qfq~%<Gf0$y!Go27L7ahs!IPDNfs=uOArVSv zvobL7F)%QcvN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/wp-content/plugins/extended-categories-widget/lang/avh-ec-id_ID.mo new file mode 100644 index 0000000000000000000000000000000000000000..61c4579bf015f8e5bd82ef371e19a857a20f9a13 GIT binary patch literal 4403 zcmca7#4?qEfq}t^fq_AWfq_AXiGd-Kfq}t>1tiMAuz;0;L7ahsVIeC6gE|8P!%kKP z22}<IhKH;S44e!M4D4(WT9A!_fscWKL7I($fs28GL5q!n!IXi4!IX`GftP`SAsec$ z5-Q)!1~In}s&5$^0|P$;1H)D}1_n6>28N?-3=C2X3=B`$7#Ktt7#RMuF))ZRFffR) zGcX7-FfeGdGcd3*FfiD$Gcd3+Ffh16`QGdh`-9jS7`Pc27-HEW?#qPI#q1D!YuOnX zKwg~6&cGnbz`!sIs&4~31A{yR1H*2pxwoO_K4fQLP-I|Wc)<>FCl?3Azfv3!{hAyM z4AKk?4E7ul^P@Q!7?>Cs7>YR{_LM>CY7R(vG;lC5urn|)^g;R4I2af>7#J9qK=rTX zU|<jig#!lz0}lfO!%Yr|z0Wup7z7y@7`{Q(b8te;6Xb-rN1l^`L4bjQL64JxK^Ej5 zP6h@^P&h#8a!yEiO@!*3&It*prJRuP-N*^C?*vr;RZa#5dj<xE&zuYlD;OCVjJY8G zyTi@Epvl0%@P(U!L4$#TL5>F!FYZt}iU;DJTpoz|H9QOqMhpxL9Xycu+06rqzhgWQ zf1l-n#Pc;Ci2q(g>AyS>^Z9uh7*rS-7%X@h7!*MMf%5BkA@(ljh4^b5FT~tEQ2t?F zNI0M5g`|UvQ2E=u5cfUeWnhqCU|{$NRma5#;S2FW!cm(K60bIV3=GT+3=9!aI))G8 zo&-KfytMK`+&vYlemNflgAxM+!(l#1I6dQoqz3_hh<k+jA?ZSzAL4!men_|&^F!jx zjvwOQ2!2RDNP^O}{1A7|;D@+>C6wL))qk8Hl5Q?R&3(oX@y}0wNct5LfaG5j0f@O# z0+4Vk6@ZvqEdX&xj{qbeOc#Kdw_O0D|Fi%DgDV3A!&?Cc21Zc+V}PU=T}W{O4kJ*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%A1m#&ZqG7wp%rwc=HYF=VdVkW45N@NJhOi9dENK8qD8_a-kEfP}! zEoOr<^U|{uixcx09CH$L6HB1gR(7gFIw)}$fvOltT!7tCoS2)akdm2Rng?<bsQLmY z5QTu$qEb+5%3}xs1uIhG2XkSbMREuz-$8t>015k`;9w*%NL`kli6oQ-PDZd;L6XP- zg{VSyDx}Q`N-L1K4S|I#JWLe8o=C}rB@IxRV^LKCEmpirQ%Z9fJix|7A_H97grpW_ zrRIW)7;G5>91$QZ@)C0x0^pepk-vR1GZITM6ImuC;e*myXmMgjqJm>yN+KlUb5rxu aGeEfqZiqr=UM8064-&cQiRp<sdJF*SmSipf literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-it_IT.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-it_IT.mo new file mode 100644 index 0000000000000000000000000000000000000000..864052f2166b41f668d0eaf470cf6e18ef2739e4 GIT binary patch literal 16669 zcmca7#4?qEfq`Ke0|SE$0|SE(D+9xQ1_p*2E|4e#!w+5t25trhhM&9)3_J`B46J+* zz7Uj_<6~gpWnf^?;$vXoV_;yg;A3D=VPIfz=VM?HV_;y&;bUMBXJBAx=3`(`XJBBM z&Bwr?%D}*In2&*hlYxQZB~;yKD4&ZTVvYzu1A{OF1A{U@0|Uq@=KK(SPW%iE0t^fc z8T<?krVI=WmHZI<*YiWn+Y6<SL(RDeHRl1;oG<(k_xy*-iwiI?@G~$ls0lDI$T2W5 zm<cd2NHH)lgbFY)h%hiP6bL~4(JH{eAjH7HFh_uafsKKIVZ8tY!#oBChHU~246Gpa zf)IB^3qs^G1tIP(5QKzRwIBn71_J{_J5=2UL5O?zLFp5M5O-Y?WME)nU|@J9$iN`V zz`*cc5E2foLJ;#Lg%}v*85kH;gdq012tn-g5@KLbWME(j6oQyrEClgatq>$UdxaPn zE`Z!G1Ti;Pn1MkO6feRM^>c+87^E2(7?uk|+;Lc#fgziLf#J3=14B9}K1CQ9=7Rh! z!oa}9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C<oLI2SspNKB!3x9V&rjF3_L}D2|}+ z(SgKMK6vQj@B-x89Mb56jP!xhF=S{Dxe`I^{DWKq4IgmEgiR@dBmVFLM9m3qw&X*b zEua>8QECn}*C*!WsOJ}fN=8u41X>9Q3Br_ASPM!|AsAf0!A*zMLLiTV%+&$aeNZ`L zh?U?R44xoNQ~+f@@RBnmWkwKXpwb8GCR~PqEC72A8Wx72at9u~@H!c#l?I!TGqeI% zohgWp9Fh#g51@pOs6s$t4lV)nQO)zrfo4(#Bb?TQT9rBqiJ8zABB+a&lL+-3%vvKW zsK0Sq3-T^O)v$PhSOtq!g4*DXXK0~@@Rcz|zB0xc%*MF<3-<vujpT#90xdJ3VU6gH zCFX%v+om!gb!9;#Z=iAuoVUPTa8NeSEJ;)VHLszeTm%|AKpz=~O!9$}IIJ25l^yU3 z6Vw`lwv$2aP*AZ48}opTlY{1SK;yA`3ZC#TFQ}udqW~`KP+Bzb+5l2<f<_rYb1a~3 z4&YKH89GE*lnN^qAn6awEa2gl3TcTsIhiH-dJND(GWcLIoR2*G2x|5sRKohS;8s6) z<PsEqR4MlnmcU~Q($@!15@sYqDzY4;;TTYl96q+12x|3!8^6%n5jvCu>b~O}$$^YZ zBxWig4eWx}pcIy7=D=D?IqI+>W>7Jdug3r#g#fz@+PH%BEg^G@ps^+Ba51cLQ<Mry TAO)}n47}9=Dl8y%wGIOS6fmOU literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-nl_NL.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-nl_NL.mo new file mode 100644 index 0000000000000000000000000000000000000000..47f20c2b98612e359f40c3589133f91756955764 GIT binary patch literal 4350 zcmca7#4?qEfq}t^fq_AWfq_AXiGd-Kfq}t>1tiMAuz;0;L7ahsVIeC6gE|8P!%kKP z22}<IhKH;S44e!M4D4(WT9A!_fscWKL7I($fs28GL5q!n!IXi4!IX`GftP`SAsec$ z5-Q)!1~In}s&5$^0|P$;1H)D}1_n6>28N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S literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-ru_RU.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-ru_RU.mo new file mode 100644 index 0000000000000000000000000000000000000000..0b0899921ffcfca7ab376c02281f714ed15d4f03 GIT binary patch literal 5650 zcmca7#4?qEfq}t^fq_AWfq_AXiGd-Kfq}t>1tiMAuz;0;L7ahsVIeC6gE|8P!%kKP z22}<IhKH;S44e!M4D4(WT9A!_fscWKL7I($fs28GL5q!n!IXi4!IX`GftP`SAsec$ z5-Q)!1~In}s&5$^0|P$;1H)D}1_n6>28N?-3=C2X3=B`$7#Ktt7#RMuF))ZRFffR) zGcX7-FfeGdGcd3*FfiD$Gcd3+Ffh16`QGdh`-9jS7`Pc27-HEW?#qPI#q1D!YuOnX zKwg~6&cGnbz`!sIs&4~31A{yR1H*2pxwoO_K4fQLP-I|Wc)<>FCl?3Azfv3!{hAyM z4AKk?4E7ul^P@Q!7?>Cs7>YR{_LM>CY7R(vG;lC5urn|)^g;R4I2af>7#J9qK=rTX zU|<jig#!lz0}lfO!%Yr|z0Wup7z7y@7`{Q(b8te;6Xb-rN1l^`L4bjQL64JxK^Ej5 zP6h@^P&h#8a!yEiO@!*3&It*prJRuP-N*^C?*vr;RZa#5dj<xE&zuYlLQD({##|8p zx$!VC*fB6L#PKjNm@zOg%;kaDcLhp+;(^4E058NJ;=BwDrJ#7@g~aDVUWk3$cp>q5 zmY0D+iGhLP0WT!{nfV~JG9Lqj2?GOzGamzkIRgVj1s?;05d#Cm1}OcQ529a;AL1@e zeg+0*1_lO4en@zv@<YO-1WLE^L(<hWen@<7<Y!=TXJBBs3>B9aU|`T@U|=v4fTZ^% z0R{#O1_p*M0Z9BDhSFyQ7#Kns7#OY!K<v{NgxK#d$iSe(z`&3$$iU#hz`!s?5RzZ6 z3PSAtEeJ^`VnPsi83{q+$5{yCk60my`T`+{`=<#(!g;9>1A`kVKS1TRg(2<_gwn;r z5dBkyA?{fr3^C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JVmFpnJ*bLA=mxc7dh{3o?@J~; literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-sv_SE.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-sv_SE.mo new file mode 100644 index 0000000000000000000000000000000000000000..55c635666e44c28c435c3db993507fbfb173f96c GIT binary patch literal 4300 zcmca7#4?qEfq}t^fq_AWfq_AXiGd-Kfq}t>1tiMAuz;0;L7ahsVIeC6gE|8P!%kKP z22}<IhKH;S44e!M4D4(WT9A!_fscWKL7I($fs28GL5q!n!IXi4!IX`GftP`SAsec$ z5-Q)!1~In}s&5$^0|P$;1H)D}1_n6>28N?-3=C2X3=B`$7#Ktt7#RMuF))ZRFffR) zGcX7-FfeGdGcd3*FfiD$Gcd3+Ffh16`QGdh`-9jS7`Pc27-HEW?#qPI#q1D!YuOnX zKwg~6&cGnbz`!sIs&4~31A{yR1H*2pxwoO_K4fQLP-I|Wc)<>FCl?3Azfv3!{hAyM z4AKk?4E7ul^P@Q!7?>Cs7>YR{_LM>CY7R(vG;lC5urn|)^g;R4I2af>7#J9qK=rTX zU|<jig#!lz0}lfO!%Yr|z0Wup7z7y@7`{Q(b8te;6Xb-rN1l^`L4bjQL64JxK^Ej5 zP6h@^P&h#8a!yEiO@!*3&It*prJRuP-N*^C?*vr;RZa#5dj<xE&zuYla~T;JjJY8G zyT}bm4==eH7*rS-7zBAB_L@OycOHm)BX}U@W$-XC7&9<1l=490ZzT`Jzk7Hf@pY63 z63-WSApUs@)&H3X;tytCNW3WWLex3(GB8LmFffGiLiFeJLefJOly2mOgl`8g#GVPf z5P!~us$a?rNf#S<A^zC~Rd<OO5?;4?A>sLz7m_bn_#ok?$Oo}Uoe$!FJwB*A_#o=@ z`5@_`j*o#snSp^}3LgW50s{lX4n9bFxCu4q4j&|4JmQ0d({rf)?|hJWVB?3lPnI8I zzB-h4;D>~BBtOKyEGWMc%J1Tbm^YIj5{@hRA>qB9AL5Tw{E&3|oF9_Dm<1sI5*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RFDJ5<%5W9)l;UVGN$A&O+rXKw>eK;qWw=L&FX)Nr%-upi~d4 zAd)h3Qb1KtZXzTS4lgNENX#ocyd)1?|A1100*F(TnU|he#1M9PNlq3#n9#VXMd(fn z%PdX=*F$OGFlPYsAvIBUCWMy=N;<G8fC#1Lr6d-YC}6}QNOuu5KY$W1+#RV!5RE1I z1<0j9NM=cD4udPiG>{xPkf8x`cu7eKC_WkdvqAoYn*~Wtp|C6hu?}K9C{-&Y7L{aX z=Oh*>prsa<%#sptnkqiLEgMubDU?8R1E@&ION5w%wNffl$jvM+&Z$h!PAt}A000Uc BP(}a% literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec-tr.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec-tr.mo new file mode 100644 index 0000000000000000000000000000000000000000..dc3ae53dafc62245936f136924eb5686bb04664d GIT binary patch literal 1081 zcmca7#4?qEfq{Xafq_AWfq`KP0|SFN0|NsOBS@5iA%l^DfscWKA(N4Tfs28Gp@NZt zfs=uOp&82Wh0-$^85o!t7#J2aGBB_(Ffc5G(yJL67}yyY7&b66Fz_-kFzjGtVBle3 zU^vFez`()4z;Kz7fq|8Qf#D7#0|Pe$1H&Um28NA{3=HoW85jf@7#J2XL+szk3{iK0 z8KUkOGXnz~0|Ub)W{ABvq4Ia2^dqRc7t9O{LJSNHUzj2OVrPN4N1g>@zdDpQU}0c@ zdKv64kXs-j03ktPz{~*A3lahO0Yrn`0HQ&D0EG`I3_$(_g%KzmKysk4WpK>NQE*Ny zNlni$%1kW=bA3|FQgezK9E+1v^HMVN(ixECT~gtqo-PbNnZ+dxeu=rM4E_ZrnfZCe zFj}EFu`D%(Avm!tRlzwUF)ux}m?1c|q$D#hy_g{+vm_^#A*3iVuQ(?Wq>Uk<C_gJT zxkT49MK>(9s5mn}&q^V&EF-m|BsDK3H6<DDKCYnDg8ZTqUEkvL%oJUx()428kbElz zw@@D+1wTh$R|OkaUq??L2S*o|AlKkvJFWo#5MAe@RIoL=E{P?nRtiQ2hK9NZ#=3?E z3I>)|#-_RkrUnLF0sgu{sb!fUyAkRPbPY^F>I{vo49v9+3=9mod=iUGbYX7KFS1f_ z%u7$rQ3x)mRItfS&B-h-PE5(nNi0fqs7%br&(}-N&$Z+7Nz6+xO-xVK4M|PRwNeNv zEy~U;&QP!^DRRik)XOhQx8w5l^mRpe-cZkg%Q-)<BsH%@H>9#4)k>ixwW377ASW?1 z&srflBeAGBwZt|w#7)-%p$-(FX{klJu6fD%pm?)Vut>@*;fm1pNi5Av&L~Js(RHl= z2OnBMm?;=qSeY6@JQ$(to|>0hlvo1t99*Y@Mp9{JPKtt|k*TGnCKp4<;XSzu-q3i- zNiBj1xE$V7m0AhnIu?~A<}n~EaI8wqNz7w_rkYfSBO8h{a~XnD4=+#6OU(xBsZ1=& zNi0&xPOMBxP07qj$z*UzJu*M@=={v=oJ^3COa*U{TnU3CL@9$);?emzM>b|NgrpWF KAKsIj$^ZbJy9~hq literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec.mo b/wp-content/plugins/extended-categories-widget/lang/avh-ec.mo new file mode 100644 index 0000000000000000000000000000000000000000..5e0fa823714e631c06dae53dff4857d2eb8108c8 GIT binary patch literal 590 zcmca7#4?qEfq{XMfq_AWfq_AVfq{XUfq_8>B*?(PV8Ot^Ai~7JU<p+N6=q-vD9X=D zO)k;(OwkQXEh^5;&$Ci+4D(QMttd&&OG!;pa84{qP0ugNOfBXLN-fAQD$(^VPR~ry zbt+9S)(y$GQs4^k57BilN=+=u%+J$xNi0dVQZO<wG}1LN)HO6$FtoHXG}bjRH89`` z@YfAWEz1O10#(Q5lUQ7$8&Z^*SDcerl3!${5Rh7uTBJ~xn5U4ETBP8TpIWS7lUSBf zoS#-wo>-LXkXV*kR8pFllaZgBs+XLfYscl2n3rCfn4YQ|lA4%nr2yw!DRB9E`nn># zWvFMs<(!{alA2ed8&X-2YNb$;T2Z23kdv61XRVN&kyuomT4Ea-;-+hXPzQ2aT56H5 zYhH4GN@iZVm4Zc5W(ik>Za{u&N@j^}aDHh~a;h^#vz0<=Nt&(&Le@LAvOK>irPwF4 zxWq~!K0Yr!wFG3Tm7$K2b$q;ad@4e%Q(|#yL1IaUm4cogS3pi_QDTm+TYgb)v6Vtz z0hn8CYh<keVcO;?DB3C*S|hZ>g276`H7`9Uvp54G<(yxdS5j1Ir4Z`p8RF`q5FFwd a;u?&Q4^B-iO3nyKEXmL{uu{<DVgLY>gR~_8 literal 0 HcmV?d00001 diff --git a/wp-content/plugins/extended-categories-widget/lang/avh-ec.po b/wp-content/plugins/extended-categories-widget/lang/avh-ec.po new file mode 100644 index 000000000..7d20e3b21 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/lang/avh-ec.po @@ -0,0 +1,1056 @@ +msgid "" +msgstr "" +"Project-Id-Version: AVH Extended Categories\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-01-17 19:13-0500\n" +"PO-Revision-Date: \n" +"Last-Translator: Peter van der Does <avhsoftware@avirtualhome.com>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Poedit-KeywordsList: __ngettext:1,2;__;_e\n" +"X-Poedit-Basepath: ..\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Poedit-Language: English\n" +"X-Poedit-Country: UNITED STATES\n" +"X-Poedit-SearchPath-0: .\n" + +#: widget-pre2.8.php:33 +#: 3.3/class/avh-ec.widgets.php:81 +#: 3.3/class/avh-ec.widgets.php:364 +#: 3.3/class/avh-ec.widgets.php:668 +#: 3.3/class/avh-ec.admin.php:476 +#: 3.3/class/avh-ec.core.php:417 +#: 2.8/class/avh-ec.widgets.php:81 +#: 2.8/class/avh-ec.widgets.php:363 +#: 2.8/class/avh-ec.widgets.php:667 +#: 2.8/class/avh-ec.admin.php:491 +#: 2.8/class/avh-ec.core.php:417 +msgid "Categories" +msgstr "" + +#: widget-pre2.8.php:40 +#: widget-pre2.8.php:42 +#: 3.3/class/avh-ec.widgets.php:103 +#: 3.3/class/avh-ec.widgets.php:387 +#: 3.3/class/avh-ec.widgets.php:677 +#: 2.8/class/avh-ec.widgets.php:103 +#: 2.8/class/avh-ec.widgets.php:386 +#: 2.8/class/avh-ec.widgets.php:676 +msgid "Select Category" +msgstr "" + +#: widget-pre2.8.php:153 +msgid "Title:" +msgstr "" + +#: widget-pre2.8.php:266 +msgid "Path (URI) to RSS image:" +msgstr "" + +#: widget-pre2.8.php:340 +msgid "AVH Extended Categories Widgets" +msgstr "" + +#: widget-pre2.8.php:343 +msgid "How many wishlist widgets would you like?" +msgstr "" + +#: widget-pre2.8.php:358 +msgid "Save" +msgstr "" + +#: widget-pre2.8.php:376 +#, php-format +msgid "Extended Categories %d" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:29 +#: 2.8/class/avh-ec.widgets.php:29 +msgid "An extended version of the default Categories widget." +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:193 +#: 3.3/class/avh-ec.widgets.php:471 +#: 3.3/class/avh-ec.widgets.php:772 +#: 2.8/class/avh-ec.widgets.php:193 +#: 2.8/class/avh-ec.widgets.php:470 +#: 2.8/class/avh-ec.widgets.php:771 +msgid "Title" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:197 +#: 2.8/class/avh-ec.widgets.php:197 +msgid "Show selected categories only" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:199 +#: 3.3/class/avh-ec.widgets.php:479 +#: 3.3/class/avh-ec.widgets.php:777 +#: 2.8/class/avh-ec.widgets.php:199 +#: 2.8/class/avh-ec.widgets.php:478 +#: 2.8/class/avh-ec.widgets.php:776 +msgid "Show post counts" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:201 +#: 3.3/class/avh-ec.widgets.php:779 +#: 2.8/class/avh-ec.widgets.php:201 +#: 2.8/class/avh-ec.widgets.php:778 +msgid "Show hierarchy" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:203 +#: 2.8/class/avh-ec.widgets.php:203 +msgid "All Levels" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:203 +#: 2.8/class/avh-ec.widgets.php:203 +msgid "Toplevel only" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:205 +#: 2.8/class/avh-ec.widgets.php:205 +msgid "Child " +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:207 +#: 2.8/class/avh-ec.widgets.php:207 +msgid "How many levels to show" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:210 +#: 3.3/class/avh-ec.widgets.php:781 +#: 2.8/class/avh-ec.widgets.php:210 +#: 2.8/class/avh-ec.widgets.php:780 +msgid "Hide empty categories" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:212 +#: 3.3/class/avh-ec.widgets.php:482 +#: 3.3/class/avh-ec.widgets.php:783 +#: 2.8/class/avh-ec.widgets.php:212 +#: 2.8/class/avh-ec.widgets.php:481 +#: 2.8/class/avh-ec.widgets.php:782 +msgid "Use description for title" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:216 +#: 3.3/class/avh-ec.widgets.php:486 +#: 3.3/class/avh-ec.widgets.php:787 +#: 2.8/class/avh-ec.widgets.php:216 +#: 2.8/class/avh-ec.widgets.php:485 +#: 2.8/class/avh-ec.widgets.php:786 +msgid "ID" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:217 +#: 3.3/class/avh-ec.widgets.php:487 +#: 3.3/class/avh-ec.widgets.php:788 +#: 3.3/class/avh-ec.admin.php:1139 +#: 2.8/class/avh-ec.widgets.php:217 +#: 2.8/class/avh-ec.widgets.php:486 +#: 2.8/class/avh-ec.widgets.php:787 +#: 2.8/class/avh-ec.admin.php:1169 +msgid "Name" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:218 +#: 3.3/class/avh-ec.widgets.php:488 +#: 3.3/class/avh-ec.widgets.php:789 +#: 2.8/class/avh-ec.widgets.php:218 +#: 2.8/class/avh-ec.widgets.php:487 +#: 2.8/class/avh-ec.widgets.php:788 +msgid "Count" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:219 +#: 3.3/class/avh-ec.widgets.php:489 +#: 3.3/class/avh-ec.widgets.php:790 +#: 2.8/class/avh-ec.widgets.php:219 +#: 2.8/class/avh-ec.widgets.php:488 +#: 2.8/class/avh-ec.widgets.php:789 +msgid "Slug" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:220 +msgid "Manual Order" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:225 +#: 3.3/class/avh-ec.widgets.php:490 +#: 3.3/class/avh-ec.widgets.php:791 +#: 2.8/class/avh-ec.widgets.php:224 +#: 2.8/class/avh-ec.widgets.php:489 +#: 2.8/class/avh-ec.widgets.php:790 +msgid "Sort by" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:228 +#: 3.3/class/avh-ec.widgets.php:493 +#: 3.3/class/avh-ec.widgets.php:794 +#: 2.8/class/avh-ec.widgets.php:227 +#: 2.8/class/avh-ec.widgets.php:492 +#: 2.8/class/avh-ec.widgets.php:793 +msgid "Ascending" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:229 +#: 3.3/class/avh-ec.widgets.php:494 +#: 3.3/class/avh-ec.widgets.php:795 +#: 2.8/class/avh-ec.widgets.php:228 +#: 2.8/class/avh-ec.widgets.php:493 +#: 2.8/class/avh-ec.widgets.php:794 +msgid "Descending" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:230 +#: 3.3/class/avh-ec.widgets.php:495 +#: 3.3/class/avh-ec.widgets.php:796 +#: 2.8/class/avh-ec.widgets.php:229 +#: 2.8/class/avh-ec.widgets.php:494 +#: 2.8/class/avh-ec.widgets.php:795 +msgid "Sort order" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:233 +#: 3.3/class/avh-ec.widgets.php:498 +#: 3.3/class/avh-ec.widgets.php:799 +#: 2.8/class/avh-ec.widgets.php:232 +#: 2.8/class/avh-ec.widgets.php:497 +#: 2.8/class/avh-ec.widgets.php:798 +msgid "List" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:234 +#: 3.3/class/avh-ec.widgets.php:499 +#: 3.3/class/avh-ec.widgets.php:800 +#: 2.8/class/avh-ec.widgets.php:233 +#: 2.8/class/avh-ec.widgets.php:498 +#: 2.8/class/avh-ec.widgets.php:799 +msgid "Drop down" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:235 +#: 3.3/class/avh-ec.widgets.php:500 +#: 3.3/class/avh-ec.widgets.php:801 +#: 2.8/class/avh-ec.widgets.php:234 +#: 2.8/class/avh-ec.widgets.php:499 +#: 2.8/class/avh-ec.widgets.php:800 +msgid "Display style" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:241 +#: 3.3/class/avh-ec.widgets.php:506 +#: 3.3/class/avh-ec.widgets.php:807 +#: 2.8/class/avh-ec.widgets.php:240 +#: 2.8/class/avh-ec.widgets.php:505 +#: 2.8/class/avh-ec.widgets.php:806 +msgid "Show RSS Feed" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:243 +#: 3.3/class/avh-ec.widgets.php:508 +#: 3.3/class/avh-ec.widgets.php:809 +#: 2.8/class/avh-ec.widgets.php:242 +#: 2.8/class/avh-ec.widgets.php:507 +#: 2.8/class/avh-ec.widgets.php:808 +msgid "Path (URI) to RSS image" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:248 +#: 2.8/class/avh-ec.widgets.php:247 +msgid "Select categories" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:253 +#: 2.8/class/avh-ec.widgets.php:252 +msgid "All Categories" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:263 +#: 2.8/class/avh-ec.widgets.php:262 +msgid "Exclude the selected categories" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:334 +#: 2.8/class/avh-ec.widgets.php:333 +msgid "Shows the top categories." +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:335 +#: 2.8/class/avh-ec.widgets.php:334 +msgid "Top Categories" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:475 +#: 2.8/class/avh-ec.widgets.php:474 +msgid "How many categories to show" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:543 +#: 2.8/class/avh-ec.widgets.php:542 +msgid "Shows grouped categories." +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:544 +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.widgets.php:543 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Category Group" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:813 +#: 2.8/class/avh-ec.widgets.php:812 +msgid "Select Groups" +msgstr "" + +#: 3.3/class/avh-ec.widgets.php:818 +#: 2.8/class/avh-ec.widgets.php:817 +msgid "Any Group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:186 +#: 3.3/class/avh-ec.admin.php:258 +#: 2.8/class/avh-ec.admin.php:183 +#: 2.8/class/avh-ec.admin.php:259 +msgid "Overview" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:187 +#: 3.3/class/avh-ec.admin.php:392 +#: 2.8/class/avh-ec.admin.php:184 +#: 2.8/class/avh-ec.admin.php:400 +msgid "General Options" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:188 +#: 3.3/class/avh-ec.admin.php:617 +#: 3.3/class/avh-ec.category-group.php:111 +#: 3.3/class/avh-ec.category-group.php:157 +#: 3.3/class/avh-ec.category-group.php:158 +#: 2.8/class/avh-ec.admin.php:185 +#: 2.8/class/avh-ec.admin.php:632 +#: 2.8/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:157 +#: 2.8/class/avh-ec.category-group.php:158 +msgid "Category Groups" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:189 +#: 2.8/class/avh-ec.admin.php:186 +msgid "Manually Order" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:190 +#: 3.3/class/avh-ec.admin.php:920 +#: 2.8/class/avh-ec.admin.php:187 +#: 2.8/class/avh-ec.admin.php:950 +msgid "F.A.Q" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:216 +#: 3.3/class/avh-ec.admin.php:437 +#: 2.8/class/avh-ec.admin.php:210 +#: 2.8/class/avh-ec.admin.php:445 +msgid "Group Overview" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:217 +#: 3.3/class/avh-ec.admin.php:881 +#: 2.8/class/avh-ec.admin.php:211 +#: 2.8/class/avh-ec.admin.php:904 +msgid "Translation" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:244 +#: 3.3/class/avh-ec.admin.php:378 +#: 3.3/class/avh-ec.admin.php:906 +#: 2.8/class/avh-ec.admin.php:245 +#: 2.8/class/avh-ec.admin.php:386 +#: 2.8/class/avh-ec.admin.php:936 +msgid "Donations" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:286 +#: 2.8/class/avh-ec.admin.php:287 +msgid "Options" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:315 +#: 2.8/class/avh-ec.admin.php:323 +msgid "<em>Select Category</em> Alternative" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:315 +#: 2.8/class/avh-ec.admin.php:323 +msgid "Alternative text for Select Category." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:316 +#: 2.8/class/avh-ec.admin.php:324 +msgid "Select which group to show on the home page." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:316 +#: 3.3/class/avh-ec.admin.php:317 +#: 3.3/class/avh-ec.admin.php:318 +#: 2.8/class/avh-ec.admin.php:324 +#: 2.8/class/avh-ec.admin.php:325 +#: 2.8/class/avh-ec.admin.php:326 +msgid "Selecting the group 'none' will not show the widget on the page." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:317 +#: 2.8/class/avh-ec.admin.php:325 +msgid "Select which group to show when there is no group associated with the post." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:318 +#: 2.8/class/avh-ec.admin.php:326 +msgid "Select which group will be the default group when editing a post." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:352 +#: 2.8/class/avh-ec.admin.php:360 +msgid "Options saved" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:408 +#: 2.8/class/avh-ec.admin.php:416 +msgid "Save Changes" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:436 +#: 2.8/class/avh-ec.admin.php:444 +msgid "Add Group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:438 +#: 2.8/class/avh-ec.admin.php:446 +msgid "Special Pages" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:467 +#: 3.3/class/avh-ec.admin.php:472 +#: 2.8/class/avh-ec.admin.php:482 +#: 2.8/class/avh-ec.admin.php:487 +msgid "Group Name" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:467 +#: 3.3/class/avh-ec.admin.php:472 +#: 2.8/class/avh-ec.admin.php:482 +#: 2.8/class/avh-ec.admin.php:487 +msgid "The name is used to identify the group." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:468 +#: 3.3/class/avh-ec.admin.php:473 +#: 2.8/class/avh-ec.admin.php:483 +#: 2.8/class/avh-ec.admin.php:488 +msgid "Slug Group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:468 +#: 3.3/class/avh-ec.admin.php:473 +#: 2.8/class/avh-ec.admin.php:483 +#: 2.8/class/avh-ec.admin.php:488 +msgid "The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:469 +#: 3.3/class/avh-ec.admin.php:474 +#: 3.3/class/avh-ec.admin.php:1139 +#: 2.8/class/avh-ec.admin.php:484 +#: 2.8/class/avh-ec.admin.php:489 +#: 2.8/class/avh-ec.admin.php:1169 +msgid "Widget Title" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:469 +#: 3.3/class/avh-ec.admin.php:474 +#: 2.8/class/avh-ec.admin.php:484 +#: 2.8/class/avh-ec.admin.php:489 +msgid "When no title is given in the widget options, this will used as the title of the widget when this group is shown." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:470 +#: 3.3/class/avh-ec.admin.php:475 +#: 3.3/class/avh-ec.admin.php:1139 +#: 2.8/class/avh-ec.admin.php:485 +#: 2.8/class/avh-ec.admin.php:490 +#: 2.8/class/avh-ec.admin.php:1169 +msgid "Description" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:470 +#: 3.3/class/avh-ec.admin.php:475 +#: 2.8/class/avh-ec.admin.php:485 +#: 2.8/class/avh-ec.admin.php:490 +msgid "Description is not prominent by default." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:476 +#: 2.8/class/avh-ec.admin.php:491 +msgid "Select categories to be included in the group." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:492 +#: 2.8/class/avh-ec.admin.php:507 +msgid "Category group saved" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:498 +#: 2.8/class/avh-ec.admin.php:513 +msgid "Category group conflicts with " +msgstr "" + +#: 3.3/class/avh-ec.admin.php:499 +#: 2.8/class/avh-ec.admin.php:514 +msgid "Same slug is used. " +msgstr "" + +#: 3.3/class/avh-ec.admin.php:521 +#: 2.8/class/avh-ec.admin.php:536 +msgid "Edit Group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:533 +#: 2.8/class/avh-ec.admin.php:548 +msgid "Cheatin’ uh?" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:553 +#: 2.8/class/avh-ec.admin.php:568 +msgid "Category group updated" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:557 +#: 2.8/class/avh-ec.admin.php:572 +msgid "Category group not updated" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:558 +#: 2.8/class/avh-ec.admin.php:573 +msgid "Duplicate slug detected" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:562 +#: 2.8/class/avh-ec.admin.php:577 +msgid "Unknown category group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:601 +#: 2.8/class/avh-ec.admin.php:616 +msgid "Home page" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:601 +#: 3.3/class/avh-ec.admin.php:603 +#: 3.3/class/avh-ec.admin.php:604 +#: 3.3/class/avh-ec.admin.php:605 +#: 3.3/class/avh-ec.admin.php:606 +#: 3.3/class/avh-ec.admin.php:607 +#: 2.8/class/avh-ec.admin.php:616 +#: 2.8/class/avh-ec.admin.php:618 +#: 2.8/class/avh-ec.admin.php:619 +#: 2.8/class/avh-ec.admin.php:620 +#: 2.8/class/avh-ec.admin.php:621 +#: 2.8/class/avh-ec.admin.php:622 +#, php-format +msgid "Select which category to show on the %s page." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:601 +#: 2.8/class/avh-ec.admin.php:616 +msgid "home" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:603 +#: 2.8/class/avh-ec.admin.php:618 +msgid "Daily Archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:603 +#: 2.8/class/avh-ec.admin.php:618 +msgid "daily archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:604 +#: 2.8/class/avh-ec.admin.php:619 +msgid "Monthly Archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:604 +#: 2.8/class/avh-ec.admin.php:619 +msgid "monthly archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:605 +#: 2.8/class/avh-ec.admin.php:620 +msgid "Yearly Archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:605 +#: 2.8/class/avh-ec.admin.php:620 +msgid "yearly archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:606 +#: 2.8/class/avh-ec.admin.php:621 +msgid "Author Archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:606 +#: 2.8/class/avh-ec.admin.php:621 +msgid "author archive" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:607 +#: 2.8/class/avh-ec.admin.php:622 +msgid "Search Page" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:607 +#: 2.8/class/avh-ec.admin.php:622 +msgid "search" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:650 +#: 2.8/class/avh-ec.admin.php:665 +msgid "Add group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:699 +#: 2.8/class/avh-ec.admin.php:714 +msgid "Update group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:712 +#: 2.8/class/avh-ec.admin.php:727 +msgid "Save settings" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:723 +#: 3.3/class/avh-ec.admin.php:760 +#: 2.8/class/avh-ec.admin.php:739 +#: 2.8/class/avh-ec.admin.php:784 +msgid "Manually Order Categories" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:812 +msgid "Manual order of the categories successfully updated." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:814 +#: 2.8/class/avh-ec.admin.php:835 +msgid "An error occured, order has not been saved." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:830 +#: 2.8/class/avh-ec.admin.php:853 +msgid "Order the categories" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:839 +#: 2.8/class/avh-ec.admin.php:862 +msgid "Order the categories on this level by dragging and dropping them into the desired order." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:847 +#: 2.8/class/avh-ec.admin.php:870 +msgid "Save Order" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:850 +#: 2.8/class/avh-ec.admin.php:873 +msgid "Return to parent category" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:857 +#: 2.8/class/avh-ec.admin.php:880 +msgid "Select Subcategory" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:862 +#: 2.8/class/avh-ec.admin.php:885 +msgid "Select" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:864 +#: 2.8/class/avh-ec.admin.php:887 +msgid "Choose a category from the drop down to order the subcategories in that category." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:880 +#: 2.8/class/avh-ec.admin.php:903 +msgid "F.A.Q." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:959 +#: 2.8/class/avh-ec.admin.php:989 +msgid "This plugin is translated in several languages. Some of the languages might be incomplete. Please help to complete these translations or add a new language." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:964 +#: 2.8/class/avh-ec.admin.php:994 +msgid "Available Languages" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:979 +#: 2.8/class/avh-ec.admin.php:1009 +msgid "You can visit " +msgstr "" + +#: 3.3/class/avh-ec.admin.php:979 +#: 2.8/class/avh-ec.admin.php:1009 +msgid "to help complete these translations or add a new language." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:992 +#: 2.8/class/avh-ec.admin.php:1022 +msgid "If you enjoy this plug-in please consider a donation. There are several ways you can show your appreciation." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:997 +#: 2.8/class/avh-ec.admin.php:1027 +msgid "If you decide to buy something from Amazon click the button." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1002 +#: 2.8/class/avh-ec.admin.php:1032 +msgid "You can send me something from my " +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1002 +#: 2.8/class/avh-ec.admin.php:1032 +msgid "Amazon Wish List" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1006 +#: 2.8/class/avh-ec.admin.php:1036 +msgid "Through Paypal." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1007 +#: 2.8/class/avh-ec.admin.php:1037 +msgid "Click on the Donate button and you will be directed to Paypal where you can make your donation and you don't need to have a Paypal account to make a donation." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1021 +#: 2.8/class/avh-ec.admin.php:1051 +msgid "What about support?" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1022 +msgid "I created a <a href=\"http://forums.avirtualhome.com\" target=\"_blank\">support site</a> where you can ask questions or request features." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1026 +#: 2.8/class/avh-ec.admin.php:1056 +msgid "What is depth selection?" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1027 +#: 2.8/class/avh-ec.admin.php:1057 +msgid "Starting with version 2.0 and WordPress 2.8 you can select how many levels deep you want to show your categories. This option only works when you select Show Hierarchy as well." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1028 +#: 2.8/class/avh-ec.admin.php:1058 +msgid "Here is how it works: Say you have 5 top level categories and each top level has a number of children. You could manually select all the Top Level categories you want to show but now you can do the following:" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1029 +#: 2.8/class/avh-ec.admin.php:1059 +msgid "You select to display all categories, select to Show hierarchy and select how many levels you want to show, in this case Toplevel only." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1033 +#: 2.8/class/avh-ec.admin.php:1063 +msgid "Multiple Category Groups" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1034 +#: 2.8/class/avh-ec.admin.php:1064 +msgid "The following is an explanation how assigning multiple groups to page/post works." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1035 +#: 2.8/class/avh-ec.admin.php:1065 +msgid "Lets say you have the following groups:" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1037 +#: 2.8/class/avh-ec.admin.php:1067 +msgid "Free Time" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1038 +#: 2.8/class/avh-ec.admin.php:1068 +msgid "Theater" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1039 +#: 2.8/class/avh-ec.admin.php:1069 +msgid "Movie" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1040 +#: 2.8/class/avh-ec.admin.php:1070 +msgid "Music" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1042 +#: 2.8/class/avh-ec.admin.php:1072 +msgid "Setup several Category Group widgets and associated each widget with one or more groups." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1043 +#: 2.8/class/avh-ec.admin.php:1073 +msgid "Widget 1 has association with Free Time" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1044 +#: 2.8/class/avh-ec.admin.php:1074 +msgid "Widget 2 has association with Theater, Movie and Music" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1045 +#: 2.8/class/avh-ec.admin.php:1075 +msgid "Widget 3 has association with Theater, Movie and Music" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1046 +#: 2.8/class/avh-ec.admin.php:1076 +msgid "Page has associations the groups Free Time and Theater" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1048 +#: 3.3/class/avh-ec.admin.php:1060 +#: 2.8/class/avh-ec.admin.php:1078 +#: 2.8/class/avh-ec.admin.php:1090 +msgid "Widget 1: Shows categories of the Free Time group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1049 +#: 2.8/class/avh-ec.admin.php:1079 +msgid "Widget 2: Shows categories of the Theater group." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1050 +#: 3.3/class/avh-ec.admin.php:1056 +#: 2.8/class/avh-ec.admin.php:1080 +#: 2.8/class/avh-ec.admin.php:1086 +msgid "Widget 3: Not displayed" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1052 +#: 2.8/class/avh-ec.admin.php:1082 +msgid "Page has associations the group Movie." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1054 +#: 2.8/class/avh-ec.admin.php:1084 +msgid "Widget 1: Not displayed" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1055 +#: 2.8/class/avh-ec.admin.php:1085 +msgid "Widget 2: Shows categories of the Movie group." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1058 +#: 2.8/class/avh-ec.admin.php:1088 +msgid "Page has associations the groups Free Time, Movie and Music" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1061 +#: 2.8/class/avh-ec.admin.php:1091 +msgid "Widget 2: Shows categories of the Movie or Music group." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1062 +#: 2.8/class/avh-ec.admin.php:1092 +msgid "Widget 3: Shows categories of the Music or Movie group." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1064 +#: 2.8/class/avh-ec.admin.php:1094 +msgid "Whether Widget 2 shows Movie or Music depends on the creation order of groups. If Widget 2 shows Movie, Widget 3 will show Music but if Widget 2 shows Music, Widget 3 will show Movie." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1072 +#: 2.8/class/avh-ec.admin.php:1102 +msgid "PHP4 Support" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1073 +#: 2.8/class/avh-ec.admin.php:1103 +msgid "The next major release of the plugin will no longer support PHP4." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1074 +#: 2.8/class/avh-ec.admin.php:1104 +msgid "It will be written for PHP 5.2 and " +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1076 +#: 2.8/class/avh-ec.admin.php:1106 +msgid "your blog already runs the needed PHP version. When the new release comes out you can safely update." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1078 +#: 2.8/class/avh-ec.admin.php:1108 +msgid "your blog still runs PHP4. When the new release comes out you can not use it." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1079 +#: 2.8/class/avh-ec.admin.php:1109 +msgid "I don't have a timeline for the next version but consider contacting your host if PHP 5.2 is available." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1080 +#: 2.8/class/avh-ec.admin.php:1110 +msgid "If your hosts doesn't offer PHP 5.2 you might want to consider switching hosts." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1081 +#: 2.8/class/avh-ec.admin.php:1111 +msgid "A host to consider is " +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1082 +#: 2.8/class/avh-ec.admin.php:1112 +msgid "I run my personal blog there and I am very happy with their services. You can get an account with unlimited bandwidth, storage and much more for a low price." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1124 +#: 2.8/class/avh-ec.admin.php:1154 +msgid "Settings" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1139 +#: 2.8/class/avh-ec.admin.php:1169 +msgid "Categories in the group" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1156 +#: 2.8/class/avh-ec.admin.php:1186 +#, php-format +msgid "Your attempt to delete this group: “%s” has failed." +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1218 +#: 2.8/class/avh-ec.admin.php:1248 +#, php-format +msgid "Edit “%s”" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1220 +#: 2.8/class/avh-ec.admin.php:1250 +msgid "Edit" +msgstr "" + +#: 3.3/class/avh-ec.admin.php:1225 +#: 2.8/class/avh-ec.admin.php:1255 +msgid "Delete" +msgstr "" + +#: 3.3/class/avh-ec.core.php:448 +#: 3.3/class/avh-ec.core.php:450 +#: 2.8/class/avh-ec.core.php:448 +#: 2.8/class/avh-ec.core.php:450 +msgid "No categories" +msgstr "" + +#: 3.3/class/avh-ec.core.php:661 +#: 2.8/class/avh-ec.core.php:660 +#, php-format +msgid "View all posts filed under %s" +msgstr "" + +#: 3.3/class/avh-ec.core.php:676 +#: 2.8/class/avh-ec.core.php:675 +#, php-format +msgid "Feed for all posts filed under %s" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Search Category Groups" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Popular Category Groups" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "All Category Groups" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Parent Category Group" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Parent Category Group:" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Edit Category Group" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Update Category Group" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "Add New Category Group" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:111 +#: 2.8/class/avh-ec.category-group.php:111 +msgid "New Category Group Name" +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:127 +#: 2.8/class/avh-ec.category-group.php:127 +msgid "This group will not show the widget." +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:128 +#: 2.8/class/avh-ec.category-group.php:128 +msgid "Holds all the categories." +msgstr "" + +#: 3.3/class/avh-ec.category-group.php:129 +#: 2.8/class/avh-ec.category-group.php:129 +msgid "This group will be shown on the front page." +msgstr "" + +#: 2.8/class/avh-ec.admin.php:244 +#: 2.8/class/avh-ec.admin.php:935 +msgid "Announcements" +msgstr "" + +#: 2.8/class/avh-ec.admin.php:833 +msgid "Categories updated successfully." +msgstr "" + +#: 2.8/class/avh-ec.admin.php:1052 +msgid "I created a support site at http://forums.avirtualhome.com where you can ask questions or request features." +msgstr "" + diff --git a/wp-content/plugins/extended-categories-widget/libs/avh-common.php b/wp-content/plugins/extended-categories-widget/libs/avh-common.php new file mode 100755 index 000000000..de420bc16 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/libs/avh-common.php @@ -0,0 +1,100 @@ +<?php +if (! defined('AVH_FRAMEWORK')) + die('You are not allowed to call this page directly.'); +if (! class_exists('AVH_Common')) { + + final class AVH_Common + { + + /** + * Sends the email + * + */ + public static function sendMail ($to, $subject, $message, $footer = array()) + { + $message = array_merge($message, $footer); + $msg = ''; + foreach ($message as $line) { + $msg .= $line . "\r\n"; + } + wp_mail($to, $subject, $msg); + return; + } + + /** + * Returns the wordpress version + * Note: 2.7.x will return 2.7 + * + * @return float + */ + public static function getWordpressVersion () + { + static $_version = null; + if (! isset($_version)) { + // Include WordPress version + require (ABSPATH . WPINC . '/version.php'); + $_version = (float) $wp_version; + } + return $_version; + } + + /** + * Determines if the current version of PHP is greater then the supplied value + * + * @param string + * @return bool + */ + public static function isPHP ($version = '5.0.0') + { + static $_is_php = null; + $version = (string) $version; + if (! isset($_is_php[$version])) { + $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? false : true; + } + return $_is_php[$version]; + } + + /** + * Get the base directory of a directory structure + * + * @param string $directory + * @return string + * + */ + public static function getBaseDirectory ($directory) + { + //get public directory structure eg "/top/second/third" + $public_directory = dirname($directory); + //place each directory into array + $directory_array = explode('/', $public_directory); + //get highest or top level in array of directory strings + $public_base = max($directory_array); + return $public_base; + } + + /** + * This function will take an IP address or IP number in almost any format (that I can think of) and will return it's decimal unsigned equivalent, as a string. + * Kind => Input => Return => long2ip(Return) + * DottedQuadDec => 192.168.255.109 => 3232300909 => 192.168.255.109 + * PosIntStr => 3232300909 => 3232300909 => 192.168.255.109 + * NegIntStr => -1062666387 => 3232300909 => 192.168.255.109 + * PosInt => 3232300909 => 3232300909 => 192.168.255.109 + * NegInt => -1062666387 => 3232300909 => 192.168.255.109 + * DottedQuadHex => 0xc0.0xA8.0xFF.0x6D => 0 => 0.0.0.0 + * DottedQuadOct => 0300.0250.0377.0155 => 0 => 0.0.0.0 + * HexIntStr => 0xC0A8FF6D => 0 => 0.0.0.0 + * HexInt => 3232300909 => 3232300909 => 192.168.255.109 + * + * @param string/numeric $ip + */ + public static function getIp2long ($ip) + { + if (is_numeric($ip)) { + $return = sprintf("%u", floatval($ip)); + } else { + $return = sprintf("%u", floatval(ip2long($ip))); + } + return $return; + } + } +} diff --git a/wp-content/plugins/extended-categories-widget/libs/avh-db.php b/wp-content/plugins/extended-categories-widget/libs/avh-db.php new file mode 100755 index 000000000..3b173ddb3 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/libs/avh-db.php @@ -0,0 +1,67 @@ +<?php +if (! defined('AVH_FRAMEWORK')) + die('You are not allowed to call this page directly.'); +if (! class_exists('AVH_DB')) { + + final class AVH_DB + { + + /** + * Fetch MySQL Field Names + * + * @access public + * @param string the table name + * @return array + */ + public function getFieldNames ($table = '') + { + global $wpdb; + + $retval = wp_cache_get('field_names_' . $table, 'avhec'); + if (false === $retval) { + $sql = $this->_getQueryShowColumns($table); + + $result = $wpdb->get_results($sql, ARRAY_A); + + $retval = array (); + foreach ($result as $row) { + if (isset($row['Field'])) { + $retval[] = $row['Field']; + } + } + wp_cache_set('field_names_' . $table, $retval,'avhec',3600); + } + + return $retval; + } + + /** + * Determine if a particular field exists + * @access public + * @param string + * @param string + * @return boolean + */ + public function field_exists ($field_name, $table_name) + { + return (in_array($field_name, $this->getFieldNames($table_name))); + } + + /** + * Show column query + * + * Generates a platform-specific query string so that the column names can be fetched + * + * @access public + * @param string the table name + * @return string + */ + private function _getQueryShowColumns ($table = '') + { + global $wpdb; + return $wpdb->prepare('SHOW COLUMNS FROM ' . $table); + + } + } +} + diff --git a/wp-content/plugins/extended-categories-widget/libs/avh-registry.php b/wp-content/plugins/extended-categories-widget/libs/avh-registry.php new file mode 100755 index 000000000..a24b91176 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/libs/avh-registry.php @@ -0,0 +1,144 @@ +<?php +if (! defined('AVH_FRAMEWORK')) + die('You are not allowed to call this page directly.'); +if (! class_exists('AVH_Settings_Registry')) { + + abstract class AVH_Settings_Registry + { + /** + * Our array of settings + * @access protected + */ + private $_settings = array (); + + /** + * Stores settings in the registry + * @param string $data + * @param string $key The key for the array + * @return void + */ + public function storeSetting ($key, $data) + { + $this->_settings[$key] = $data; + $this->$key = $data; + } + + /** + * Gets a setting from the registry + * @param string $key The key in the array + * @return mixed + */ + public function getSetting ($key) + { + return $this->_settings[$key]; + } + + /** + * Removes a setting from the registry + * @param string $key The key for the array + */ + public function removeSetting ($key) + { + unset($this->_settings[$key]); + } + } +} +if (! class_exists('AVH_Class_Registry')) { + + /** + * Class registry + * + */ + abstract class AVH_Class_Registry + { + /** + * Our array of objects + * @access protected + * @var array + */ + private $_objects = array (); + private $_dir; + private $_class_file_prefix; + private $_class_name_prefix; + + /** + * Loads a class + * + * @param string $class Name of the class you want to load + * @param string $type What kind of class, System, Plugin + * @param boolean $store Store the class in the registry + * @return object + */ + public function load_class ($class, $type = 'system', $store = false) + { + if (isset($this->_objects[$class])) { + return ($this->_objects[$class]); + } + switch ($type) { + case 'plugin': + $in = '/class'; + $file = $this->_class_file_prefix . $class . '.php'; + break; + case 'system': + default: + $in = '/libs'; + $file = 'avh-' . $class . '.php'; + } + require_once ($this->_dir . $in . '/' . strtolower($file)); + $name = ('system' == $type) ? 'AVH_' . $class : $this->_class_name_prefix . $class; + $object = $this->instantiate_class(new $name()); + if ($store) { + $this->_objects[$class] = $object; + } + return $object; + } + + /** + * Instantiate Class + * + * Returns a new class object by reference, used by load_class() and the DB class. + * Required to make PHP 5.3 cry. + * + * Use: $obj =& instantiate_class(new Foo()); + * + * @access public + * @param object + * @return object + */ + protected function instantiate_class (&$class_object) + { + return $class_object; + } + + /** + * @param $dir the $dir to set + */ + public function setDir ($dir) + { + $this->_dir = $dir; + } + + /** + * @param $class Unique Identifier + * @param $class_prefix the $class_prefix to set + */ + public function setClassFilePrefix ($class_prefix) + { + $this->_class_file_prefix = $class_prefix; + } + + /** + * @param $class Unique Identifier + * @param $class_name_prefix the $class_name_prefix to set + */ + public function setClassNamePrefix ($class_name_prefix) + { + $this->_class_name_prefix = $class_name_prefix; + } + + public function setClassProperties ($properties) + { + $default_properties = array ( 'type' => 'system', 'store' => false ); + } + } +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/libs/avh-security.php b/wp-content/plugins/extended-categories-widget/libs/avh-security.php new file mode 100755 index 000000000..36bc02a8f --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/libs/avh-security.php @@ -0,0 +1,47 @@ +<?php +if (! defined('AVH_FRAMEWORK')) + die('You are not allowed to call this page directly.'); +if (! class_exists('AVH_Security')) { + + final class AVH_Security + { + + /** + * Local nonce creation. WordPress uses the UID and sometimes I don't want that + * Creates a random, one time use token. + * + * @param string|int $action Scalar value to add context to the nonce. + * @return string The one use form token + * + */ + public static function createNonce ($action = -1) + { + $i = wp_nonce_tick(); + return substr(wp_hash($i . $action, 'nonce'), - 12, 10); + } + + /** + * Local nonce verification. WordPress uses the UID and sometimes I don't want that + * Verify that correct nonce was used with time limit. + * + * The user is given an amount of time to use the token, so therefore, since the + * $action remain the same, the independent variable is the time. + * + * @param string $nonce Nonce that was used in the form to verify + * @param string|int $action Should give context to what is taking place and be the same when nonce was created. + * @return bool Whether the nonce check passed or failed. + */ + public static function verifyNonce ($nonce, $action = -1) + { + $r = false; + $i = wp_nonce_tick(); + // Nonce generated 0-12 hours ago + if (substr(wp_hash($i . $action, 'nonce'), - 12, 10) == $nonce) { + $r = 1; + } elseif (substr(wp_hash(($i - 1) . $action, 'nonce'), - 12, 10) == $nonce) { // Nonce generated 12-24 hours ago + $r = 2; + } + return $r; + } + } +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/libs/avh-visitor.php b/wp-content/plugins/extended-categories-widget/libs/avh-visitor.php new file mode 100755 index 000000000..6906a2bc9 --- /dev/null +++ b/wp-content/plugins/extended-categories-widget/libs/avh-visitor.php @@ -0,0 +1,60 @@ +<?php +if (! defined('AVH_FRAMEWORK')) + die('You are not allowed to call this page directly.'); +if (! class_exists('AVH_Visitor')) { + + final class AVH_Visitor + { + + /** + * Get the user's IP + * + * @return string + */ + public static function getUserIp () + { + $ip = array (); + foreach (array ( 'HTTP_CF_CONNECTING_IP', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', + 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR' ) as $key) { + if (array_key_exists($key, $_SERVER) === true) { + foreach (explode(',', $_SERVER[$key]) as $visitors_ip) { + $ip[] = str_replace(' ', '', $visitors_ip); + } + } + } + // If for some strange reason we don't get an IP we return imemdiately with 0.0.0.0 + if (empty($ip)) { + return '0.0.0.0'; + } + $ip = array_values(array_unique($ip)); + $return = null; + // In PHP 5.3 and up the function filter_var can be used, much quicker as the regular expression check + if (AVH_Common::isPHP('5.3')) { + foreach ($ip as $i) { + if (filter_var($i, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE)) { + $return = $i; + break; + } + } + } else { + $dec_octet = '(?:\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])'; + $ip4_address = $dec_octet . '.' . $dec_octet . '.' . $dec_octet . '.' . $dec_octet; + $match = array (); + foreach ($ip as $i) { + if (preg_match('/^' . $ip4_address . '$/', $i, $match)) { + if (preg_match('/^(127\.|10\.|192\.168\.|172\.((1[6-9])|(2[0-9])|(3[0-1]))\.)/', $i)) { + continue; + } else { + $return = $i; + break; + } + } + } + } + if (null === $return) { + $return = '0.0.0.0'; + } + return $return; + } + } +} \ No newline at end of file diff --git a/wp-content/plugins/extended-categories-widget/readme.txt b/wp-content/plugins/extended-categories-widget/readme.txt index 2c880e98f..9be820d6a 100644 --- a/wp-content/plugins/extended-categories-widget/readme.txt +++ b/wp-content/plugins/extended-categories-widget/readme.txt @@ -3,8 +3,8 @@ Contributors: petervanderdoes Donate link: http://blog.avirtualhome.com/wordpress-plugins/ Tags: extended, categories, widget, top categories Requires at least: 2.3 -Tested up to: 3.2.1 -Stable tag: 3.4.2 +Tested up to: 3.3 +Stable tag: 3.6.4 The AVH Extended Categories Widgets gives you three widgets for displaying categories. == Description == @@ -25,7 +25,7 @@ The replacement widget gives you the following customizable options: * Hide empty categories. * Show categories hierarchical. * Show categories up to a certain depth. (Requires WordPress 2.8 or higher). -* Sort by ID, Name, Count, Slug. +* Sort by ID, Name, Count, Slug or manual order (Requires WordPress 3.3 or higher). * Sort ascending or descending. * Show RSS link after the category as text or image. * Select which categories to show. (Requires WordPress 2.5.1 or higher). @@ -72,7 +72,7 @@ Translations: * Swedish - Svenska (sv_SE) * Turkish - Türkçe (tr) -Some of the translations are incomplete. You can complete them or add your own language through [Launchpad](https://translations.launchpad.net/avhextendedcategories/trunk) +Some of the translations are incomplete. Currently we're in the middle of changing the way you can help with translations. Keep an eye on the [website](http:///blog.avirtualhome.com) for the announcement. == Installation == @@ -134,9 +134,31 @@ Whether Widget 2 shows Movie or Music depends on the creation order of groups. I None == Changelog == += Version 3.6.4 = +* Bugfix: Problem with categories not showing up when showing dropdown categories. + += Version 3.6.3 = +* Bugfix: Problem with url's on Windows platform. + += Version 3.6.2 = +* Bugfix: Another problem related to WordPress prior 3.3 + += Version 3.6.1 = +* Bugfix: Problem with a flat display of categories. +* Bugfix: Problem loading the plugin on WordPress 3.2.x + += Version 3.6 = +* Adds Manual Order option. No need for 3rd party plugin anymore. This only works in WordPress 3.3.x +* Speed up the creation of the categories checklist in the widgets. + += Version 3.5.1 = +* Bugfix: The columns in the admin section don't save, making certain columns disappear. + += Version 3.5 = +* RFC: Adds the ability for the widgets to sort the categories as set with plugin My Category Order. This plugin allows to order categories manually. + = Version 3.4.2 = * Bugfix: Fails to display the Category Group Widget when the widget is to display any group. -* Foo line = Version 3.4.1 = * Bugfix: Problems with multiple category group widgets. diff --git a/wp-content/plugins/extended-categories-widget/widget-pre2.8.php b/wp-content/plugins/extended-categories-widget/widget-pre2.8.php index 2c52bf4d1..85ce33d2b 100644 --- a/wp-content/plugins/extended-categories-widget/widget-pre2.8.php +++ b/wp-content/plugins/extended-categories-widget/widget-pre2.8.php @@ -9,7 +9,7 @@ function widget_extended_categories_init () function widget_extended_categories ($args, $number = 1) { - $version = '3.4.2'; + $version = '3.6.4'; // Check for version require (ABSPATH . WPINC . '/version.php'); if (version_compare($wp_version, '2.5.1', '<')) { diff --git a/wp-content/plugins/extended-categories-widget/widget_extended_categories.php b/wp-content/plugins/extended-categories-widget/widget_extended_categories.php index c0fb19d2a..771a63825 100644 --- a/wp-content/plugins/extended-categories-widget/widget_extended_categories.php +++ b/wp-content/plugins/extended-categories-widget/widget_extended_categories.php @@ -3,11 +3,11 @@ Plugin Name: AVH Extended Categories Widgets Plugin URI: http://blog.avirtualhome.com/wordpress-plugins Description: Replacement of the category widget to allow for greater customization of the category widget. -Version: 3.4.2 +Version: 3.6.4 Author: Peter van der Does Author URI: http://blog.avirtualhome.com/ -Copyright 2008 Peter van der Does (email : peter@avirtualhome.com) +Copyright 2012 Peter van der Does (email : peter@avirtualhome.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,24 +23,47 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - -// Include WordPress version +if (! defined('AVH_FRAMEWORK')) { + define('AVH_FRAMEWORK', true); +} require (ABSPATH . WPINC . '/version.php'); +$_avhec_version = (float) $wp_version; + +if ($_avhec_version >= 2.8) { + $_avhec_abs_dir = dirname(__FILE__); -$_basename = plugin_basename(__FILE__); -$dir = current(explode('/', $_basename)); + require_once ($_avhec_abs_dir . '/libs/avh-registry.php'); + require_once ($_avhec_abs_dir . '/libs/avh-common.php'); + require_once ($_avhec_abs_dir . '/libs/avh-security.php'); + require_once ($_avhec_abs_dir . '/libs/avh-visitor.php'); + require_once ($_avhec_abs_dir . '/libs/avh-db.php'); + switch ($_avhec_version) { + case ($_avhec_version >= 2.8 && $_avhec_version < 3.3): + $_avhec_version_dir = '/2.8'; + break; + case ($_avhec_version >= 3.3): + $_avhec_version_dir = '/3.3'; + break; + } -define('AVHEC_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . $dir); -define('AVHEC_PLUGIN_NAME', $_basename); + $_avhec_dir = basename($_avhec_abs_dir); + $_avhec_url = plugins_url() . '/'. $_avhec_dir; -if ((float) $wp_version >= 2.8) { - define('AVHEC_PLUGIN_URL', WP_PLUGIN_URL . '/' . $dir . '/2.8'); - define('AVHEC_ABSOLUTE_WORKING_DIR', AVHEC_PLUGIN_DIR . '/2.8'); - define('AVHEC_RELATIVE_WORKING_DIR', $dir . '/2.8'); - unset($dir); + define('AVHEC_PLUGIN_DIR', $_avhec_abs_dir); + define('AVHEC_RELATIVE_PLUGIN_DIR', $_avhec_dir); + define('AVHEC_PLUGIN_URL', $_avhec_url . $_avhec_version_dir); + define('AVHEC_ABSOLUTE_WORKING_DIR', AVHEC_PLUGIN_DIR . $_avhec_version_dir); + define('AVHEC_RELATIVE_WORKING_DIR', $_avhec_dir . $_avhec_version_dir); + + unset($_avhec_version); + unset($_avhec_dir); + unset($_avhec_abs_dir); + unset($_avhec_version_dir); + unset($_avhec_url); require (AVHEC_ABSOLUTE_WORKING_DIR . '/avh-ec.client.php'); + } else { require_once 'widget-pre2.8.php'; } -?> +?> \ No newline at end of file -- GitLab