v1.0.0
This commit is contained in:
commit
06153e387d
47 changed files with 5116 additions and 0 deletions
43
fontdelbosc-eltemps.php
Normal file
43
fontdelbosc-eltemps.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?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' ) );
|
||||
Loading…
Reference in a new issue