Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • develop
  • master
  • v1.3.1
  • v1.3.2
4 results

Target

Select target project
  • wp-plugins/taxonomy-list-widget
1 result
Select Git revision
  • develop
  • master
  • v1.3.1
  • v1.3.2
4 results
Show changes
Commits on Source (5)
...@@ -9,7 +9,7 @@ module.exports = function( grunt ) { ...@@ -9,7 +9,7 @@ module.exports = function( grunt ) {
addtextdomain: { addtextdomain: {
options: { options: {
textdomain: 'taxonomy_list_widget', textdomain: 'tag-list-widget',
}, },
update_all_domains: { update_all_domains: {
options: { options: {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
**Tags:** tag, tags, taxonomy, sidebar, widget, widgets, list **Tags:** tag, tags, taxonomy, sidebar, widget, widgets, list
**Requires at least:** 2.8 **Requires at least:** 2.8
**Tested up to:** 6.0 **Tested up to:** 6.0
**Stable tag:** 1.3.1 **Stable tag:** 1.3.2
**License:** GPLv2 or later **License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html **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 ...@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i
## Changelog ## ## Changelog ##
### 1.3.2 ###
* Fix translation support.
### 1.3.1 ### ### 1.3.1 ###
* PHP 7.3 compatibility * PHP 7.3 compatibility
...@@ -127,6 +130,9 @@ To make targeting a specific filter reference possible should you use multiple i ...@@ -127,6 +130,9 @@ To make targeting a specific filter reference possible should you use multiple i
## Upgrade Notice ## ## Upgrade Notice ##
### 1.3.2 ###
Fixes translation support.
### 1.3.1 ### ### 1.3.1 ###
Now compatible with PHP 7.3. Now compatible with PHP 7.3.
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
# This file is distributed under the same license as the Taxonomy List Widget package. # This file is distributed under the same license as the Taxonomy List Widget package.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Taxonomy List Widget 1.3.1\n" "Project-Id-Version: Taxonomy List Widget 1.3.2\n"
"Report-Msgid-Bugs-To: " "Report-Msgid-Bugs-To: "
"https://wordpress.org/support/plugin/taxonomy-list-widget\n" "https://wordpress.org/support/plugin/taxonomy-list-widget\n"
"POT-Creation-Date: 2022-06-11 18:43:04+00:00\n" "POT-Creation-Date: 2022-06-28 01:32:47+00:00\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
...@@ -25,157 +25,157 @@ msgstr "" ...@@ -25,157 +25,157 @@ msgstr ""
"X-Textdomain-Support: yes\n" "X-Textdomain-Support: yes\n"
"X-Generator: grunt-wp-i18n 1.0.3\n" "X-Generator: grunt-wp-i18n 1.0.3\n"
#: taxonomy-list-widget.php:527 #: taxonomy-list-widget.php:543
msgid "Basic Settings" msgid "Basic Settings"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:530 #: taxonomy-list-widget.php:546
msgid "Taxonomy" msgid "Taxonomy"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:539 #: taxonomy-list-widget.php:555
msgid "Title:" msgid "Title:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:543 #: taxonomy-list-widget.php:559
msgid "List Style" msgid "List Style"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:546 #: taxonomy-list-widget.php:562
msgid "Bulleted list" msgid "Bulleted list"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:547 #: taxonomy-list-widget.php:563
msgid "Numbered list" msgid "Numbered list"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:548 #: taxonomy-list-widget.php:564
msgid "Line break" msgid "Line break"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:549 #: taxonomy-list-widget.php:565
msgid "Custom, as specified below" msgid "Custom, as specified below"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:552 #: taxonomy-list-widget.php:568
msgid "Custom list style" msgid "Custom list style"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:574 #: taxonomy-list-widget.php:590
msgid "Order" msgid "Order"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:577 #: taxonomy-list-widget.php:593
msgid "Order terms by:" msgid "Order terms by:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:580 #: taxonomy-list-widget.php:596
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:583 #: taxonomy-list-widget.php:599
msgid "Post count" msgid "Post count"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:587 #: taxonomy-list-widget.php:603
msgid "Order terms:" msgid "Order terms:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:590 #: taxonomy-list-widget.php:606
msgid "Ascending" msgid "Ascending"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:593 #: taxonomy-list-widget.php:609
msgid "Descending" msgid "Descending"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:596 #: taxonomy-list-widget.php:612
msgid "Term Display" msgid "Term Display"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:599 #: taxonomy-list-widget.php:615
msgid "Limit number of terms shown to:" msgid "Limit number of terms shown to:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:601 #: taxonomy-list-widget.php:617
msgid "<small>Enter <strong>0</strong> for no limit." msgid "<small>Enter <strong>0</strong> for no limit."
msgstr "" msgstr ""
#: taxonomy-list-widget.php:605 #: taxonomy-list-widget.php:621
msgid "Trim long term names to <em>x</em> characters:</label>" msgid "Trim long term names to <em>x</em> characters:</label>"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:607 #: taxonomy-list-widget.php:623
msgid "<small>Enter <strong>0</strong> to show full tag names." msgid "<small>Enter <strong>0</strong> to show full tag names."
msgstr "" msgstr ""
#: taxonomy-list-widget.php:611 #: taxonomy-list-widget.php:627
msgid "Indicator that term names are trimmed:" msgid "Indicator that term names are trimmed:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:613 #: taxonomy-list-widget.php:629
msgid "<small>Leave blank to use an elipsis (&hellip;).</small>" msgid "<small>Leave blank to use an elipsis (&hellip;).</small>"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:618 #: taxonomy-list-widget.php:634
msgid "Include terms that aren't assigned to any objects (empty terms)." msgid "Include terms that aren't assigned to any objects (empty terms)."
msgstr "" msgstr ""
#: taxonomy-list-widget.php:623 #: taxonomy-list-widget.php:639
msgid "Display object (post) counts after term names." msgid "Display object (post) counts after term names."
msgstr "" msgstr ""
#: taxonomy-list-widget.php:626 #: taxonomy-list-widget.php:642
msgid "Include/Exclude Terms" msgid "Include/Exclude Terms"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:629 #: taxonomy-list-widget.php:645
msgid "Include/exclude terms:" msgid "Include/exclude terms:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:632 #: taxonomy-list-widget.php:648
msgid "Include only the term IDs listed below" msgid "Include only the term IDs listed below"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:635 #: taxonomy-list-widget.php:651
msgid "Exclude the term IDs listed below" msgid "Exclude the term IDs listed below"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:639 #: taxonomy-list-widget.php:655
msgid "Term IDs to include/exclude based on above setting:" msgid "Term IDs to include/exclude based on above setting:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:641 #: taxonomy-list-widget.php:657
msgid "<small>Enter comma-separated list of term IDs.</small>" msgid "<small>Enter comma-separated list of term IDs.</small>"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:644 #: taxonomy-list-widget.php:660
msgid "Advanced" msgid "Advanced"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:647 #: taxonomy-list-widget.php:663
msgid "Show terms assigned to at least this many posts:" msgid "Show terms assigned to at least this many posts:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:649 #: taxonomy-list-widget.php:665
msgid "" msgid ""
"<small>Set to <strong>0</strong> to display all terms matching the above " "<small>Set to <strong>0</strong> to display all terms matching the above "
"criteria.</small>" "criteria.</small>"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:653 #: taxonomy-list-widget.php:669
msgid "Link relationship:" msgid "Link relationship:"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:656 #: taxonomy-list-widget.php:672
msgid "nofollow" msgid "nofollow"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:659 #: taxonomy-list-widget.php:675
msgid "dofollow" msgid "dofollow"
msgstr "" msgstr ""
#: taxonomy-list-widget.php:661 #: taxonomy-list-widget.php:677
msgid "" msgid ""
"The above setting determines whether or not search engines visit linked " "The above setting determines whether or not search engines visit linked "
"pages from links in this widget's list." "pages from links in this widget's list."
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<rule ref="WordPress.WP.I18n"> <rule ref="WordPress.WP.I18n">
<properties> <properties>
<!-- Value: replace the text domain used. --> <!-- Value: replace the text domain used. -->
<property name="text_domain" type="array" value="taxonomy_list_widget"/> <property name="text_domain" type="array" value="tag-list-widget"/>
</properties> </properties>
</rule> </rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing"> <rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
......
...@@ -4,7 +4,7 @@ Donate link: https://ethitter.com/donate/ ...@@ -4,7 +4,7 @@ Donate link: https://ethitter.com/donate/
Tags: tag, tags, taxonomy, sidebar, widget, widgets, list Tags: tag, tags, taxonomy, sidebar, widget, widgets, list
Requires at least: 2.8 Requires at least: 2.8
Tested up to: 6.0 Tested up to: 6.0
Stable tag: 1.3.1 Stable tag: 1.3.2
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html 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 ...@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i
== Changelog == == Changelog ==
= 1.3.2 =
* Fix translation support.
= 1.3.1 = = 1.3.1 =
* PHP 7.3 compatibility * PHP 7.3 compatibility
...@@ -127,6 +130,9 @@ To make targeting a specific filter reference possible should you use multiple i ...@@ -127,6 +130,9 @@ To make targeting a specific filter reference possible should you use multiple i
== Upgrade Notice == == Upgrade Notice ==
= 1.3.2 =
Fixes translation support.
= 1.3.1 = = 1.3.1 =
Now compatible with PHP 7.3. Now compatible with PHP 7.3.
......
<?php <?php
// phpcs:ignoreFile -- legacy code in need of refactoring. // phpcs:ignoreFile -- legacy code in need of refactoring.
/* /**
Plugin Name: Taxonomy List Widget * Plugin Name: Taxonomy List Widget
Plugin URI: https://ethitter.com/plugins/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>. * 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 * Author: Erick Hitter
Version: 1.3.1 * Version: 1.3.2
Author URI: https://ethitter.com/ * Author URI: https://ethitter.com/
* Text Domain: tag-list-widget
This program is free software; you can redistribute it and/or modify * Domain Path: /languages/
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or * This program is free software; you can redistribute it and/or modify
(at your option) any later version. * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
This program is distributed in the hope that it will be useful, * (at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * This program is distributed in the hope that it will be useful,
GNU General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You should have received a copy of the GNU General Public License * GNU General Public License for more details.
along with this program; if not, write to the Free Software *
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 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
*/ */
/** /**
...@@ -52,6 +54,7 @@ class taxonomy_list_widget_plugin { ...@@ -52,6 +54,7 @@ class taxonomy_list_widget_plugin {
* @return null * @return null
*/ */
function __construct() { function __construct() {
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
add_action( 'widgets_init', array( $this, 'action_widgets_init' ) ); add_action( 'widgets_init', array( $this, 'action_widgets_init' ) );
register_activation_hook( __FILE__, array( $this, 'activation_hook' ) ); register_activation_hook( __FILE__, array( $this, 'activation_hook' ) );
...@@ -60,6 +63,19 @@ class taxonomy_list_widget_plugin { ...@@ -60,6 +63,19 @@ class taxonomy_list_widget_plugin {
add_action( 'split_shared_term', array( $this, 'action_split_shared_term' ), 10, 4 ); add_action( 'split_shared_term', array( $this, 'action_split_shared_term' ), 10, 4 );
} }
/**
* Load plugin translations.
*
* @return void
*/
public function load_textdomain() {
load_plugin_textdomain(
'tag-list-widget',
false,
dirname( plugin_basename( __FILE__ ) ) . '/languages/'
);
}
/* /*
* Run plugin cleanup on activation * Run plugin cleanup on activation
* @uses $this::cleanup * @uses $this::cleanup
...@@ -524,10 +540,10 @@ class taxonomy_list_widget extends WP_Widget { ...@@ -524,10 +540,10 @@ class taxonomy_list_widget extends WP_Widget {
unset( $taxonomies[ 'post_format' ] ); unset( $taxonomies[ 'post_format' ] );
?> ?>
<h3><?php _e( 'Basic Settings', 'taxonomy_list_widget' ); ?></h3> <h3><?php _e( 'Basic Settings', 'tag-list-widget' ); ?></h3>
<p> <p>
<label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy', 'taxonomy_list_widget' ); ?>:</label><br /> <label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy', 'tag-list-widget' ); ?>:</label><br />
<select name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>"> <select name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>">
<?php foreach( $taxonomies as $tax ): ?> <?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> <option value="<?php echo esc_attr( $tax->name ); ?>"<?php selected( $tax->name, $taxonomy, true ); ?>><?php echo $tax->labels->name; ?></option>
...@@ -536,20 +552,20 @@ class taxonomy_list_widget extends WP_Widget { ...@@ -536,20 +552,20 @@ class taxonomy_list_widget extends WP_Widget {
</p> </p>
<p> <p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'tag-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 ); ?>" /> <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> </p>
<h3><?php _e( 'List Style', 'taxonomy_list_widget' ); ?></h3> <h3><?php _e( 'List Style', 'tag-list-widget' ); ?></h3>
<p> <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', 'taxonomy_list_widget' ); ?></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', 'tag-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-ol' ); ?>" value="ol"<?php checked( 'ol', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-ol' ); ?>"><?php _e( 'Numbered list', 'tag-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-nl' ); ?>" value="nl"<?php checked( 'nl', $delimiter, true ); ?>> <label for="<?php echo $this->get_field_id( 'delimiter-nl' ); ?>"><?php _e( 'Line break', 'tag-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 /> <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', 'tag-list-widget' ); ?></label><br />
</p> </p>
<label><strong><?php _e( 'Custom list style', 'taxonomy_list_widget' ); ?></strong></label> <label><strong><?php _e( 'Custom list style', 'tag-list-widget' ); ?></strong></label>
<ul> <ul>
<?php <?php
...@@ -563,7 +579,7 @@ class taxonomy_list_widget extends WP_Widget { ...@@ -563,7 +579,7 @@ class taxonomy_list_widget extends WP_Widget {
foreach( $delims as $key => $name ): foreach( $delims as $key => $name ):
?> ?>
<li> <li>
<label for="<?php echo $this->get_field_id( 'delimiter_custom' ); ?>_<?php echo $key; ?>"><?php _e( $name, 'taxonomy_list_widget' ); ?></label> <label for="<?php echo $this->get_field_id( 'delimiter_custom' ); ?>_<?php echo $key; ?>"><?php _e( $name, 'tag-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 ] ); ?>" /> <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> </li>
<?php <?php
...@@ -571,94 +587,94 @@ class taxonomy_list_widget extends WP_Widget { ...@@ -571,94 +587,94 @@ class taxonomy_list_widget extends WP_Widget {
?> ?>
</ul> </ul>
<h3><?php _e( 'Order', 'taxonomy_list_widget' ); ?></h3> <h3><?php _e( 'Order', 'tag-list-widget' ); ?></h3>
<p> <p>
<label><?php _e( 'Order terms by:', 'taxonomy_list_widget' ); ?></label><br /> <label><?php _e( 'Order terms by:', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_name( 'order_name' ); ?>"><?php _e( 'Name', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label> <label for="<?php echo $this->get_field_name( 'order_count' ); ?>"><?php _e( 'Post count', 'tag-list-widget' ); ?></label>
</p> </p>
<p> <p>
<label><?php _e( 'Order terms:', 'taxonomy_list_widget' ); ?></label><br /> <label><?php _e( 'Order terms:', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_name( 'order_asc' ); ?>"><?php _e( 'Ascending', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label> <label for="<?php echo $this->get_field_name( 'order_desc' ); ?>"><?php _e( 'Descending', 'tag-list-widget' ); ?></label>
</p> </p>
<h3><?php _e( 'Term Display', 'taxonomy_list_widget' ); ?></h3> <h3><?php _e( 'Term Display', 'tag-list-widget' ); ?></h3>
<p> <p>
<label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e( 'Limit number of terms shown to:', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e( 'Limit number of terms shown to:', 'tag-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 /> <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.', 'taxonomy_list_widget' ); ?></small></span> <span class="description"><?php _e( '<small>Enter <strong>0</strong> for no limit.', 'tag-list-widget' ); ?></small></span>
</p> </p>
<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>', 'taxonomy_list_widget' ); ?><br /> <label for="<?php echo $this->get_field_id( 'max_name_length' ); ?>"><?php _e( 'Trim long term names to <em>x</em> characters:</label>', 'tag-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 /> <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.', 'taxonomy_list_widget' ); ?></small></span> <span class="description"><?php _e( '<small>Enter <strong>0</strong> to show full tag names.', 'tag-list-widget' ); ?></small></span>
</p> </p>
<p> <p>
<label for="<?php echo $this->get_field_id( 'cutoff' ); ?>"><?php _e( 'Indicator that term names are trimmed:', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_id( 'cutoff' ); ?>"><?php _e( 'Indicator that term names are trimmed:', 'tag-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 /> <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>', 'taxonomy_list_widget' ); ?></span> <span class="description"><?php _e( '<small>Leave blank to use an elipsis (&hellip;).</small>', 'tag-list-widget' ); ?></span>
</p> </p>
<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 ); ?> /> <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).', 'taxonomy_list_widget' ); ?></label> <label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>"><?php _e( 'Include terms that aren\'t assigned to any objects (empty terms).', 'tag-list-widget' ); ?></label>
</p> </p>
<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 ); ?> /> <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.', 'taxonomy_list_widget' ); ?></label> <label for="<?php echo $this->get_field_id( 'post_counts' ); ?>"><?php _e( 'Display object (post) counts after term names.', 'tag-list-widget' ); ?></label>
</p> </p>
<h3><?php _e( 'Include/Exclude Terms', 'taxonomy_list_widget' ); ?></h3> <h3><?php _e( 'Include/Exclude Terms', 'tag-list-widget' ); ?></h3>
<p> <p>
<label><?php _e( 'Include/exclude terms:', 'taxonomy_list_widget' ); ?></label><br /> <label><?php _e( 'Include/exclude terms:', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_id( 'include' ); ?>"><?php _e( 'Include only the term IDs listed below', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label> <label for="<?php echo $this->get_field_id( 'exclude' ); ?>"><?php _e( 'Exclude the term IDs listed below', 'tag-list-widget' ); ?></label>
</p> </p>
<p> <p>
<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 /> <label for="<?php echo $this->get_field_id( 'incexc_ids' ); ?>"><?php _e( 'Term IDs to include/exclude based on above setting:', 'tag-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 /> <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>', 'taxonomy_list_widget' ); ?></span> <span class="description"><?php _e( '<small>Enter comma-separated list of term IDs.</small>', 'tag-list-widget' ); ?></span>
</p> </p>
<h3><?php _e( 'Advanced', 'taxonomy_list_widget' ); ?></h3> <h3><?php _e( 'Advanced', 'tag-list-widget' ); ?></h3>
<p> <p>
<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 /> <label for="<?php echo $this->get_field_id( 'threshold' ); ?>"><?php _e( 'Show terms assigned to at least this many posts:', 'tag-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 /> <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>', 'taxonomy_list_widget' ); ?></span> <span class="description"><?php _e( '<small>Set to <strong>0</strong> to display all terms matching the above criteria.</small>', 'tag-list-widget' ); ?></span>
</p> </p>
<p> <p>
<label><?php _e( 'Link relationship:', 'taxonomy_list_widget' ); ?></label><br /> <label><?php _e( 'Link relationship:', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_id( 'rel-n' ); ?>"><?php _e( 'nofollow', 'tag-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 ); ?> /> <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', 'taxonomy_list_widget' ); ?></label><br /> <label for="<?php echo $this->get_field_id( 'rel-d' ); ?>"><?php _e( 'dofollow', 'tag-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.', 'taxonomy_list_widget' ); ?></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.', 'tag-list-widget' ); ?></span>
</p> </p>
<?php <?php
......