43 lines
2 KiB
PHP
43 lines
2 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Font del Bosc — El Temps
|
|
* Plugin URI: https://github.com/robotstxt/fontdelbosc-eltemps
|
|
* Description: Weather display for Font del Bosc (Mediona, Alt Penedès).
|
|
* Version: 1.0.0
|
|
* Requires at least: 6.4
|
|
* Requires PHP: 8.2
|
|
* Author: ROBOTSTXT
|
|
* Author URI: https://www.robotstxt.es
|
|
* License: GPL-3.0-or-later
|
|
* Text Domain: fontdelbosc-eltemps
|
|
* Domain Path: /languages
|
|
*
|
|
* @package FontdelboscEltemps
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
define( 'FONTDELBOSC_ELTEMPS_VERSION', '1.0.0' );
|
|
define( 'FONTDELBOSC_ELTEMPS_PLUGIN_FILE', __FILE__ );
|
|
define( 'FONTDELBOSC_ELTEMPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
define( 'FONTDELBOSC_ELTEMPS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
|
|
|
// Font del Bosc spring (OSM node 12091829069), next to road C-244.
|
|
define( 'FONTDELBOSC_ELTEMPS_LAT', 41.48772 );
|
|
define( 'FONTDELBOSC_ELTEMPS_LON', 1.65947 );
|
|
define( 'FONTDELBOSC_ELTEMPS_TIMEZONE', 'Europe/Madrid' );
|
|
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-conditions.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-payload.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-api-openmeteo.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-api-meteocat.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-api-aemet.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-data-manager.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-shortcode.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-widget.php';
|
|
require_once FONTDELBOSC_ELTEMPS_PLUGIN_DIR . 'includes/class-fontdelbosc-plugin.php';
|
|
|
|
Fontdelbosc_Plugin::instance();
|
|
|
|
register_activation_hook( __FILE__, array( 'Fontdelbosc_Plugin', 'activate' ) );
|
|
register_deactivation_hook( __FILE__, array( 'Fontdelbosc_Plugin', 'deactivate' ) );
|