| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) { |
| 2 |
exit;} |
| 3 |
/** |
| 4 |
* Plugin Name: Events Calendar by FooEvents |
| 5 |
* Description: Display your events in a stylish calendar on your WordPress website using simple short codes and widgets. |
| 6 |
* Version: 2.0.2 |
| 7 |
* Author: FooEvents |
| 8 |
* Plugin URI: https://www.fooevents.com/fooevents-calendar/ |
| 9 |
* Author URI: https://www.fooevents.com/ |
| 10 |
* Developer: FooEvents |
| 11 |
* Developer URI: https://www.fooevents.com/ |
| 12 |
* Text Domain: fooevents-calendar |
| 13 |
* |
| 14 |
* Copyright: © 2009-2026 FooEvents. |
| 15 |
* License: GNU General Public License v3.0 |
| 16 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 17 |
*/ |
| 18 |
|
| 19 |
require WP_PLUGIN_DIR . '/fooevents-calendar/config.php'; |
| 20 |
require WP_PLUGIN_DIR . '/fooevents-calendar/class-fooevents-calendar.php'; |
| 21 |
require 'vendors/eventbrite/HttpClient.php'; |
| 22 |
require WP_PLUGIN_DIR . '/fooevents-calendar/classes/blocks/class-fooevents-calendar-blocks.php'; |
| 23 |
|
| 24 |
$fooevents_calendar = new FooEvents_Calendar(); |
| 25 |
$fooevents_blocks = new FooEvents_Calendar_Blocks(); |
| 26 |
|
| 27 |
/** |
| 28 |
* Delete FooEvents options on uninstall |
| 29 |
*/ |
| 30 |
function uninstall_fooevents_calendar() { |
| 31 |
|
| 32 |
delete_option( 'globalFooEventsAllDayEvent' ); |
| 33 |
delete_option( 'globalFooEventsTwentyFourHour' ); |
| 34 |
delete_option( 'globalFooEventsDisplayStock' ); |
| 35 |
} |
| 36 |
|
| 37 |
register_uninstall_hook( __FILE__, 'uninstall_fooevents_calendar' ); |
| 38 |
|