Category Order and Taxonomy Terms Order - Version 1.4.7

Version Description

  • Texdomain change to taxonomy-terms-order to allow translations through translate.wordpress.org
    • WordPress 4.4 compatibility update
    • Css updates
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 Category Order and Taxonomy Terms Order
Version 1.4.7
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.7

Files changed (34) hide show
  1. css/to.css +6 -12
  2. include/functions.php +4 -4
  3. include/interface.php +11 -11
  4. include/options.php +14 -14
  5. lang/to-de_DE.mo → languages/taxonomy-terms-order-de_DE.mo +0 -0
  6. lang/to-de_DE.po → languages/taxonomy-terms-order-de_DE.po +0 -0
  7. lang/to-fa_IR.mo → languages/taxonomy-terms-order-fa_IR.mo +0 -0
  8. lang/to-fa_IR.po → languages/taxonomy-terms-order-fa_IR.po +0 -0
  9. lang/to-fr_FR.mo → languages/taxonomy-terms-order-fr_FR.mo +0 -0
  10. lang/to-fr_FR.po → languages/taxonomy-terms-order-fr_FR.po +0 -0
  11. lang/to-hu_HU.mo → languages/taxonomy-terms-order-hu_HU.mo +0 -0
  12. lang/to-hu_HU.po → languages/taxonomy-terms-order-hu_HU.po +0 -0
  13. lang/to-ja.mo → languages/taxonomy-terms-order-ja.mo +0 -0
  14. lang/to-ja.po → languages/taxonomy-terms-order-ja.po +0 -0
  15. lang/to-nl_NL.mo → languages/taxonomy-terms-order-nl_NL.mo +0 -0
  16. lang/to-nl_NL.po → languages/taxonomy-terms-order-nl_NL.po +0 -0
  17. lang/to-pl_PL.mo → languages/taxonomy-terms-order-pl_PL.mo +0 -0
  18. lang/to-pl_PL.po → languages/taxonomy-terms-order-pl_PL.po +0 -0
  19. lang/to-pt_BR.mo → languages/taxonomy-terms-order-pt_BR.mo +0 -0
  20. lang/to-pt_BR.po → languages/taxonomy-terms-order-pt_BR.po +0 -0
  21. languages/taxonomy-terms-order-pt_PT.mo +0 -0
  22. languages/taxonomy-terms-order-pt_PT.po +163 -0
  23. lang/to-ro_RO.mo → languages/taxonomy-terms-order-ro_RO.mo +0 -0
  24. lang/to-ro_RO.po → languages/taxonomy-terms-order-ro_RO.po +0 -0
  25. lang/to-sk_SK.mo → languages/taxonomy-terms-order-sk_SK.mo +0 -0
  26. lang/to-sk_SK.po → languages/taxonomy-terms-order-sk_SK.po +0 -0
  27. lang/to-uk_UA.mo → languages/taxonomy-terms-order-uk_UA.mo +0 -0
  28. lang/to-uk_UA.po → languages/taxonomy-terms-order-uk_UA.po +0 -0
  29. lang/to-zh_TW.mo → languages/taxonomy-terms-order-zh_TW.mo +0 -0
  30. lang/to-zh_TW.po → languages/taxonomy-terms-order-zh_TW.po +0 -0
  31. lang/to.mo → languages/taxonomy-terms-order.mo +0 -0
  32. lang/to.po → languages/taxonomy-terms-order.po +33 -50
  33. readme.txt +16 -3
  34. taxonomy-terms-order.php +8 -6
css/to.css CHANGED
@@ -1,22 +1,16 @@
1
 
2
- h2.subtitle {font-size: 15px; font-style: italic; font-weight: bold}
3
 
4
  #order-terms {}
5
  #order-terms img {vertical-align: middle}
6
  #order-terms #tto_sortable { list-style-type: none; margin: 20px 0 0; padding: 0; width: 100%; }
7
  #order-terms ul {list-style: none;}
8
  #order-terms ul.children {margin-left: 25px}
9
- .term_type_li .item {background-color: #f9f9f9;
10
- border: 1px solid #dddddd;
11
- cursor: move;
12
- margin: 4px 0;
13
- padding: 2px 0;}
14
- .term_type_li .item span { background: none repeat scroll 0 0 #F7F7F7; color: #555555; display: block; font-weight: bold; padding: 5px 15px; font-size: 13px;}
15
- .term_type_li .item span.edit {position: absolute; right: 10px; top: 6px; padding: 0px; margin: 0px}
16
- #order-terms .placeholder{border: dashed 2px #ccc;height:30px; background-color: #FFF;}
17
- .term_type_li ul {margin-top: 6px}
18
- #dragHelper li, #dragHelper ul {background: transparent !important;}
19
- #dragHelper ul {list-style: none;}
20
 
21
  .wp-list-taxonomy {width: 100%}
22
  .wp-list-taxonomy thead tr th{padding: 10px 0;}
1
 
2
+ h2.subtitle {font-size: 15px; font-weight: bold; padding: 20px 0 10px 0}
3
 
4
  #order-terms {}
5
  #order-terms img {vertical-align: middle}
6
  #order-terms #tto_sortable { list-style-type: none; margin: 20px 0 0; padding: 0; width: 100%; }
7
  #order-terms ul {list-style: none;}
8
  #order-terms ul.children {margin-left: 25px}
9
+
10
+ #order-terms #tto_sortable li > .item { padding: 2px 0px; margin: 4px 0px; border: 1px solid #DDDDDD; cursor: move; -moz-border-radius:6px; background-color: #f9f9f9;}
11
+ #order-terms #tto_sortable li:nth-child(2n+1) > .item { background-color: #fff !important;}
12
+ #order-terms #tto_sortable li span { display: block; padding: 5px 10px; color:#555; font-size:13px;}
13
+ #order-terms #tto_sortable li.placeholder{border: dashed 2px #ccc;height:30px; background-color: #FFF;}
 
 
 
 
 
 
14
 
15
  .wp-list-taxonomy {width: 100%}
16
  .wp-list-taxonomy thead tr th{padding: 10px 0;}
include/functions.php CHANGED
@@ -59,10 +59,10 @@
59
  </div>
60
  </div>
61
 
62
- <p><?php _e( "Did you find this plugin useful? Please support our work with a donation or write an article about this plugin in your blog with a link to our site", 'tto' ) ?> <br /><strong>http://www.nsp-code.com/</strong>.</p>
63
- <h4><?php _e( "Did you know there is available an advanced version of this plug-in?", 'tto' ) ?> <a target="_blank" href="http://www.nsp-code.com/premium-plugins/wordpress-plugins/advanced-taxonomy-terms-order/"><?php _e( "Read more", 'tto' ) ?></a></h4>
64
- <p><?php _e('Check our', 'tto') ?> <a target="_blank" href="https://wordpress.org/plugins/post-terms-order/">Post Terms Order</a> <?php _e('plugin which allow to custom sort categories and custom taxonomies terms per post basis', 'tto') ?> </p>
65
- <p><?php _e( "Check our", 'tto' ) ?> <a target="_blank" href="https://wordpress.org/plugins/post-types-order/">Post Types Order</a> <?php _e( "plugin which allow to custom sort all posts, pages, custom post types", 'tto' ) ?> </p>
66
 
67
  <div class="clear"></div>
68
  </div>
59
  </div>
60
  </div>
61
 
62
+ <p><?php _e( "Did you find this plugin useful? Please support our work with a donation or write an article about this plugin in your blog with a link to our site", 'taxonomy-terms-order' ) ?> <br /><strong>http://www.nsp-code.com/</strong>.</p>
63
+ <h4><?php _e( "Did you know there is available an advanced version of this plug-in?", 'taxonomy-terms-order' ) ?> <a target="_blank" href="http://www.nsp-code.com/premium-plugins/wordpress-plugins/advanced-taxonomy-terms-order/"><?php _e( "Read more", 'taxonomy-terms-order' ) ?></a></h4>
64
+ <p><?php _e('Check our', 'taxonomy-terms-order') ?> <a target="_blank" href="https://wordpress.org/plugins/post-terms-order/">Post Terms Order</a> <?php _e('plugin which allow to custom sort categories and custom taxonomies terms per post basis', 'taxonomy-terms-order') ?> </p>
65
+ <p><?php _e( "Check our", 'taxonomy-terms-order' ) ?> <a target="_blank" href="https://wordpress.org/plugins/post-types-order/">Post Types Order</a> <?php _e( "plugin which allow to custom sort all posts, pages, custom post types", 'taxonomy-terms-order' ) ?> </p>
66
 
67
  <div class="clear"></div>
68
  </div>
include/interface.php CHANGED
@@ -5,8 +5,8 @@
5
  {
6
  global $wpdb, $wp_locale;
7
 
8
- $taxonomy = isset($_GET['taxonomy']) ? $_GET['taxonomy'] : '';
9
- $post_type = isset($_GET['post_type']) ? $_GET['post_type'] : '';
10
  if(empty($post_type))
11
  {
12
  $screen = get_current_screen();
@@ -35,7 +35,7 @@
35
  ?>
36
  <div class="wrap">
37
  <div class="icon32" id="icon-edit"><br></div>
38
- <h2><?php _e( "Taxonomy Order", 'tto' ) ?></h2>
39
 
40
  <?php tto_info_box() ?>
41
 
@@ -43,7 +43,7 @@
43
 
44
  <noscript>
45
  <div class="error message">
46
- <p><?php _e( "This plugin can't work without javascript, because it's use drag and drop and AJAX.", 'tto' ) ?></p>
47
  </div>
48
  </noscript>
49
 
@@ -68,11 +68,11 @@
68
  ?>
69
 
70
  <form action="<?php echo $current_section_parent_file ?>" method="get" id="to_form">
71
- <input type="hidden" name="page" value="to-interface-<?php echo $post_type ?>" />
72
  <?php
73
 
74
  if (!in_array($post_type, array('post', 'attachment')))
75
- echo '<input type="hidden" name="post_type" value="'. $post_type .'" />';
76
 
77
  //output all available taxonomies for this post type
78
 
@@ -97,11 +97,11 @@
97
 
98
  ?>
99
 
100
- <h2 class="subtitle"><?php echo ucfirst($post_type_data->labels->name) ?> <?php _e( "Taxonomies", 'tto' ) ?></h2>
101
  <table cellspacing="0" class="wp-list-taxonomy">
102
  <thead>
103
  <tr>
104
- <th style="" class="column-cb check-column" id="cb" scope="col">&nbsp;</th><th style="" class="" id="author" scope="col"><?php _e( "Taxonomy Title", 'tto' ) ?></th><th style="" class="manage-column" id="categories" scope="col"><?php _e( "Total Posts", 'tto' ) ?></th> </tr>
105
  </thead>
106
 
107
 
@@ -118,7 +118,7 @@
118
  $taxonomy_terms = get_terms($key);
119
 
120
  ?>
121
- <tr valign="top" class="<?php if ($alternate === TRUE) {echo 'alternate ';} ?>" id="taxonomy-<?php echo $taxonomy ?>">
122
  <th class="check-column" scope="row"><input type="radio" onclick="to_change_taxonomy(this)" value="<?php echo $post_type_taxonomy ?>" <?php if ($post_type_taxonomy == $taxonomy) {echo 'checked="checked"';} ?> name="taxonomy">&nbsp;</th>
123
  <td class="categories column-categories"><b><?php echo $taxonomy_info->label ?></b> (<?php echo $taxonomy_info->labels->singular_name; ?>)</td>
124
  <td class="categories column-categories"><?php echo count($taxonomy_terms) ?></td>
@@ -151,7 +151,7 @@
151
 
152
  <div class="alignleft actions">
153
  <p class="submit">
154
- <a href="javascript:;" class="save-order button-primary"><?php _e( "Update", 'tto' ) ?></a>
155
  </p>
156
  </div>
157
 
@@ -200,7 +200,7 @@
200
  var serialize_data = serialize(mySortable);
201
 
202
  jQuery.post( ajaxurl, { action:'update-taxonomy-order', order: serialize_data, taxonomy : '<?php echo $taxonomy ?>' }, function() {
203
- jQuery("#ajax-response").html('<div class="message updated fade"><p><?php _e( "Items Order Updated", 'tto' ) ?></p></div>');
204
  jQuery("#ajax-response div").delay(3000).hide("slow");
205
  });
206
  });
5
  {
6
  global $wpdb, $wp_locale;
7
 
8
+ $taxonomy = isset($_GET['taxonomy']) ? sanitize_key($_GET['taxonomy']) : '';
9
+ $post_type = isset($_GET['post_type']) ? sanitize_key($_GET['post_type']) : '';
10
  if(empty($post_type))
11
  {
12
  $screen = get_current_screen();
35
  ?>
36
  <div class="wrap">
37
  <div class="icon32" id="icon-edit"><br></div>
38
+ <h2><?php _e( "Taxonomy Order", 'taxonomy-terms-order' ) ?></h2>
39
 
40
  <?php tto_info_box() ?>
41
 
43
 
44
  <noscript>
45
  <div class="error message">
46
+ <p><?php _e( "This plugin can't work without javascript, because it's use drag and drop and AJAX.", 'taxonomy-terms-order' ) ?></p>
47
  </div>
48
  </noscript>
49
 
68
  ?>
69
 
70
  <form action="<?php echo $current_section_parent_file ?>" method="get" id="to_form">
71
+ <input type="hidden" name="page" value="to-interface-<?php echo esc_attr($post_type) ?>" />
72
  <?php
73
 
74
  if (!in_array($post_type, array('post', 'attachment')))
75
+ echo '<input type="hidden" name="post_type" value="'. esc_attr($post_type) .'" />';
76
 
77
  //output all available taxonomies for this post type
78
 
97
 
98
  ?>
99
 
100
+ <h2 class="subtitle"><?php echo ucfirst($post_type_data->labels->name) ?> <?php _e( "Taxonomies", 'taxonomy-terms-order' ) ?></h2>
101
  <table cellspacing="0" class="wp-list-taxonomy">
102
  <thead>
103
  <tr>
104
+ <th style="" class="column-cb check-column" id="cb" scope="col">&nbsp;</th><th style="" class="" id="author" scope="col"><?php _e( "Taxonomy Title", 'taxonomy-terms-order' ) ?></th><th style="" class="manage-column" id="categories" scope="col"><?php _e( "Total Posts", 'taxonomy-terms-order' ) ?></th> </tr>
105
  </thead>
106
 
107
 
118
  $taxonomy_terms = get_terms($key);
119
 
120
  ?>
121
+ <tr valign="top" class="<?php if ($alternate === TRUE) {echo 'alternate ';} ?>" id="taxonomy-<?php echo esc_attr($taxonomy) ?>">
122
  <th class="check-column" scope="row"><input type="radio" onclick="to_change_taxonomy(this)" value="<?php echo $post_type_taxonomy ?>" <?php if ($post_type_taxonomy == $taxonomy) {echo 'checked="checked"';} ?> name="taxonomy">&nbsp;</th>
123
  <td class="categories column-categories"><b><?php echo $taxonomy_info->label ?></b> (<?php echo $taxonomy_info->labels->singular_name; ?>)</td>
124
  <td class="categories column-categories"><?php echo count($taxonomy_terms) ?></td>
151
 
152
  <div class="alignleft actions">
153
  <p class="submit">
154
+ <a href="javascript:;" class="save-order button-primary"><?php _e( "Update", 'taxonomy-terms-order' ) ?></a>
155
  </p>
156
  </div>
157
 
200
  var serialize_data = serialize(mySortable);
201
 
202
  jQuery.post( ajaxurl, { action:'update-taxonomy-order', order: serialize_data, taxonomy : '<?php echo $taxonomy ?>' }, function() {
203
+ jQuery("#ajax-response").html('<div class="message updated fade"><p><?php _e( "Items Order Updated", 'taxonomy-terms-order' ) ?></p></div>');
204
  jQuery("#ajax-response div").delay(3000).hide("slow");
205
  });
206
  });
include/options.php CHANGED
@@ -8,12 +8,12 @@ function to_plugin_options()
8
  if (isset($_POST['form_submit']))
9
  {
10
 
11
- $options['capability'] = $_POST['capability'];
12
 
13
- $options['autosort'] = isset($_POST['autosort']) ? $_POST['autosort'] : '';
14
- $options['adminsort'] = isset($_POST['adminsort']) ? $_POST['adminsort'] : '';
15
 
16
- ?><div class="updated fade"><p><?php _e('Settings Saved', 'tto') ?></p></div><?php
17
 
18
  update_option('tto_options', $options);
19
  }
@@ -21,18 +21,18 @@ function to_plugin_options()
21
  ?>
22
  <div class="wrap">
23
  <div id="icon-settings" class="icon32"></div>
24
- <h2><?php _e( "General Settings", 'tto' ) ?></h2>
25
 
26
  <?php tto_info_box() ?>
27
 
28
  <form id="form_data" name="form" method="post">
29
  <br />
30
- <h2 class="subtitle"><?php _e( "General", 'tto' ) ?></h2>
31
  <table class="form-table">
32
  <tbody>
33
 
34
  <tr valign="top">
35
- <th scope="row" style="text-align: right;"><label><?php _e( "Minimum Level to use this plugin", 'tto' ) ?></label></th>
36
  <td>
37
  <select id="role" name="capability">
38
  <option value="read" <?php if (isset($options['capability']) && $options['capability'] == "read") echo 'selected="selected"'?>><?php _e('Subscriber', 'cpt') ?></option>
@@ -46,20 +46,20 @@ function to_plugin_options()
46
 
47
 
48
  <tr valign="top">
49
- <th scope="row" style="text-align: right;"><label><?php _e( "Auto Sort", 'tto' ) ?></label></th>
50
  <td>
51
  <select id="role" name="autosort">
52
- <option value="0" <?php if ($options['autosort'] == "0") echo 'selected="selected"'?>><?php _e('OFF', 'tto') ?></option>
53
- <option value="1" <?php if ($options['autosort'] == "1") echo 'selected="selected"'?>><?php _e('ON', 'tto') ?></option>
54
- </select> *(<?php _e( "global setting", 'tto' ) ?>) <?php _e( "Additional description and details at ", 'tto' ) ?><a target="_blank" href="http://www.nsp-code.com/taxonomy-terms-order-and-auto-sort-admin-sort-description-an-usage/"><?php _e( "Auto Sort Description", 'tto' ) ?></a>
55
  </td>
56
  </tr>
57
 
58
  <tr valign="top">
59
- <th scope="row" style="text-align: right;"><label><?php _e( "Admin Sort", 'tto' ) ?></label></th>
60
  <td>
61
  <input id="adminsort" type="checkbox" <?php if ($options['adminsort'] == "1") {echo ' checked="checked"';} ?> value="1" name="adminsort">
62
- <label for="adminsort"><?php _e("This will change the order of terms within the admin interface", 'tto') ?>. <?php _e( "Additional description and details at ", 'tto' ) ?><a target="_blank" href="http://www.nsp-code.com/taxonomy-terms-order-and-auto-sort-admin-sort-description-an-usage/"><?php _e( "Auto Sort Description", 'tto' ) ?></a></label>
63
  </td>
64
  </tr>
65
 
@@ -70,7 +70,7 @@ function to_plugin_options()
70
 
71
 
72
  <p class="submit">
73
- <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Settings', 'tto') ?>">
74
  </p>
75
 
76
  <input type="hidden" name="form_submit" value="true" />
8
  if (isset($_POST['form_submit']))
9
  {
10
 
11
+ $options['capability'] = sanitize_key($_POST['capability']);
12
 
13
+ $options['autosort'] = isset($_POST['autosort']) ? intval($_POST['autosort']) : '';
14
+ $options['adminsort'] = isset($_POST['adminsort']) ? intval($_POST['adminsort']) : '';
15
 
16
+ ?><div class="updated fade"><p><?php _e('Settings Saved', 'taxonomy-terms-order') ?></p></div><?php
17
 
18
  update_option('tto_options', $options);
19
  }
21
  ?>
22
  <div class="wrap">
23
  <div id="icon-settings" class="icon32"></div>
24
+ <h2><?php _e( "General Settings", 'taxonomy-terms-order' ) ?></h2>
25
 
26
  <?php tto_info_box() ?>
27
 
28
  <form id="form_data" name="form" method="post">
29
  <br />
30
+ <h2 class="subtitle"><?php _e( "General", 'taxonomy-terms-order' ) ?></h2>
31
  <table class="form-table">
32
  <tbody>
33
 
34
  <tr valign="top">
35
+ <th scope="row" style="text-align: right;"><label><?php _e( "Minimum Level to use this plugin", 'taxonomy-terms-order' ) ?></label></th>
36
  <td>
37
  <select id="role" name="capability">
38
  <option value="read" <?php if (isset($options['capability']) && $options['capability'] == "read") echo 'selected="selected"'?>><?php _e('Subscriber', 'cpt') ?></option>
46
 
47
 
48
  <tr valign="top">
49
+ <th scope="row" style="text-align: right;"><label><?php _e( "Auto Sort", 'taxonomy-terms-order' ) ?></label></th>
50
  <td>
51
  <select id="role" name="autosort">
52
+ <option value="0" <?php if ($options['autosort'] == "0") echo 'selected="selected"'?>><?php _e('OFF', 'taxonomy-terms-order') ?></option>
53
+ <option value="1" <?php if ($options['autosort'] == "1") echo 'selected="selected"'?>><?php _e('ON', 'taxonomy-terms-order') ?></option>
54
+ </select> *(<?php _e( "global setting", 'taxonomy-terms-order' ) ?>) <?php _e( "Additional description and details at ", 'taxonomy-terms-order' ) ?><a target="_blank" href="http://www.nsp-code.com/taxonomy-terms-order-and-auto-sort-admin-sort-description-an-usage/"><?php _e( "Auto Sort Description", 'taxonomy-terms-order' ) ?></a>
55
  </td>
56
  </tr>
57
 
58
  <tr valign="top">
59
+ <th scope="row" style="text-align: right;"><label><?php _e( "Admin Sort", 'taxonomy-terms-order' ) ?></label></th>
60
  <td>
61
  <input id="adminsort" type="checkbox" <?php if ($options['adminsort'] == "1") {echo ' checked="checked"';} ?> value="1" name="adminsort">
62
+ <label for="adminsort"><?php _e("This will change the order of terms within the admin interface", 'taxonomy-terms-order') ?>. <?php _e( "Additional description and details at ", 'taxonomy-terms-order' ) ?><a target="_blank" href="http://www.nsp-code.com/taxonomy-terms-order-and-auto-sort-admin-sort-description-an-usage/"><?php _e( "Auto Sort Description", 'taxonomy-terms-order' ) ?></a></label>
63
  </td>
64
  </tr>
65
 
70
 
71
 
72
  <p class="submit">
73
+ <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Settings', 'taxonomy-terms-order') ?>">
74
  </p>
75
 
76
  <input type="hidden" name="form_submit" value="true" />
lang/to-de_DE.mo → languages/taxonomy-terms-order-de_DE.mo RENAMED
File without changes
lang/to-de_DE.po → languages/taxonomy-terms-order-de_DE.po RENAMED
File without changes
lang/to-fa_IR.mo → languages/taxonomy-terms-order-fa_IR.mo RENAMED
File without changes
lang/to-fa_IR.po → languages/taxonomy-terms-order-fa_IR.po RENAMED
File without changes
lang/to-fr_FR.mo → languages/taxonomy-terms-order-fr_FR.mo RENAMED
File without changes
lang/to-fr_FR.po → languages/taxonomy-terms-order-fr_FR.po RENAMED
File without changes
lang/to-hu_HU.mo → languages/taxonomy-terms-order-hu_HU.mo RENAMED
File without changes
lang/to-hu_HU.po → languages/taxonomy-terms-order-hu_HU.po RENAMED
File without changes
lang/to-ja.mo → languages/taxonomy-terms-order-ja.mo RENAMED
File without changes
lang/to-ja.po → languages/taxonomy-terms-order-ja.po RENAMED
File without changes
lang/to-nl_NL.mo → languages/taxonomy-terms-order-nl_NL.mo RENAMED
File without changes
lang/to-nl_NL.po → languages/taxonomy-terms-order-nl_NL.po RENAMED
File without changes
lang/to-pl_PL.mo → languages/taxonomy-terms-order-pl_PL.mo RENAMED
File without changes
lang/to-pl_PL.po → languages/taxonomy-terms-order-pl_PL.po RENAMED
File without changes
lang/to-pt_BR.mo → languages/taxonomy-terms-order-pt_BR.mo RENAMED
File without changes
lang/to-pt_BR.po → languages/taxonomy-terms-order-pt_BR.po RENAMED
File without changes
languages/taxonomy-terms-order-pt_PT.mo ADDED
Binary file
languages/taxonomy-terms-order-pt_PT.po ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Category Order and Taxonomy Terms Order\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-07-21 14:06+0100\n"
6
+ "PO-Revision-Date: 2015-07-21 14:46+0100\n"
7
+ "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
8
+ "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
9
+ "Language: pt_PT\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.2\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
18
+ "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
19
+ "X-Poedit-Basepath: ..\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ #: include/functions.php:62
23
+ msgid ""
24
+ "Did you find this plugin useful? Please support our work with a donation or "
25
+ "write an article about this plugin in your blog with a link to our site"
26
+ msgstr ""
27
+ "Considera este plugin útil? Por favor faça um donativo ao autor ou escreva "
28
+ "um artigo sobre este plugin no seu blog com ligação para a nossa página"
29
+
30
+ #: include/functions.php:63
31
+ msgid "Did you know there is available an advanced version of this plug-in?"
32
+ msgstr "Sabe que há uma versão avançada deste plugin?"
33
+
34
+ #: include/functions.php:63
35
+ msgid "Read more"
36
+ msgstr "Ler mais"
37
+
38
+ #: include/functions.php:64 include/functions.php:65
39
+ msgid "Check our"
40
+ msgstr "Veja o nosso plugin"
41
+
42
+ #: include/functions.php:64
43
+ msgid ""
44
+ "plugin which allow to custom sort categories and custom taxonomies terms per "
45
+ "post basis"
46
+ msgstr ""
47
+ "que permite personalizar a ordem das categorias e das taxonomias "
48
+ "personalizadas para cada tipo de artigo"
49
+
50
+ #: include/functions.php:65
51
+ msgid "plugin which allow to custom sort all posts, pages, custom post types"
52
+ msgstr ""
53
+ "que permite personalizar a ordem dos artigos, páginas e tipos de artigo "
54
+ "personalizados"
55
+
56
+ #: include/interface.php:38 taxonomy-terms-order.php:125
57
+ #: taxonomy-terms-order.php:127 taxonomy-terms-order.php:129
58
+ msgid "Taxonomy Order"
59
+ msgstr "Ordem da taxonomia"
60
+
61
+ #: include/interface.php:46
62
+ msgid ""
63
+ "This plugin can't work without javascript, because it's use drag and drop "
64
+ "and AJAX."
65
+ msgstr ""
66
+ "Este plugin não funciona sem JavaScript, porque utiliza AJAX para arrastar e "
67
+ "largar os itens."
68
+
69
+ #: include/interface.php:100
70
+ msgid "Taxonomies"
71
+ msgstr "Taxonomias"
72
+
73
+ #: include/interface.php:104
74
+ msgid "Taxonomy Title"
75
+ msgstr "Título da taxonomia"
76
+
77
+ #: include/interface.php:104
78
+ msgid "Total Posts"
79
+ msgstr "Total de artigos"
80
+
81
+ #: include/interface.php:154
82
+ msgid "Update"
83
+ msgstr "Atualizar"
84
+
85
+ #: include/interface.php:203
86
+ msgid "Items Order Updated"
87
+ msgstr "Ordem dos itens alterada"
88
+
89
+ #: include/options.php:16
90
+ msgid "Settings Saved"
91
+ msgstr "Definições guardadas"
92
+
93
+ #: include/options.php:24
94
+ msgid "General Settings"
95
+ msgstr "Definições gerais"
96
+
97
+ #: include/options.php:30
98
+ msgid "General"
99
+ msgstr "Geral"
100
+
101
+ #: include/options.php:35
102
+ msgid "Minimum Level to use this plugin"
103
+ msgstr "Nível mínimo para utilizar este plugin"
104
+
105
+ #: include/options.php:38
106
+ msgid "Subscriber"
107
+ msgstr "Assinante"
108
+
109
+ #: include/options.php:39
110
+ msgid "Contributor"
111
+ msgstr "Colaborador"
112
+
113
+ #: include/options.php:40
114
+ msgid "Author"
115
+ msgstr "Autor"
116
+
117
+ #: include/options.php:41
118
+ msgid "Editor"
119
+ msgstr "Editor"
120
+
121
+ #: include/options.php:42
122
+ msgid "Administrator"
123
+ msgstr "Administrador"
124
+
125
+ #: include/options.php:49
126
+ msgid "Auto Sort"
127
+ msgstr "Ordem automática"
128
+
129
+ #: include/options.php:52
130
+ msgid "OFF"
131
+ msgstr "Desligado"
132
+
133
+ #: include/options.php:53
134
+ msgid "ON"
135
+ msgstr "Ligado"
136
+
137
+ #: include/options.php:54
138
+ msgid "global setting"
139
+ msgstr "definição geral"
140
+
141
+ #: include/options.php:54 include/options.php:62
142
+ msgid "Additional description and details at "
143
+ msgstr "Descrição adicional e detalhes em "
144
+
145
+ #: include/options.php:54 include/options.php:62
146
+ msgid "Auto Sort Description"
147
+ msgstr "Auto Sort Description"
148
+
149
+ #: include/options.php:59
150
+ msgid "Admin Sort"
151
+ msgstr "Ordem na administração"
152
+
153
+ #: include/options.php:62
154
+ msgid "This will change the order of terms within the admin interface"
155
+ msgstr "Isto altera a ordem dos termos no interface de administração"
156
+
157
+ #: include/options.php:73
158
+ msgid "Save Settings"
159
+ msgstr "Guardar definições"
160
+
161
+ #: taxonomy-terms-order.php:90
162
+ msgid "Taxonomy Terms Order"
163
+ msgstr "Taxonomy Terms Order"
lang/to-ro_RO.mo → languages/taxonomy-terms-order-ro_RO.mo RENAMED
File without changes
lang/to-ro_RO.po → languages/taxonomy-terms-order-ro_RO.po RENAMED
File without changes
lang/to-sk_SK.mo → languages/taxonomy-terms-order-sk_SK.mo RENAMED
File without changes
lang/to-sk_SK.po → languages/taxonomy-terms-order-sk_SK.po RENAMED
File without changes
lang/to-uk_UA.mo → languages/taxonomy-terms-order-uk_UA.mo RENAMED
File without changes
lang/to-uk_UA.po → languages/taxonomy-terms-order-uk_UA.po RENAMED
File without changes
lang/to-zh_TW.mo → languages/taxonomy-terms-order-zh_TW.mo RENAMED
File without changes
lang/to-zh_TW.po → languages/taxonomy-terms-order-zh_TW.po RENAMED
File without changes
lang/to.mo → languages/taxonomy-terms-order.mo RENAMED
Binary file
lang/to.po → languages/taxonomy-terms-order.po RENAMED
@@ -2,75 +2,80 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Category Order and Taxonomy Terms Order\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-05-22 19:58+0200\n"
6
- "PO-Revision-Date: 2015-05-22 19:58+0200\n"
7
  "Last-Translator: NspCode <electronice_delphi@yahoo.com>\n"
8
  "Language-Team: nsp-code <electronice_delphi@yahoo.com>\n"
9
  "Language: en\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e\n"
14
  "X-Poedit-Basepath: D:\\htdocs\\develop\\advanced_post_types_order\\wp-content"
15
  "\\plugins\\taxonomy-terms-order\\\n"
16
  "X-Generator: Poedit 1.5.5\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: include/functions.php:39
 
 
 
 
 
 
 
 
 
20
  msgid ""
21
  "Did you find this plugin useful? Please support our work with a donation or "
22
  "write an article about this plugin in your blog with a link to our site"
23
  msgstr ""
24
 
25
- #: include/functions.php:40
26
  msgid "Did you know there is available an advanced version of this plug-in?"
27
  msgstr ""
28
 
29
- #: include/functions.php:40
30
  msgid "Read more"
31
  msgstr ""
32
 
33
- #: include/functions.php:41 include/functions.php:42
34
  msgid "Check our"
35
  msgstr ""
36
 
37
- #: include/functions.php:41
38
  msgid ""
39
  "plugin which allow to custom sort categories and custom taxonomies terms per "
40
  "post basis"
41
  msgstr ""
42
 
43
- #: include/functions.php:42
44
  msgid "plugin which allow to custom sort all posts, pages, custom post types"
45
  msgstr ""
46
 
47
- #: include/interface.php:19
48
- msgid "Taxonomy Order"
49
- msgstr ""
50
-
51
- #: include/interface.php:27
52
  msgid ""
53
  "This plugin can't work without javascript, because it's use drag and drop "
54
  "and AJAX."
55
  msgstr ""
56
 
57
- #: include/interface.php:63
58
  msgid "Taxonomies"
59
  msgstr ""
60
 
61
- #: include/interface.php:67
62
  msgid "Taxonomy Title"
63
  msgstr ""
64
 
65
- #: include/interface.php:67
66
  msgid "Total Posts"
67
  msgstr ""
68
 
69
- #: include/interface.php:117
70
  msgid "Update"
71
  msgstr ""
72
 
73
- #: include/interface.php:166
74
  msgid "Items Order Updated"
75
  msgstr ""
76
 
@@ -126,44 +131,22 @@ msgstr ""
126
  msgid "global setting"
127
  msgstr ""
128
 
129
- #: include/options.php:59
130
- msgid "Admin Sort"
131
- msgstr ""
132
-
133
- #: include/options.php:63
134
- msgid "This will change the order of terms within the admin interface"
135
- msgstr ""
136
-
137
- #: include/options.php:71
138
- msgid "Autosort OFF"
139
- msgstr ""
140
-
141
- #: include/options.php:72
142
- msgid ""
143
- "No query will be changed, the terms will appear in the original order. To "
144
- "retrieve the terms in the required order you must use the term_order on the "
145
- "orderby parameter"
146
  msgstr ""
147
 
148
- #: include/options.php:80
149
- msgid "See more info on the get_terms usage"
150
  msgstr ""
151
 
152
- #: include/options.php:80
153
- msgid "here"
154
- msgstr ""
155
-
156
- #: include/options.php:82
157
- msgid "Autosort ON"
158
  msgstr ""
159
 
160
- #: include/options.php:83
161
- msgid ""
162
- "The queries will be updated, all terms will appear in the order you manually "
163
- "defined. This is recommended if you don't want to change any theme code to "
164
- "apply the terms order"
165
  msgstr ""
166
 
167
- #: include/options.php:93
168
  msgid "Save Settings"
169
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: Category Order and Taxonomy Terms Order\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-07-21 21:29+0200\n"
6
+ "PO-Revision-Date: 2015-07-21 21:29+0200\n"
7
  "Last-Translator: NspCode <electronice_delphi@yahoo.com>\n"
8
  "Language-Team: nsp-code <electronice_delphi@yahoo.com>\n"
9
  "Language: en\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: _;gettext;__;_e\n"
14
  "X-Poedit-Basepath: D:\\htdocs\\develop\\advanced_post_types_order\\wp-content"
15
  "\\plugins\\taxonomy-terms-order\\\n"
16
  "X-Generator: Poedit 1.5.5\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: taxonomy-terms-order.php:90
20
+ msgid "Taxonomy Terms Order"
21
+ msgstr ""
22
+
23
+ #: taxonomy-terms-order.php:125 taxonomy-terms-order.php:127
24
+ #: taxonomy-terms-order.php:129 include/interface.php:38
25
+ msgid "Taxonomy Order"
26
+ msgstr ""
27
+
28
+ #: include/functions.php:62
29
  msgid ""
30
  "Did you find this plugin useful? Please support our work with a donation or "
31
  "write an article about this plugin in your blog with a link to our site"
32
  msgstr ""
33
 
34
+ #: include/functions.php:63
35
  msgid "Did you know there is available an advanced version of this plug-in?"
36
  msgstr ""
37
 
38
+ #: include/functions.php:63
39
  msgid "Read more"
40
  msgstr ""
41
 
42
+ #: include/functions.php:64 include/functions.php:65
43
  msgid "Check our"
44
  msgstr ""
45
 
46
+ #: include/functions.php:64
47
  msgid ""
48
  "plugin which allow to custom sort categories and custom taxonomies terms per "
49
  "post basis"
50
  msgstr ""
51
 
52
+ #: include/functions.php:65
53
  msgid "plugin which allow to custom sort all posts, pages, custom post types"
54
  msgstr ""
55
 
56
+ #: include/interface.php:46
 
 
 
 
57
  msgid ""
58
  "This plugin can't work without javascript, because it's use drag and drop "
59
  "and AJAX."
60
  msgstr ""
61
 
62
+ #: include/interface.php:100
63
  msgid "Taxonomies"
64
  msgstr ""
65
 
66
+ #: include/interface.php:104
67
  msgid "Taxonomy Title"
68
  msgstr ""
69
 
70
+ #: include/interface.php:104
71
  msgid "Total Posts"
72
  msgstr ""
73
 
74
+ #: include/interface.php:154
75
  msgid "Update"
76
  msgstr ""
77
 
78
+ #: include/interface.php:203
79
  msgid "Items Order Updated"
80
  msgstr ""
81
 
131
  msgid "global setting"
132
  msgstr ""
133
 
134
+ #: include/options.php:54 include/options.php:62
135
+ msgid "Additional description and details at "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  msgstr ""
137
 
138
+ #: include/options.php:54 include/options.php:62
139
+ msgid "Auto Sort Description"
140
  msgstr ""
141
 
142
+ #: include/options.php:59
143
+ msgid "Admin Sort"
 
 
 
 
144
  msgstr ""
145
 
146
+ #: include/options.php:62
147
+ msgid "This will change the order of terms within the admin interface"
 
 
 
148
  msgstr ""
149
 
150
+ #: include/options.php:73
151
  msgid "Save Settings"
152
  msgstr ""
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Category Order and Taxonomy Terms Order ===
2
- Contributors: Nsp Code
3
  Donate link: http://www.nsp-code.com/donate.php
4
  Tags: category order,terms order, taxonomy order, admin order
5
  Requires at least: 2.8
6
- Tested up to: 4.3
 
7
 
8
  Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability. No Theme update is required.
9
 
@@ -48,6 +49,18 @@ All ideas are welcome and i put them on my list to be implemented into the new v
48
 
49
  == Change Log ==
50
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  = 1.4.4 =
52
  - User role switch from deprecated user_level to capabilities
53
  - Taxonomy sort for media
@@ -98,4 +111,4 @@ Make sure you get the latest version
98
  == Localization ==
99
 
100
  Available in English, Dutch, French, Deutch, Slovak, Japanese, Traditional Chineze, Brazilian Portuguese, Hungarian, Ukrainian, Czech and Romanian
101
- Whant to contribute with a translation to your language? Please use the attached to.pot file
1
  === Category Order and Taxonomy Terms Order ===
2
+ Contributors: nsp-code
3
  Donate link: http://www.nsp-code.com/donate.php
4
  Tags: category order,terms order, taxonomy order, admin order
5
  Requires at least: 2.8
6
+ Tested up to: 4.4
7
+ Stable tag: 1.4.7
8
 
9
  Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability. No Theme update is required.
10
 
49
 
50
  == Change Log ==
51
 
52
+ = 1.4.7 =
53
+ - Texdomain change to taxonomy-terms-order to allow translations through translate.wordpress.org
54
+ - WordPress 4.4 compatibility update
55
+ - Css updates
56
+
57
+ = 1.4.6.1 =
58
+ - Security bug fix
59
+
60
+ = 1.4.5 =
61
+ - Translation textdomain fix - thanks to Pedro Mendonça
62
+ - Portuguese localization update - Pedro Mendonça
63
+
64
  = 1.4.4 =
65
  - User role switch from deprecated user_level to capabilities
66
  - Taxonomy sort for media
111
  == Localization ==
112
 
113
  Available in English, Dutch, French, Deutch, Slovak, Japanese, Traditional Chineze, Brazilian Portuguese, Hungarian, Ukrainian, Czech and Romanian
114
+ Whant to contribute with a translation to your language? Please check at https://translate.wordpress.org/projects/wp-plugins/taxonomy-terms-order
taxonomy-terms-order.php CHANGED
@@ -3,10 +3,12 @@
3
  Plugin Name: Category Order and Taxonomy Terms Order
4
  Plugin URI: http://www.nsp-code.com
5
  Description: Category Order and Taxonomy Terms Order
6
- Version: 1.4.4
7
  Author: Nsp-Code
8
  Author URI: http://www.nsp-code.com
9
  Author Email: electronice_delphi@yahoo.com
 
 
10
  */
11
 
12
 
@@ -55,7 +57,7 @@ Author Email: electronice_delphi@yahoo.com
55
  add_action( 'plugins_loaded', 'to_load_textdomain');
56
  function to_load_textdomain()
57
  {
58
- load_plugin_textdomain('to', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang');
59
  }
60
 
61
  add_action('admin_print_scripts', 'TO_admin_scripts');
@@ -87,7 +89,7 @@ Author Email: electronice_delphi@yahoo.com
87
  include (TOPATH . '/include/terms_walker.php');
88
 
89
  include (TOPATH . '/include/options.php');
90
- add_options_page('Taxonomy Terms Order', '<img class="menu_tto" src="'. TOURL .'/images/menu-icon.png" alt="" />' . __('Taxonomy Terms Order', 'tto'), 'manage_options', 'to-options', 'to_plugin_options');
91
 
92
  $options = get_option('tto_options');
93
 
@@ -122,11 +124,11 @@ Author Email: electronice_delphi@yahoo.com
122
  continue;
123
 
124
  if ($post_type == 'post')
125
- add_submenu_page('edit.php', __('Taxonomy Order', 'tto'), __('Taxonomy Order', 'tto'), $capability, 'to-interface-'.$post_type, 'TOPluginInterface' );
126
  elseif ($post_type == 'attachment')
127
- $hookID = add_submenu_page('upload.php', __('Taxonomy Order', 'tto'), __('Taxonomy Order', 'tto'), $capability, 'to-interface-'.$post_type, 'TOPluginInterface' );
128
  else
129
- add_submenu_page('edit.php?post_type='.$post_type, __('Taxonomy Order', 'tto'), __('Taxonomy Order', 'tto'), $capability, 'to-interface-'.$post_type, 'TOPluginInterface' );
130
  }
131
  }
132
 
3
  Plugin Name: Category Order and Taxonomy Terms Order
4
  Plugin URI: http://www.nsp-code.com
5
  Description: Category Order and Taxonomy Terms Order
6
+ Version: 1.4.7
7
  Author: Nsp-Code
8
  Author URI: http://www.nsp-code.com
9
  Author Email: electronice_delphi@yahoo.com
10
+ Text Domain: taxonomy-terms-order
11
+ Domain Path: /languages/
12
  */
13
 
14
 
57
  add_action( 'plugins_loaded', 'to_load_textdomain');
58
  function to_load_textdomain()
59
  {
60
+ load_plugin_textdomain('taxonomy-terms-order', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang');
61
  }
62
 
63
  add_action('admin_print_scripts', 'TO_admin_scripts');
89
  include (TOPATH . '/include/terms_walker.php');
90
 
91
  include (TOPATH . '/include/options.php');
92
+ add_options_page('Taxonomy Terms Order', '<img class="menu_tto" src="'. TOURL .'/images/menu-icon.png" alt="" />' . __('Taxonomy Terms Order', 'taxonomy-terms-order'), 'manage_options', 'to-options', 'to_plugin_options');
93
 
94
  $options = get_option('tto_options');
95
 
124
  continue;
125
 
126
  if ($post_type == 'post')
127
+ add_submenu_page('edit.php', __('Taxonomy Order', 'taxonomy-terms-order'), __('Taxonomy Order', 'taxonomy-terms-order'), $capability, 'to-interface-'.$post_type, 'TOPluginInterface' );
128
  elseif ($post_type == 'attachment')
129
+ $hookID = add_submenu_page('upload.php', __('Taxonomy Order', 'taxonomy-terms-order'), __('Taxonomy Order', 'taxonomy-terms-order'), $capability, 'to-interface-'.$post_type, 'TOPluginInterface' );
130
  else
131
+ add_submenu_page('edit.php?post_type='.$post_type, __('Taxonomy Order', 'taxonomy-terms-order'), __('Taxonomy Order', 'taxonomy-terms-order'), $capability, 'to-interface-'.$post_type, 'TOPluginInterface' );
132
  }
133
  }
134