| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: Nooz |
| 5 |
Plugin URI: http://www.mightydev.com/nooz/ |
| 6 |
Description: Simplified press release and media coverage management for business websites. |
| 7 |
Version: 1.5.0 |
| 8 |
Author: Mighty Digital |
| 9 |
Author URI: http://www.mightydev.com |
| 10 |
Text Domain: mdnooz |
| 11 |
*/ |
| 12 |
|
| 13 |
// exit if accessed directly. |
| 14 |
defined( 'ABSPATH' ) || exit; |
| 15 |
|
| 16 |
if ( version_compare( PHP_VERSION, '5.6', '<' ) ) { |
| 17 |
add_action( 'admin_notices', 'mdnooz_php_version_notice' ); |
| 18 |
function mdnooz_php_version_notice() { |
| 19 |
/* translators: 1: Required PHP version 2: Current PHP version */ |
| 20 |
echo '<div class="update-nag">' . sprintf( __( 'The Nooz plugin requires PHP version %1$s, the current PHP version is %2$s', 'mdnooz' ), '5.6+', PHP_VERSION ) . '</div>'; |
| 21 |
} |
| 22 |
} else { |
| 23 |
// @since 1.0.0 |
| 24 |
define( 'MDNOOZ_PLUGIN_FILE', __FILE__ ); |
| 25 |
define( 'MDNOOZ_PLUGIN_VERSION', '1.5.0' ); |
| 26 |
require_once( plugin_dir_path( MDNOOZ_PLUGIN_FILE ) . 'index.php' ); // bootstrap |
| 27 |
} |
| 28 |
|