first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
* Plugin name: Camping Care Widget
|
||||
* Version: 1.1.0
|
||||
* Author: Daan Meijer <daan@september.digital>
|
||||
*/
|
||||
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
$pluginData = get_plugin_data(__FILE__, false, false);
|
||||
define('CAMPING_CARE_WIDGET_VERSION', $pluginData['Version']);
|
||||
|
||||
|
||||
add_action('wp_enqueue_scripts', function(){
|
||||
wp_register_script('flatpickr-nl', 'https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.13/l10n/nl.min.js', [], '4.6.13');
|
||||
wp_register_script('flatpickr', 'https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.13/flatpickr.min.js', ['flatpickr-nl'], '4.6.13');
|
||||
wp_register_style('flatpickr', 'https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.13/flatpickr.min.css', [], '4.6.13');
|
||||
|
||||
wp_register_script('camping-care-widget', plugins_url( 'js/main.js', __FILE__ ), ['flatpickr'], CAMPING_CARE_WIDGET_VERSION);
|
||||
wp_register_style('camping-care-widget', plugins_url('css/main.css', __FILE__), ['flatpickr'], CAMPING_CARE_WIDGET_VERSION);
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
\CampingCareWidget\Widget::init();
|
||||
\CampingCareWidget\Admin::init();
|
||||
Reference in New Issue
Block a user