From b5c8bd15041127af8ba34f397dd6efd8d59eadc6 Mon Sep 17 00:00:00 2001 From: Brian Gardner Date: Mon, 21 Oct 2024 19:02:51 -0700 Subject: [PATCH] Remove theme settings page. closes #42 --- functions.php | 3 - inc/theme-settings.php | 240 ----------------------------------------- 2 files changed, 243 deletions(-) delete mode 100644 inc/theme-settings.php diff --git a/functions.php b/functions.php index 348dc43..40ab1f1 100644 --- a/functions.php +++ b/functions.php @@ -21,9 +21,6 @@ function powder_setup() { // Remove core block patterns. remove_theme_support( 'core-block-patterns' ); - // Include theme settings. - require_once get_template_directory() . '/inc/theme-settings.php'; - } } add_action( 'after_setup_theme', 'powder_setup' ); diff --git a/inc/theme-settings.php b/inc/theme-settings.php deleted file mode 100644 index 5ae944b..0000000 --- a/inc/theme-settings.php +++ /dev/null @@ -1,240 +0,0 @@ - 'Call to Action', - 'content' => 'Content', - 'footers' => 'Footers', - 'gallery' => 'Gallery', - 'headers' => 'Headers', - 'hero' => 'Hero', - 'posts' => 'Posts', - 'pricing' => 'Pricing', - 'team' => 'Team', - 'templates' => 'Templates', - 'testimonials' => 'Testimonials' - ); - - ?> -
-

-

-
- - - - $label): ?> - - - - - -
- /> -
- -
-
- [ - 'powder/call-to-action-boxed-dark', - 'powder/call-to-action-boxed', - 'powder/call-to-action-button-dark', - 'powder/call-to-action-button', - 'powder/call-to-action-centered-dark', - 'powder/call-to-action-centered', - 'powder/call-to-action-outline-dark', - 'powder/call-to-action-outline', - 'powder/call-to-action-promo-dark', - 'powder/call-to-action-promo', - 'powder/call-to-action-stacked-dark', - 'powder/call-to-action-stacked' - ], - 'powder_setting_option_content' => [ - 'powder/content-about-split-dark', - 'powder/content-about-split', - 'powder/content-boxes-feature-dark', - 'powder/content-boxes-feature', - 'powder/content-boxes-outline-dark', - 'powder/content-boxes-outline', - 'powder/content-ebook-covers-dark', - 'powder/content-ebook-covers', - 'powder/content-faqs-columns-dark', - 'powder/content-faqs-columns', - 'powder/content-faqs-stacked-dark', - 'powder/content-faqs-stacked', - 'powder/content-feature-columns-dark', - 'powder/content-feature-columns', - 'powder/content-links-dark', - 'powder/content-links', - 'powder/content-logos-dark', - 'powder/content-logos', - 'powder/content-social-numbers-dark', - 'powder/content-social-numbers' - ], - 'powder_setting_option_footers' => [ - 'powder/footer-dark', - 'powder/footer-featured-dark', - 'powder/footer-featured', - 'powder/footer-mega-dark', - 'powder/footer-mega', - 'powder/footer-multi-column-dark', - 'powder/footer-multi-column', - 'powder/footer-social-dark', - 'powder/footer-social', - 'powder/footer-split-dark', - 'powder/footer-split', - 'powder/footer-stacked-dark', - 'powder/footer-stacked' - ], - 'powder_setting_option_gallery' => [ - 'powder/gallery-grid-multi-dark', - 'powder/gallery-grid-multi', - 'powder/gallery-grid-square-dark', - 'powder/gallery-grid-square', - 'powder/gallery-row-dark', - 'powder/gallery-row', - 'powder/gallery-text-images-dark', - 'powder/gallery-text-images' - ], - 'powder_setting_option_headers' => [ - 'powder/header-dark', - 'powder/header-logo-button-dark', - 'powder/header-logo-button', - 'powder/header-logo-social-dark', - 'powder/header-logo-social', - 'powder/header-site-logo-dark', - 'powder/header-site-logo', - 'powder/header-title-separator-dark', - 'powder/header-title-separator' - ], - 'powder_setting_option_hero' => [ - 'powder/hero-columns-image-text-dark', - 'powder/hero-columns-image-text', - 'powder/hero-columns-text-image-dark', - 'powder/hero-columns-text-image', - 'powder/hero-cover-gradient-dark', - 'powder/hero-cover-gradient', - 'powder/hero-cover-stack-dark', - 'powder/hero-cover-stack', - 'powder/hero-image-text-buttons-dark', - 'powder/hero-image-text-buttons', - 'powder/hero-stacked-text-image-dark', - 'powder/hero-stacked-text-image', - 'powder/hero-text-button-dark', - 'powder/hero-text-button' - ], - 'powder_setting_option_posts' => [ - 'powder/posts-dark', - 'powder/posts-grid-dark', - 'powder/posts-grid' - ], - 'powder_setting_option_pricing' => [ - 'powder/pricing-2-columns-dark', - 'powder/pricing-2-columns', - 'powder/pricing-3-columns-dark', - 'powder/pricing-3-columns' - ], - 'powder_setting_option_team' => [ - 'powder/team-columns-dark', - 'powder/team-columns', - 'powder/team-single-image-text-dark', - 'powder/team-single-image-text', - 'powder/team-single-text-image-dark', - 'powder/team-single-text-image' - ], - 'powder_setting_option_templates' => [ - 'powder/template-page-box-shadow', - 'powder/template-page-gradient-cover', - 'powder/template-single-box-shadow', - 'powder/template-single-gradient-cover', - ], - 'powder_setting_option_testimonials' => [ - 'powder/testimonials-bold-dark', - 'powder/testimonials-bold', - 'powder/testimonials-columns-dark', - 'powder/testimonials-columns', - 'powder/testimonials-grid-dark', - 'powder/testimonials-grid', - 'powder/testimonials-single-dark', - 'powder/testimonials-single' - ] - ]; - - foreach ($patterns as $option => $pattern_ids) { - if (get_option($option, '1') !== '1') { - foreach ($pattern_ids as $pattern_id) { - unregister_block_pattern($pattern_id); - } - } - } -} -add_action( 'init', 'powder_unregister_patterns' );