| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @link https://www.kybernetik-services.com |
| 5 |
* @since 1.0.0 |
| 6 |
* @package Ultimate_Post_List |
| 7 |
* |
| 8 |
* @wordpress-plugin |
| 9 |
* Plugin Name: Ultimate Post List |
| 10 |
* Plugin URI: http://wordpress.org/plugins/ultimate-post-list/ |
| 11 |
* Description: Make up custom-tailored preview lists of the contents easily and place them in widget areas and post contents. |
| 12 |
* Version: 5.2.3 |
| 13 |
* Requires at least: 4.0 |
| 14 |
* Requires PHP: 5.2 |
| 15 |
* Author: Kybernetik Services |
| 16 |
* Author URI: https://www.kybernetik-services.com/?utm_source=wordpress_org&utm_medium=plugin&utm_campaign=ultimate-post-list&utm_content=author |
| 17 |
* License: GPL-2.0+ |
| 18 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 19 |
* Text Domain: ultimate-post-list |
| 20 |
* Domain Path: /languages |
| 21 |
*/ |
| 22 |
|
| 23 |
// If this file is called directly, abort. |
| 24 |
if ( ! defined( 'WPINC' ) ) { |
| 25 |
die; |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* The constants for this plugin |
| 30 |
*/ |
| 31 |
define( 'UPL_NAME', 'Ultimate Post List' ); |
| 32 |
define( 'UPL_VERSION', '5.2.2' ); |
| 33 |
define( 'UPL_ROOT', plugin_dir_path( __FILE__ ) ); |
| 34 |
define( 'UPL_URL', plugin_dir_url( __FILE__ ) ); |
| 35 |
define( 'UPL_ROOT_FILE', plugin_basename( __FILE__ ) ); |
| 36 |
define( 'UPL_POST_TYPE', 'upl_post_list' ); |
| 37 |
define( 'UPL_SHORTCODE_NAME', 'ultimate_post_list' ); |
| 38 |
define( 'UPL_OPTION_NAME', 'ultimate_post_list_settings' ); |
| 39 |
define( 'UPL_CLONE_ACTION_NAME', 'clone_upl' ); |
| 40 |
define( 'UPL_TRANSIENT_PLUGIN_ACTIVATED', 'ultimate-post-list-plugin-activated' ); |
| 41 |
define( 'UPL_TRANSIENT_LIST_CLONED', 'ultimate-post-list-list-cloned' ); |
| 42 |
define( 'UPL_CSS_FILE_PATH', dirname( __FILE__ ) . '/public/css/ultimate-post-list-public.css' ); |
| 43 |
define( 'UPL_CSS_FILE_URL', plugin_dir_url( __FILE__ ) . 'public/css/ultimate-post-list-public.css' ); |
| 44 |
|
| 45 |
/** |
| 46 |
* The code that runs during plugin activation. |
| 47 |
* This action is documented in includes/class-ultimate-post-list-activator.php |
| 48 |
*/ |
| 49 |
function activate_ultimate_post_list() { |
| 50 |
require_once UPL_ROOT . 'includes/class-ultimate-post-list-activator.php'; |
| 51 |
Ultimate_Post_List_Activator::activate(); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* The code that runs during plugin deactivation. |
| 56 |
* This action is documented in includes/class-ultimate-post-list-deactivator.php |
| 57 |
*/ |
| 58 |
function deactivate_ultimate_post_list() { |
| 59 |
require_once UPL_ROOT . 'includes/class-ultimate-post-list-deactivator.php'; |
| 60 |
Ultimate_Post_List_Deactivator::deactivate(); |
| 61 |
} |
| 62 |
|
| 63 |
register_activation_hook( __FILE__, 'activate_ultimate_post_list' ); |
| 64 |
register_deactivation_hook( __FILE__, 'deactivate_ultimate_post_list' ); |
| 65 |
|
| 66 |
/** |
| 67 |
* The core plugin class that is used to define internationalization, |
| 68 |
* admin-specific hooks, and public-facing site hooks. |
| 69 |
*/ |
| 70 |
require UPL_ROOT . 'includes/class-ultimate-post-list.php'; |
| 71 |
|
| 72 |
/** |
| 73 |
* Begins execution of the plugin. |
| 74 |
* |
| 75 |
* Since everything within the plugin is registered via hooks, |
| 76 |
* then kicking off the plugin from this point in the file does |
| 77 |
* not affect the page life cycle. |
| 78 |
* |
| 79 |
* @since 1.0.0 |
| 80 |
*/ |
| 81 |
function run_ultimate_post_list() { |
| 82 |
|
| 83 |
$plugin = new Ultimate_Post_List(); |
| 84 |
$plugin->run(); |
| 85 |
|
| 86 |
} |
| 87 |
run_ultimate_post_list(); |
| 88 |
|