From 3b51684b3a9082e499a04a206334a468f85bca25 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 23 Aug 2024 20:13:45 +0200 Subject: [PATCH] refactor: reorganize class files for better structure Moved class files into a dedicated 'classes' directory to improve project organization. Updated file paths in functions.php to reflect these changes. This helps maintain a cleaner directory structure and separates core files from auxiliary classes. --- class-wp-bootstrap-navwalker.php => classes/navwalker.php | 0 PaperPDF.php => classes/paperpdf.php | 0 functions.php | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename class-wp-bootstrap-navwalker.php => classes/navwalker.php (100%) rename PaperPDF.php => classes/paperpdf.php (100%) diff --git a/class-wp-bootstrap-navwalker.php b/classes/navwalker.php similarity index 100% rename from class-wp-bootstrap-navwalker.php rename to classes/navwalker.php diff --git a/PaperPDF.php b/classes/paperpdf.php similarity index 100% rename from PaperPDF.php rename to classes/paperpdf.php diff --git a/functions.php b/functions.php index 9105867..90dde57 100644 --- a/functions.php +++ b/functions.php @@ -33,7 +33,7 @@ function duck_behavior_journal_scripts() } add_action('wp_enqueue_scripts', 'duck_behavior_journal_scripts'); -require_once get_template_directory() . '/class-wp-bootstrap-navwalker.php'; +require_once get_template_directory() . '/classes/navwalker.php'; function duck_behavior_journal_customizer($wp_customize) { @@ -852,7 +852,7 @@ function handle_pdf_download() } if (is_tcpdf_available()) { - require_once get_template_directory() . '/PaperPDF.php'; + require_once get_template_directory() . '/classes/paperpdf.php'; $post_id = get_query_var('download_pdf');