simple-author-box
Last commit date
assets
3 years ago
inc
3 years ago
template
3 years ago
wf-flyout
3 years ago
block.json
5 years ago
license.txt
7 years ago
readme.txt
2 years ago
simple-author-box.php
2 years ago
uninstall.php
5 years ago
simple-author-box.php
57 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Simple Author Box |
| 4 | * Plugin URI: https://wpauthorbox.com/ |
| 5 | * Description: Adds a responsive author box with social icons on any post. |
| 6 | * Version: 2.52 |
| 7 | * Author: WebFactory Ltd |
| 8 | * Author URI: https://www.webfactoryltd.com/ |
| 9 | * Requires: 4.6 |
| 10 | * License: GPLv3 or later |
| 11 | * License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 12 | * Requires PHP: 5.6 |
| 13 | * Tested up to: 6.4 |
| 14 | |
| 15 | * |
| 16 | * Copyright 2014-2017 Tiguan office@tiguandesign.com |
| 17 | * Copyright 2017-2019 MachoThemes office@machothemes.com |
| 18 | * Copyright 2019-2019 GreenTreeLabs diego@greentreelabs.net |
| 19 | * Copyright 2019-2023 WebFactory Ltd support@webfactoryltd.com |
| 20 | * |
| 21 | * This program is free software; you can redistribute it and/or modify |
| 22 | * it under the terms of the GNU General Public License, version 3, as |
| 23 | * published by the Free Software Foundation. |
| 24 | * |
| 25 | * This program is distributed in the hope that it will be useful, |
| 26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 28 | * GNU General Public License for more details. |
| 29 | * |
| 30 | * You should have received a copy of the GNU General Public License |
| 31 | * along with this program; if not, write to the Free Software |
| 32 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 33 | */ |
| 34 | |
| 35 | |
| 36 | if (!function_exists('is_plugin_active')) { |
| 37 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 38 | } |
| 39 | |
| 40 | define('SIMPLE_AUTHOR_BOX_PATH', plugin_dir_path(__FILE__)); |
| 41 | define('SIMPLE_AUTHOR_BOX_ASSETS', plugins_url('/assets/', __FILE__)); |
| 42 | define('SIMPLE_AUTHOR_BOX_SLUG', plugin_basename(__FILE__)); |
| 43 | define('SIMPLE_AUTHOR_BOX_FILE', __FILE__); |
| 44 | define('SIMPLE_AUTHOR_SCRIPT_DEBUG', false); |
| 45 | define('SIMPLE_AUTHOR_POINTERS', 'sab_pointers'); |
| 46 | |
| 47 | |
| 48 | $plugin_data = get_file_data(__FILE__, array('version' => 'Version'), 'plugin'); |
| 49 | define('SIMPLE_AUTHOR_BOX_VERSION', $plugin_data['version']); |
| 50 | require_once SIMPLE_AUTHOR_BOX_PATH . 'inc/class-simple-author-box.php'; |
| 51 | |
| 52 | require_once dirname(__FILE__) . '/wf-flyout/wf-flyout.php'; |
| 53 | new wf_flyout(__FILE__); |
| 54 | |
| 55 | global $simple_author_box; |
| 56 | $simple_author_box = Simple_Author_Box::get_instance(); |
| 57 |