| @@ -1,42 +1,37 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Plugin Name: Simple Ticker | |
| 4 | - * Plugin URI: https://wordpress.org/plugins/simple-ticker/ | |
| 5 | - * Description: Displays the ticker. | |
| 6 | - * Version: 3.02 | |
| 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: simple-ticker | |
| 12 | - * | |
| 13 | - * @package Simple Ticker | |
| 14 | - */ | |
| 15 | - | |
| 16 | -/* | |
| 17 | - Copyright (c) 2016- 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. | |
| 21 | - | |
| 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. | |
| 26 | - | |
| 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 | - */ | |
| 31 | - | |
| 32 | -if ( ! class_exists( 'SimpleTickerAdmin' ) ) { | |
| 33 | - require_once( dirname( __FILE__ ) . '/lib/class-simpletickeradmin.php' ); | |
| 34 | -} | |
| 35 | -if ( ! class_exists( 'SimpleTickerWidgetItem' ) ) { | |
| 36 | - require_once( dirname( __FILE__ ) . '/lib/class-simpletickerwidgetitem.php' ); | |
| 37 | -} | |
| 38 | -if ( ! class_exists( 'SimpleTicker' ) ) { | |
| 39 | - require_once( dirname( __FILE__ ) . '/lib/class-simpleticker.php' ); | |
| 40 | -} | |
| 41 | - | |
| 42 | - | |
| 1 | +<?php | |
| 2 | +/* | |
| 3 | +Plugin Name: Simple Ticker | |
| 4 | +Version: 2.05 | |
| 5 | +Description: Displays the ticker. | |
| 6 | +Author: Katsushi Kawamori | |
| 7 | +Author URI: https://riverforest-wp.info/ | |
| 8 | +Text Domain: simple-ticker | |
| 9 | +Domain Path: /languages | |
| 10 | +*/ | |
| 11 | + | |
| 12 | +/* Copyright (c) 2016- Katsushi Kawamori (email : dodesyoswift312@gmail.com) | |
| 13 | + This program is free software; you can redistribute it and/or modify | |
| 14 | + it under the terms of the GNU General Public License as published by | |
| 15 | + the Free Software Foundation; version 2 of the License. | |
| 16 | + | |
| 17 | + This program is distributed in the hope that it will be useful, | |
| 18 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | + GNU General Public License for more details. | |
| 21 | + | |
| 22 | + You should have received a copy of the GNU General Public License | |
| 23 | + along with this program; if not, write to the Free Software | |
| 24 | + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 25 | +*/ | |
| 26 | + | |
| 27 | + add_action( 'plugins_loaded', 'simple_ticker_load_textdomain' ); | |
| 28 | + function simple_ticker_load_textdomain() { | |
| 29 | + load_plugin_textdomain('simple-ticker'); | |
| 30 | + } | |
| 31 | + | |
| 32 | + if(!class_exists('SimpleTickerRegist')) require_once( dirname(__FILE__).'/lib/SimpleTickerRegist.php' ); | |
| 33 | + if(!class_exists('SimpleTickerAdmin')) require_once( dirname(__FILE__).'/lib/SimpleTickerAdmin.php' ); | |
| 34 | + if(!class_exists('SimpleTickerWidgetItem')) require_once( dirname(__FILE__).'/lib/SimpleTickerWidgetItem.php' ); | |
| 35 | + if(!class_exists('SimpleTicker')) require_once( dirname(__FILE__).'/lib/SimpleTicker.php' ); | |
| 36 | + | |
| 37 | +?> | |