summaryrefslogtreecommitdiffstats
path: root/includes/class-giglogadmin-plugin.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-01-20 20:22:06 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-01-20 20:22:06 +0100
commit277fedffc624f55c6ecc8bd80ed8db370134e47e (patch)
treeac22560f978c3789a63c80284fbd314e11d0b396 /includes/class-giglogadmin-plugin.php
parentf499d9e657fe79e4413eec9e20ae13d616fac6f5 (diff)
downloadgigologadmin-277fedffc624f55c6ecc8bd80ed8db370134e47e.tar.gz
gigologadmin-277fedffc624f55c6ecc8bd80ed8db370134e47e.tar.bz2
gigologadmin-277fedffc624f55c6ecc8bd80ed8db370134e47e.zip
Rename and reorganize more source files.
Diffstat (limited to 'includes/class-giglogadmin-plugin.php')
-rw-r--r--includes/class-giglogadmin-plugin.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/includes/class-giglogadmin-plugin.php b/includes/class-giglogadmin-plugin.php
index a195ffa..6236f60 100644
--- a/includes/class-giglogadmin-plugin.php
+++ b/includes/class-giglogadmin-plugin.php
@@ -15,17 +15,18 @@ if ( ! class_exists( 'GiglogAdmin_Plugin' ) ) {
{
static public function init(): void {
if ( !defined('GIGLOGADMIN_UNIT_TEST') ) {
- require_once __DIR__ . '/admin/register_db_tables.php';
+ require_once __DIR__ . '/giglogadmin-register-db-tables.php';
+ giglog_register_db_tables();
}
require_once __DIR__ . '/class-giglogadmin-venue.php';
require_once __DIR__ . '/class-giglogadmin-concert.php';
require_once __DIR__ . '/class-giglogadmin-icalexport.php';
- require_once __DIR__ . '/view-helpers/select_field.php';
+ require_once __DIR__ . '/view-helpers/select-field-helper.php';
if (is_admin()) {
- require_once __DIR__ . '/admin/views/giglog_admin_page.php';
- require_once __DIR__ . '/admin/views/giglog_import_gigs.php';
+ require_once __DIR__ . '/admin/views/class-giglogadmin-adminpage.php';
+ require_once __DIR__ . '/admin/views/class-giglogadmin-importgigspage.php';
require_once __DIR__ . '/admin/helpfiles/instrunctions.php';
require_once __DIR__ . '/admin/helpfiles/instr_reviewers.php';
require_once __DIR__ . '/admin/helpfiles/instr_photog.php';
@@ -36,7 +37,7 @@ if ( ! class_exists( 'GiglogAdmin_Plugin' ) ) {
add_filter( 'wp_nav_menu_args', array( 'GiglogAdmin_Plugin', 'nav_menu_args' ));
}
else {
- require_once __DIR__ . '/admin/views/_concerts_table.php';
+ require_once __DIR__ . '/view-helpers/class-giglogadmin-concertstable.php';
require_once __DIR__ . '/giglogadmin-shortcodes.php';
}
}
@@ -82,7 +83,7 @@ if ( ! class_exists( 'GiglogAdmin_Plugin' ) ) {
array( 'GiglogAdmin_ImportGigsPage', 'submit_form' ) );
}
- wp_register_style( 'css_style', plugins_url( '/includes/css/main.css', __FILE__ ) );
+ wp_register_style( 'css_style', plugins_url( '/css/main.css', __FILE__ ) );
wp_enqueue_style('css_style');
}