28 lines
611 B
PHP
28 lines
611 B
PHP
<?php
|
|
/*
|
|
* Plugin Name: TheaterGF Core
|
|
* Description: Gemeinsame Funktionalität für alle TheaterGF Plugins
|
|
* Author: Patrick Maschek
|
|
*/
|
|
|
|
namespace TheaterGF\Core;
|
|
|
|
// protect against direct access
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
|
|
function plugin_activation_function() {}
|
|
|
|
function plugin_deactivation_function() {}
|
|
|
|
register_activation_hook(__FILE__, 'TheaterGF\Core\plugin_activation_function');
|
|
register_deactivation_hook(__FILE__, 'TheaterGF\Core\plugin_deactivation_function');
|
|
|
|
if ( is_admin() ) {
|
|
require_once __DIR__ . '/src/admin/admin.php';
|
|
}
|
|
|
|
require_once __DIR__ . '/src/media.php';
|