Category Order and Taxonomy Terms Order - Version 1.4.6

Version Description

Make sure you get the latest version

Download this release

Release Info

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

Code changes from version 1.4.4 to 1.4.6

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();
@@ -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
 
@@ -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>
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();
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
 
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>
include/options.php CHANGED
@@ -8,10 +8,10 @@ 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
 
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', 'tto') ?></p></div><?php
17
 
lang/{to-de_DE.mo → tto-de_DE.mo} RENAMED
File without changes
lang/{to-de_DE.po → tto-de_DE.po} RENAMED
File without changes
lang/{to-fa_IR.mo → tto-fa_IR.mo} RENAMED
File without changes
lang/{to-fa_IR.po → tto-fa_IR.po} RENAMED
File without changes
lang/{to-fr_FR.mo → tto-fr_FR.mo} RENAMED
File without changes
lang/{to-fr_FR.po → tto-fr_FR.po} RENAMED
File without changes
lang/{to-hu_HU.mo → tto-hu_HU.mo} RENAMED
File without changes
lang/{to-hu_HU.po → tto-hu_HU.po} RENAMED
File without changes
lang/{to-ja.mo → tto-ja.mo} RENAMED
File without changes
lang/{to-ja.po → tto-ja.po} RENAMED
File without changes
lang/{to-nl_NL.mo → tto-nl_NL.mo} RENAMED
File without changes
lang/{to-nl_NL.po → tto-nl_NL.po} RENAMED
File without changes
lang/{to-pl_PL.mo → tto-pl_PL.mo} RENAMED
File without changes
lang/{to-pl_PL.po → tto-pl_PL.po} RENAMED
File without changes
lang/{to-pt_BR.mo → tto-pt_BR.mo} RENAMED
File without changes
lang/{to-pt_BR.po → tto-pt_BR.po} RENAMED
File without changes
lang/tto-pt_PT.mo ADDED
Binary file
lang/tto-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 → tto-ro_RO.mo} RENAMED
File without changes
lang/{to-ro_RO.po → tto-ro_RO.po} RENAMED
File without changes
lang/{to-sk_SK.mo → tto-sk_SK.mo} RENAMED
File without changes
lang/{to-sk_SK.po → tto-sk_SK.po} RENAMED
File without changes
lang/{to-uk_UA.mo → tto-uk_UA.mo} RENAMED
File without changes
lang/{to-uk_UA.po → tto-uk_UA.po} RENAMED
File without changes
lang/{to-zh_TW.mo → tto-zh_TW.mo} RENAMED
File without changes
lang/{to-zh_TW.po → tto-zh_TW.po} RENAMED
File without changes
lang/{to.mo → tto.mo} RENAMED
Binary file
lang/{to.po → tto.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
@@ -48,6 +48,10 @@ 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
48
 
49
  == Change Log ==
50
 
51
+ = 1.4.6.1 =
52
+ - Translation textdomain fix - thanks to Pedro Mendonça
53
+ - Portuguese localization update - Pedro Mendonça
54
+
55
  = 1.4.4 =
56
  - User role switch from deprecated user_level to capabilities
57
  - Taxonomy sort for media
taxonomy-terms-order.php CHANGED
@@ -3,7 +3,7 @@
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
@@ -55,7 +55,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');
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.6.1
7
  Author: Nsp-Code
8
  Author URI: http://www.nsp-code.com
9
  Author Email: electronice_delphi@yahoo.com
55
  add_action( 'plugins_loaded', 'to_load_textdomain');
56
  function to_load_textdomain()
57
  {
58
+ load_plugin_textdomain('tto', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/lang');
59
  }
60
 
61
  add_action('admin_print_scripts', 'TO_admin_scripts');