| 1 |
<?php |
| 2 |
/** |
| 3 |
* Extra features, shortcodes and widgets for themes with auxin framework |
| 4 |
* |
| 5 |
* |
| 6 |
* @package auxin-elements |
| 7 |
* @license LICENSE.txt |
| 8 |
* @author |
| 9 |
* @link https://bitbucket.org/averta/ |
| 10 |
* @copyright (c) 2010-2016 |
| 11 |
* |
| 12 |
* Plugin Name: Auxin Elements |
| 13 |
* Plugin URI: https://wordpress.org/plugins/auxin-elements/ |
| 14 |
* Description: Extra features, shortcodes and widgets for PHLOX theme. |
| 15 |
* Version: 1.0.1 |
| 16 |
* Author: averta |
| 17 |
* Author URI: http://averta.net |
| 18 |
* Text Domain: auxin-elements |
| 19 |
* License URI: LICENSE.txt |
| 20 |
* Domain Path: /languages |
| 21 |
* Tested up to: 1.0.1 |
| 22 |
*/ |
| 23 |
|
| 24 |
// If this file is called directly, abort. |
| 25 |
if ( ! defined( 'WPINC' ) ) { |
| 26 |
die('No Naughty Business Please !'); |
| 27 |
} |
| 28 |
|
| 29 |
// Abort loading if WordPress is upgrading |
| 30 |
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) { |
| 31 |
return; |
| 32 |
} |
| 33 |
|
| 34 |
function auel_requirement_notice() { |
| 35 |
echo '<div class="error"><p>' . __( 'PHP version 5.3.0 or above is required for "Auxin Elements" plugin', 'auxin-elements' ) . '</p></div>'; |
| 36 |
} |
| 37 |
|
| 38 |
if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) { |
| 39 |
add_action( 'admin_notices', 'auel_requirement_notice' ); |
| 40 |
return; |
| 41 |
} |
| 42 |
|
| 43 |
/*----------------------------------------------------------------------------*/ |
| 44 |
|
| 45 |
require_once( plugin_dir_path( __FILE__ ) . 'includes/define.php' ); |
| 46 |
require_once( plugin_dir_path( __FILE__ ) . 'public/class-auxels.php' ); |
| 47 |
|
| 48 |
// Register hooks that are fired when the plugin is activated or deactivated. |
| 49 |
register_activation_hook ( __FILE__, array( 'AUXELS', 'activate' ) ); |
| 50 |
register_deactivation_hook( __FILE__, array( 'AUXELS', 'deactivate' ) ); |
| 51 |
|
| 52 |
/*----------------------------------------------------------------------------*/ |
| 53 |
|