diff --git a/site/web/app/themes/nynaeve/app/filters.php b/site/web/app/themes/nynaeve/app/filters.php index 4ab6a63..743e8ea 100644 --- a/site/web/app/themes/nynaeve/app/filters.php +++ b/site/web/app/themes/nynaeve/app/filters.php @@ -14,3 +14,20 @@ add_filter('excerpt_more', function () { return sprintf(' … %s', get_permalink(), __('Continued', 'sage')); }); + +/** + * Remove the default widgets editor depenedencies check. + * + * @return void + */ +remove_filter('admin_head', 'wp_check_widget_editor_deps'); + +/** + * Set ACF JSON Save Path Location + * + * @return string + */ +function my_acf_json_save_point($path) { + return get_stylesheet_directory() . '/resources/acf-json'; +} +add_filter('acf/settings/save_json', __NAMESPACE__ . '\\my_acf_json_save_point'); \ No newline at end of file diff --git a/site/web/app/themes/nynaeve/resources/acf-json/group_581576e5add40.json b/site/web/app/themes/nynaeve/resources/acf-json/group_581576e5add40.json new file mode 100644 index 0000000..3b50b2c --- /dev/null +++ b/site/web/app/themes/nynaeve/resources/acf-json/group_581576e5add40.json @@ -0,0 +1,381 @@ +{ + "key": "group_581576e5add40", + "title": "Homepage Builder", + "fields": [ + { + "key": "field_58157743920ed", + "label": "Homepage Builder", + "name": "homepage_builder", + "aria-label": "", + "type": "flexible_content", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "button_label": "Add Content Block", + "min": "", + "max": "", + "layouts": [ + { + "key": "5815777805982", + "name": "about_block", + "label": "About Block", + "display": "block", + "sub_fields": [ + { + "key": "field_5816134c7ff5a", + "label": "About Title", + "name": "about_title", + "aria-label": "", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_581722ebe6a0a", + "label": "About Profile Picture", + "name": "about_profile_picture", + "aria-label": "", + "type": "image", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array", + "preview_size": "thumbnail", + "library": "all", + "min_width": "", + "min_height": "", + "min_size": "", + "max_width": 450, + "max_height": 450, + "max_size": "", + "mime_types": "" + }, + { + "key": "field_58172123ab7a8", + "label": "About Lead", + "name": "about_lead", + "aria-label": "", + "type": "textarea", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "maxlength": "", + "rows": "", + "new_lines": "" + }, + { + "key": "field_58157abb920ef", + "label": "About Text", + "name": "about_text", + "aria-label": "", + "type": "wysiwyg", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "tabs": "all", + "toolbar": "full", + "media_upload": 1, + "delay": 0 + } + ], + "min": "", + "max": "" + }, + { + "key": "581609fcb6cc3", + "name": "services_intro", + "label": "Services Intro", + "display": "block", + "sub_fields": [ + { + "key": "field_58160a54b6cc5", + "label": "Services Title", + "name": "services_title", + "aria-label": "", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_58160c0df7d90", + "label": "Services Introduction Text Block", + "name": "services_introduction_text_block", + "aria-label": "", + "type": "textarea", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "maxlength": "", + "rows": "", + "new_lines": "" + } + ], + "min": "", + "max": "" + }, + { + "key": "581603f409696", + "name": "services_blocks", + "label": "Services Blocks", + "display": "block", + "sub_fields": [ + { + "key": "field_58185d74f4aaf", + "label": "Services Boxes", + "name": "services_boxes", + "aria-label": "", + "type": "repeater", + "instructions": "Click to add another services box. Two are needed per row", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "collapsed": "", + "min": 0, + "max": 0, + "layout": "row", + "button_label": "Add Box", + "sub_fields": [ + { + "key": "field_58185d9df4ab0", + "label": "Text Box Title", + "name": "text_box_title", + "aria-label": "", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "", + "parent_repeater": "field_58185d74f4aaf" + }, + { + "key": "field_58185b458fec2", + "label": "Text Box Icon", + "name": "text_box_icon", + "aria-label": "", + "type": "text", + "instructions": "Add Font Awesome icon name", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "", + "parent_repeater": "field_58185d74f4aaf" + }, + { + "key": "field_581603f409699", + "label": "Text Box", + "name": "text_box", + "aria-label": "", + "type": "textarea", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "maxlength": "", + "rows": "", + "new_lines": "", + "parent_repeater": "field_58185d74f4aaf" + } + ], + "rows_per_page": 20 + } + ], + "min": "", + "max": "" + }, + { + "key": "5816050f16cf6", + "name": "cta_banner", + "label": "CTA Banner", + "display": "block", + "sub_fields": [ + { + "key": "field_5816051916cf7", + "label": "CTA Title", + "name": "cta_title", + "aria-label": "", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_5816052c16cf8", + "label": "CTA Text", + "name": "cta_text", + "aria-label": "", + "type": "textarea", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "maxlength": "", + "rows": "", + "new_lines": "" + }, + { + "key": "field_5816054316cf9", + "label": "CTA Button Text", + "name": "cta_button_text", + "aria-label": "", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_5c5bac6a72602", + "label": "CTA Button Url", + "name": "cta_button_url", + "aria-label": "", + "type": "page_link", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "post_type": [ + "page" + ], + "taxonomy": "", + "allow_null": 0, + "allow_archives": 1, + "multiple": 0 + } + ], + "min": "", + "max": "" + } + ] + } + ], + "location": [ + [ + { + "param": "page_type", + "operator": "==", + "value": "front_page" + } + ] + ], + "menu_order": 1, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": [ + "the_content", + "excerpt" + ], + "active": true, + "description": "", + "show_in_rest": 0, + "modified": 1733133012 +} diff --git a/site/web/app/themes/nynaeve/resources/acf-json/group_581589a6e8e03.json b/site/web/app/themes/nynaeve/resources/acf-json/group_581589a6e8e03.json new file mode 100644 index 0000000..b39ae34 --- /dev/null +++ b/site/web/app/themes/nynaeve/resources/acf-json/group_581589a6e8e03.json @@ -0,0 +1,88 @@ +{ + "key": "group_581589a6e8e03", + "title": "Footer Options", + "fields": [ + { + "key": "field_581851758c7f9", + "label": "Recent Blog Posts Display", + "name": "recent_blog_posts_box_display", + "aria-label": "", + "type": "select", + "instructions": "Choose whether or not the recent blog posts box should be displayed in the footer", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "choices": { + "Yes": "Yes", + "No": "No" + }, + "default_value": [ + "No" + ], + "allow_null": 0, + "multiple": 0, + "ui": 0, + "ajax": 0, + "return_format": "value", + "placeholder": "" + }, + { + "key": "field_581589b4047cd", + "label": "Testimonial Box Display", + "name": "testimonial_box_display", + "aria-label": "", + "type": "select", + "instructions": "Choose whether or not the testimonial box should be displayed in the footer", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "choices": { + "Yes": "Yes", + "No": "No" + }, + "default_value": [ + "No" + ], + "allow_null": 0, + "multiple": 0, + "ui": 0, + "ajax": 0, + "return_format": "value", + "placeholder": "" + } + ], + "location": [ + [ + { + "param": "post_type", + "operator": "==", + "value": "page" + } + ], + [ + { + "param": "page_type", + "operator": "==", + "value": "front_page" + } + ] + ], + "menu_order": 10, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0, + "modified": 1733138232 +}