<?php if ( ! defined( 'ABSPATH' ) ) {
	exit;}
/**
 * Plugin Name: Events Calendar by FooEvents
 * Description: Display your events in a stylish calendar on your WordPress website using simple short codes and widgets.
 * Version: 2.0.1
 * Author: FooEvents
 * Plugin URI: https://www.fooevents.com/fooevents-calendar/
 * Author URI: https://www.fooevents.com/
 * Developer: FooEvents
 * Developer URI: https://www.fooevents.com/
 * Text Domain: fooevents-calendar
 *
 * Copyright: © 2009-2026 FooEvents.
 * License: GNU General Public License v3.0
 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
 */

require WP_PLUGIN_DIR . '/fooevents-calendar/config.php';
require WP_PLUGIN_DIR . '/fooevents-calendar/class-fooevents-calendar.php';
require 'vendors/eventbrite/HttpClient.php';
require WP_PLUGIN_DIR . '/fooevents-calendar/classes/blocks/class-fooevents-calendar-blocks.php';

$fooevents_calendar = new FooEvents_Calendar();
$fooevents_blocks   = new FooEvents_Calendar_Blocks();

/**
 * Delete FooEvents options on uninstall
 */
function uninstall_fooevents_calendar() {

	delete_option( 'globalFooEventsAllDayEvent' );
	delete_option( 'globalFooEventsTwentyFourHour' );
	delete_option( 'globalFooEventsDisplayStock' );
}

register_uninstall_hook( __FILE__, 'uninstall_fooevents_calendar' );
