diff --git a/web/app/themes/badegg/.editorconfig b/web/app/themes/badegg/.editorconfig deleted file mode 100644 index daa51f2..0000000 --- a/web/app/themes/badegg/.editorconfig +++ /dev/null @@ -1,25 +0,0 @@ -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = space -indent_size = 2 -trim_trailing_whitespace = true -quote_type = single - -[*.md] -trim_trailing_whitespace = false - -[*.php] -indent_size = 4 - -[*.blade.php] -indent_size = 2 - -[resources/views/**.php] -indent_size = 2 - -[index.php] -indent_size = 2 diff --git a/web/app/themes/badegg/.gitignore b/web/app/themes/badegg/.gitignore deleted file mode 100644 index a1900e3..0000000 --- a/web/app/themes/badegg/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -/node_modules -/vendor -/public -.env -.budfiles -npm-debug.log -yarn-error.log diff --git a/web/app/themes/badegg/LICENSE.md b/web/app/themes/badegg/LICENSE.md deleted file mode 100644 index 1b5cd27..0000000 --- a/web/app/themes/badegg/LICENSE.md +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) Roots Software Foundation LLC - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/web/app/themes/badegg/README.md b/web/app/themes/badegg/README.md deleted file mode 100644 index c608de2..0000000 --- a/web/app/themes/badegg/README.md +++ /dev/null @@ -1,54 +0,0 @@ -
-
-
-
-
Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
- -- Website Documentation Releases Community -
- -## Sponsors - -Sage is an open source project and completely free to use. If you've benefited from our projects and would like to support our future endeavors, please consider [sponsoring Roots](https://github.com/sponsors/roots). - - - -## Overview - -Sage is a WordPress starter theme with block editor support. - -- Harness the power of [Laravel](https://laravel.com) and its available packages thanks to [Acorn](https://github.com/roots/acorn) -- Clean, efficient theme templating utilizing [Laravel Blade](https://laravel.com/docs/master/blade) -- Modern frontend development workflow powered by [Bud](https://bud.js.org/) -- Out of the box support for [Tailwind CSS](https://tailwindcss.com/) - -## Getting Started - -See the [Sage installation documentation](https://roots.io/sage/docs/installation/). - -## Stay Connected - -- Join us on Discord by [sponsoring us on GitHub](https://github.com/sponsors/roots) -- Participate on [Roots Discourse](https://discourse.roots.io/) -- Follow [@rootswp on Twitter](https://twitter.com/rootswp) -- Read the [Roots Blog](https://roots.io/blog/) -- Subscribe to the [Roots Newsletter](https://roots.io/newsletter/) diff --git a/web/app/themes/badegg/app/ACF/CloneGroup.php b/web/app/themes/badegg/app/ACF/CloneGroup.php deleted file mode 100644 index ace0bcb..0000000 --- a/web/app/themes/badegg/app/ACF/CloneGroup.php +++ /dev/null @@ -1,58 +0,0 @@ -block_intro(), $this->block_footer(), $this->block_settings(), $this->block_background()); - } -} diff --git a/web/app/themes/badegg/app/ACF/Dynamic.php b/web/app/themes/badegg/app/ACF/Dynamic.php deleted file mode 100644 index c9c9aac..0000000 --- a/web/app/themes/badegg/app/ACF/Dynamic.php +++ /dev/null @@ -1,142 +0,0 @@ -values(); - - $field['choices'] = []; - - foreach($colours as $slug => $hex): - $field['choices'][$slug] = ' ' . @$NameThatColour->name($hex)['name']; - endforeach; - - return $field; - - } - - public function load_tints( $field ) - { - $colour = new Utilities\Colour; - $tints = $colour->tints(); - - $field['choices'] = []; - - foreach($tints as $slug => $hex): - if($slug): - $field['choices'][$slug] = ucfirst($slug); - - else: - $field['choices'][0] = 'None'; - endif; - endforeach; - - return $field; - } - - public function load_fontawesome_regular_icons( $field ) - { - $field['choices'] = []; - $field['choices'] = $this->fontawesome_choices('regular'); - - return $field; - } - - public function load_fontawesome_solid_icons( $field ) - { - $field['choices'] = []; - $field['choices'] = $this->fontawesome_choices('solid'); - - return $field; - } - - public function load_fontawesome_brand_icons( $field ) - { - $field['choices'] = []; - $field['choices'] = $this->fontawesome_choices('brands'); - - return $field; - } - - public function fontawesome_choices($set = 'solid') - { - $path = get_stylesheet_directory() . '/resources/json/font-awesome-' . $set . '.json'; - - $json = @file_get_contents($path); - - if(!$json) return false; - $icons = json_decode($json, true); - - $choices = [ - '0' => ' Please select an icon', - ]; - - foreach($icons as $slug => $props): - if(in_array($slug, range(0,9))) continue; - - $choices[$slug] = ' ' . (ucwords(str_replace('-', ' ', $slug))) . ''; - endforeach; - - return $choices; - } - - public function colour_ui() - { ?> - - - - __('Global Settings'), - 'menu_title' => __('Global Settings'), - 'menu_slug' => 'theme-global-settings', - 'capability' => 'edit_others_posts', - 'redirect' => false, - 'icon_url' => 'dashicons-admin-site', - ]); - } -} diff --git a/web/app/themes/badegg/app/Admin/Blocks.php b/web/app/themes/badegg/app/Admin/Blocks.php deleted file mode 100644 index 5cc52c5..0000000 --- a/web/app/themes/badegg/app/Admin/Blocks.php +++ /dev/null @@ -1,206 +0,0 @@ - 'badegg', - 'title' => __('Provided by Bad Egg Digital'), - ], - [ - 'slug' => 'tempsite', - 'title' => __('Temporary Site'), - ], - ], $categories); - - return $categories; - } - - public function manage($allowed_block_types, $editor_context) - { - // Reference: - // https://www.wpexplorer.com/how-to-remove-gutenberg-blocks/ - // https://www.wpexplorer.com/wordpress-core-blocks-list/ - - // Existing blocks with Blade templates - // https://roots.io/acorn/docs/rendering-blade-views/#existing-blocks-with-blade-templates - - $blocks = array_keys( \WP_Block_Type_Registry::get_instance()->get_all_registered() ); - - $ID = @$editor_context->post->ID; - $pageTemplate = get_post_meta($ID, '_wp_page_template', true); - - if($pageTemplate == 'template-plain-document.blade.php'): - $blacklist = $this->blacklist([ - 'core/separator', - 'core/spacer', - 'core/heading', - 'core/list', - 'core/list-item', - 'core/paragraph', - 'core/pullquote', - ]); - - $blacklist = array_merge($blacklist, [ - 'acf/badegg-wysiwyg', - ]); - - else: - $blacklist = $this->blacklist(); - endif; - - return array_values( array_diff( $blocks, $blacklist ) ); - } - - public function blacklist($whitelist = []) - { - $blacklist = [ - // Contact Form 7 - 'contact-form-7/contact-form-selector', - - // Design - 'core/button', - 'core/comment-template', - 'core/home-link', - 'core/navigation-link', - 'core/navigation-submenu', - 'core/buttons', - 'core/column', - 'core/columns', - 'core/group', - 'core/more', - 'core/nextpage', - 'core/separator', - 'core/spacer', - 'core/text-columns', - - // Embed - 'core/embed', - - // Media - 'core/cover', - 'core/file', - 'core/gallery', - 'core/image', - 'core/media-text', - 'core/audio', - 'core/video', - - // Reusable - 'core/block', - - // Text - 'core/footnotes', - 'core/heading', - 'core/list', - 'core/code', - 'core/details', - 'core/freeform', - // 'core/list-item', - 'core/missing', - 'core/paragraph', - 'core/preformatted', - 'core/pullquote', - 'core/quote', - 'core/table', - 'core/verse', - - // Theme - 'core/avatar', - 'core/comment-author-name', - 'core/comment-content', - 'core/comment-date', - 'core/comment-edit-link', - 'core/comment-reply-link', - 'core/comments', - 'core/comments-pagination', - 'core/comments-pagination-next', - 'core/comments-pagination-numbers', - 'core/comments-pagination-previous', - 'core/comments-title', - 'core/loginout', - 'core/navigation', - 'core/pattern', - 'core/post-author', - 'core/post-author-biography', - 'core/post-author-name', - 'core/post-comments-form', - 'core/post-content', - 'core/post-date', - 'core/post-excerpt', - 'core/post-featured-image', - 'core/post-navigation-link', - 'core/post-template', - 'core/post-terms', - 'core/post-title', - 'core/query', - 'core/query-no-results', - 'core/query-pagination', - 'core/query-pagination-next', - 'core/query-pagination-numbers', - 'core/query-pagination-previous', - 'core/query-title', - 'core/read-more', - 'core/site-logo', - 'core/site-tagline', - 'core/site-title', - 'core/template-part', - 'core/term-description', - 'core/post-comments', - - // Widgets - 'core/legacy-widget', - 'core/widget-group', - 'core/archives', - 'core/calendar', - 'core/categories', - 'core/latest-comments', - 'core/latest-posts', - 'core/page-list', - 'core/page-list-item', - 'core/rss', - 'core/search', - 'core/shortcode', - 'core/social-link', - 'core/tag-cloud', - 'core/html', - 'core/social-links', - ]; - - return array_values( array_diff( $blacklist, $whitelist ) ); - } -} diff --git a/web/app/themes/badegg/app/Admin/Comments.php b/web/app/themes/badegg/app/Admin/Comments.php deleted file mode 100644 index 0f6c58b..0000000 --- a/web/app/themes/badegg/app/Admin/Comments.php +++ /dev/null @@ -1,67 +0,0 @@ -remove_menu('comments'); - } - - public function admin_menu() - { - remove_menu_page( 'edit-comments.php' ); - remove_submenu_page( 'options-general.php', 'options-discussion.php' ); - } - - public function dashboard_recent_comments() - { - remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); - } - - public function theme_support() - { - remove_theme_support('comments'); - } - - public function rewrite($rules) - { - foreach ($rules as $rule => $rewrite) { - if (preg_match('/.*(feed)/', $rule)) { - unset($rules[$rule]); - } - if (preg_match('/.*(comment-page)/', $rule)) { - unset($rules[$rule]); - } - } - return $rules; - } -} diff --git a/web/app/themes/badegg/app/Admin/DisablePost.php b/web/app/themes/badegg/app/Admin/DisablePost.php deleted file mode 100644 index 3738ad0..0000000 --- a/web/app/themes/badegg/app/Admin/DisablePost.php +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - 40, - 'supports' => [ - 'title', - 'editor', - ], - 'menu_icon' => 'dashicons-admin-comments', - 'rewrite' => false, - 'has_archive' => false, - 'publicly_queryable' => false, - 'exclude_from_search' => true, - 'capability_type' => 'page', - 'show_in_nav_menus' => false, - 'admin_cols' => [ - 'faq_category' => [ - 'title' => __('Category', $td), - 'taxonomy' => 'faq_category', - ], - ], - ], - ); - - register_extended_taxonomy( - 'faq_category', - $postType, - [ - // 'meta_box' => 'radio', - 'rewrite' => false, - 'publicly_queryable' => false, - 'show_in_nav_menus' => false, - ], - [ - 'singular' => __('Category', $td), - 'plural' => __('Categories', $td), - ] - ); - } -} diff --git a/web/app/themes/badegg/app/PostTypes/Organization.php b/web/app/themes/badegg/app/PostTypes/Organization.php deleted file mode 100644 index a7f511b..0000000 --- a/web/app/themes/badegg/app/PostTypes/Organization.php +++ /dev/null @@ -1,59 +0,0 @@ - 40, - 'labels' => [ - 'featured_image' => __('Logo', $td), - ], - 'supports' => [ - 'title', - 'page-attributes', - 'thumbnail', - ], - 'menu_icon' => 'dashicons-building', - 'rewrite' => false, - 'has_archive' => false, - 'publicly_queryable' => false, - 'exclude_from_search' => true, - 'capability_type' => 'page', - 'show_in_nav_menus' => false, - 'admin_cols' => [ - 'organisation_relationship' => [ - 'title' => __('Relationship', $td), - 'taxonomy' => 'organisation_relationship', - ], - ], - ], - ); - - register_extended_taxonomy( - 'organisation_relationship', - $postType, - [ - 'meta_box' => 'radio', - 'rewrite' => false, - 'publicly_queryable' => false, - ], - [ - 'singular' => __('Relationship', $td), - 'plural' => __('Relationships', $td), - ] - ); - } -} diff --git a/web/app/themes/badegg/app/PostTypes/Social.php b/web/app/themes/badegg/app/PostTypes/Social.php deleted file mode 100644 index 3a1aeb9..0000000 --- a/web/app/themes/badegg/app/PostTypes/Social.php +++ /dev/null @@ -1,57 +0,0 @@ - 28, - 'supports' => [ - 'title', - 'page-attributes', - ], - 'menu_icon' => 'dashicons-share', - 'rewrite' => false, - 'has_archive' => false, - 'publicly_queryable' => false, - 'exclude_from_search' => true, - 'capability_type' => 'page', - 'show_in_nav_menus' => false, - 'admin_cols' => [ - 'social_link' => [ - 'title' => __('Social Link', $td), - 'meta_key' => 'fontawesome_brands', - 'function' => function(){ - $icon = get_field('fontawesome_brands'); - $url = get_field('url'); - - if($icon): ?> - - - - 40, - 'supports' => [ - 'title', - ], - 'menu_icon' => 'dashicons-format-quote', - 'rewrite' => false, - 'has_archive' => false, - 'publicly_queryable' => false, - 'exclude_from_search' => true, - 'capability_type' => 'page', - 'show_in_nav_menus' => false, - 'admin_cols' => [ - 'social_link' => [ - 'title' => __('Name', $td), - 'meta_key' => 'badegg_testimonial_name', - ], - ], - ], - ); - } -} diff --git a/web/app/themes/badegg/app/Providers/ThemeServiceProvider.php b/web/app/themes/badegg/app/Providers/ThemeServiceProvider.php deleted file mode 100644 index cb0d25e..0000000 --- a/web/app/themes/badegg/app/Providers/ThemeServiceProvider.php +++ /dev/null @@ -1,28 +0,0 @@ -values()[(string)$colour]; - endif; - - if($tint): - $tints = $this->tints(); - $hex = $this->adjustBrightness($hex, $tints[$tint]); - endif; - - return $hex; - } - - public function values() - { - $colours = get_field('badegg_colours', 'option'); - - $values = []; - - if($colours): - foreach($colours as $index => $props): - $index = $index + 1; - $hex = @$props['hex']; - - if($hex) $values[$this->latinate($index)] = $hex; - endforeach; - endif; - - $values['0'] = '#FFFFFF'; - $values['black'] = '#000000'; - - return $values; - } - - public function tints() - { - return [ - 'lightest' => 100, - 'lighter' => 66, - 'light' => 33, - '0' => 0, - 'dark' => -33, - 'darker' => -66, - 'darkest' => -100, - ]; - } - - public function is_dark($colour = '#FFFFF') - { - - // https://css-tricks.com/snippets/php/convert-hex-to-rgb/ - - if ( @$colour[0] == '#' ) $colour = substr( $colour, 1 ); - - if ( strlen( $colour ) == 6 ) { - list( $r, $g, $b ) = [ - $colour[0] . $colour[1], - $colour[2] . $colour[3], - $colour[4] . $colour[5], - ]; - - } elseif ( strlen( $colour ) == 3 ) { - list( $r, $g, $b ) = [ - $colour[0] . $colour[0], - $colour[1] . $colour[1], - $colour[2] . $colour[2], - ]; - - } else { - return false; - } - - $r = hexdec( $r ); - $g = hexdec( $g ); - $b = hexdec( $b ); - // return array( 'red' => $r, 'green' => $g, 'blue' => $b ); - - $hsp = sqrt( - 0.299 * ($r * $r) + - 0.587 * ($g * $g) + - 0.114 * ($b * $b) - ); - - if($hsp > 200) { - return false; - } else { - return true; - } - } - - public function is_light($colour = '#000000', $override = null) - { - if($this->is_dark($colour, $override)) { - return false; - } else { - return true; - } - } - - public function adjustBrightness($hex, $steps) - { - // Steps should be between -255 and 255. Negative = darker, positive = lighter - $steps = max(-255, min(255, $steps)); - - // Normalize into a six character long hex string - $hex = str_replace('#', '', $hex); - if (strlen($hex) == 3) { - $hex = str_repeat(substr($hex,0,1), 2).str_repeat(substr($hex,1,1), 2).str_repeat(substr($hex,2,1), 2); - } - - // Split into three parts: R, G and B - $color_parts = str_split($hex, 2); - $return = '#'; - - foreach ($color_parts as $color) { - $color = hexdec($color); // Convert to decimal - $color = max(0,min(255,$color + $steps)); // Adjust color - $return .= str_pad(dechex($color), 2, '0', STR_PAD_LEFT); // Make two char hex code - } - - return $return; - } - - public function latinate($x = 0) - { - $latinate = [ - 1 => 'primary', - 2 => 'secondary', - 3 => 'tertiary', - 4 => 'quaternary', - 5 => 'quinary', - 6 => 'senary', - 7 => 'septenary', - 8 => 'octonary', - 9 => 'nonary', - 10 => 'denary', - 11 => 'undenary', - 12 => 'duodenary', - ]; - - if(array_key_exists($x, $latinate)): - return $latinate[$x]; - else: - return 0; - endif; - } -} diff --git a/web/app/themes/badegg/app/Utilities/CssClasses.php b/web/app/themes/badegg/app/Utilities/CssClasses.php deleted file mode 100644 index 3e5f56e..0000000 --- a/web/app/themes/badegg/app/Utilities/CssClasses.php +++ /dev/null @@ -1,93 +0,0 @@ -name2hex(@$props['bg_colour'], @$props['bg_tint']); - - $pattern = @$props['pattern']; - $pattern_top = @$props['pattern_top']; - $pattern_bottom = @$props['pattern_bottom']; - - $classes = [ - 'section', - 'section-' . str_replace('acf/', '', $props['name']), - 'bg-' . $this->colourTint([ - 'colour' => @$props['bg_colour'], - 'tint' => @$props['bg_tint'], - ]), - ]; - - if(@$props['angle_status']) - $classes[] = 'section-has-angle'; - - if(@$props['angle_position']) - $classes[] = 'section-has-angle-' . $props['angle_position']; - - if(@$props['padding_top']) - $classes[] = 'section-zero-top'; - - if(@$props['padding_bottom']) - $classes[] = 'section-zero-bottom'; - - if(@$props['bg_image']) - $classes[] = "bg-watermarked"; - - if($Colour->is_dark($hex) && $this->is_knockout_block($props['name'])) - $classes[] = 'knockout'; - - if(@$props['className']) $args = array_merge($classes, explode(' ', $props['className'])); - - return $classes; - } - - public function button($args = []) - { - $default_args = [ - 'colour' => null, - 'style' => null, - ]; - - $args = wp_parse_args($args, $default_args); - - $classes = [ - 'button', - ]; - - if($args['colour']) $classes[] = $args['colour']; - if($args['style']) $classes[] = $args['style']; - - return $classes; - } - - public function colourTint($props = []) - { - if(@$props['colour']): - $colour = $props['colour']; - - if($props['colour'] != 'black' && @$props['tint']): - $colour .= '-' . $props['tint']; - endif; - else: - $colour = 'white'; - endif; - - return $colour; - } - - public function is_knockout_block($name = null) - { - $blacklist = [ - 'cards-alternating', - ]; - - if(in_array($name, $blacklist)): - return false; - else: - return true; - endif; - } -} diff --git a/web/app/themes/badegg/app/Utilities/ImageSrcset.php b/web/app/themes/badegg/app/Utilities/ImageSrcset.php deleted file mode 100644 index 3da32da..0000000 --- a/web/app/themes/badegg/app/Utilities/ImageSrcset.php +++ /dev/null @@ -1,124 +0,0 @@ -default_args()); - $multipliers = $this->multipliers(); - - if(is_null($args['height'])) $args['height'] = $args['width']; - - - if($args['sizes'] < 5) $multipliers = array_slice($multipliers, 0, $args['sizes']); - - foreach ( $multipliers as $slug => $scale ): - add_image_size ( - $args['name'] . '-' . $slug, - round((int)$args['width'] * $scale), - round((int)$args['height'] * $scale), - $args['crop'] - ); - endforeach; - } - - public function default_args() - { - return [ - 'name' => 'hero', - 'width' => 1920, - 'height' => null, - 'crop' => true, - 'sizes' => 5, - ]; - } - - public function multipliers() - { - return [ - 'xl' => 1, - 'lg' => 0.75, - 'md' => 0.52083333, - 'sm' => 0.33333333, - 'xs' => 0.20833333, - ]; - } - - public function render($args = []) - { - global $_wp_additional_image_sizes; - - $default_args = [ - 'name' => 'hero', - 'image' => null, - 'lazy' => true, - 'sizes' => 5, - 'class' => null, - ]; - - $args = wp_parse_args($args, $default_args); - $name = $args['name']; - $image = ($args['image']) ? $args['image'] : get_post_thumbnail_id(); - - if(!$image) return false; - - $properties = @$_wp_additional_image_sizes[$name . '-xl']; - $width = @$properties['width']; - $height = @$properties['height']; - - $sizes = [ - 'xl' => 1, - 'lg' => 0.75, - 'md' => 0.52083333, - 'sm' => 0.33333333, - 'xs' => 0.20833333, - ]; - - if($args['sizes'] < 5) $sizes = array_slice($sizes, 0, $args['sizes']); - - $class = $name . '-image'; - if($args['class']) $class .= ' ' . $args['class']; - - ob_start(); - - $full = wp_get_attachment_image_src($image, $name . '-xl'); - $lazy = wp_get_attachment_image_src($image, 'lazy'); - $alt = get_post_meta( $image, '_wp_attachment_image_alt', true ); - - $srcsets = []; - foreach($sizes as $size => $multiplier) { - $file = wp_get_attachment_image_src($image, $name . '-' . $size); - $srcsets[] = $file[0] . ' ' . $file[1] . 'w'; - } - - $atts = [ - 'class' => $class, - 'src' => $full[0], - 'srcset' => implode(', ', $srcsets), - 'width' => $width, - 'height' => $height, - 'alt' => $alt, - ]; - - if($args['lazy'] && !is_admin()): - $atts['class'] .= ' lazy'; - $atts['src'] = $lazy[0]; - $atts['srcset'] = null; - $atts['data-src'] = $full[0]; - $atts['data-srcset'] = implode(', ', $srcsets); - endif; - - ?> - -'.__('Pages:', 'sage'), - 'after' => '
', - ]); - } -} diff --git a/web/app/themes/badegg/app/filters.php b/web/app/themes/badegg/app/filters.php deleted file mode 100644 index 4ab6a63..0000000 --- a/web/app/themes/badegg/app/filters.php +++ /dev/null @@ -1,16 +0,0 @@ -%s', get_permalink(), __('Continued', 'sage')); -}); diff --git a/web/app/themes/badegg/app/setup.php b/web/app/themes/badegg/app/setup.php deleted file mode 100644 index 695a7b3..0000000 --- a/web/app/themes/badegg/app/setup.php +++ /dev/null @@ -1,124 +0,0 @@ -enqueue(); -}, 100); - -/** - * Register the theme assets with the block editor. - * - * @return void - */ -add_action('enqueue_block_editor_assets', function () { - bundle('editor')->enqueue(); -}, 100); - -/** - * Register the initial theme setup. - * - * @return void - */ -add_action('after_setup_theme', function () { - /** - * Disable full-site editing support. - * - * @link https://wptavern.com/gutenberg-10-5-embeds-pdfs-adds-verse-block-color-options-and-introduces-new-patterns - */ - remove_theme_support('block-templates'); - - /** - * Register the navigation menus. - * - * @link https://developer.wordpress.org/reference/functions/register_nav_menus/ - */ - register_nav_menus([ - 'primary_navigation' => __('Primary Navigation', 'sage'), - ]); - - /** - * Disable the default block patterns. - * - * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#disabling-the-default-block-patterns - */ - remove_theme_support('core-block-patterns'); - - /** - * Enable plugins to manage the document title. - * - * @link https://developer.wordpress.org/reference/functions/add_theme_support/#title-tag - */ - add_theme_support('title-tag'); - - /** - * Enable post thumbnail support. - * - * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ - */ - add_theme_support('post-thumbnails'); - - /** - * Enable responsive embed support. - * - * @link https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#responsive-embedded-content - */ - add_theme_support('responsive-embeds'); - - /** - * Enable HTML5 markup support. - * - * @link https://developer.wordpress.org/reference/functions/add_theme_support/#html5 - */ - add_theme_support('html5', [ - 'caption', - 'comment-form', - 'comment-list', - 'gallery', - 'search-form', - 'script', - 'style', - ]); - - /** - * Enable selective refresh for widgets in customizer. - * - * @link https://developer.wordpress.org/reference/functions/add_theme_support/#customize-selective-refresh-widgets - */ - add_theme_support('customize-selective-refresh-widgets'); -}, 20); - -/** - * Register the theme sidebars. - * - * @return void - */ -add_action('widgets_init', function () { - $config = [ - 'before_widget' => '', - 'before_title' => '%s for inclusion.', 'sage'), $file)
- );
- }
- });
diff --git a/web/app/themes/badegg/index.php b/web/app/themes/badegg/index.php
deleted file mode 100644
index edc07f1..0000000
--- a/web/app/themes/badegg/index.php
+++ /dev/null
@@ -1,3 +0,0 @@
-render();
diff --git a/web/app/themes/badegg/jsconfig.json b/web/app/themes/badegg/jsconfig.json
deleted file mode 100644
index ce69acc..0000000
--- a/web/app/themes/badegg/jsconfig.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "extends": [
- "@roots/bud/config/jsconfig.json",
- "@roots/sage/config/jsconfig.json"
- ],
- "compilerOptions": {
- "baseUrl": "resources",
- /**
- * Resolve aliases
- */
- "paths": {
- "@fonts/*": ["fonts/*"],
- "@images/*": ["images/*"],
- "@scripts/*": ["scripts/*"],
- "@styles/*": ["styles/*"]
- },
- /**
- * Type definitions
- */
- "types": [
- "@roots/bud",
- "@roots/bud-react",
- "@roots/bud-postcss",
- "@roots/bud-preset-recommend",
- "@roots/bud-preset-wordpress",
- "@roots/bud-wordpress-theme-json",
- "@roots/sage"
- ]
- },
- "files": ["bud.config.js"],
- "include": ["resources"],
- "exclude": ["node_modules", "public"]
-}
diff --git a/web/app/themes/badegg/package.json b/web/app/themes/badegg/package.json
deleted file mode 100644
index e7762a9..0000000
--- a/web/app/themes/badegg/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "sage",
- "private": true,
- "browserslist": [
- "extends @roots/browserslist-config"
- ],
- "engines": {
- "node": ">=20.0.0"
- },
- "type": "module",
- "scripts": {
- "dev": "bud dev",
- "build": "bud build",
- "translate": "npm run translate:pot && npm run translate:update",
- "translate:pot": "wp i18n make-pot . ./resources/lang/sage.pot --include=\"theme.json,patterns,app,resources\"",
- "translate:update": "for file in ./resources/lang/*.po; do wp i18n update-po ./resources/lang/sage.pot $file; done",
- "translate:compile": "npm run translate:mo && npm run translate:js",
- "translate:js": "wp i18n make-json ./resources/lang --pretty-print",
- "translate:mo": "wp i18n make-mo ./resources/lang ./resources/lang"
- },
- "devDependencies": {
- "@roots/bud": "6.20.0",
- "@roots/bud-sass": "6.20.0",
- "@roots/sage": "6.20.0"
- },
- "dependencies": {
- "@fortawesome/fontawesome-free": "^7.0.1"
- }
-}
diff --git a/web/app/themes/badegg/resources/acf/group_block_wysiwyg.json b/web/app/themes/badegg/resources/acf/group_block_wysiwyg.json
deleted file mode 100644
index a69df4b..0000000
--- a/web/app/themes/badegg/resources/acf/group_block_wysiwyg.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "key": "group_block_wysiwyg",
- "title": "Block: WYSIWYG",
- "fields": [
- {
- "key": "field_68334c31c5faf",
- "label": "Introduction",
- "name": "introduction",
- "aria-label": "",
- "type": "clone",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "clone": [
- "group_clone_block_intro"
- ],
- "display": "seamless",
- "layout": "block",
- "prefix_label": 0,
- "prefix_name": 0
- },
- {
- "key": "field_68334c31c63fc",
- "label": "Content",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 1,
- "multi_expand": 0,
- "endpoint": 0
- },
- {
- "key": "field_68334c31c6fab",
- "label": "",
- "name": "wysiwyg",
- "aria-label": "",
- "type": "wysiwyg",
- "instructions": "All drivers will be displayed if no category is selected.",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_68334c31c67cb",
- "operator": "==",
- "value": "local"
- }
- ]
- ],
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "allow_in_bindings": 0,
- "tabs": "all",
- "toolbar": "basic",
- "media_upload": 0,
- "delay": 0
- },
- {
- "key": "field_68334c31c738b",
- "label": "Content",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 1
- },
- {
- "key": "field_68334c31c7775",
- "label": "Footer",
- "name": "footer",
- "aria-label": "",
- "type": "clone",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "clone": [
- "group_clone_block_footer"
- ],
- "display": "seamless",
- "layout": "block",
- "prefix_label": 0,
- "prefix_name": 0
- },
- {
- "key": "field_68334c31c7b66",
- "label": "Settings",
- "name": "settings",
- "aria-label": "",
- "type": "clone",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "clone": [
- "group_clone_block_settings"
- ],
- "display": "seamless",
- "layout": "block",
- "prefix_label": 0,
- "prefix_name": 0
- }
- ],
- "location": [
- [
- {
- "param": "block",
- "operator": "==",
- "value": "acf\/badegg-wysiwyg"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "default",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1748193022
-}
diff --git a/web/app/themes/badegg/resources/acf/group_clone_background_settings.json b/web/app/themes/badegg/resources/acf/group_clone_background_settings.json
deleted file mode 100644
index 7b63f06..0000000
--- a/web/app/themes/badegg/resources/acf/group_clone_background_settings.json
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "key": "group_clone_background_settings",
- "title": "Clone: Background Settings",
- "fields": [
- {
- "key": "field_67325dd23234e",
- "label": "Background Colour",
- "name": "bg_colour",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "50",
- "class": "",
- "id": ""
- },
- "choices": {
- "primary": "<\/i> Prussian Blue",
- "secondary": "<\/i> Sunset Orange",
- "tertiary": "<\/i> Gold",
- "quaternary": "<\/i> Moody Blue",
- "quinary": "<\/i> Frangipani",
- "0": "<\/i> White",
- "black": "<\/i> Black",
- "quaternary-white": "<\/i> Moody Blue to White",
- "quinary-white": "<\/i> Frangipani to White",
- "white-quaternary": "<\/i> White to Moody Blue",
- "white-quinary": "<\/i> White to Frangipani"
- },
- "default_value": 0,
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "allow_in_bindings": 1,
- "ui": 1,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- },
- {
- "key": "field_67325e213234f",
- "label": "Background Tint",
- "name": "bg_tint",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "50",
- "class": "",
- "id": ""
- },
- "choices": {
- "lightest": "Lightest",
- "lighter": "Lighter",
- "light": "Light",
- "0": "None",
- "dark": "Dark",
- "darker": "Darker",
- "darkest": "Darkest"
- },
- "default_value": 0,
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "allow_in_bindings": 1,
- "ui": 1,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- },
- {
- "key": "field_67350f526abf1",
- "label": "Text Contrast",
- "name": "contrast",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "choices": {
- "0": "Auto",
- "dark": "Force dark text",
- "light": "Force light text"
- },
- "default_value": 0,
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "ui": 0,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- }
- ],
- "location": [
- [
- {
- "param": "widget",
- "operator": "==",
- "value": "rss"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "default",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1748194684
-}
diff --git a/web/app/themes/badegg/resources/acf/group_clone_block_footer.json b/web/app/themes/badegg/resources/acf/group_clone_block_footer.json
deleted file mode 100644
index aa0605d..0000000
--- a/web/app/themes/badegg/resources/acf/group_clone_block_footer.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "key": "group_clone_block_footer",
- "title": "Clone: Block Footer",
- "fields": [
- {
- "key": "field_67659b49a6db2",
- "label": "Footer",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 0
- },
- {
- "key": "field_67659b49a754a",
- "label": "Blurb",
- "name": "blurb_footer",
- "aria-label": "",
- "type": "textarea",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "rows": 3,
- "placeholder": "",
- "new_lines": ""
- },
- {
- "key": "field_67659b7502137",
- "label": "Links",
- "name": "links",
- "aria-label": "",
- "type": "repeater",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "layout": "block",
- "pagination": 0,
- "min": 0,
- "max": 2,
- "collapsed": "",
- "button_label": "Add Button",
- "rows_per_page": 20,
- "sub_fields": [
- {
- "key": "field_67659b8702138",
- "label": "Button",
- "name": "button",
- "aria-label": "",
- "type": "clone",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "clone": [
- "group_clone_button"
- ],
- "display": "seamless",
- "layout": "block",
- "prefix_label": 0,
- "prefix_name": 0,
- "parent_repeater": "field_67659b7502137"
- }
- ]
- },
- {
- "key": "field_682fb9ff58080",
- "label": "Alignment",
- "name": "footer_alignment",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "choices": {
- "centre": "Centre",
- "left": "Left",
- "right": "Right"
- },
- "default_value": "centre",
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "allow_in_bindings": 0,
- "ui": 0,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- },
- {
- "key": "field_6828dac95eb68",
- "label": "Footer (end)",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 1
- }
- ],
- "location": [
- [
- {
- "param": "widget",
- "operator": "==",
- "value": "rss"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "default",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1747958307
-}
diff --git a/web/app/themes/badegg/resources/acf/group_clone_block_intro.json b/web/app/themes/badegg/resources/acf/group_clone_block_intro.json
deleted file mode 100644
index fb9ab40..0000000
--- a/web/app/themes/badegg/resources/acf/group_clone_block_intro.json
+++ /dev/null
@@ -1,153 +0,0 @@
-{
- "key": "group_clone_block_intro",
- "title": "Clone: Block Intro",
- "fields": [
- {
- "key": "field_67659970db415",
- "label": "Introduction",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 0
- },
- {
- "key": "field_682fb8d9f6f3f",
- "label": "Overline",
- "name": "overline",
- "aria-label": "",
- "type": "text",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "allow_in_bindings": 0,
- "placeholder": "",
- "prepend": "",
- "append": ""
- },
- {
- "key": "field_676599964d3cc",
- "label": "Heading",
- "name": "heading",
- "aria-label": "",
- "type": "textarea",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "hfont",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "allow_in_bindings": 0,
- "rows": 2,
- "placeholder": "",
- "new_lines": "br"
- },
- {
- "key": "field_6765999d4d3cd",
- "label": "Blurb",
- "name": "blurb",
- "aria-label": "",
- "type": "textarea",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "rows": 3,
- "placeholder": "",
- "new_lines": ""
- },
- {
- "key": "field_682fb9add5a3b",
- "label": "Alignment",
- "name": "intro_alignment",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "choices": {
- "centre": "Centre",
- "left": "Left",
- "right": "Right"
- },
- "default_value": "centre",
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "allow_in_bindings": 0,
- "ui": 0,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- },
- {
- "key": "field_6828dae1d1bb0",
- "label": "Intro (end)",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 1
- }
- ],
- "location": [
- [
- {
- "param": "widget",
- "operator": "==",
- "value": "rss"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "default",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1747958910
-}
diff --git a/web/app/themes/badegg/resources/acf/group_clone_block_settings.json b/web/app/themes/badegg/resources/acf/group_clone_block_settings.json
deleted file mode 100644
index e7b1868..0000000
--- a/web/app/themes/badegg/resources/acf/group_clone_block_settings.json
+++ /dev/null
@@ -1,222 +0,0 @@
-{
- "key": "group_clone_block_settings",
- "title": "Clone: Block Settings",
- "fields": [
- {
- "key": "field_673511c31122f",
- "label": "Settings",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 0
- },
- {
- "key": "field_680016e0fac24",
- "label": "Anchor ID",
- "name": "section_anchor_id",
- "aria-label": "",
- "type": "text",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "placeholder": "",
- "prepend": "#",
- "append": ""
- },
- {
- "key": "field_6800097e61765",
- "label": "Container Width",
- "name": "container_width",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "choices": {
- "0": "Full Width",
- "large": "Large",
- "medium": "Medium",
- "small": "Small",
- "narrow": "Narrow"
- },
- "default_value": 0,
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "ui": 0,
- "ajax": 0,
- "placeholder": ""
- },
- {
- "key": "field_67350eb62cdf9",
- "label": "Top Padding",
- "name": "padding_top",
- "aria-label": "",
- "type": "radio",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "50",
- "class": "",
- "id": ""
- },
- "choices": [
- "On",
- "Off"
- ],
- "default_value": "",
- "return_format": "value",
- "allow_null": 0,
- "other_choice": 0,
- "layout": "horizontal",
- "save_other_choice": 0
- },
- {
- "key": "field_673510c1dc830",
- "label": "Bottom Padding",
- "name": "padding_bottom",
- "aria-label": "",
- "type": "radio",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "50",
- "class": "",
- "id": ""
- },
- "choices": [
- "On",
- "Off"
- ],
- "default_value": "",
- "return_format": "value",
- "allow_null": 0,
- "other_choice": 0,
- "layout": "horizontal",
- "save_other_choice": 0
- },
- {
- "key": "field_6735258c2d9ff",
- "label": "Background",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 0
- },
- {
- "key": "field_67350aeb146ca",
- "label": "Background",
- "name": "background",
- "aria-label": "",
- "type": "clone",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "clone": [
- "group_clone_background_settings"
- ],
- "display": "seamless",
- "layout": "block",
- "prefix_label": 0,
- "prefix_name": 0
- },
- {
- "key": "field_67fff4d4ddbb7",
- "label": "Angle",
- "name": "angle",
- "aria-label": "",
- "type": "clone",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "clone": [
- "group_clone_angle"
- ],
- "display": "seamless",
- "layout": "block",
- "prefix_label": 1,
- "prefix_name": 1
- },
- {
- "key": "field_6828da67543fc",
- "label": "Settings (end)",
- "name": "",
- "aria-label": "",
- "type": "accordion",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "open": 0,
- "multi_expand": 0,
- "endpoint": 1
- }
- ],
- "location": [
- [
- {
- "param": "widget",
- "operator": "==",
- "value": "rss"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "default",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1747508044
-}
diff --git a/web/app/themes/badegg/resources/acf/group_clone_button.json b/web/app/themes/badegg/resources/acf/group_clone_button.json
deleted file mode 100644
index b1881dc..0000000
--- a/web/app/themes/badegg/resources/acf/group_clone_button.json
+++ /dev/null
@@ -1,151 +0,0 @@
-{
- "key": "group_clone_button",
- "title": "Clone: Button",
- "fields": [
- {
- "key": "field_672d3d7b2c273",
- "label": "Link",
- "name": "link",
- "aria-label": "",
- "type": "link",
- "instructions": "",
- "required": 1,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "return_format": "array",
- "allow_in_bindings": 1
- },
- {
- "key": "field_673529a2a37a1",
- "label": "Class",
- "name": "class",
- "aria-label": "",
- "type": "text",
- "instructions": "",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_672d3d7b2c273",
- "operator": "!=empty"
- }
- ]
- ],
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "allow_in_bindings": 1,
- "placeholder": "",
- "prepend": "",
- "append": ""
- },
- {
- "key": "field_672d3db22c274",
- "label": "Colour",
- "name": "colour",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_672d3d7b2c273",
- "operator": "!=empty"
- }
- ]
- ],
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "choices": {
- "primary": "<\/i> Prussian Blue",
- "secondary": "<\/i> Sunset Orange",
- "tertiary": "<\/i> Gold",
- "quaternary": "<\/i> Moody Blue",
- "quinary": "<\/i> Frangipani",
- "0": "<\/i> White",
- "black": "<\/i> Black",
- "quaternary-white": "<\/i> Moody Blue to White",
- "quinary-white": "<\/i> Frangipani to White",
- "white-quaternary": "<\/i> White to Moody Blue",
- "white-quinary": "<\/i> White to Frangipani"
- },
- "default_value": "primary",
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "allow_in_bindings": 1,
- "ui": 1,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- },
- {
- "key": "field_672d3dc52c275",
- "label": "Style",
- "name": "style",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_672d3d7b2c273",
- "operator": "!=empty"
- }
- ]
- ],
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "choices": {
- "0": "Solid",
- "outline": "Outline"
- },
- "default_value": 0,
- "return_format": "value",
- "multiple": 0,
- "allow_null": 0,
- "allow_in_bindings": 1,
- "ui": 0,
- "ajax": 0,
- "placeholder": "",
- "create_options": 0,
- "save_options": 0
- }
- ],
- "location": [
- [
- {
- "param": "widget",
- "operator": "==",
- "value": "rss"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "default",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1748001311
-}
diff --git a/web/app/themes/badegg/resources/acf/group_options_global_settings.json b/web/app/themes/badegg/resources/acf/group_options_global_settings.json
deleted file mode 100644
index 78926cd..0000000
--- a/web/app/themes/badegg/resources/acf/group_options_global_settings.json
+++ /dev/null
@@ -1,417 +0,0 @@
-{
- "key": "group_options_global_settings",
- "title": "Options: Global Settings",
- "fields": [
- {
- "key": "field_67658e28aba4e",
- "label": "Colours",
- "name": "",
- "aria-label": "",
- "type": "tab",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "placement": "top",
- "endpoint": 0
- },
- {
- "key": "field_67658e49aba4f",
- "label": "Brand Colours",
- "name": "badegg_colours",
- "aria-label": "",
- "type": "repeater",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "layout": "block",
- "pagination": 0,
- "min": 0,
- "max": 12,
- "collapsed": "field_67658e96aba50",
- "button_label": "Add Colour",
- "rows_per_page": 20,
- "sub_fields": [
- {
- "key": "field_67658e96aba50",
- "label": "",
- "name": "hex",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string",
- "parent_repeater": "field_67658e49aba4f"
- },
- {
- "key": "field_67658fba41889",
- "label": "Tints",
- "name": "tints",
- "aria-label": "",
- "type": "radio",
- "instructions": "",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_67658e49aba4f",
- "operator": "!=empty"
- },
- {
- "field": "field_67658e49aba4f",
- "operator": "==empty"
- }
- ]
- ],
- "wrapper": {
- "width": "15",
- "class": "",
- "id": ""
- },
- "choices": [
- "Auto",
- "Manual"
- ],
- "default_value": 0,
- "return_format": "value",
- "allow_null": 0,
- "other_choice": 0,
- "layout": "horizontal",
- "save_other_choice": 0,
- "parent_repeater": "field_67658e49aba4f"
- },
- {
- "key": "field_67658fe84188a",
- "label": "Tint Selection",
- "name": "",
- "aria-label": "",
- "type": "message",
- "instructions": "",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_67658fba41889",
- "operator": "==",
- "value": "0"
- }
- ],
- [
- {
- "field": "field_67658e49aba4f",
- "operator": "!=empty"
- },
- {
- "field": "field_67658e49aba4f",
- "operator": "==empty"
- }
- ]
- ],
- "wrapper": {
- "width": "70",
- "class": "",
- "id": ""
- },
- "message": "Colour tints are automatically set by mathematically adjusting the brightness.",
- "new_lines": "wpautop",
- "esc_html": 0,
- "parent_repeater": "field_67658e49aba4f"
- },
- {
- "key": "field_6765902f4188b",
- "label": "Tint Selection",
- "name": "tints",
- "aria-label": "",
- "type": "group",
- "instructions": "Colour tints are automatically set by mathematically adjusting the brightness. Specify manual overrides here:",
- "required": 0,
- "conditional_logic": [
- [
- {
- "field": "field_67658fba41889",
- "operator": "==",
- "value": "1"
- }
- ],
- [
- {
- "field": "field_67658e49aba4f",
- "operator": "!=empty"
- },
- {
- "field": "field_67658e49aba4f",
- "operator": "==empty"
- }
- ]
- ],
- "wrapper": {
- "width": "70",
- "class": "",
- "id": ""
- },
- "layout": "block",
- "sub_fields": [
- {
- "key": "field_676590414188c",
- "label": "Lightest",
- "name": "lightest",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "16.66",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string"
- },
- {
- "key": "field_676590684188d",
- "label": "Lighter",
- "name": "lighter",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "16.66",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string"
- },
- {
- "key": "field_6765907f4188e",
- "label": "Light",
- "name": "light",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "16.66",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string"
- },
- {
- "key": "field_676590924188f",
- "label": "Dark",
- "name": "dark",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "16.66",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string"
- },
- {
- "key": "field_6765909941890",
- "label": "Darker",
- "name": "darker",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "16.66",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string"
- },
- {
- "key": "field_6765909f41891",
- "label": "Darkest",
- "name": "darkest",
- "aria-label": "",
- "type": "color_picker",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "16.66",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "enable_opacity": 0,
- "return_format": "string"
- }
- ],
- "parent_repeater": "field_67658e49aba4f"
- }
- ]
- },
- {
- "key": "field_67659ca28081d",
- "label": "Company",
- "name": "",
- "aria-label": "",
- "type": "tab",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "placement": "top",
- "endpoint": 0
- },
- {
- "key": "field_67659cb08081e",
- "label": "Legal Name",
- "name": "badegg_company_legal",
- "aria-label": "",
- "type": "text",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "placeholder": "",
- "prepend": "",
- "append": ""
- },
- {
- "key": "field_67659cf08081f",
- "label": "Telephone",
- "name": "badegg_company_tel",
- "aria-label": "",
- "type": "text",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "50",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "placeholder": "",
- "prepend": "",
- "append": ""
- },
- {
- "key": "field_67659d0780820",
- "label": "Email",
- "name": "badegg_company_email",
- "aria-label": "",
- "type": "email",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "50",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "placeholder": "",
- "prepend": "",
- "append": ""
- },
- {
- "key": "field_676594565ead1",
- "label": "Integrations",
- "name": "",
- "aria-label": "",
- "type": "tab",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "placement": "top",
- "endpoint": 0
- },
- {
- "key": "field_676594615ead2",
- "label": "Fathom Analytics ID",
- "name": "badegg_integrations_fathom_id",
- "aria-label": "",
- "type": "text",
- "instructions": "A Google Analytics alternative that’s simple & privacy-first. Visit website<\/a>",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "",
- "class": "",
- "id": ""
- },
- "default_value": "",
- "maxlength": "",
- "placeholder": "",
- "prepend": "",
- "append": ""
- }
- ],
- "location": [
- [
- {
- "param": "options_page",
- "operator": "==",
- "value": "theme-global-settings"
- }
- ]
- ],
- "menu_order": 0,
- "position": "normal",
- "style": "seamless",
- "label_placement": "top",
- "instruction_placement": "label",
- "hide_on_screen": "",
- "active": true,
- "description": "",
- "show_in_rest": 0,
- "modified": 1734712625
-}
diff --git a/web/app/themes/badegg/resources/acf/group_post_social.json b/web/app/themes/badegg/resources/acf/group_post_social.json
deleted file mode 100644
index ea32918..0000000
--- a/web/app/themes/badegg/resources/acf/group_post_social.json
+++ /dev/null
@@ -1,536 +0,0 @@
-{
- "key": "group_post_social",
- "title": "Settings: Social Channel",
- "fields": [
- {
- "key": "field_664c658853f1b",
- "label": "Icon",
- "name": "fontawesome_brands",
- "aria-label": "",
- "type": "select",
- "instructions": "",
- "required": 0,
- "conditional_logic": 0,
- "wrapper": {
- "width": "20",
- "class": "",
- "id": ""
- },
- "choices": {
- "0": "<\/i> Please select an icon<\/span>",
- "monero": "<\/i> Monero<\/span>",
- "hooli": "<\/i> Hooli<\/span>",
- "yelp": "<\/i> Yelp<\/span>",
- "cc-visa": "<\/i> Cc Visa<\/span>",
- "lastfm": "<\/i> Lastfm<\/span>",
- "shopware": "<\/i> Shopware<\/span>",
- "creative-commons-nc": "<\/i> Creative Commons Nc<\/span>",
- "aws": "<\/i> Aws<\/span>",
- "redhat": "<\/i> Redhat<\/span>",
- "yoast": "<\/i> Yoast<\/span>",
- "cloudflare": "<\/i> Cloudflare<\/span>",
- "ups": "<\/i> Ups<\/span>",
- "wpexplorer": "<\/i> Wpexplorer<\/span>",
- "dyalog": "<\/i> Dyalog<\/span>",
- "bity": "<\/i> Bity<\/span>",
- "stackpath": "<\/i> Stackpath<\/span>",
- "buysellads": "<\/i> Buysellads<\/span>",
- "first-order": "<\/i> First Order<\/span>",
- "modx": "<\/i> Modx<\/span>",
- "guilded": "<\/i> Guilded<\/span>",
- "vnv": "<\/i> Vnv<\/span>",
- "square-js": "<\/i> Square Js<\/span>",
- "microsoft": "<\/i> Microsoft<\/span>",
- "qq": "<\/i> Qq<\/span>",
- "orcid": "<\/i> Orcid<\/span>",
- "java": "<\/i> Java<\/span>",
- "invision": "<\/i> Invision<\/span>",
- "creative-commons-pd-alt": "<\/i> Creative Commons Pd Alt<\/span>",
- "centercode": "<\/i> Centercode<\/span>",
- "glide-g": "<\/i> Glide G<\/span>",
- "drupal": "<\/i> Drupal<\/span>",
- "hire-a-helper": "<\/i> Hire A Helper<\/span>",
- "creative-commons-by": "<\/i> Creative Commons By<\/span>",
- "unity": "<\/i> Unity<\/span>",
- "whmcs": "<\/i> Whmcs<\/span>",
- "rocketchat": "<\/i> Rocketchat<\/span>",
- "vk": "<\/i> Vk<\/span>",
- "untappd": "<\/i> Untappd<\/span>",
- "mailchimp": "<\/i> Mailchimp<\/span>",
- "css3-alt": "<\/i> Css3 Alt<\/span>",
- "square-reddit": "<\/i> Square Reddit<\/span>",
- "vimeo-v": "<\/i> Vimeo V<\/span>",
- "contao": "<\/i> Contao<\/span>",
- "square-font-awesome": "<\/i> Square Font Awesome<\/span>",
- "deskpro": "<\/i> Deskpro<\/span>",
- "sistrix": "<\/i> Sistrix<\/span>",
- "square-instagram": "<\/i> Square Instagram<\/span>",
- "battle-net": "<\/i> Battle Net<\/span>",
- "the-red-yeti": "<\/i> The Red Yeti<\/span>",
- "square-hacker-news": "<\/i> Square Hacker News<\/span>",
- "edge": "<\/i> Edge<\/span>",
- "napster": "<\/i> Napster<\/span>",
- "square-snapchat": "<\/i> Square Snapchat<\/span>",
- "google-plus-g": "<\/i> Google Plus G<\/span>",
- "artstation": "<\/i> Artstation<\/span>",
- "markdown": "<\/i> Markdown<\/span>",
- "sourcetree": "<\/i> Sourcetree<\/span>",
- "google-plus": "<\/i> Google Plus<\/span>",
- "diaspora": "<\/i> Diaspora<\/span>",
- "foursquare": "<\/i> Foursquare<\/span>",
- "stack-overflow": "<\/i> Stack Overflow<\/span>",
- "github-alt": "<\/i> Github Alt<\/span>",
- "phoenix-squadron": "<\/i> Phoenix Squadron<\/span>",
- "pagelines": "<\/i> Pagelines<\/span>",
- "algolia": "<\/i> Algolia<\/span>",
- "red-river": "<\/i> Red River<\/span>",
- "creative-commons-sa": "<\/i> Creative Commons Sa<\/span>",
- "safari": "<\/i> Safari<\/span>",
- "google": "<\/i> Google<\/span>",
- "square-font-awesome-stroke": "<\/i> Square Font Awesome Stroke<\/span>",
- "atlassian": "<\/i> Atlassian<\/span>",
- "linkedin-in": "<\/i> Linkedin In<\/span>",
- "digital-ocean": "<\/i> Digital Ocean<\/span>",
- "nimblr": "<\/i> Nimblr<\/span>",
- "chromecast": "<\/i> Chromecast<\/span>",
- "evernote": "<\/i> Evernote<\/span>",
- "hacker-news": "<\/i> Hacker News<\/span>",
- "creative-commons-sampling": "<\/i> Creative Commons Sampling<\/span>",
- "adversal": "<\/i> Adversal<\/span>",
- "creative-commons": "<\/i> Creative Commons<\/span>",
- "watchman-monitoring": "<\/i> Watchman Monitoring<\/span>",
- "fonticons": "<\/i> Fonticons<\/span>",
- "weixin": "<\/i> Weixin<\/span>",
- "shirtsinbulk": "<\/i> Shirtsinbulk<\/span>",
- "codepen": "<\/i> Codepen<\/span>",
- "git-alt": "<\/i> Git Alt<\/span>",
- "lyft": "<\/i> Lyft<\/span>",
- "rev": "<\/i> Rev<\/span>",
- "windows": "<\/i> Windows<\/span>",
- "wizards-of-the-coast": "<\/i> Wizards Of The Coast<\/span>",
- "square-viadeo": "<\/i> Square Viadeo<\/span>",
- "meetup": "<\/i> Meetup<\/span>",
- "centos": "<\/i> Centos<\/span>",
- "adn": "<\/i> Adn<\/span>",
- "cloudsmith": "<\/i> Cloudsmith<\/span>",
- "pied-piper-alt": "<\/i> Pied Piper Alt<\/span>",
- "square-dribbble": "<\/i> Square Dribbble<\/span>",
- "codiepie": "<\/i> Codiepie<\/span>",
- "node": "<\/i> Node<\/span>",
- "mix": "<\/i> Mix<\/span>",
- "steam": "<\/i> Steam<\/span>",
- "cc-apple-pay": "<\/i> Cc Apple Pay<\/span>",
- "scribd": "<\/i> Scribd<\/span>",
- "openid": "<\/i> Openid<\/span>",
- "instalod": "<\/i> Instalod<\/span>",
- "expeditedssl": "<\/i> Expeditedssl<\/span>",
- "sellcast": "<\/i> Sellcast<\/span>",
- "square-twitter": "<\/i> Square Twitter<\/span>",
- "r-project": "<\/i> R Project<\/span>",
- "delicious": "<\/i> Delicious<\/span>",
- "freebsd": "<\/i> Freebsd<\/span>",
- "vuejs": "<\/i> Vuejs<\/span>",
- "accusoft": "<\/i> Accusoft<\/span>",
- "ioxhost": "<\/i> Ioxhost<\/span>",
- "fonticons-fi": "<\/i> Fonticons Fi<\/span>",
- "app-store": "