Version Description
- Updates/Fixes
- Ignore Search queries when Autosort is ON
- Text Instances translatable fix
- Italian translation - Black Studio http://www.blackstudio.it
- Spanish translation - Marcelo Cannobbio
Download this release
Release Info
Developer | nsp-code |
Plugin | Post Types Order |
Version | 1.5.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.7 to 1.5.8
- css/cpt.css +5 -5
- lang/cpt-es_ES.mo +0 -0
- lang/cpt-es_ES.po +168 -0
- lang/cpt-it_IT.mo +0 -0
- lang/cpt-it_IT.po +160 -0
- post-types-order.php +9 -8
- readme.txt +12 -5
css/cpt.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
#sortable { list-style-type: none; margin: 10px 0 0; padding: 0; width: 100%; }
|
2 |
-
#sortable ul { margin-left:20px; list-style: none; }
|
3 |
-
#sortable li { padding: 2px 0px; margin: 4px 0px; border: 1px solid #DDDDDD; cursor: move; -moz-border-radius:6px;}
|
4 |
-
#sortable li span { display: block; background: #f7f7f7; padding: 5px 10px; color:#808080; font-size:13px; font-weight:bold;}
|
5 |
-
#sortable li.placeholder{border: dashed 2px #ccc;background-color:#FFF;height:
|
6 |
|
7 |
#icon-settings {background-image:url("../images/admin-icon-settings.gif");background-repeat:no-repeat;}
|
8 |
h2.subtitle {font-size: 15px; font-style: italic; font-weight: bold}
|
1 |
+
#order-post-type #sortable { list-style-type: none; margin: 10px 0 0; padding: 0; width: 100%; }
|
2 |
+
#order-post-type #sortable ul { margin-left:20px; list-style: none; }
|
3 |
+
#order-post-type #sortable li { padding: 2px 0px; margin: 4px 0px; border: 1px solid #DDDDDD; cursor: move; -moz-border-radius:6px;}
|
4 |
+
#order-post-type #sortable li span { display: block; background: #f7f7f7; padding: 5px 10px; color:#808080; font-size:13px; font-weight:bold;}
|
5 |
+
#order-post-type #sortable li.placeholder{border: dashed 2px #ccc;background-color:#FFF;height:25px;}
|
6 |
|
7 |
#icon-settings {background-image:url("../images/admin-icon-settings.gif");background-repeat:no-repeat;}
|
8 |
h2.subtitle {font-size: 15px; font-style: italic; font-weight: bold}
|
lang/cpt-es_ES.mo
ADDED
Binary file
|
lang/cpt-es_ES.po
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Post Types Order en Español\n"
|
4 |
+
"POT-Creation-Date: 2013-02-06 20:25+0100\n"
|
5 |
+
"PO-Revision-Date: 2013-02-06 20:25+0100\n"
|
6 |
+
"Last-Translator: Marcelo Cannobbio <marcelo@cannobbio.com>\n"
|
7 |
+
"Language-Team: Marcelo Cannobbio <marcelo@cannobbio.com>\n"
|
8 |
+
"Language: es_ES\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.5\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
14 |
+
"X-Poedit-Basepath: ../\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: post-types-order.php:107
|
18 |
+
msgid "Post Types Order must be configured. Please go to"
|
19 |
+
msgstr "Post Type Order necesita ser configurado. Por favor ve a la"
|
20 |
+
|
21 |
+
#: post-types-order.php:107
|
22 |
+
msgid "Settings Page"
|
23 |
+
msgstr "Página de Ajustes"
|
24 |
+
|
25 |
+
#: post-types-order.php:107
|
26 |
+
msgid "make the configuration and save"
|
27 |
+
msgstr "efectúa los ajustes y guarda"
|
28 |
+
|
29 |
+
#: post-types-order.php:445 post-types-order.php:449 post-types-order.php:460
|
30 |
+
msgid "Re-Order"
|
31 |
+
msgstr "Reordenar"
|
32 |
+
|
33 |
+
#: post-types-order.php:468
|
34 |
+
msgid ""
|
35 |
+
"This plugin can't work without javascript, because it's use drag and drop "
|
36 |
+
"and AJAX."
|
37 |
+
msgstr ""
|
38 |
+
"Este plugin no puede funcionar sin JavaScript ya que utiliza AJAX y "
|
39 |
+
"\"arrastrar y soltar\"."
|
40 |
+
|
41 |
+
#: post-types-order.php:481
|
42 |
+
msgid "Update"
|
43 |
+
msgstr "Actualizar"
|
44 |
+
|
45 |
+
#: post-types-order.php:497
|
46 |
+
msgid "Items Order Updated"
|
47 |
+
msgstr "Orden Actualizado"
|
48 |
+
|
49 |
+
#: post-types-order.php:514
|
50 |
+
msgid "Pages"
|
51 |
+
msgstr "Páginas"
|
52 |
+
|
53 |
+
#: include/functions.php:65
|
54 |
+
msgid ""
|
55 |
+
"Did you find this plugin useful? Please support our work with a donation or "
|
56 |
+
"write an article about this plugin in your blog with a link to our site"
|
57 |
+
msgstr ""
|
58 |
+
"¿Consideras útil este plugin? Por favor apoya nuestro trabajo con una "
|
59 |
+
"donación o escribe un artículo acerca de este plugin in tu blog con un "
|
60 |
+
"enlace a nuestro sitio"
|
61 |
+
|
62 |
+
#: include/functions.php:66
|
63 |
+
msgid "Did you know there is available an Advanced version of this plug-in?"
|
64 |
+
msgstr "¿Sabías que existe una versión Avanzada del este plugin?"
|
65 |
+
|
66 |
+
#: include/functions.php:66
|
67 |
+
msgid "Read more"
|
68 |
+
msgstr "Leer más"
|
69 |
+
|
70 |
+
#: include/functions.php:67
|
71 |
+
msgid "Check our"
|
72 |
+
msgstr "Revisa nuestro"
|
73 |
+
|
74 |
+
#: include/functions.php:67
|
75 |
+
msgid ""
|
76 |
+
"plugin which allow to custom sort categories and custom taxonomies terms"
|
77 |
+
msgstr ""
|
78 |
+
"plugin que permite ordenar personalizadamente categorías y términos de "
|
79 |
+
"taxonomías personalizadas"
|
80 |
+
|
81 |
+
#: include/options.php:16
|
82 |
+
msgid "Settings Saved"
|
83 |
+
msgstr "Ajustes Guardados"
|
84 |
+
|
85 |
+
#: include/options.php:28
|
86 |
+
msgid "General Settings"
|
87 |
+
msgstr "Ajustes Generales"
|
88 |
+
|
89 |
+
#: include/options.php:34
|
90 |
+
msgid "General"
|
91 |
+
msgstr "General"
|
92 |
+
|
93 |
+
#: include/options.php:39
|
94 |
+
msgid "Minimum Level to use this plugin"
|
95 |
+
msgstr "Nivel mínimo para utilizar este plugin"
|
96 |
+
|
97 |
+
#: include/options.php:42
|
98 |
+
msgid "Subscriber"
|
99 |
+
msgstr "Suscriptor"
|
100 |
+
|
101 |
+
#: include/options.php:43
|
102 |
+
msgid "Contributor"
|
103 |
+
msgstr "Colaborador"
|
104 |
+
|
105 |
+
#: include/options.php:44
|
106 |
+
msgid "Author"
|
107 |
+
msgstr "Autor"
|
108 |
+
|
109 |
+
#: include/options.php:45
|
110 |
+
msgid "Editor"
|
111 |
+
msgstr "Editor"
|
112 |
+
|
113 |
+
#: include/options.php:46
|
114 |
+
msgid "Administrator"
|
115 |
+
msgstr "Administrador"
|
116 |
+
|
117 |
+
#: include/options.php:52
|
118 |
+
msgid "Auto Sort"
|
119 |
+
msgstr "Orden Automático"
|
120 |
+
|
121 |
+
#: include/options.php:56
|
122 |
+
msgid ""
|
123 |
+
"If checked, the plug-in will automatically update the wp-queries to use the "
|
124 |
+
"new order (<b>No code update is necessarily</b>).<br /> If you need more "
|
125 |
+
"order customizations you will need to uncheck this and include 'menu_order' "
|
126 |
+
"into your theme queries"
|
127 |
+
msgstr ""
|
128 |
+
"Si está seleccionado, el plugin automáticamente actualizará las wp-queries "
|
129 |
+
"para usar el nuevo orden (<b>No es necesario actualizar código</b>).<br /> "
|
130 |
+
"Si necesitas más personalizaciones de orden, necesitarás desmarcar esto y e "
|
131 |
+
"incluir 'menu_order' en las wp-queries de tu tema"
|
132 |
+
|
133 |
+
#: include/options.php:58
|
134 |
+
msgid "Show Examples"
|
135 |
+
msgstr "Ver Ejemplos"
|
136 |
+
|
137 |
+
#: include/options.php:61
|
138 |
+
msgid "The following PHP code will still return the post in the set-up Order"
|
139 |
+
msgstr ""
|
140 |
+
"El siguiente código PHP seguirá devolviendo la entrada en el Orden ajustado"
|
141 |
+
|
142 |
+
#: include/options.php:74
|
143 |
+
msgid "Or"
|
144 |
+
msgstr "O"
|
145 |
+
|
146 |
+
#: include/options.php:83
|
147 |
+
msgid ""
|
148 |
+
"If the Auto Sort is uncheck you will need to use the \"orderby\" and \"order"
|
149 |
+
"\" parameters"
|
150 |
+
msgstr ""
|
151 |
+
"Si el Orden Automático se desmarca necesitarás usar los parámetros \"orderby"
|
152 |
+
"\" y \"order\""
|
153 |
+
|
154 |
+
#: include/options.php:98
|
155 |
+
msgid "Admin Sort"
|
156 |
+
msgstr "Orden en Administración"
|
157 |
+
|
158 |
+
#: include/options.php:102
|
159 |
+
msgid ""
|
160 |
+
"To affect the admin interface, to see the post types per your new sort, this "
|
161 |
+
"need to be checked"
|
162 |
+
msgstr ""
|
163 |
+
"Para afectar la interfaz de administración, para ver los tipos de entrada en "
|
164 |
+
"su nuevo orden, esto debe ser desmarcado"
|
165 |
+
|
166 |
+
#: include/options.php:111
|
167 |
+
msgid "Save Settings"
|
168 |
+
msgstr "Guardar Ajustes"
|
lang/cpt-it_IT.mo
ADDED
Binary file
|
lang/cpt-it_IT.po
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Post Types Order\n"
|
4 |
+
"POT-Creation-Date: 2012-12-07 16:41+0200\n"
|
5 |
+
"PO-Revision-Date: 2013-04-21 19:00+0100\n"
|
6 |
+
"Last-Translator: Marco <marco@blackstudio.it>\n"
|
7 |
+
"Language-Team: Black Studio <info@blackstudio.it>\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
13 |
+
"X-Poedit-Basepath: ../\n"
|
14 |
+
"Language: Italiano\n"
|
15 |
+
"X-Poedit-SearchPath-0: .\n"
|
16 |
+
|
17 |
+
#: post-types-order.php:107
|
18 |
+
msgid "Post Types Order must be configured. Please go to"
|
19 |
+
msgstr "Post Types Order deve essere configurato. Si prega di andare alla"
|
20 |
+
|
21 |
+
#: post-types-order.php:107
|
22 |
+
msgid "Settings Page"
|
23 |
+
msgstr "pagina delle impostazioni"
|
24 |
+
|
25 |
+
#: post-types-order.php:107
|
26 |
+
msgid "make the configuration and save"
|
27 |
+
msgstr "Imposta la configurazione e salva"
|
28 |
+
|
29 |
+
#: post-types-order.php:468
|
30 |
+
msgid ""
|
31 |
+
"This plugin can't work without javascript, because it's use drag and drop "
|
32 |
+
"and AJAX."
|
33 |
+
msgstr ""
|
34 |
+
"Questo plugin non può funzionare senza javascript, in quanto utilizza il "
|
35 |
+
"\"drag and drop\" e AJAX."
|
36 |
+
|
37 |
+
#: post-types-order.php:497
|
38 |
+
msgid "Items Order Updated"
|
39 |
+
msgstr "Ordine degli elementi aggiornato"
|
40 |
+
|
41 |
+
#: post-types-order.php:514
|
42 |
+
msgid "Pages"
|
43 |
+
msgstr "Pagine"
|
44 |
+
|
45 |
+
#: include/functions.php:65
|
46 |
+
msgid ""
|
47 |
+
"Did you find this plugin useful? Please support our work with a donation or "
|
48 |
+
"write an article about this plugin in your blog with a link to our site"
|
49 |
+
msgstr ""
|
50 |
+
"Hai trovato utile questo plugin? Per favore supporta il nostro lavoro con "
|
51 |
+
"una donazione o scrivi un articolo relativo a questo plugin sul tuo blog con "
|
52 |
+
"un link al nostro sito"
|
53 |
+
|
54 |
+
#: include/functions.php:66
|
55 |
+
msgid "Did you know there is available an Advanced version of this plug-in?"
|
56 |
+
msgstr "Sapevi che è disponibile una versione Advanced di questo plugin?"
|
57 |
+
|
58 |
+
#: include/functions.php:66
|
59 |
+
msgid "Read more"
|
60 |
+
msgstr "Approfondisci"
|
61 |
+
|
62 |
+
#: include/functions.php:67
|
63 |
+
msgid "Check our"
|
64 |
+
msgstr "Prova il nostro plugin"
|
65 |
+
|
66 |
+
#: include/functions.php:67
|
67 |
+
msgid ""
|
68 |
+
"plugin which allow to custom sort categories and custom taxonomies terms"
|
69 |
+
msgstr ""
|
70 |
+
"che permette di stabilire un ordine personalizzato per le categorie e le "
|
71 |
+
"tassonomie"
|
72 |
+
|
73 |
+
#: include/options.php:16
|
74 |
+
msgid "Settings Saved"
|
75 |
+
msgstr "Impostazioni salvate"
|
76 |
+
|
77 |
+
#: include/options.php:28
|
78 |
+
msgid "General Settings"
|
79 |
+
msgstr "Impostazioni generali"
|
80 |
+
|
81 |
+
#: include/options.php:34
|
82 |
+
msgid "General"
|
83 |
+
msgstr "Generale"
|
84 |
+
|
85 |
+
#: include/options.php:39
|
86 |
+
msgid "Minimum Level to use this plugin"
|
87 |
+
msgstr "Livello minimo per utilizzare questo plugin"
|
88 |
+
|
89 |
+
#: include/options.php:42
|
90 |
+
msgid "Subscriber"
|
91 |
+
msgstr "Sottoscrittore"
|
92 |
+
|
93 |
+
#: include/options.php:43
|
94 |
+
msgid "Contributor"
|
95 |
+
msgstr "Collaboratore"
|
96 |
+
|
97 |
+
#: include/options.php:44
|
98 |
+
msgid "Author"
|
99 |
+
msgstr "Autore"
|
100 |
+
|
101 |
+
#: include/options.php:45
|
102 |
+
msgid "Editor"
|
103 |
+
msgstr "Editore"
|
104 |
+
|
105 |
+
#: include/options.php:46
|
106 |
+
msgid "Administrator"
|
107 |
+
msgstr "Amministratore"
|
108 |
+
|
109 |
+
#: include/options.php:52
|
110 |
+
msgid "Auto Sort"
|
111 |
+
msgstr "Ordinamento automatico"
|
112 |
+
|
113 |
+
#: include/options.php:56
|
114 |
+
msgid ""
|
115 |
+
"If checked, the plug-in will automatically update the wp-queries to use the "
|
116 |
+
"new order (<b>No code update is necessarily</b>).<br /> If you need more "
|
117 |
+
"order customizations you will need to uncheck this and include 'menu_order' "
|
118 |
+
"into your theme queries"
|
119 |
+
msgstr ""
|
120 |
+
"Se selezionato, il plugin aggiornerà automaticamente le query per utilizzare "
|
121 |
+
"il nuovo ordinamento (<b>Nessuna modifica al codice è necessaria</b>).<br /"
|
122 |
+
">Se hai bisogno di una maggiore personalizzazione sull'ordinamento dovrai "
|
123 |
+
"deselezionare questa opzione ed includere 'menu_order' nelle query del tuo "
|
124 |
+
"tema"
|
125 |
+
|
126 |
+
#: include/options.php:58
|
127 |
+
msgid "Show Examples"
|
128 |
+
msgstr "Visualizza esempi"
|
129 |
+
|
130 |
+
#: include/options.php:61
|
131 |
+
msgid "The following PHP code will still return the post in the set-up Order"
|
132 |
+
msgstr "Il seguente codice PHP restituirà i post nell'ordine impostato"
|
133 |
+
|
134 |
+
#: include/options.php:74
|
135 |
+
msgid "Or"
|
136 |
+
msgstr "Oppure"
|
137 |
+
|
138 |
+
#: include/options.php:83
|
139 |
+
msgid ""
|
140 |
+
"If the Auto Sort is uncheck you will need to use the \"orderby\" and \"order"
|
141 |
+
"\" parameters"
|
142 |
+
msgstr ""
|
143 |
+
"Se l'ordinamento automatico non è selezionato avrai bisogno di usare i "
|
144 |
+
"parametri \"orderby\" e \"order\""
|
145 |
+
|
146 |
+
#: include/options.php:98
|
147 |
+
msgid "Admin Sort"
|
148 |
+
msgstr "Ordinamento in amministrazione"
|
149 |
+
|
150 |
+
#: include/options.php:102
|
151 |
+
msgid ""
|
152 |
+
"To affect the admin interface, to see the post types per your new sort, this "
|
153 |
+
"need to be checked"
|
154 |
+
msgstr ""
|
155 |
+
"Per visualizzare l'ordine impostato nell'interfaccia di amministrazione, "
|
156 |
+
"devi selezionare questa opzione"
|
157 |
+
|
158 |
+
#: include/options.php:111
|
159 |
+
msgid "Save Settings"
|
160 |
+
msgstr "Salva impostazioni"
|
post-types-order.php
CHANGED
@@ -5,15 +5,12 @@ Plugin URI: http://www.nsp-code.com
|
|
5 |
Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
-
Version: 1.5.
|
9 |
*/
|
10 |
|
11 |
define('CPTPATH', plugin_dir_path(__FILE__));
|
12 |
define('CPTURL', plugins_url('', __FILE__));
|
13 |
-
|
14 |
-
define('CPTPATH', WP_PLUGIN_DIR .'/post-types-order');
|
15 |
-
define('CPTURL', WP_PLUGIN_URL .'/post-types-order');
|
16 |
-
*/
|
17 |
|
18 |
register_deactivation_hook(__FILE__, 'CPTO_deactivated');
|
19 |
register_activation_hook(__FILE__, 'CPTO_activated');
|
@@ -87,6 +84,10 @@ function CPTOrderPosts($orderBy, $query)
|
|
87 |
}
|
88 |
else
|
89 |
{
|
|
|
|
|
|
|
|
|
90 |
if ($options['autosort'] == "1")
|
91 |
$orderBy = "{$wpdb->posts}.menu_order, " . $orderBy;
|
92 |
}
|
@@ -442,7 +443,7 @@ class CPTO
|
|
442 |
continue;
|
443 |
|
444 |
if ($post_type_name == 'post')
|
445 |
-
add_submenu_page('edit.php', 'Re-Order', 'Re-Order', $capability, 'order-post-types-'.$post_type_name, array(&$this, 'SortPage') );
|
446 |
else
|
447 |
{
|
448 |
if (!is_post_type_hierarchical($post_type_name))
|
@@ -457,7 +458,7 @@ class CPTO
|
|
457 |
?>
|
458 |
<div class="wrap">
|
459 |
<div class="icon32" id="icon-edit"><br></div>
|
460 |
-
<h2><?php echo $this->current_post_type->labels->singular_name . ' - Re-
|
461 |
|
462 |
<?php cpt_info_box(); ?>
|
463 |
|
@@ -478,7 +479,7 @@ class CPTO
|
|
478 |
</div>
|
479 |
|
480 |
<p class="submit">
|
481 |
-
<a href="#" id="save-order" class="button-primary"
|
482 |
</p>
|
483 |
|
484 |
<script type="text/javascript">
|
5 |
Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
|
6 |
Author: Nsp Code
|
7 |
Author URI: http://www.nsp-code.com
|
8 |
+
Version: 1.5.8
|
9 |
*/
|
10 |
|
11 |
define('CPTPATH', plugin_dir_path(__FILE__));
|
12 |
define('CPTURL', plugins_url('', __FILE__));
|
13 |
+
|
|
|
|
|
|
|
14 |
|
15 |
register_deactivation_hook(__FILE__, 'CPTO_deactivated');
|
16 |
register_activation_hook(__FILE__, 'CPTO_activated');
|
84 |
}
|
85 |
else
|
86 |
{
|
87 |
+
//ignore search
|
88 |
+
if($query->is_search())
|
89 |
+
return($orderBy);
|
90 |
+
|
91 |
if ($options['autosort'] == "1")
|
92 |
$orderBy = "{$wpdb->posts}.menu_order, " . $orderBy;
|
93 |
}
|
443 |
continue;
|
444 |
|
445 |
if ($post_type_name == 'post')
|
446 |
+
add_submenu_page('edit.php', __('Re-Order', 'cpt'), __('Re-Order', 'cpt'), $capability, 'order-post-types-'.$post_type_name, array(&$this, 'SortPage') );
|
447 |
else
|
448 |
{
|
449 |
if (!is_post_type_hierarchical($post_type_name))
|
458 |
?>
|
459 |
<div class="wrap">
|
460 |
<div class="icon32" id="icon-edit"><br></div>
|
461 |
+
<h2><?php echo $this->current_post_type->labels->singular_name . ' - '. __('Re-Order', 'cpt') ?></h2>
|
462 |
|
463 |
<?php cpt_info_box(); ?>
|
464 |
|
479 |
</div>
|
480 |
|
481 |
<p class="submit">
|
482 |
+
<a href="#" id="save-order" class="button-primary"><?php _e('Update', 'cpt' ) ?></a>
|
483 |
</p>
|
484 |
|
485 |
<script type="text/javascript">
|
readme.txt
CHANGED
@@ -3,14 +3,14 @@ Contributors: Nsp Code
|
|
3 |
Donate link: http://www.nsp-code.com/donate.php
|
4 |
Tags: post order, post type order, custom order, admin posts order
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 3.5
|
7 |
-
Stable tag: 1.5.
|
8 |
|
9 |
Order Post Types Objects (posts, any custom post types) using a Drag and Drop Sortable JavaScript AJAX interface.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
<strong>Over
|
14 |
A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.
|
15 |
It allow to reorder the posts for any custom post types you defined, including the default Posts. Also you can have the admin posts interface sorted per your new sort. Post Order has never been easier.
|
16 |
|
@@ -30,7 +30,7 @@ As you can see just a matter of drag and drop and post ordering will change on f
|
|
30 |
If for some reason the post order does not update on your front side, you either do something wrong or the theme code you are using does not use a standard query per WordPress Codex rules and regulations. But we can still help, use the forum to report your issue as there are many peoples who gladly help or get in touch with us.
|
31 |
|
32 |
<br />
|
33 |
-
<br />This plugin
|
34 |
|
35 |
== Installation ==
|
36 |
|
@@ -66,6 +66,13 @@ All ideas are welcome and i put them on my list to be implemented into the new v
|
|
66 |
|
67 |
== Change Log ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.5.7 =
|
70 |
- Updates/Fixes
|
71 |
- Using Capabilities instead levels
|
@@ -122,6 +129,6 @@ Make sure you get the latest version
|
|
122 |
|
123 |
== Localization ==
|
124 |
|
125 |
-
Currently
|
126 |
Want to contribute with a translation to your language? Please contact me at electronice_delphi@yahoo.com
|
127 |
http://www.nsp-code.com
|
3 |
Donate link: http://www.nsp-code.com/donate.php
|
4 |
Tags: post order, post type order, custom order, admin posts order
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.5.8
|
8 |
|
9 |
Order Post Types Objects (posts, any custom post types) using a Drag and Drop Sortable JavaScript AJAX interface.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
<strong>Over 230.000 DOWNLOADS and near PERFECT ratting out of 180 REVIEWS</strong>. <br />
|
14 |
A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.
|
15 |
It allow to reorder the posts for any custom post types you defined, including the default Posts. Also you can have the admin posts interface sorted per your new sort. Post Order has never been easier.
|
16 |
|
30 |
If for some reason the post order does not update on your front side, you either do something wrong or the theme code you are using does not use a standard query per WordPress Codex rules and regulations. But we can still help, use the forum to report your issue as there are many peoples who gladly help or get in touch with us.
|
31 |
|
32 |
<br />
|
33 |
+
<br />This plugin is developed by <a target="_blank" href="http://www.nsp-code.com">Nsp-Code</a>
|
34 |
|
35 |
== Installation ==
|
36 |
|
66 |
|
67 |
== Change Log ==
|
68 |
|
69 |
+
= 1.5.8 =
|
70 |
+
- Updates/Fixes
|
71 |
+
- Ignore Search queries when Autosort is ON
|
72 |
+
- Text Instances translatable fix
|
73 |
+
- Italian translation - Black Studio http://www.blackstudio.it
|
74 |
+
- Spanish translation - Marcelo Cannobbio
|
75 |
+
|
76 |
= 1.5.7 =
|
77 |
- Updates/Fixes
|
78 |
- Using Capabilities instead levels
|
129 |
|
130 |
== Localization ==
|
131 |
|
132 |
+
Currently available in English, Brazilian Portuguese, Spanish, Romanian, Italian.
|
133 |
Want to contribute with a translation to your language? Please contact me at electronice_delphi@yahoo.com
|
134 |
http://www.nsp-code.com
|