diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-09-04 19:45:26 +0200 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-09-04 19:45:26 +0200 |
commit | 33434e85d498b9a8b0bd6731288659682f692057 (patch) | |
tree | 4cbabb14ae7398fb7ba06f8a00d4413ce464a15b /giglogadmin.php | |
parent | b92a2fc89ee23d20ac157fdf18e20861e6bd4c32 (diff) | |
parent | f6d0f86a9e2a0ab3af398a6fe67d09c3e7779881 (diff) | |
download | gigologadmin-33434e85d498b9a8b0bd6731288659682f692057.tar.gz gigologadmin-33434e85d498b9a8b0bd6731288659682f692057.tar.bz2 gigologadmin-33434e85d498b9a8b0bd6731288659682f692057.zip |
Merge branch 'dev' of https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
Diffstat (limited to 'giglogadmin.php')
-rw-r--r-- | giglogadmin.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/giglogadmin.php b/giglogadmin.php index e9adbe2..c07941f 100644 --- a/giglogadmin.php +++ b/giglogadmin.php @@ -25,15 +25,6 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { - require_once __DIR__ . '/includes/admin/register_db_tables.php'; - require_once __DIR__ . '/includes/admin/views/giglog_admin_page.php'; - require_once __DIR__ . '/includes/admin/views/giglog_import_gigs.php'; - require_once __DIR__ . '/includes/admin/helpfiles/instrunctions.php'; - require_once __DIR__ . '/includes/admin/helpfiles/instr_reviewers.php'; - require_once __DIR__ . '/includes/admin/helpfiles/instr_photog.php'; - require_once __DIR__ . '/includes/view-helpers/select_field.php'; - require_once __DIR__ . '/includes/roles.php'; - class GiglogAdmin_Plugin { static public function init(): void { @@ -133,6 +124,16 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { register_activation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'activate' )); register_deactivation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'deactivate' )); - GiglogAdmin_Plugin::init(); + if (is_admin()) { + require_once __DIR__ . '/includes/admin/register_db_tables.php'; + require_once __DIR__ . '/includes/admin/views/giglog_admin_page.php'; + require_once __DIR__ . '/includes/admin/views/giglog_import_gigs.php'; + require_once __DIR__ . '/includes/admin/helpfiles/instrunctions.php'; + require_once __DIR__ . '/includes/admin/helpfiles/instr_reviewers.php'; + require_once __DIR__ . '/includes/admin/helpfiles/instr_photog.php'; + require_once __DIR__ . '/includes/view-helpers/select_field.php'; + + GiglogAdmin_Plugin::init(); + } } ?> |