Version Description
Download this release
Release Info
Developer | hsameerc |
Plugin | Simple Custom Post Order |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 2.0
- readme.txt +6 -2
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- settings.php +1 -13
- simple-custom-post-order.php +3 -12
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: hsameerc
|
3 |
Tags: custom post order, post order, js post order, page order, taxonomy order, posts order, category order, sort posts, sort pages, sort custom posts
|
4 |
Requires at least: 3.0.0
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -39,4 +39,8 @@ An answer to that question.
|
|
39 |
* Added Taxonomy Sort
|
40 |
* Added Taxonomy Sort option In setting Page
|
41 |
|
|
|
|
|
|
|
|
|
42 |
|
2 |
Contributors: hsameerc
|
3 |
Tags: custom post order, post order, js post order, page order, taxonomy order, posts order, category order, sort posts, sort pages, sort custom posts
|
4 |
Requires at least: 3.0.0
|
5 |
+
Tested up to: 3.7.1
|
6 |
+
Stable tag: 3.7.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
39 |
* Added Taxonomy Sort
|
40 |
* Added Taxonomy Sort option In setting Page
|
41 |
|
42 |
+
= Version 2.0 (22-11-2013) =
|
43 |
+
* Fixed Undefined Notice Error in wp version 3.7.1
|
44 |
+
* Taxonomy Activate Checkbox removed.
|
45 |
+
|
46 |
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
settings.php
CHANGED
@@ -7,18 +7,7 @@ $objects = $scporder_options['objects'];
|
|
7 |
|
8 |
<?php screen_icon( 'plugins' ); ?>
|
9 |
|
10 |
-
<h2><?php _e( 'Simple Custom Post Order Settings', 'scporder' ); ?></h2>
|
11 |
-
<?php
|
12 |
-
if ( $_POST['msg'] == 'true' ) {
|
13 |
-
taxonomy_order_update();
|
14 |
-
?>
|
15 |
-
<br>
|
16 |
-
<div id="message" class="updated below-h2">
|
17 |
-
<p><?php _e( 'Settings saved.', 'scporder' ); ?></p>
|
18 |
-
</div>
|
19 |
-
<?php
|
20 |
-
}
|
21 |
-
?>
|
22 |
<?php if ( isset( $_GET['msg'] ) ) : ?>
|
23 |
<br>
|
24 |
<div id="message" class="updated below-h2">
|
@@ -34,7 +23,6 @@ $objects = $scporder_options['objects'];
|
|
34 |
<th scope="row"><label for="blogname"><?php _e( 'Sortable Objects', 'scporder' ) ?></label></th>
|
35 |
<td>
|
36 |
<input type="hidden" name="msg" value="true" />
|
37 |
-
<label><input type="checkbox" name="taxonomy_order" id="display_sidebar" <?php echo get_option( 'order_taxonomy' ); ?> /> Enable Taxonomy Order <br></label>
|
38 |
<?php if ( function_exists( 'wp_nonce_field' ) ) wp_nonce_field( 'nonce_scporder' ); ?>
|
39 |
|
40 |
|
7 |
|
8 |
<?php screen_icon( 'plugins' ); ?>
|
9 |
|
10 |
+
<h2><?php _e( 'Simple Custom Post Order Settings', 'scporder' ); ?></h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<?php if ( isset( $_GET['msg'] ) ) : ?>
|
12 |
<br>
|
13 |
<div id="message" class="updated below-h2">
|
23 |
<th scope="row"><label for="blogname"><?php _e( 'Sortable Objects', 'scporder' ) ?></label></th>
|
24 |
<td>
|
25 |
<input type="hidden" name="msg" value="true" />
|
|
|
26 |
<?php if ( function_exists( 'wp_nonce_field' ) ) wp_nonce_field( 'nonce_scporder' ); ?>
|
27 |
|
28 |
|
simple-custom-post-order.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Simple Custom Post Order
|
5 |
Plugin URI: http://hsameer.com.np/simple-custom-post-order/
|
6 |
Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
|
7 |
-
Version:
|
8 |
Author: Sameer Humagain
|
9 |
Author URI: http://hsameer.com.np/
|
10 |
*/
|
@@ -99,12 +99,7 @@ class SCPO_Engine {
|
|
99 |
|
100 |
function enable_objects() {
|
101 |
$scporder_options = get_option( 'scporder_options' );
|
102 |
-
$objects = $scporder_options['objects'];
|
103 |
-
$tex = $scporder_options['taxonomy'];
|
104 |
-
if ( is_array( $tex ) ) {
|
105 |
-
$active = true;
|
106 |
-
}
|
107 |
-
|
108 |
if ( is_array( $objects ) ) {
|
109 |
$active = false;
|
110 |
|
@@ -364,9 +359,7 @@ class SCPO_Engine {
|
|
364 |
/* =============================================================================================================
|
365 |
* Taxonomy Sort
|
366 |
=============================================================================================================== */
|
367 |
-
|
368 |
-
|
369 |
-
class Taxonomy_Order_Engine {
|
370 |
|
371 |
/**
|
372 |
* Simple class constructor
|
@@ -476,7 +469,5 @@ if ( get_option( 'order_taxonomy' ) == 'checked' ) {
|
|
476 |
}
|
477 |
|
478 |
}
|
479 |
-
|
480 |
|
481 |
new Taxonomy_Order_Engine;
|
482 |
-
}
|
4 |
Plugin Name: Simple Custom Post Order
|
5 |
Plugin URI: http://hsameer.com.np/simple-custom-post-order/
|
6 |
Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
|
7 |
+
Version: 2.0
|
8 |
Author: Sameer Humagain
|
9 |
Author URI: http://hsameer.com.np/
|
10 |
*/
|
99 |
|
100 |
function enable_objects() {
|
101 |
$scporder_options = get_option( 'scporder_options' );
|
102 |
+
$objects = $scporder_options['objects'];
|
|
|
|
|
|
|
|
|
|
|
103 |
if ( is_array( $objects ) ) {
|
104 |
$active = false;
|
105 |
|
359 |
/* =============================================================================================================
|
360 |
* Taxonomy Sort
|
361 |
=============================================================================================================== */
|
362 |
+
class Taxonomy_Order_Engine {
|
|
|
|
|
363 |
|
364 |
/**
|
365 |
* Simple class constructor
|
469 |
}
|
470 |
|
471 |
}
|
|
|
472 |
|
473 |
new Taxonomy_Order_Engine;
|
|