| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @link https://jeanbaptisteaudras.com/portfolio/wordpress-reading-progressbar-indicator-plugin/ |
| 5 |
* @since 1.2 |
| 6 |
* @package Reading Progress Bar |
| 7 |
* |
| 8 |
* @wordpress-plugin |
| 9 |
* Plugin Name: Reading Progress Bar |
| 10 |
* Plugin URI: https://jeanbaptisteaudras.com/portfolio/wordpress-reading-progressbar-indicator-plugin/ |
| 11 |
* Description: A reading position indicator that you can use where you want: top, bottom or custom position in differents templates or post types. |
| 12 |
* Version: 1.2 |
| 13 |
* Author: Jean-Baptiste Audras, project manager @ Whodunit |
| 14 |
* Author URI: http://jeanbaptisteaudras.com |
| 15 |
* License: GPL-2.0+ |
| 16 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 17 |
* Text Domain: reading-progress-bar |
| 18 |
* Domain Path: /languages |
| 19 |
*/ |
| 20 |
|
| 21 |
// If this file is called directly, abort. |
| 22 |
if ( ! defined( 'WPINC' ) ) { |
| 23 |
die; |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
* i18n |
| 28 |
*/ |
| 29 |
load_plugin_textdomain( 'reading-progress-bar', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); |
| 30 |
|
| 31 |
/** |
| 32 |
* Admin |
| 33 |
*/ |
| 34 |
if (is_admin()) { |
| 35 |
require_once plugin_dir_path( __FILE__ ) . '/admin/rp-admin.php'; |
| 36 |
} |
| 37 |
/** |
| 38 |
* Public |
| 39 |
*/ |
| 40 |
require_once plugin_dir_path( __FILE__ ) . '/public/rp-public.php'; |
| 41 |
|