Files
plugin-dynamic-theme-style/dynamic-theme-style.php
2025-12-19 22:51:32 +01:00

44 lines
1.3 KiB
PHP

<?php
/**
* Plugin Name: LL Dynamic Theme Style
* Plugin URI: https://git.laslie.de/wp/plugin-dynamic-theme-style
* Description: Dynamic selection of theme style variants. Supports URL-based selection and automatic switching based on browser preference.
* Version: 1.0.0
* Requires at least:
* Requires PHP:
* Author: Lasse Liebler
* Author URI: https://dev.laslie.de
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* Text Domain: ll-dynamic-theme-style
* Domain Path: /languages
* Network:
* Update URI: https://git.laslie.de/wp/plugin-dynamic-theme-style
* Requires Plugins:
*/
namespace LasLie\DynamicThemeStyle;
// Abort if accessed directly.
if ( ! defined( 'ABSPATH' ) ) exit;
// Define constants for Config class.
if ( ! defined( 'LasLie\DynamicThemeStyle\DIRNAME' ) ) {
define( 'LasLie\DynamicThemeStyle\DIRNAME', plugin_dir_path( __FILE__ ) );
define( 'LasLie\DynamicThemeStyle\DIRURL', plugin_dir_url( __FILE__ ) );
}
// Load config and main plugin file.
require_once plugin_dir_path( __FILE__ ) . 'src/Config.php';
require_once plugin_dir_path( __FILE__ ) . 'src/Plugin.php';
// Initialize the plugin.
$plugin = new Plugin();
$plugin->init();