Reorder Posts - Version 2.2.0

Version Description

  • Released 2015-11-1
  • Loading animation now shows inline
Download this release

Release Info

Developer ronalfy
Plugin Icon 128x128 Reorder Posts
Version 2.2.0
Comparing to
See all releases

Code changes from version 2.1.5 to 2.2.0

class-reorder.php CHANGED
@@ -312,7 +312,7 @@ final class MN_Reorder {
312
  * @global string $pagenow Used internally by WordPress to designate what the current page is in the admin panel
313
  */
314
  public function print_styles() {
315
- wp_enqueue_style( 'reorderpages_style', REORDER_URL . '/css/admin.css' );
316
  }
317
 
318
  /**
@@ -325,7 +325,7 @@ final class MN_Reorder {
325
  */
326
  public function print_scripts() {
327
  wp_register_script( 'reorder_nested', REORDER_URL . '/scripts/jquery.mjs.nestedSortable.js', array( 'jquery-ui-sortable' ), '1.3.5', true );
328
- wp_enqueue_script( 'reorder_posts', REORDER_URL . '/scripts/sort.js', array( 'reorder_nested' ) );
329
  wp_localize_script( 'reorder_posts', 'reorder_posts', array(
330
  'action' => 'post_sort',
331
  'expand' => esc_js( __( 'Expand', 'metronet-reorder-posts' ) ),
312
  * @global string $pagenow Used internally by WordPress to designate what the current page is in the admin panel
313
  */
314
  public function print_styles() {
315
+ wp_enqueue_style( 'reorderpages_style', REORDER_URL . '/css/admin.css', array(), '20151101' );
316
  }
317
 
318
  /**
325
  */
326
  public function print_scripts() {
327
  wp_register_script( 'reorder_nested', REORDER_URL . '/scripts/jquery.mjs.nestedSortable.js', array( 'jquery-ui-sortable' ), '1.3.5', true );
328
+ wp_enqueue_script( 'reorder_posts', REORDER_URL . '/scripts/sort.js', array( 'reorder_nested' ), '20151101', true );
329
  wp_localize_script( 'reorder_posts', 'reorder_posts', array(
330
  'action' => 'post_sort',
331
  'expand' => esc_js( __( 'Expand', 'metronet-reorder-posts' ) ),
css/admin.css CHANGED
@@ -43,6 +43,9 @@
43
  }
44
  #loading-animation {
45
  display: none;
 
 
 
46
  }
47
  #post-list .children {
48
  display: none;
43
  }
44
  #loading-animation {
45
  display: none;
46
+ float: right;
47
+ display: inline;
48
+ border: 0 !important;
49
  }
50
  #post-list .children {
51
  display: none;
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Reorder Posts
4
  Plugin URI: https://wordpress.org/plugins/metronet-reorder-posts/
5
  Description: Easily reorder posts and pages in WordPress
6
- Version: 2.1.5
7
  Author: Ryan Hellyer, Ronald Huereca, Scott Basgaard
8
  Author URI: https://github.com/ronalfy/reorder-posts
9
  Text Domain: metronet-reorder-posts
3
  Plugin Name: Reorder Posts
4
  Plugin URI: https://wordpress.org/plugins/metronet-reorder-posts/
5
  Description: Easily reorder posts and pages in WordPress
6
+ Version: 2.2.0
7
  Author: Ryan Hellyer, Ronald Huereca, Scott Basgaard
8
  Author URI: https://github.com/ronalfy/reorder-posts
9
  Text Domain: metronet-reorder-posts
languages/metronet-reorder-posts-de_DE.mo DELETED
Binary file
languages/metronet-reorder-posts-de_DE.po DELETED
@@ -1,139 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: \n"
4
- "Report-Msgid-Bugs-To: Ronald Huereca <ronalfy@gmail.com>\n"
5
- "POT-Creation-Date: 2015-01-19 19:30-0600\n"
6
- "PO-Revision-Date: 2015-04-13 19:25+0100\n"
7
- "Last-Translator: Nico Hauser <me@tyratox.ch>\n"
8
- "Language-Team: \n"
9
- "Language: de_DE\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.7.5\n"
14
- "X-Poedit-Basepath: .\n"
15
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
-
17
- #: class-reorder-admin.php:82 class-reorder-admin.php:360
18
- msgctxt "Plugin Name - Settings Page Title"
19
- msgid "Reorder Posts"
20
- msgstr "Reorder Posts"
21
-
22
- #: class-reorder-admin.php:82
23
- msgctxt "Plugin Name - Menu Item"
24
- msgid "Reorder Posts"
25
- msgstr "Reorder Posts"
26
-
27
- #: class-reorder-admin.php:123
28
- msgid "Sort by:"
29
- msgstr "Sortieren nach:"
30
-
31
- #: class-reorder-admin.php:125
32
- msgid "None"
33
- msgstr "Nichts"
34
-
35
- #: class-reorder-admin.php:126
36
- msgid "Menu Order"
37
- msgstr "Menüreihenfolge"
38
-
39
- #: class-reorder-admin.php:132
40
- msgid "Sort Order:"
41
- msgstr "Sortierreihenfolge"
42
-
43
- #: class-reorder-admin.php:134
44
- msgid "ASC"
45
- msgstr "Auftsteigend (Grösstes Element zuletzt)"
46
-
47
- #: class-reorder-admin.php:135
48
- msgid "DESC"
49
- msgstr "Absteigend (Grösstes Element zuerst)"
50
-
51
- #: class-reorder-admin.php:185
52
- msgid ""
53
- "These are advanced options and you should only use these if you know what "
54
- "you are doing. These can overwrite the menu orders of custom queries (using "
55
- "get_posts or WP_Query), custom post type archives, and even the order your "
56
- "blog posts display."
57
- msgstr ""
58
- "Dies sind erweiterte Optionen welche Sie nur ändern sollten, wenn Sie wissen "
59
- "was Sie tun. Dies können die Menüreihenfolge von eigenen Queries "
60
- "(get_posts() oder WP_Query), Archiven eigener Post Typen und sogar die "
61
- "Reihenfolge der Blogeinträge ändern."
62
-
63
- #: class-reorder-admin.php:201
64
- msgctxt "Plugin settings link on the plugins page"
65
- msgid "Settings"
66
- msgstr "Einstellungen"
67
-
68
- #: class-reorder-admin.php:251
69
- msgctxt "plugin settings heading"
70
- msgid "Enable Post Types"
71
- msgstr "Für folgende Posttypen aktivieren"
72
-
73
- #: class-reorder-admin.php:253
74
- msgctxt "plugin settings heading"
75
- msgid "Advanced"
76
- msgstr "Erweiterte Einstellungen"
77
-
78
- #: class-reorder-admin.php:255
79
- msgid "Post Types"
80
- msgstr "Posttypen"
81
-
82
- #: class-reorder-admin.php:255
83
- msgid "Select the post types you would like this plugin enabled for."
84
- msgstr ""
85
- "Wählen Sie die Posttypen an, für welche dieses Plugin einen Menüeintrag "
86
- "anzeigen soll."
87
-
88
- #: class-reorder-admin.php:257
89
- msgid "Select the menu order arguments."
90
- msgstr "Wählen Sie die Argumente für Menüreihenfolge."
91
-
92
- #: class-reorder-admin.php:257
93
- msgid "Select the menu order for the post types."
94
- msgstr "Wählen Sie die Reihenfolge für die Posttypen an."
95
-
96
- #: class-reorder.php:161 class-reorder.php:165 index.php:97
97
- msgid "Reorder"
98
- msgstr "Neu anordnen"
99
-
100
- #: class-reorder.php:319 class-reorder.php:462
101
- msgid "Expand"
102
- msgstr "Öffnen"
103
-
104
- #: class-reorder.php:320
105
- msgid "Collapse"
106
- msgstr "Schliessen"
107
-
108
- #: class-reorder.php:376
109
- #, php-format
110
- msgid ""
111
- "There are over %s posts found. We do not recommend you sort these posts for "
112
- "performance reasons."
113
- msgstr ""
114
- "Es wurden über %s Posts gefunden. Wir empfehlen Ihnen aus Performance "
115
- "Gründen dieses Posts nicht zu sortieren."
116
-
117
- #: class-reorder.php:383
118
- #, php-format
119
- msgid ""
120
- "Note: reordering here does not change the order on your website without "
121
- "some code modifications. Please see our <a target=\"_blank\" href=\"%s"
122
- "\">Wiki</a>."
123
- msgstr ""
124
- "Notitz: Ohne Modifikationen an Ihrem Code wird das Neuanordnen nicht die "
125
- "Reihenfolge der Posts auf ihrer Webseite ändern. Bitte sehen Sie in unserem "
126
- "<a target=\"_blank\" href=\"%s\">Wiki</a> nach."
127
-
128
- #: class-reorder.php:431
129
- msgid "There is nothing to sort at this time"
130
- msgstr "Es gibt hier im Moment nichts zu sortieren."
131
-
132
- #: index.php:87
133
- msgid "Posts"
134
- msgstr "Posts"
135
-
136
- #: index.php:88
137
- #, php-format
138
- msgid "Reorder %s"
139
- msgstr "%s neu anordnen"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Reorder Posts ===
2
- Contributors: ryanhellyer, metronet, ronalfy, scottbasgaard
3
  Author URI: https://github.com/ronalfy/reorder-posts
4
  Plugin URL: https://wordpress.org/plugins/metronet-reorder-posts/
5
  Requires at Least: 3.7
6
- Tested up to: 4.3
7
  Tags: reorder, re-order, posts, wordpress, post-type, ajax, admin, hierarchical, menu_order, ordering
8
- Stable tag: 2.1.5
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -123,6 +123,10 @@ No, but there is an add-on for this plugin called <a href="https://wordpress.org
123
 
124
  == Changelog ==
125
 
 
 
 
 
126
  = 2.1.5 =
127
 
128
  * Released 2015-10-02
@@ -207,6 +211,9 @@ No, but there is an add-on for this plugin called <a href="https://wordpress.org
207
 
208
  == Upgrade Notice ==
209
 
 
 
 
210
  = 2.1.5 =
211
  Fixing paging offset error in the backend.
212
 
1
  === Reorder Posts ===
2
+ Contributors: ryanhellyer, ronalfy, scottbasgaard
3
  Author URI: https://github.com/ronalfy/reorder-posts
4
  Plugin URL: https://wordpress.org/plugins/metronet-reorder-posts/
5
  Requires at Least: 3.7
6
+ Tested up to: 4.4
7
  Tags: reorder, re-order, posts, wordpress, post-type, ajax, admin, hierarchical, menu_order, ordering
8
+ Stable tag: 2.2.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
123
 
124
  == Changelog ==
125
 
126
+ = 2.2.0 =
127
+ * Released 2015-11-1
128
+ * Loading animation now shows inline
129
+
130
  = 2.1.5 =
131
 
132
  * Released 2015-10-02
211
 
212
  == Upgrade Notice ==
213
 
214
+ = 2.2.0 =
215
+ Adding loading animation in better context
216
+
217
  = 2.1.5 =
218
  Fixing paging offset error in the backend.
219
 
scripts/sort.js CHANGED
@@ -22,7 +22,7 @@ jQuery(document).ready(function($) {
22
  toleranceElement: '> div',
23
  listType: 'ul',
24
  update: function( event, ui ) {
25
-
26
  var reorder_ajax_callback = function( response ) {
27
  response = jQuery.parseJSON( response );
28
  if ( true == response.more_posts ) {
@@ -33,12 +33,14 @@ jQuery(document).ready(function($) {
33
  callback = false;
34
  $.post( ajaxurl, callback_ajax_args, reorder_ajax_callback );
35
  } else {
 
36
  $('#loading-animation').hide();
37
  }
38
  }
39
- };
 
40
 
41
- $('#loading-animation').show();
42
 
43
  //Get the end items where the post was placed
44
  sort_end.item = ui.item;
22
  toleranceElement: '> div',
23
  listType: 'ul',
24
  update: function( event, ui ) {
25
+ $loading_animation = jQuery( '#loading-animation' );
26
  var reorder_ajax_callback = function( response ) {
27
  response = jQuery.parseJSON( response );
28
  if ( true == response.more_posts ) {
33
  callback = false;
34
  $.post( ajaxurl, callback_ajax_args, reorder_ajax_callback );
35
  } else {
36
+
37
  $('#loading-animation').hide();
38
  }
39
  }
40
+ };
41
+ ui.item.find( 'div' ).append( $loading_animation );
42
 
43
+ $loading_animation.show();
44
 
45
  //Get the end items where the post was placed
46
  sort_end.item = ui.item;