| @@ -1,14 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Sharing Image |
| 4 | 4 | * Description: Create sharing image for Facebook, VK.com, Telegram and other social networks |
| 5 | - * Version: 2.0.5 | |
| 5 | + * Version: 3.7 | |
| 6 | 6 | * Requires at least: 5.3 |
| 7 | - * Requires PHP: 5.5 | |
| 8 | - * Plugin URI: https://wpget.org/sharing-image/ | |
| 7 | + * Requires PHP: 5.6 | |
| 8 | + * Plugin URI: https://wpset.org/sharing-image/ | |
| 9 | 9 | * Author: Anton Lukin |
| 10 | - * Author URI: https://wpget.org/ | |
| 10 | + * Author URI: https://wpset.org/ | |
| 11 | 11 | * Text Domain: sharing-image |
| 12 | 12 | * |
| 13 | 13 | * @package sharing-image |
| 14 | 14 | * @author Anton Lukin |
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * Plugin version. |
| 26 | 26 | */ |
| 27 | -define( 'SHARING_IMAGE_VERSION', '2.0.5' ); | |
| 27 | +define( 'SHARING_IMAGE_VERSION', '3.7' ); | |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Main plugin file. |
| 31 | 31 | */ |
| @@ -48,11 +48,18 @@ | ||
| 48 | 48 | function sharing_image_plugin() { |
| 49 | 49 | require_once SHARING_IMAGE_DIR . 'vendor/autoload.php'; |
| 50 | 50 | |
| 51 | 51 | $classes = array( |
| 52 | + 'Sharing_Image\Settings', | |
| 53 | + 'Sharing_Image\Templates', | |
| 54 | + 'Sharing_Image\Config', | |
| 55 | + 'Sharing_Image\Premium', | |
| 56 | + 'Sharing_Image\Tools', | |
| 57 | + 'Sharing_Image\Demo', | |
| 58 | + 'Sharing_Image\Snippets', | |
| 52 | 59 | 'Sharing_Image\Meta', |
| 53 | - 'Sharing_Image\Settings', | |
| 54 | 60 | 'Sharing_Image\Widget', |
| 61 | + 'Sharing_Image\Migrations', | |
| 55 | 62 | ); |
| 56 | 63 | |
| 57 | 64 | /** |
| 58 | 65 | * Filters list of automatically initialized classes. |
| @@ -61,12 +68,16 @@ | ||
| 61 | 68 | */ |
| 62 | 69 | $classes = apply_filters( 'sharing_image_plugin_classes', $classes ); |
| 63 | 70 | |
| 64 | 71 | foreach ( $classes as $class ) { |
| 65 | - ( new $class() )->init(); | |
| 72 | + $class::init(); | |
| 66 | 73 | } |
| 67 | 74 | |
| 68 | 75 | include SHARING_IMAGE_DIR . 'functions.php'; |
| 76 | + | |
| 77 | + if ( file_exists( SHARING_IMAGE_DIR . 'premium.php' ) ) { | |
| 78 | + include SHARING_IMAGE_DIR . 'premium.php'; | |
| 79 | + } | |
| 69 | 80 | } |
| 70 | 81 | } |
| 71 | 82 | |
| 72 | 83 | add_action( 'plugins_loaded', 'sharing_image_plugin' ); |