31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Blocksy Light/Dark Toggle
|
|
* Plugin URI: https://github.com/example/blocksy-light-dark-toggle
|
|
* Description: Floating light/dark mode toggle for the Blocksy theme (v2.1+). Integrates with Blocksy's native colour mode system.
|
|
* Version: 1.2.1
|
|
* Requires at least: 6.0
|
|
* Requires PHP: 7.4
|
|
* Author: Blocksy Light/Dark Toggle
|
|
* License: GPL-2.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
* Text Domain: blocksy-light-dark-toggle
|
|
*
|
|
* @package Blocksy_Light_Dark_Toggle
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
define( 'BLC_LDT_VERSION', '1.2.1' );
|
|
define( 'BLC_LDT_FILE', __FILE__ );
|
|
define( 'BLC_LDT_DIR', plugin_dir_path( __FILE__ ) );
|
|
define( 'BLC_LDT_URL', plugin_dir_url( __FILE__ ) );
|
|
define( 'BLC_LDT_COOKIE', 'blc_ldt_scheme' );
|
|
define( 'BLC_LDT_STORAGE', 'blc_ldt_scheme' );
|
|
|
|
require_once BLC_LDT_DIR . 'includes/class-blc-ldt-settings.php';
|
|
require_once BLC_LDT_DIR . 'includes/class-blc-ldt.php';
|
|
|
|
BLC_LDT_Settings::init();
|
|
BLC_LDT::init();
|