Commit df798a4b authored by Erick Hitter's avatar Erick Hitter

Bump WP and PHP compat

parent 6b84b7dc
Pipeline #780 passed with stages
in 2 minutes and 54 seconds
# Taxonomy List Widget #
**Contributors:** ethitter
**Donate link:** https://ethitter.com/donate/
**Tags:** tag, tags, taxonomy, sidebar, widget, widgets, list
**Requires at least:** 2.8
**Tested up to:** 5.2
**Stable tag:** 1.3.1
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
Creates a list (bulleted, number, or custom) of non-hierarchical taxonomies as an alternative to the term (tag) cloud. Formerly known as Tag List Widget.
## Description ##
Creates lists of non-hierarchical taxonomies (such as `post tags`) as an alternative to term (tag) clouds. Multiple widgets can be used, each with its own set of options.
Numerous formatting options are provided, including maximum numbers of terms, term order, truncating of term names, and more. List styles are fully customizable, with built-in support for bulleted lists and numbered lists.
Using the `taxonomy_list_widget` function, users can generate lists for use outside of the included widget.
**Only use version 1.2 or higher with WordPress 4.2 and later releases.** WordPress 4.2 changed how taxonomy information is stored in the database, which directly impacts this plugin's include/exclude term functionality.
This plugin was formerly known as the `Tag List Widget`. It was completely rewritten for version 1.0.
## Installation ##
1. Upload taxonomy-list-widget.php to /wp-content/plugins/.
2. Activate plugin through the WordPress Plugins menu.
3. Activate widget from the Appearance > Widgets menu in WordPress.
4. Set display options from the widget's administration panel.
## Frequently Asked Questions ##
### What happened to the Tag List Widget plugin? ###
Since I first wrote the Tag Dropdown Widget plugin upon which this plugin is based (in November 2009), WordPress introduced custom taxonomies and, as more-fully discussed below, saw a new widgets API overtake its predecessor. As part of the widgets-API-related rewrite, I expanded the plugin to support non-hierarchical custom taxonomies, which necessitated a new name for the plugin.
### Why did you rewrite the plugin? ###
When I first wrote the Tag Dropdown Widget plugin, which I later forked to create the Tag List Widget plugin, WordPress was amidst a change in how widgets were managed. I decided to utilize the old widget methods to ensure the greatest compatibility at the time. In the nearly two years since I released the first version of this plugin, the new widget system has been widely adopted, putting this plugin at a disadvantage. So, I rewrote the plugin to use the new widget API and added support for non-hierarchical taxonomies other than just post tags.
### I upgraded to version 1.0 and all of my widgets disappeared. What happened? ###
As discussed above, WordPress' widget system has changed drastically since I first released this plugin. To facilitate multiple uses of the same widget while allowing each to maintain its own set of options, the manner for storing widget options changed. As a result, there is no practical way to transition a widget's options from version 0.3.1 to 1.0.
### If my theme does not support widgets, or I would like to include the list outside of the sidebar, can I still use the plugin? ###
Insert the function `<?php if( function_exists( 'taxonomy_list_widget' ) ) echo taxonomy_list_widget( $args, $id ); ?>` where the list should appear, specifying `$args` as an array of arguments and, optionally, `$id` as a string uniquely identifying this list.
* taxonomy - slug of taxonomy for list. Defaults to `post_tag`.
* select_name - name of first (default) option in the list. Defaults to `Select Tag`.
* max_name_length - integer representing maximum length of term name to display. Set to `0` to show full names. Defaults to `0`.
* cutoff - string indicating that a term name has been cutoff based on the `max_name_length` setting. Defaults to an ellipsis (`&hellip;`).
* limit - integer specifying maximum number of terms to retrieve. Set to `0` for no limit. Defaults to `0`.
* orderby - either `name` to order by term name or `count` to order by the number of posts associated with the given term. Defaults to `name`.
* order - either `ASC` for ascending order or `DESC` for descending order. Defaults to `ASC`.
* threshold - integer specifying the minimum number of posts to which a term must be assigned to be included in the list. Set to `0` for now threshold. Defaults to `0`.
* incexc - `include` or `exclude` to either include or exclude the terms whose IDs are included in `incexc_ids`. By default, this restriction is not enabled.
* incexc_ids - comma-separated list of term IDs to either include or exclude based on the `incexc` setting.
* hide_empty - set to `false` to include in the list any terms that haven't been assigned to any objects (i.e. unused tags). Defaults to `true`.
* post_counts - set to `true` to include post counts after term names. Defaults to `false`.
* delimiter - sets list style. Native options are `ul`, `ol`, and `nl` for bulleted list, numbered list, and line breaks, respectively. By passing an array with keys `before_list`, `after_list`, `before_item`, and `after_item`, you can completely customize the list style.
* rel - either `dofollow` or `nofollow`. Can still use `taxonomy_list_widget_link_rel` filter to specify link relationship.
### Why is the TLW_direct() function deprecated? ###
Version 1.0 represents a complete rewrite of the original Tag List Widget plugin. As part of the rewrite, all prior functions for generating tag lists were deprecated, or marked as obsolete, because they are unable to access the full complement of features introduced in version 1.0. While the functions still exist, their capabilities are extremely limited and they should not be replaced with `taxonomy_list_widget()`.
### Where do I obtain a term's ID for use with the inclusion or exclusion options? ###
Term IDs can be obtained in a variety of ways. The easiest is to visit the taxonomy term editor (Post Tags, found under Posts, for example) and, while hovering over the term's name, looking at your browser's status bar. At the very end of the address shown in the status bar, the term ID will follow the text "tag_ID."
You can also obtain the term ID by clicking the edit link below any term's name in the Post Tags page. Next, look at your browser's address bar. At the very end of the address, the term ID will follow the text "tag_ID."
### I'd like more control over the tags shown in the list. Is this possible? ###
This plugin relies on WordPress' `get_terms` function (http://codex.wordpress.org/Function_Reference/get_terms). To modify the arguments passed to this function, use the `taxonomy_list_widget_options` filter to specify any of the arguments discussed in the Codex page for `get_terms`.
To make targeting a specific filter reference possible should you use multiple instances of the list (multiple widgets, use of the `taxonomy_list_widget` function, or some combination thereof), the filter provides a second argument, `$id`, that is either the numeric ID of the widget's instance or the string provided as the second argument to `taxonomy_list_widget`.
## Changelog ##
### 1.3.1 ###
* PHP 7.3 compatibility
### 1.3 ###
* Update for WordPress 4.3 by removing PHP4-style widget constructor usage (https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/).
### 1.2 ###
* Update for WordPress 4.2 to handle term splitting in the plugin's include/exclude functionality. Details at https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/.
### 1.1.2 ###
* Correct problem in WordPress 3.3 and higher that resulted in an empty taxonomy dropdown.
* Remove all uses of PHP short tags.
### 1.1.1 ###
* Allow empty title in widget options. If empty, the `taxonomy_list_widget_title` filter isn't run.
### 1.1 ###
* Provide control over link relationship (`dofollow` and `nofollow`) in widget. This capability is still available via the `taxonomy_list_widget_link_rel` filter.
### 1.0.1 ###
* Fix fatal error in older WordPress versions resulting from PHP4 and PHP5 constructors existing in widget class.
### 1.0.0.2 ###
* Fix bug in post count threshold that resulted in no terms being listed.
### 1.0.0.1 ###
* Fix fatal error
### 1.0 ###
* Completely rewritten plugin to use WordPress' newer Widgets API.
* Drop support for WordPress 2.7 and earlier.
* Add support for all public, non-hierarchical custom taxonomies, in addition to Post Tags.
* Introduce new, more flexible function for manually generating lists.
* Fixed persistent bugs in the include/exclude functionality.
* Widget admin is translation-ready.
### 0.3.1 ###
* Replace id on list items with class.
### 0.3 ###
* Reduced variables stored in database to two.
### 0.2 ###
* Added function `TLW_direct`
## Upgrade Notice ##
### 1.3.1 ###
Now compatible with PHP 7.3.
### 1.3 ###
Updated for WordPress 4.3. Removed PHP4-style widget constructor usage (https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/).
### 1.2 ###
Updated for WordPress 4.2. Only version 2.2 or higher should be used with WordPress 4.2 or higher, otherwise included/excluded terms may reappear in dropdowns. This is due to WordPress splitting shared terms, as detailed at https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/.
### 1.1.2 ###
Corrects a problem in WordPress 3.3 and higher that resulted in an empty taxonomy dropdown. Also removes all uses of PHP short tags.
### 1.1.1 ###
Allows empty title in widget options. If empty, the `taxonomy_list_widget_title` filter isn't run.
### 1.1 ###
Adds control over link relationship (`dofollow` and `nofollow`) in the widgets' options. This capability is still available via the `taxonomy_list_widget_link_rel` filter.
### 1.0.1 ###
Fixes a backwards-compatibility problem in the widget class that generated fatal errors in WordPress 3.0 and earlier.
### 1.0.0.2 ###
Fixes a minor bug in the post count threshold setting.
### 1.0.0.1 ###
Corrects fatal error in plugin.
### 1.0 ###
The plugin was renamed, completely rewritten, and drops support for WordPress 2.7 and earlier. Upgrading will delete all of your existing widgets; see the FAQ for an explanation. Review the changelog and FAQ for more information.
# Copyright (C) 2019
# This file is distributed under the same license as the package.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/tag-list-widget\n"
"POT-Creation-Date: 2019-04-14 02:46:43+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"X-Generator: grunt-wp-i18n 0.5.4\n"
"X-Poedit-KeywordsList: "
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Country: United States\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-Bookmarks: \n"
"X-Textdomain-Support: yes\n"
#: taxonomy-list-widget.php:526
msgid "Basic Settings"
msgstr ""
#: taxonomy-list-widget.php:529
msgid "Taxonomy"
msgstr ""
#: taxonomy-list-widget.php:538
msgid "Title:"
msgstr ""
#: taxonomy-list-widget.php:542
msgid "List Style"
msgstr ""
#: taxonomy-list-widget.php:545
msgid "Bulleted list"
msgstr ""
#: taxonomy-list-widget.php:546
msgid "Numbered list"
msgstr ""
#: taxonomy-list-widget.php:547
msgid "Line break"
msgstr ""
#: taxonomy-list-widget.php:548
msgid "Custom, as specified below"
msgstr ""
#: taxonomy-list-widget.php:551
msgid "Custom list style"
msgstr ""
#: taxonomy-list-widget.php:573
msgid "Order"
msgstr ""
#: taxonomy-list-widget.php:576
msgid "Order terms by:"
msgstr ""
#: taxonomy-list-widget.php:579
msgid "Name"
msgstr ""
#: taxonomy-list-widget.php:582
msgid "Post count"
msgstr ""
#: taxonomy-list-widget.php:586
msgid "Order terms:"
msgstr ""
#: taxonomy-list-widget.php:589
msgid "Ascending"
msgstr ""
#: taxonomy-list-widget.php:592
msgid "Descending"
msgstr ""
#: taxonomy-list-widget.php:595
msgid "Term Display"
msgstr ""
#: taxonomy-list-widget.php:598
msgid "Limit number of terms shown to:"
msgstr ""
#: taxonomy-list-widget.php:600
msgid "<small>Enter <strong>0</strong> for no limit."
msgstr ""
#: taxonomy-list-widget.php:604
msgid "Trim long term names to <em>x</em> characters:</label>"
msgstr ""
#: taxonomy-list-widget.php:606
msgid "<small>Enter <strong>0</strong> to show full tag names."
msgstr ""
#: taxonomy-list-widget.php:610
msgid "Indicator that term names are trimmed:"
msgstr ""
#: taxonomy-list-widget.php:612
msgid "<small>Leave blank to use an elipsis (&hellip;).</small>"
msgstr ""
#: taxonomy-list-widget.php:617
msgid "Include terms that aren't assigned to any objects (empty terms)."
msgstr ""
#: taxonomy-list-widget.php:622
msgid "Display object (post) counts after term names."
msgstr ""
#: taxonomy-list-widget.php:625
msgid "Include/Exclude Terms"
msgstr ""
#: taxonomy-list-widget.php:628
msgid "Include/exclude terms:"
msgstr ""
#: taxonomy-list-widget.php:631
msgid "Include only the term IDs listed below"
msgstr ""
#: taxonomy-list-widget.php:634
msgid "Exclude the term IDs listed below"
msgstr ""
#: taxonomy-list-widget.php:638
msgid "Term IDs to include/exclude based on above setting:"
msgstr ""
#: taxonomy-list-widget.php:640
msgid "<small>Enter comma-separated list of term IDs.</small>"
msgstr ""
#: taxonomy-list-widget.php:643
msgid "Advanced"
msgstr ""
#: taxonomy-list-widget.php:646
msgid "Show terms assigned to at least this many posts:"
msgstr ""
#: taxonomy-list-widget.php:648
msgid ""
"<small>Set to <strong>0</strong> to display all terms matching the above "
"criteria.</small>"
msgstr ""
#: taxonomy-list-widget.php:652
msgid "Link relationship:"
msgstr ""
#: taxonomy-list-widget.php:655
msgid "nofollow"
msgstr ""
#: taxonomy-list-widget.php:658
msgid "dofollow"
msgstr ""
#: taxonomy-list-widget.php:660
msgid ""
"The above setting determines whether or not search engines visit linked "
"pages from links in this widget's list."
msgstr ""
\ No newline at end of file
......@@ -3,8 +3,8 @@ Contributors: ethitter
Donate link: https://ethitter.com/donate/
Tags: tag, tags, taxonomy, sidebar, widget, widgets, list
Requires at least: 2.8
Tested up to: 4.6
Stable tag: 1.3
Tested up to: 5.2
Stable tag: 1.3.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
......@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i
== Changelog ==
= 1.3.1 =
* PHP 7.3 compatibility
= 1.3 =
* Update for WordPress 4.3 by removing PHP4-style widget constructor usage (https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/).
......@@ -124,6 +127,9 @@ To make targeting a specific filter reference possible should you use multiple i
== Upgrade Notice ==
= 1.3.1 =
Now compatible with PHP 7.3.
= 1.3 =
Updated for WordPress 4.3. Removed PHP4-style widget constructor usage (https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/).
......
......@@ -4,7 +4,7 @@ Plugin Name: Taxonomy List Widget
Plugin URI: https://ethitter.com/plugins/taxonomy-list-widget/
Description: Creates a list of non-hierarchical taxonomies as an alternative to the term (tag) cloud. Widget provides numerous options to tailor the output to fit your site. List function can also be called directly for use outside of the widget. Formerly known as <strong><em>Tag List Widget</em></strong>.
Author: Erick Hitter
Version: 1.3
Version: 1.3.1
Author URI: https://ethitter.com/
This program is free software; you can redistribute it and/or modify
......@@ -523,10 +523,10 @@ class taxonomy_list_widget extends WP_Widget {
unset( $taxonomies[ 'post_format' ] );
?>
<h3><?php _e( 'Basic Settings' ); ?></h3>
<h3><?php _e( 'Basic Settings', 'taxonomy_list_widget' ); ?></h3>
<p>
<label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy' ); ?>:</label><br />
<label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy', 'taxonomy_list_widget' ); ?>:</label><br />
<select name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>">
<?php foreach( $taxonomies as $tax ): ?>
<option value="<?php echo esc_attr( $tax->name ); ?>"<?php selected( $tax->name, $taxonomy, true ); ?>><?php echo $tax->labels->name; ?></option>
......@@ -535,20 +535,20 @@ class taxonomy_list_widget extends WP_Widget {
</p>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'taxonomy_list_widget' ); ?></label><br />
<input type="text" name="<?php echo $this->get_field_name( 'title' ); ?>" class="widefat code" id="<?php echo $this->get_field_id( 'title' ); ?>" value="<?php echo esc_attr( $title ); ?>" />
</p>
<h3><?php _e( 'List Style' ); ?></h3>
<h3><?php _e( 'List Style', 'taxonomy_list_widget' ); ?></h3>
<p>
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-ul' ); ?>" value="ul"<?php checked( 'ul', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-ul' ); ?>"><?php _e( 'Bulleted list' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-ol' ); ?>" value="ol"<?php checked( 'ol', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-ol' ); ?>"><?php _e( 'Numbered list' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-nl' ); ?>" value="nl"<?php checked( 'nl', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-nl' ); ?>"><?php _e( 'Line break' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-custom' ); ?>" value="custom"<?php checked( 'custom', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-custom' ); ?>"><?php _e( 'Custom, as specified below' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-ul' ); ?>" value="ul"<?php checked( 'ul', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-ul' ); ?>"><?php _e( 'Bulleted list', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-ol' ); ?>" value="ol"<?php checked( 'ol', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-ol' ); ?>"><?php _e( 'Numbered list', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-nl' ); ?>" value="nl"<?php checked( 'nl', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-nl' ); ?>"><?php _e( 'Line break', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'delimiter' ); ?>" id="<?php echo $this->get_field_id( 'delimiter-custom' ); ?>" value="custom"<?php checked( 'custom', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-custom' ); ?>"><?php _e( 'Custom, as specified below', 'taxonomy_list_widget' ); ?></label><br />
</p>
<label><strong><?php _e( 'Custom list style' ); ?></strong></label>
<label><strong><?php _e( 'Custom list style', 'taxonomy_list_widget' ); ?></strong></label>
<ul>
<?php
......@@ -562,7 +562,7 @@ class taxonomy_list_widget extends WP_Widget {
foreach( $delims as $key => $name ):
?>
<li>
<label for="<?php echo $this->get_field_id( 'delimiter_custom' ); ?>_<?php echo $key; ?>"><?php _e( $name ); ?></label>
<label for="<?php echo $this->get_field_id( 'delimiter_custom' ); ?>_<?php echo $key; ?>"><?php _e( $name, 'taxonomy_list_widget' ); ?></label>
<input type="text" name="<?php echo $this->get_field_name( 'delimiter_custom' ); ?>[<?php echo $key; ?>]" id="<?php echo $this->get_field_id( 'delimiter_custom' ); ?>_<?php echo $key; ?>" class="small-text code" value="<?php if( isset( $custom_delims ) && array_key_exists( $key, $custom_delims ) ) echo esc_attr( $custom_delims[ $key ] ); ?>" />
</li>
<?php
......@@ -570,94 +570,94 @@ class taxonomy_list_widget extends WP_Widget {
?>
</ul>
<h3><?php _e( 'Order' ); ?></h3>
<h3><?php _e( 'Order', 'taxonomy_list_widget' ); ?></h3>
<p>
<label><?php _e( 'Order terms by:' ); ?></label><br />
<label><?php _e( 'Order terms by:', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'orderby' ); ?>" value="name" id="<?php echo $this->get_field_name( 'order_name' ); ?>"<?php checked( $orderby, 'name', true ); ?> />
<label for="<?php echo $this->get_field_name( 'order_name' ); ?>"><?php _e( 'Name' ); ?></label><br />
<label for="<?php echo $this->get_field_name( 'order_name' ); ?>"><?php _e( 'Name', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'orderby' ); ?>" value="count" id="<?php echo $this->get_field_name( 'order_count' ); ?>"<?php checked( $orderby, 'count', true ); ?> />
<label for="<?php echo $this->get_field_name( 'order_count' ); ?>"><?php _e( 'Post count' ); ?></label>
<label for="<?php echo $this->get_field_name( 'order_count' ); ?>"><?php _e( 'Post count', 'taxonomy_list_widget' ); ?></label>
</p>
<p>
<label><?php _e( 'Order terms:' ); ?></label><br />
<label><?php _e( 'Order terms:', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'order' ); ?>" value="ASC" id="<?php echo $this->get_field_name( 'order_asc' ); ?>"<?php checked( $order, 'ASC', true ); ?> />
<label for="<?php echo $this->get_field_name( 'order_asc' ); ?>"><?php _e( 'Ascending' ); ?></label><br />
<label for="<?php echo $this->get_field_name( 'order_asc' ); ?>"><?php _e( 'Ascending', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'order' ); ?>" value="DESC" id="<?php echo $this->get_field_name( 'order_desc' ); ?>"<?php checked( $order, 'DESC', true ); ?> />
<label for="<?php echo $this->get_field_name( 'order_desc' ); ?>"><?php _e( 'Descending' ); ?></label>
<label for="<?php echo $this->get_field_name( 'order_desc' ); ?>"><?php _e( 'Descending', 'taxonomy_list_widget' ); ?></label>
</p>
<h3><?php _e( 'Term Display' ); ?></h3>
<h3><?php _e( 'Term Display', 'taxonomy_list_widget' ); ?></h3>
<p>
<label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e( 'Limit number of terms shown to:' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e( 'Limit number of terms shown to:', 'taxonomy_list_widget' ); ?></label><br />
<input type="text" name="<?php echo $this->get_field_name( 'limit' ); ?>" id="<?php echo $this->get_field_id( 'limit' ); ?>" value="<?php echo intval( $limit ); ?>" size="3" /><br />
<span class="description"><?php _e( '<small>Enter <strong>0</strong> for no limit.' ); ?></small></span>
<span class="description"><?php _e( '<small>Enter <strong>0</strong> for no limit.', 'taxonomy_list_widget' ); ?></small></span>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'max_name_length' ); ?>"><?php _e( 'Trim long term names to <em>x</em> characters:</label>' ); ?><br />
<label for="<?php echo $this->get_field_id( 'max_name_length' ); ?>"><?php _e( 'Trim long term names to <em>x</em> characters:</label>', 'taxonomy_list_widget' ); ?><br />
<input type="text" name="<?php echo $this->get_field_name( 'max_name_length' ); ?>" id="<?php echo $this->get_field_id( 'max_name_length' ); ?>" value="<?php echo intval( $max_name_length ); ?>" size="3" /><br />
<span class="description"><?php _e( '<small>Enter <strong>0</strong> to show full tag names.' ); ?></small></span>
<span class="description"><?php _e( '<small>Enter <strong>0</strong> to show full tag names.', 'taxonomy_list_widget' ); ?></small></span>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'cutoff' ); ?>"><?php _e( 'Indicator that term names are trimmed:' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'cutoff' ); ?>"><?php _e( 'Indicator that term names are trimmed:', 'taxonomy_list_widget' ); ?></label><br />
<input type="text" name="<?php echo $this->get_field_name( 'cutoff' ); ?>" id="<?php echo $this->get_field_id( 'cutoff' ); ?>" value="<?php echo esc_attr( $cutoff ); ?>" size="3" /><br />
<span class="description"><?php _e( '<small>Leave blank to use an elipsis (&hellip;).</small>' ); ?></span>
<span class="description"><?php _e( '<small>Leave blank to use an elipsis (&hellip;).</small>', 'taxonomy_list_widget' ); ?></span>
</p>
<p>
<input type="checkbox" name="<?php echo $this->get_field_name( 'hide_empty' ); ?>" id="<?php echo $this->get_field_id( 'hide_empty' ); ?>" value="0"<?php checked( false, $hide_empty, true ); ?> />
<label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>"><?php _e( 'Include terms that aren\'t assigned to any objects (empty terms).' ); ?></label>
<label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>"><?php _e( 'Include terms that aren\'t assigned to any objects (empty terms).', 'taxonomy_list_widget' ); ?></label>
</p>
<p>
<input type="checkbox" name="<?php echo $this->get_field_name( 'post_counts' ); ?>" id="<?php echo $this->get_field_id( 'post_counts' ); ?>" value="1"<?php checked( true, $post_counts, true ); ?> />
<label for="<?php echo $this->get_field_id( 'post_counts' ); ?>"><?php _e( 'Display object (post) counts after term names.' ); ?></label>
<label for="<?php echo $this->get_field_id( 'post_counts' ); ?>"><?php _e( 'Display object (post) counts after term names.', 'taxonomy_list_widget' ); ?></label>
</p>
<h3><?php _e( 'Include/Exclude Terms' ); ?></h3>
<h3><?php _e( 'Include/Exclude Terms', 'taxonomy_list_widget' ); ?></h3>
<p>
<label><?php _e( 'Include/exclude terms:' ); ?></label><br />
<label><?php _e( 'Include/exclude terms:', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'incexc' ); ?>" value="include" id="<?php echo $this->get_field_id( 'include' ); ?>"<?php checked( $incexc, 'include', true ); ?> />
<label for="<?php echo $this->get_field_id( 'include' ); ?>"><?php _e( 'Include only the term IDs listed below' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'include' ); ?>"><?php _e( 'Include only the term IDs listed below', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'incexc' ); ?>" value="exclude" id="<?php echo $this->get_field_id( 'exclude' ); ?>"<?php checked( $incexc, 'exclude', true ); ?> />
<label for="<?php echo $this->get_field_id( 'exclude' ); ?>"><?php _e( 'Exclude the term IDs listed below' ); ?></label>
<label for="<?php echo $this->get_field_id( 'exclude' ); ?>"><?php _e( 'Exclude the term IDs listed below', 'taxonomy_list_widget' ); ?></label>
</p>
<p>
<label for="<?php echo $this->get_field_id( 'incexc_ids' ); ?>"><?php _e( 'Term IDs to include/exclude based on above setting:' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'incexc_ids' ); ?>"><?php _e( 'Term IDs to include/exclude based on above setting:', 'taxonomy_list_widget' ); ?></label><br />
<input type="text" name="<?php echo $this->get_field_name( 'incexc_ids' ); ?>" class="widefat code" id="<?php echo $this->get_field_id( 'incexc_ids' ); ?>" value="<?php echo esc_attr( implode( ', ', $incexc_ids ) ); ?>" /><br />
<span class="description"><?php _e( '<small>Enter comma-separated list of term IDs.</small>' ); ?></span>
<span class="description"><?php _e( '<small>Enter comma-separated list of term IDs.</small>', 'taxonomy_list_widget' ); ?></span>
</p>
<h3><?php _e( 'Advanced' ); ?></h3>
<h3><?php _e( 'Advanced', 'taxonomy_list_widget' ); ?></h3>
<p>
<label for="<?php echo $this->get_field_id( 'threshold' ); ?>"><?php _e( 'Show terms assigned to at least this many posts:' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'threshold' ); ?>"><?php _e( 'Show terms assigned to at least this many posts:', 'taxonomy_list_widget' ); ?></label><br />
<input type="text" name="<?php echo $this->get_field_name( 'threshold' ); ?>" id="<?php echo $this->get_field_id( 'threshold' ); ?>" value="<?php echo intval( $threshold ); ?>" size="3" /><br />
<span class="description"><?php _e( '<small>Set to <strong>0</strong> to display all terms matching the above criteria.</small>' ); ?></span>
<span class="description"><?php _e( '<small>Set to <strong>0</strong> to display all terms matching the above criteria.</small>', 'taxonomy_list_widget' ); ?></span>
</p>
<p>
<label><?php _e( 'Link relationship:' ); ?></label><br />
<label><?php _e( 'Link relationship:', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'rel' ); ?>" value="nofollow" id="<?php echo $this->get_field_id( 'rel-n' ); ?>"<?php checked( $rel, 'nofollow', true ); ?> />
<label for="<?php echo $this->get_field_id( 'rel-n' ); ?>"><?php _e( 'nofollow' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'rel-n' ); ?>"><?php _e( 'nofollow', 'taxonomy_list_widget' ); ?></label><br />
<input type="radio" name="<?php echo $this->get_field_name( 'rel' ); ?>" value="dofollow" id="<?php echo $this->get_field_id( 'rel-d' ); ?>"<?php checked( $rel, 'dofollow', true ); ?> />
<label for="<?php echo $this->get_field_id( 'rel-d' ); ?>"><?php _e( 'dofollow' ); ?></label><br />
<label for="<?php echo $this->get_field_id( 'rel-d' ); ?>"><?php _e( 'dofollow', 'taxonomy_list_widget' ); ?></label><br />
<span class="description"><?php _e( 'The above setting determines whether or not search engines visit linked pages from links in this widget\'s list.' ); ?></span>
<span class="description"><?php _e( 'The above setting determines whether or not search engines visit linked pages from links in this widget\'s list.', 'taxonomy_list_widget' ); ?></span>
</p>
<?php
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment