| @@ -1,37 +1,40 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * Plugin Name: Plus WebP or AVIF | |
| 4 | + * Plugin URI: https://wordpress.org/plugins/plus-webp/ | |
| 5 | + * Description: Generate WebP or AVIF. | |
| 6 | + * Version: 5.03 | |
| 7 | + * Author: Katsushi Kawamori | |
| 8 | + * Author URI: https://riverforest-wp.info/ | |
| 9 | + * License: GPLv2 or later | |
| 10 | + * License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
| 11 | + * Text Domain: plus-webp | |
| 12 | + * | |
| 13 | + * @package Plus WebP or AVIF | |
| 14 | + */ | |
| 15 | + | |
| 2 | 16 | /* |
| 3 | -Plugin Name: Plus WebP | |
| 4 | -Plugin URI: https://wordpress.org/plugins/plus-webp/ | |
| 5 | -Version: 1.03 | |
| 6 | -Description: Generate WebP. | |
| 7 | -Author: Katsushi Kawamori | |
| 8 | -Author URI: https://riverforest-wp.info/ | |
| 9 | -Text Domain: plus-webp | |
| 10 | -Domain Path: /languages | |
| 11 | -*/ | |
| 17 | + Copyright (c) 2019- Katsushi Kawamori (email : dodesyoswift312@gmail.com) | |
| 18 | + This program is free software; you can redistribute it and/or modify | |
| 19 | + it under the terms of the GNU General Public License as published by | |
| 20 | + the Free Software Foundation; version 2 of the License. | |
| 12 | 21 | |
| 13 | -/* Copyright (c) 2019- Katsushi Kawamori (email : dodesyoswift312@gmail.com) | |
| 14 | - This program is free software; you can redistribute it and/or modify | |
| 15 | - it under the terms of the GNU General Public License as published by | |
| 16 | - the Free Software Foundation; version 2 of the License. | |
| 22 | + This program is distributed in the hope that it will be useful, | |
| 23 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 24 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 25 | + GNU General Public License for more details. | |
| 17 | 26 | |
| 18 | - This program is distributed in the hope that it will be useful, | |
| 19 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | - GNU General Public License for more details. | |
| 27 | + You should have received a copy of the GNU General Public License | |
| 28 | + along with this program; if not, write to the Free Software | |
| 29 | + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 30 | + */ | |
| 22 | 31 | |
| 23 | - You should have received a copy of the GNU General Public License | |
| 24 | - along with this program; if not, write to the Free Software | |
| 25 | - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 26 | -*/ | |
| 27 | - | |
| 28 | - add_action( 'plugins_loaded', 'pluswebp_load_textdomain' ); | |
| 29 | - function pluswebp_load_textdomain() { | |
| 30 | - load_plugin_textdomain('plus-webp'); | |
| 31 | - } | |
| 32 | - | |
| 33 | - if(!class_exists('PlusWebp')) require_once( dirname(__FILE__).'/lib/PlusWebp.php' ); | |
| 34 | - if(!class_exists('PlusWebpAdmin')) require_once( dirname(__FILE__).'/lib/PlusWebpAdmin.php' ); | |
| 35 | - if(!class_exists('PlusWebpRegist')) require_once( dirname(__FILE__).'/lib/PlusWebpRegist.php' ); | |
| 36 | - | |
| 37 | -?> | |
| 32 | +if ( ! class_exists( 'PlusWebp' ) ) { | |
| 33 | + require_once __DIR__ . '/lib/class-pluswebp.php'; | |
| 34 | +} | |
| 35 | +if ( ! class_exists( 'PlusWebpAdmin' ) ) { | |
| 36 | + require_once __DIR__ . '/lib/class-pluswebpadmin.php'; | |
| 37 | +} | |
| 38 | +if ( class_exists( 'WP_CLI' ) ) { | |
| 39 | + require_once __DIR__ . '/lib/class-pluswebpavifcli.php'; | |
| 40 | +} | |