Intuitive Custom Post Order - Version 3.0.7

Version Description

  • This plugin will imported listed above into the translate.wordpress.org translation system. Language packs will also be enabled for this plugin, for any locales that are fully translated (at 100%).
Download this release

Release Info

Developer hijiri
Plugin Icon 128x128 Intuitive Custom Post Order
Version 3.0.7
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.7

admin/settings.php CHANGED
@@ -10,7 +10,7 @@ $hicpo_tags = isset( $hicpo_options['tags'] ) ? $hicpo_options['tags'] : array()
10
 
11
  <?php screen_icon( 'plugins' ); ?>
12
 
13
- <h2><?php _e( 'Intuitive Custom Post Order Settings', 'hicpo' ); ?></h2>
14
 
15
  <?php if ( isset($_GET['msg'] )) : ?>
16
  <div id="message" class="updated below-h2">
@@ -29,7 +29,7 @@ $hicpo_tags = isset( $hicpo_options['tags'] ) ? $hicpo_options['tags'] : array()
29
  <table class="form-table">
30
  <tbody>
31
  <tr valign="top">
32
- <th scope="row"><?php _e( 'Sortable Post Types', 'hicpo' ) ?></th>
33
  <td>
34
  <?php
35
  $post_types = get_post_types( array (
@@ -51,14 +51,14 @@ $hicpo_tags = isset( $hicpo_options['tags'] ) ? $hicpo_options['tags'] : array()
51
 
52
  </div>
53
 
54
- <label><input type="checkbox" id="hicpo_allcheck_objects"> <?php _e( 'All Check', 'hicpo' ) ?></label>
55
 
56
  <div id="hicpo_select_tags">
57
 
58
  <table class="form-table">
59
  <tbody>
60
  <tr valign="top">
61
- <th scope="row"><?php _e( 'Sortable Taxonomies', 'hicpo' ) ?></th>
62
  <td>
63
  <?php
64
  $taxonomies = get_taxonomies( array(
@@ -79,10 +79,10 @@ $hicpo_tags = isset( $hicpo_options['tags'] ) ? $hicpo_options['tags'] : array()
79
 
80
  </div>
81
 
82
- <label><input type="checkbox" id="hicpo_allcheck_tags"> <?php _e( 'All Check', 'hicpo' ) ?></label>
83
 
84
  <p class="submit">
85
- <input type="submit" class="button-primary" name="hicpo_submit" value="<?php _e( 'Update', 'cptg' ); ?>">
86
  </p>
87
 
88
  </form>
10
 
11
  <?php screen_icon( 'plugins' ); ?>
12
 
13
+ <h2><?php _e( 'Intuitive Custom Post Order Settings', 'intuitive-custom-post-order' ); ?></h2>
14
 
15
  <?php if ( isset($_GET['msg'] )) : ?>
16
  <div id="message" class="updated below-h2">
29
  <table class="form-table">
30
  <tbody>
31
  <tr valign="top">
32
+ <th scope="row"><?php _e( 'Sortable Post Types', 'intuitive-custom-post-order' ) ?></th>
33
  <td>
34
  <?php
35
  $post_types = get_post_types( array (
51
 
52
  </div>
53
 
54
+ <label><input type="checkbox" id="hicpo_allcheck_objects"> <?php _e( 'All Check', 'intuitive-custom-post-order' ) ?></label>
55
 
56
  <div id="hicpo_select_tags">
57
 
58
  <table class="form-table">
59
  <tbody>
60
  <tr valign="top">
61
+ <th scope="row"><?php _e( 'Sortable Taxonomies', 'intuitive-custom-post-order' ) ?></th>
62
  <td>
63
  <?php
64
  $taxonomies = get_taxonomies( array(
79
 
80
  </div>
81
 
82
+ <label><input type="checkbox" id="hicpo_allcheck_tags"> <?php _e( 'All Check', 'intuitive-custom-post-order' ) ?></label>
83
 
84
  <p class="submit">
85
+ <input type="submit" class="button-primary" name="hicpo_submit" value="<?php _e( 'Update' ); ?>">
86
  </p>
87
 
88
  </form>
intuitive-custom-post-order.php CHANGED
@@ -1,13 +1,15 @@
1
  <?php
2
  /*
3
- Plugin Name: Intuitive Custom Post Order
4
- Plugin URI: http://hijiriworld.com/web/plugins/intuitive-custom-post-order/
5
- Description: Intuitively, Order Items (Posts, Pages, and Custom Post Types and Custom Taxonomies) using a Drag and Drop Sortable JavaScript.
6
- Version: 3.0.6
7
- Author: hijiri
8
- Author URI: http://hijiriworld.com/web/
9
- License: GPLv2 or later
10
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
 
11
  */
12
 
13
  /**
@@ -16,7 +18,6 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
16
 
17
  define( 'HICPO_URL', plugins_url( '', __FILE__ ) );
18
  define( 'HICPO_DIR', plugin_dir_path( __FILE__ ) );
19
- load_plugin_textdomain( 'hicpo', false, basename( dirname( __FILE__ ) ).'/lang' );
20
 
21
  /**
22
  * Uninstall hook
@@ -61,10 +62,11 @@ class Hicpo
61
  {
62
  if ( !get_option( 'hicpo_activation' ) ) $this->hicpo_activation();
63
 
 
 
64
  add_action( 'admin_menu', array( $this, 'admin_menu') );
65
 
66
  add_action( 'admin_init', array( $this, 'refresh' ) );
67
-
68
  add_action( 'admin_init', array( $this, 'update_options') );
69
  add_action( 'admin_init', array( $this, 'load_script_css' ) );
70
 
@@ -97,9 +99,13 @@ class Hicpo
97
  update_option( 'hicpo_activation', 1 );
98
  }
99
 
 
 
 
 
100
  function admin_menu()
101
  {
102
- add_options_page( __( 'Intuitive CPO', 'hicpo' ), __( 'Intuitive CPO', 'hicpo' ), 'manage_options', 'hicpo-settings', array( $this,'admin_page' ) );
103
  }
104
 
105
  function admin_page()
1
  <?php
2
  /*
3
+ * Plugin Name: Intuitive Custom Post Order
4
+ * Plugin URI: http://hijiriworld.com/web/plugins/intuitive-custom-post-order/
5
+ * Description: Intuitively, Order Items (Posts, Pages, and Custom Post Types and Custom Taxonomies) using a Drag and Drop Sortable JavaScript.
6
+ * Version: 3.0.7
7
+ * Author: hijiri
8
+ * Author URI: http://hijiriworld.com/web/
9
+ * Text Domain: intuitive-custom-post-order
10
+ * Domain Path: /languages
11
+ * License: GPLv2 or later
12
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
  */
14
 
15
  /**
18
 
19
  define( 'HICPO_URL', plugins_url( '', __FILE__ ) );
20
  define( 'HICPO_DIR', plugin_dir_path( __FILE__ ) );
 
21
 
22
  /**
23
  * Uninstall hook
62
  {
63
  if ( !get_option( 'hicpo_activation' ) ) $this->hicpo_activation();
64
 
65
+ add_action( 'plugins_loaded', array( $this, 'my_plugin_load_plugin_textdomain' ) );
66
+
67
  add_action( 'admin_menu', array( $this, 'admin_menu') );
68
 
69
  add_action( 'admin_init', array( $this, 'refresh' ) );
 
70
  add_action( 'admin_init', array( $this, 'update_options') );
71
  add_action( 'admin_init', array( $this, 'load_script_css' ) );
72
 
99
  update_option( 'hicpo_activation', 1 );
100
  }
101
 
102
+ function my_plugin_load_plugin_textdomain()
103
+ {
104
+ load_plugin_textdomain( 'intuitive-custom-post-order', false, basename( dirname( __FILE__ ) ).'/languages/' );
105
+ }
106
  function admin_menu()
107
  {
108
+ add_options_page( __( 'Intuitive CPO', 'intuitive-custom-post-order' ), __( 'Intuitive CPO', 'intuitive-custom-post-order' ), 'manage_options', 'hicpo-settings', array( $this,'admin_page' ) );
109
  }
110
 
111
  function admin_page()
lang/hicpo-ja.mo DELETED
Binary file
lang/hicpo-ja.po DELETED
@@ -1,44 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2015-01-26 21:02+0900\n"
5
- "PO-Revision-Date: 2015-01-26 21:05+0900\n"
6
- "Last-Translator: hijiri <hijiriworld@gmail.com>\n"
7
- "Language-Team: \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.7\n"
12
- "X-Poedit-KeywordsList: __;_e\n"
13
-
14
- #: intuitive-custom-post-order/intuitive-custom-post-order.php:140
15
- msgid "Intuitive CPO"
16
- msgstr "並び替え設定"
17
-
18
- #: intuitive-custom-post-order/admin/settings.php:12
19
- msgid "Intuitive Custom Post Order Settings"
20
- msgstr "並び替え設定"
21
-
22
- #: intuitive-custom-post-order/admin/settings.php:17
23
- msgid "Settings saved."
24
- msgstr ""
25
-
26
- #: intuitive-custom-post-order/admin/settings.php:31
27
- msgid "Sortable Post Types"
28
- msgstr "並び替える投稿タイプ"
29
-
30
- #: intuitive-custom-post-order/admin/settings.php:53
31
- msgid "All Check"
32
- msgstr "すべて選択"
33
-
34
- #: intuitive-custom-post-order/admin/settings.php:60
35
- msgid "Sortable Taxonomies"
36
- msgstr "並び替えるカスタム分類"
37
-
38
- #: intuitive-custom-post-order/admin/settings.php:62
39
- msgid "Custom Taxonomies Order becomes always effective."
40
- msgstr "カスタム分類は常に並び替えが有効になります。"
41
-
42
- #: intuitive-custom-post-order/admin/settings.php:71
43
- msgid "Update"
44
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/hicpo-sv_SE.mo DELETED
Binary file
lang/hicpo-sv_SE.po DELETED
@@ -1,45 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Intuitive Custom Post Order v2.0.6\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2013-11-23 17:40+0100\n"
7
- "Last-Translator: Thomas Persson <info@ajfix.se>\n"
8
- "Language-Team: \n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
- "X-Generator: Poedit 1.5.7\n"
14
- "X-Poedit-SourceCharset: utf-8\n"
15
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
- "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
- "X-Poedit-Basepath: ../\n"
18
- "X-Textdomain-Support: yes\n"
19
- "Language: sv_SE\n"
20
- "X-Poedit-SearchPath-0: .\n"
21
-
22
- # @ hicpo
23
- #: admin/settings.php:12
24
- msgid "Intuitive Custom Post Order Settings"
25
- msgstr "Intuitive CPO Inst&auml;llningar"
26
-
27
- # @ hicpo
28
- #: admin/settings.php:17
29
- msgid "Settings saved."
30
- msgstr "Inst&auml;llningar sparade"
31
-
32
- # @ hicpo
33
- #: admin/settings.php:29
34
- msgid "Sortable Objects"
35
- msgstr "Sorteringsbara objekt"
36
-
37
- # @ cptg
38
- #: admin/settings.php:50
39
- msgid "Update"
40
- msgstr "Uppdatera"
41
-
42
- # @ hicpo
43
- #: intuitive-custom-post-order.php:117
44
- msgid "Intuitive CPO"
45
- msgstr "Intuitive CPO"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/intuitive-custom-post-order-ja.mo ADDED
Binary file
languages/intuitive-custom-post-order-ja.po ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-09-17 21:12+0900\n"
5
+ "PO-Revision-Date: 2015-09-17 21:14+0900\n"
6
+ "Last-Translator: hijiri <hijiriworld@gmail.com>\n"
7
+ "Language-Team: \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.7\n"
12
+ "X-Poedit-KeywordsList: __;_e;_x;_ex;_n;_nx;_n_noop;_nx_noop;"
13
+ "translate_nooped_plural\n"
14
+
15
+ #: intuitive-custom-post-order/intuitive-custom-post-order.php:104
16
+ msgid "Intuitive CPO"
17
+ msgstr "並び替え設定"
18
+
19
+ #: intuitive-custom-post-order/admin/settings.php:13
20
+ msgid "Intuitive Custom Post Order Settings"
21
+ msgstr "並び替え設定"
22
+
23
+ #: intuitive-custom-post-order/admin/settings.php:18
24
+ msgid "Settings saved."
25
+ msgstr ""
26
+
27
+ #: intuitive-custom-post-order/admin/settings.php:32
28
+ msgid "Sortable Post Types"
29
+ msgstr "カスタム投稿タイプ"
30
+
31
+ #: intuitive-custom-post-order/admin/settings.php:54
32
+ #: intuitive-custom-post-order/admin/settings.php:82
33
+ msgid "All Check"
34
+ msgstr "すべて選択"
35
+
36
+ #: intuitive-custom-post-order/admin/settings.php:61
37
+ msgid "Sortable Taxonomies"
38
+ msgstr "カスタムタクソノミー"
39
+
40
+ #: intuitive-custom-post-order/admin/settings.php:85
41
+ msgid "Update"
42
+ msgstr ""
lang/default.pot → languages/intuitive-custom-post-order.pot RENAMED
@@ -1,44 +1,42 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2015-01-26 21:02+0900\n"
5
- "PO-Revision-Date: 2015-01-26 21:02+0900\n"
6
  "Last-Translator: hijiri <hijiriworld@gmail.com>\n"
7
  "Language-Team: \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.7\n"
12
- "X-Poedit-KeywordsList: __;_e\n"
 
13
 
14
- #: intuitive-custom-post-order/intuitive-custom-post-order.php:140
15
  msgid "Intuitive CPO"
16
  msgstr ""
17
 
18
- #: intuitive-custom-post-order/admin/settings.php:12
19
  msgid "Intuitive Custom Post Order Settings"
20
  msgstr ""
21
 
22
- #: intuitive-custom-post-order/admin/settings.php:17
23
  msgid "Settings saved."
24
  msgstr ""
25
 
26
- #: intuitive-custom-post-order/admin/settings.php:31
27
  msgid "Sortable Post Types"
28
  msgstr ""
29
 
30
- #: intuitive-custom-post-order/admin/settings.php:53
 
31
  msgid "All Check"
32
  msgstr ""
33
 
34
- #: intuitive-custom-post-order/admin/settings.php:60
35
  msgid "Sortable Taxonomies"
36
  msgstr ""
37
 
38
- #: intuitive-custom-post-order/admin/settings.php:62
39
- msgid "Custom Taxonomies Order becomes always effective."
40
- msgstr ""
41
-
42
- #: intuitive-custom-post-order/admin/settings.php:71
43
  msgid "Update"
44
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-09-17 21:12+0900\n"
5
+ "PO-Revision-Date: 2015-09-17 21:12+0900\n"
6
  "Last-Translator: hijiri <hijiriworld@gmail.com>\n"
7
  "Language-Team: \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.7\n"
12
+ "X-Poedit-KeywordsList: __;_e;_x;_ex;_n;_nx;_n_noop;_nx_noop;"
13
+ "translate_nooped_plural\n"
14
 
15
+ #: intuitive-custom-post-order/intuitive-custom-post-order.php:104
16
  msgid "Intuitive CPO"
17
  msgstr ""
18
 
19
+ #: intuitive-custom-post-order/admin/settings.php:13
20
  msgid "Intuitive Custom Post Order Settings"
21
  msgstr ""
22
 
23
+ #: intuitive-custom-post-order/admin/settings.php:18
24
  msgid "Settings saved."
25
  msgstr ""
26
 
27
+ #: intuitive-custom-post-order/admin/settings.php:32
28
  msgid "Sortable Post Types"
29
  msgstr ""
30
 
31
+ #: intuitive-custom-post-order/admin/settings.php:54
32
+ #: intuitive-custom-post-order/admin/settings.php:82
33
  msgid "All Check"
34
  msgstr ""
35
 
36
+ #: intuitive-custom-post-order/admin/settings.php:61
37
  msgid "Sortable Taxonomies"
38
  msgstr ""
39
 
40
+ #: intuitive-custom-post-order/admin/settings.php:85
 
 
 
 
41
  msgid "Update"
42
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: hijiri
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TT5NP352P6MCU
4
  Tags: post order, posts order, order post, order posts, custom post type order, custom taxonomy order
5
  Requires at least: 3.5.0
6
- Tested up to: 4.2.3
7
- Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -79,6 +79,10 @@ add_action( 'pre_get_posts', 'my_filter' );
79
 
80
  == Changelog ==
81
 
 
 
 
 
82
  = 3.0.6 =
83
 
84
  * Support 'next_post_link()' and 'previous_post_link(), etc.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TT5NP352P6MCU
4
  Tags: post order, posts order, order post, order posts, custom post type order, custom taxonomy order
5
  Requires at least: 3.5.0
6
+ Tested up to: 4.3.1
7
+ Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
79
 
80
  == Changelog ==
81
 
82
+ = 3.0.7 =
83
+
84
+ * This plugin will imported listed above into the translate.wordpress.org translation system. Language packs will also be enabled for this plugin, for any locales that are fully translated (at 100%).
85
+
86
  = 3.0.6 =
87
 
88
  * Support 'next_post_link()' and 'previous_post_link(), etc.