| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; |
| 2 |
/* |
| 3 |
Plugin Name: WP Sort Order |
| 4 |
Plugin URI: http://androidbubble.com/blog/wordpress/plugins/wp-sort-order |
| 5 |
Description: Order plugins, terms (Users, Posts, Pages, Custom Post Types and Custom Taxonomies) using a Drag and Drop with jQuery ui Sortable. |
| 6 |
Version: 1.3.6 |
| 7 |
Author: Fahad Mahmood |
| 8 |
Author URI: http://www.androidbubble.com |
| 9 |
Text Domain: wpso-sort-order |
| 10 |
Domain Path: /languages/ |
| 11 |
License: GPL2 |
| 12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
|
| 14 |
This WordPress Plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version. This free software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/gpl-2.0.html. |
| 15 |
*/ |
| 16 |
|
| 17 |
require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); |
| 18 |
include(plugin_dir_path(__FILE__) . 'inc/functions.php'); |
| 19 |
|
| 20 |
|
| 21 |
global $wpso_data, $wpso_pro, $wpso_premium_link, $wpso_premium, $premium_click, $wpso_allowed_pages, $premium_tags_list; |
| 22 |
$wpso_allowed_pages = array('plugins.php'=>'Plugins'); |
| 23 |
$wpso_data = get_plugin_data(__FILE__, true, false); |
| 24 |
$wpso_dir = plugin_dir_path( __FILE__ ); |
| 25 |
$premium_tags_list = array('usercategories'); |
| 26 |
define( 'WPSO_URL', plugins_url( '', __FILE__ ) ); |
| 27 |
define( 'WPSO_DIR', $wpso_dir ); |
| 28 |
$wpso_premium = $wpso_dir.'pro/wpso_extended.php'; |
| 29 |
$wpso_pro = file_exists($wpso_premium); |
| 30 |
$wpso_premium_link = 'https://shop.androidbubbles.com/product/wp-sort-order-pro';//https://shop.androidbubble.com/products/wordpress-plugin?variant=36439508713627';// |
| 31 |
|
| 32 |
$premium_click = $wpso_pro?'':'<small class="premium">('.__('Premium Feature','wpso-sort-order').')</small>'; |
| 33 |
|
| 34 |
if(is_admin()){ |
| 35 |
$plugin = plugin_basename(__FILE__); |
| 36 |
add_filter("plugin_action_links_$plugin", 'wpso_plugin_links' ); |
| 37 |
|
| 38 |
} |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
function wpso_activate() { |
| 43 |
|
| 44 |
} |
| 45 |
register_activation_hook( __FILE__, 'wpso_activate' ); |
| 46 |
|
| 47 |
if($wpso_pro) |
| 48 |
include(plugin_dir_path(__FILE__) . 'pro/wpso_extended.php'); |
| 49 |
|
| 50 |
//echo $wpso_premium; |
| 51 |
|
| 52 |
include(plugin_dir_path(__FILE__) . 'inc/hooks.php'); |
| 53 |
|