diff --git a/.gitignore b/.gitignore
index 6f398e70..1bbc9cb4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -78,10 +78,14 @@ web/app/plugins/*
!web/app/plugins/mitlib-multisearch-widget
!web/app/plugins/mitlib-pending-posts
!web/app/plugins/mitlib-plugin-canary
+!web/app/plugins/mitlib-post-bibliotechs
!web/app/plugins/mitlib-post-events
!web/app/plugins/mitlib-post-exhibits
!web/app/plugins/mitlib-post-experts
!web/app/plugins/mitlib-post-locations
+!web/app/plugins/mitlib-post-site-news
+!web/app/plugins/mitlib-post-site-parent
+!web/app/plugins/mitlib-post-spotlights
!web/app/plugins/mitlib-pull-events
!web/app/plugins/mitlib-pull-hours
diff --git a/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c123b5-2.json b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c123b5-2.json
new file mode 100644
index 00000000..66d4f4c5
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c123b5-2.json
@@ -0,0 +1,58 @@
+{
+ "key": "group_54dd062c123b5-2",
+ "title": "Subtitle (Bibliotech)",
+ "fields": [
+ {
+ "key": "field_54b54d9262fa8",
+ "label": "Subtitle",
+ "name": "subtitle",
+ "type": "text",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "html",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ }
+ ]
+ ],
+ "menu_order": 1,
+ "position": "acf_after_title",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "Add a subtitle to Bibliotech records",
+ "show_in_rest": false
+}
\ No newline at end of file
diff --git a/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c4f33d.json b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c4f33d.json
new file mode 100644
index 00000000..91e05d59
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c4f33d.json
@@ -0,0 +1,78 @@
+{
+ "key": "group_54dd062c4f33d",
+ "title": "Bibliotech Author",
+ "fields": [
+ {
+ "key": "field_54b8223f87188",
+ "label": "Bilbiotech author",
+ "name": "bauthor",
+ "type": "text",
+ "instructions": "This field will be displayed as the author if it is filled out, if it is left blank then the author will be the logged in user that is creating the post.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "html",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ }
+ ],
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ }
+ ]
+ ],
+ "menu_order": 6,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "the_content",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "categories",
+ "tags",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "News site: Add a field for article author to Bibliotech records - visible only for admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c59653-2.json b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c59653-2.json
new file mode 100644
index 00000000..e015b75a
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c59653-2.json
@@ -0,0 +1,127 @@
+{
+ "key": "group_54dd062c59653-2",
+ "title": "Surrogate images (Bibliotech)",
+ "fields": [
+ {
+ "key": "field_549485f7cbb49",
+ "label": "Grid view long top image",
+ "name": "featuredListImg",
+ "type": "image_crop",
+ "instructions": "This image is for the homepage and should be the exact dimensions 662px width by 256px height",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "crop_type": "hard",
+ "target_size": "news-feature",
+ "width": "662px",
+ "height": "256px",
+ "preview_size": "full",
+ "force_crop": "yes",
+ "save_in_media_library": "yes",
+ "retina_mode": "no",
+ "save_format": "url",
+ "library": "all"
+ },
+ {
+ "key": "field_549489d7cbb4b",
+ "label": "Libraries homepage image",
+ "name": "homeImg",
+ "type": "image_crop",
+ "instructions": "This image is for the homepage and should be the exact dimensions 113px width by 206px height",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "crop_type": "hard",
+ "target_size": "news-home",
+ "width": "",
+ "height": "",
+ "preview_size": "full",
+ "force_crop": "yes",
+ "save_in_media_library": "yes",
+ "retina_mode": "no",
+ "save_format": "url",
+ "library": "all"
+ },
+ {
+ "key": "field_54cfa8ab5b6f2",
+ "label": "Grid view regular box image",
+ "name": "listImg",
+ "type": "image_crop",
+ "instructions": "This image is for the news homepage and should be the exact dimensions 323px width by 111px height",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "crop_type": "hard",
+ "target_size": "news-listing",
+ "width": "",
+ "height": "",
+ "preview_size": "full",
+ "force_crop": "yes",
+ "save_in_media_library": "yes",
+ "retina_mode": "no",
+ "save_format": "url",
+ "library": "all"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ }
+ ],
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ }
+ ],
+ ],
+ "menu_order": 7,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "categories",
+ "tags",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "Add fields for specifically-sized images when Bibliotech records are promoted - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c84904-2.json b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c84904-2.json
new file mode 100644
index 00000000..1a320975
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_54dd062c84904-2.json
@@ -0,0 +1,65 @@
+{
+ "key": "group_54dd062c84904-2",
+ "title": "Featured Article flag (Bibliotech)",
+ "fields": [
+ {
+ "key": "field_5474bef390af8",
+ "label": "Featured Article on News Page",
+ "name": "featuredArticle",
+ "type": "radio",
+ "instructions": "Should this be featured on the front page of the news?",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "false": "Should not display on homepage",
+ "True": "Feature on homepage"
+ },
+ "other_choice": 0,
+ "save_other_choice": 0,
+ "default_value": "false : Should not display on homepage",
+ "layout": "vertical",
+ "allow_null": 0,
+ "return_format": "value"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ }
+ ]
+ ],
+ "menu_order": 2000,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "Add a flag to promote news site content (Bibliotech) to parent site front page - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/bibliotech/group_55101c54091f3-2.json b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_55101c54091f3-2.json
new file mode 100644
index 00000000..62b7e194
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/bibliotech/group_55101c54091f3-2.json
@@ -0,0 +1,63 @@
+{
+ "key": "group_55101c54091f3-2",
+ "title": "Homepage title (Bibliotech)",
+ "fields": [
+ {
+ "key": "field_53ecc2b9abf15",
+ "label": "Homepage post title",
+ "name": "homepage_post_title",
+ "type": "text",
+ "instructions": "Enter the title of the post as it should appear on the homepage.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "none",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "bibliotech"
+ }
+ ]
+ ],
+ "menu_order": 11,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "Add a variation of the title field on Bibliotech records for use on the parent site homepage - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/group_5668669a86e5c-2.json b/web/app/mu-plugins/mitlib-post/data/event/group_5668669a86e5c-2.json
similarity index 100%
rename from web/app/mu-plugins/mitlib-post/data/group_5668669a86e5c-2.json
rename to web/app/mu-plugins/mitlib-post/data/event/group_5668669a86e5c-2.json
diff --git a/web/app/mu-plugins/mitlib-post/data/group_566849b5bf143-2.json b/web/app/mu-plugins/mitlib-post/data/exhibit/group_566849b5bf143-2.json
similarity index 100%
rename from web/app/mu-plugins/mitlib-post/data/group_566849b5bf143-2.json
rename to web/app/mu-plugins/mitlib-post/data/exhibit/group_566849b5bf143-2.json
diff --git a/web/app/mu-plugins/mitlib-post/data/group_58e229319dfff.json b/web/app/mu-plugins/mitlib-post/data/expert/group_58e229319dfff.json
similarity index 100%
rename from web/app/mu-plugins/mitlib-post/data/group_58e229319dfff.json
rename to web/app/mu-plugins/mitlib-post/data/expert/group_58e229319dfff.json
diff --git a/web/app/mu-plugins/mitlib-post/data/group_58e22931ab9f5.json b/web/app/mu-plugins/mitlib-post/data/location/group_58e22931ab9f5.json
similarity index 100%
rename from web/app/mu-plugins/mitlib-post/data/group_58e22931ab9f5.json
rename to web/app/mu-plugins/mitlib-post/data/location/group_58e22931ab9f5.json
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062bee0d5.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062bee0d5.json
new file mode 100644
index 00000000..c1b57be3
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062bee0d5.json
@@ -0,0 +1,68 @@
+{
+ "key": "group_54dd062bee0d5",
+ "title": "Link to Bibliotech pdf",
+ "fields": [
+ {
+ "key": "field_54d13de713e1c",
+ "label": "Link to Bibliotech pdf",
+ "name": "bibLink",
+ "type": "text",
+ "instructions": "Link to pdf",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "html",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ },
+ {
+ "key": "field_54d14348b8bf3",
+ "label": "Caption",
+ "name": "bibCaption",
+ "type": "text",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "html",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "page",
+ "operator": "==",
+ "value": "17615"
+ }
+ ]
+ ],
+ "menu_order": 0,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "News site: Link to current Bibliotech materials for one page (the index of past issues)",
+ "show_in_rest": false
+}
\ No newline at end of file
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c123b5-1.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c123b5-1.json
new file mode 100644
index 00000000..9b5f64d1
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c123b5-1.json
@@ -0,0 +1,58 @@
+{
+ "key": "group_54dd062c123b5-1",
+ "title": "Subtitle (Post)",
+ "fields": [
+ {
+ "key": "field_54b54d9262fa8",
+ "label": "Subtitle",
+ "name": "subtitle",
+ "type": "text",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "html",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 1,
+ "position": "acf_after_title",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "Add a subtitle to Post records",
+ "show_in_rest": false
+}
\ No newline at end of file
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c31627-1.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c31627-1.json
new file mode 100644
index 00000000..81605b45
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c31627-1.json
@@ -0,0 +1,57 @@
+{
+ "key": "group_54dd062c31627",
+ "title": "Urgency flag (Post)",
+ "fields": [
+ {
+ "key": "field_543699593ef84",
+ "label": "Urgent",
+ "name": "urgent",
+ "type": "true_false",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "message": "This post is urgent.",
+ "default_value": 0,
+ "ui": 0,
+ "ui_on_text": "",
+ "ui_off_text": ""
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 3,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "categories",
+ "tags",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "Add a flag for urgent review to Post records",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c453cb-1.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c453cb-1.json
new file mode 100644
index 00000000..38e18ac7
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c453cb-1.json
@@ -0,0 +1,49 @@
+{
+ "key": "group_54dd062c453cb-1",
+ "title": "Notes for admins (Post)",
+ "fields": [
+ {
+ "key": "field_549476bac49d2",
+ "label": "Notes for editorial team",
+ "name": "notes",
+ "type": "textarea",
+ "instructions": "Please use this area to communicate with the editorial team. For news\/event posts - if you cannot find an image, let us know what you are looking for and we will try to help. Reminder, spotlights do not need images.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "maxlength": "",
+ "rows": "",
+ "new_lines": "br",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 5,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "the_content",
+ "excerpt",
+ "featured_image"
+ ],
+ "active": true,
+ "description": "Add a notes field for admin review to Post records",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c59653-1.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c59653-1.json
new file mode 100644
index 00000000..12a35896
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c59653-1.json
@@ -0,0 +1,127 @@
+{
+ "key": "group_54dd062c59653-1",
+ "title": "Surrogate images (Post)",
+ "fields": [
+ {
+ "key": "field_549485f7cbb49",
+ "label": "Grid view long top image",
+ "name": "featuredListImg",
+ "type": "image_crop",
+ "instructions": "This image is for the homepage and should be the exact dimensions 662px width by 256px height",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "crop_type": "hard",
+ "target_size": "news-feature",
+ "width": "662px",
+ "height": "256px",
+ "preview_size": "full",
+ "force_crop": "yes",
+ "save_in_media_library": "yes",
+ "retina_mode": "no",
+ "save_format": "url",
+ "library": "all"
+ },
+ {
+ "key": "field_549489d7cbb4b",
+ "label": "Libraries homepage image",
+ "name": "homeImg",
+ "type": "image_crop",
+ "instructions": "This image is for the homepage and should be the exact dimensions 113px width by 206px height",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "crop_type": "hard",
+ "target_size": "news-home",
+ "width": "",
+ "height": "",
+ "preview_size": "full",
+ "force_crop": "yes",
+ "save_in_media_library": "yes",
+ "retina_mode": "no",
+ "save_format": "url",
+ "library": "all"
+ },
+ {
+ "key": "field_54cfa8ab5b6f2",
+ "label": "Grid view regular box image",
+ "name": "listImg",
+ "type": "image_crop",
+ "instructions": "This image is for the news homepage and should be the exact dimensions 323px width by 111px height",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "crop_type": "hard",
+ "target_size": "news-listing",
+ "width": "",
+ "height": "",
+ "preview_size": "full",
+ "force_crop": "yes",
+ "save_in_media_library": "yes",
+ "retina_mode": "no",
+ "save_format": "url",
+ "library": "all"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ }
+ ],
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ }
+ ]
+ ],
+ "menu_order": 7,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "categories",
+ "tags",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "News site: Add fields for specifically-sized images when Post records are promoted - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c84904-1.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c84904-1.json
new file mode 100644
index 00000000..71cd3bbf
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_54dd062c84904-1.json
@@ -0,0 +1,65 @@
+{
+ "key": "group_54dd062c84904-1",
+ "title": "Featured Article flag (Post)",
+ "fields": [
+ {
+ "key": "field_5474bef390af8",
+ "label": "Featured Article on News Page",
+ "name": "featuredArticle",
+ "type": "radio",
+ "instructions": "Should this be featured on the front page of the news?",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "false": "Should not display on homepage",
+ "True": "Feature on homepage"
+ },
+ "other_choice": 0,
+ "save_other_choice": 0,
+ "default_value": "false : Should not display on homepage",
+ "layout": "vertical",
+ "allow_null": 0,
+ "return_format": "value"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 2000,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "Add a flag to promote news site content (Posts) to parent site front page - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_55096c358857e.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55096c358857e.json
new file mode 100644
index 00000000..e923e6d6
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55096c358857e.json
@@ -0,0 +1,41 @@
+{
+ "key": "group_55096c358857e",
+ "title": "Image info",
+ "fields": [
+ {
+ "key": "field_55096c43b870d",
+ "label": "Use the “Add Media” button below to upload the image(s) to your post.",
+ "name": "",
+ "type": "message",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "message": "Remember to rename and resize (if too large) your files before uploading.
For complete information\/image help see Image instructions.<\/a>",
+ "esc_html": 0,
+ "new_lines": "wpautop"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 3,
+ "position": "acf_after_title",
+ "style": "default",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "News site: Add an info box reminding authors how to attach images to an article.",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_55101c53c2d37.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55101c53c2d37.json
new file mode 100644
index 00000000..7e342ae5
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55101c53c2d37.json
@@ -0,0 +1,208 @@
+{
+ "key": "group_55101c53c2d37",
+ "title": "Event fields",
+ "fields": [
+ {
+ "key": "field_53ecc2067d32f",
+ "label": "Is event",
+ "name": "is_event",
+ "type": "true_false",
+ "instructions": "Check the box to mark this post as an event.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "message": "",
+ "default_value": 0,
+ "ui": 0,
+ "ui_on_text": "",
+ "ui_off_text": ""
+ },
+ {
+ "key": "field_53ecc21c7d330",
+ "label": "Event date",
+ "name": "event_date",
+ "type": "date_picker",
+ "instructions": "Select the event date.",
+ "required": 0,
+ "conditional_logic": [
+ [
+ {
+ "field": "field_53ecc2067d32f",
+ "operator": "==",
+ "value": "1"
+ }
+ ]
+ ],
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "first_day": 1,
+ "return_format": "Ymd",
+ "display_format": "F d"
+ },
+ {
+ "key": "field_53ecc24f7d331",
+ "label": "Event Start Time",
+ "name": "event_start_time",
+ "type": "text",
+ "instructions": "Enter the event start time. This field is not required.",
+ "required": 0,
+ "conditional_logic": [
+ [
+ {
+ "field": "field_53ecc2067d32f",
+ "operator": "==",
+ "value": "1"
+ }
+ ]
+ ],
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "12pm",
+ "prepend": "",
+ "append": "",
+ "maxlength": 8
+ },
+ {
+ "key": "field_53ecc2667d332",
+ "label": "Event end time",
+ "name": "event_end_time",
+ "type": "text",
+ "instructions": "Enter the event end time. This field is not required.",
+ "required": 0,
+ "conditional_logic": [
+ [
+ {
+ "field": "field_53ecc2067d32f",
+ "operator": "==",
+ "value": "1"
+ }
+ ]
+ ],
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "3pm",
+ "prepend": "",
+ "append": "",
+ "maxlength": 8
+ },
+ {
+ "key": "field_5a2a9ca90a81c",
+ "label": "Calendar URL",
+ "name": "calendar_url",
+ "type": "text",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "maxlength": ""
+ },
+ {
+ "key": "field_5a2a9cd20a81d",
+ "label": "Calendar ID",
+ "name": "calendar_id",
+ "type": "text",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "maxlength": ""
+ },
+ {
+ "key": "field_5a2a9ce50a81e",
+ "label": "Calendar Image",
+ "name": "calendar_image",
+ "type": "text",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "maxlength": ""
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "contributor"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 2,
+ "position": "acf_after_title",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "News site: Add a cluster of fields to allow a Post record to function as an event - visible to Contributors, Admins, and Super Admins",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_55101c54091f3-1.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55101c54091f3-1.json
new file mode 100644
index 00000000..427a0f02
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55101c54091f3-1.json
@@ -0,0 +1,63 @@
+{
+ "key": "group_55101c54091f3-1",
+ "title": "Homepage title (Post)",
+ "fields": [
+ {
+ "key": "field_53ecc2b9abf15",
+ "label": "Homepage post title",
+ "name": "homepage_post_title",
+ "type": "text",
+ "instructions": "Enter the title of the post as it should appear on the homepage.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "none",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ]
+ ],
+ "menu_order": 11,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "Add a variation of the title field on Post records for use on the parent site homepage - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/sitenews/group_55c25be764027.json b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55c25be764027.json
new file mode 100644
index 00000000..ea75c3dc
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/sitenews/group_55c25be764027.json
@@ -0,0 +1,77 @@
+{
+ "key": "group_55c25be764027",
+ "title": "Post Author",
+ "fields": [
+ {
+ "key": "field_55c25bebd5a82",
+ "label": "Post Author",
+ "name": "pauthor",
+ "type": "text",
+ "instructions": "This field will be displayed as the author if it is filled out, if it is left blank then the author will be the logged in user that is creating the post.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "post"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "contributor"
+ }
+ ]
+ ],
+ "menu_order": 3,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "the_content",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "categories",
+ "tags",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "News site: Add a separate author field (a string) when the built-in author (a user reference) should not be shown - visible to contributors, admins, and super admins",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/group_58e229318a751.json b/web/app/mu-plugins/mitlib-post/data/siteparent/group_58e229318a751.json
similarity index 100%
rename from web/app/mu-plugins/mitlib-post/data/group_58e229318a751.json
rename to web/app/mu-plugins/mitlib-post/data/siteparent/group_58e229318a751.json
diff --git a/web/app/mu-plugins/mitlib-post/data/group_58e22931f3f43.json b/web/app/mu-plugins/mitlib-post/data/siteparent/group_58e22931f3f43.json
similarity index 100%
rename from web/app/mu-plugins/mitlib-post/data/group_58e22931f3f43.json
rename to web/app/mu-plugins/mitlib-post/data/siteparent/group_58e22931f3f43.json
diff --git a/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c086fd.json b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c086fd.json
new file mode 100644
index 00000000..5e729329
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c086fd.json
@@ -0,0 +1,70 @@
+{
+ "key": "group_54dd062c086fd",
+ "title": "Spotlight type",
+ "fields": [
+ {
+ "key": "field_54359302ca174",
+ "label": "Spotlight type",
+ "name": "feature_type",
+ "type": "select",
+ "instructions": "",
+ "required": 1,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "check": "Check it out",
+ "collection": "Featured collection",
+ "exhibit": "Featured exhibit",
+ "service": "Featured service",
+ "story": "Featured story",
+ "video": "Featured video",
+ "media": "In the media",
+ "tip": "Tip",
+ "update": "Update"
+ },
+ "default_value": [],
+ "allow_null": 0,
+ "multiple": 0,
+ "ui": 1,
+ "ajax": 0,
+ "placeholder": "",
+ "disabled": 0,
+ "readonly": 0,
+ "return_format": "value"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ]
+ ],
+ "menu_order": 1,
+ "position": "acf_after_title",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "the_content",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "featured_image",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "News site: Add a type field to Spotlight records",
+ "show_in_rest": false
+}
\ No newline at end of file
diff --git a/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c26afa.json b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c26afa.json
new file mode 100644
index 00000000..a580d5c7
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c26afa.json
@@ -0,0 +1,46 @@
+{
+ "key": "group_54dd062c26afa",
+ "title": "External links",
+ "fields": [
+ {
+ "key": "field_5432b230123f7",
+ "label": "Link",
+ "name": "external_link",
+ "type": "text",
+ "instructions": "Add the link associated with this spotlight here.",
+ "required": 1,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "html",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ]
+ ],
+ "menu_order": 3,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [],
+ "active": true,
+ "description": "News site: Add a link field to Spotlight records",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c31627-2.json b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c31627-2.json
new file mode 100644
index 00000000..7963e7f8
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c31627-2.json
@@ -0,0 +1,57 @@
+{
+ "key": "group_54dd062c31627",
+ "title": "Urgency flag (Spotlights)",
+ "fields": [
+ {
+ "key": "field_543699593ef84",
+ "label": "Urgent",
+ "name": "urgent",
+ "type": "true_false",
+ "instructions": "",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "message": "This post is urgent.",
+ "default_value": 0,
+ "ui": 0,
+ "ui_on_text": "",
+ "ui_off_text": ""
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ]
+ ],
+ "menu_order": 3,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "permalink",
+ "excerpt",
+ "custom_fields",
+ "discussion",
+ "comments",
+ "revisions",
+ "slug",
+ "author",
+ "format",
+ "featured_image",
+ "categories",
+ "tags",
+ "send-trackbacks"
+ ],
+ "active": true,
+ "description": "Add a flag for urgent review to Spotlight records",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c453cb-2.json b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c453cb-2.json
new file mode 100644
index 00000000..7c9d43ec
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c453cb-2.json
@@ -0,0 +1,49 @@
+{
+ "key": "group_54dd062c453cb-2",
+ "title": "Notes for admins (Spotlights)",
+ "fields": [
+ {
+ "key": "field_549476bac49d2",
+ "label": "Notes for editorial team",
+ "name": "notes",
+ "type": "textarea",
+ "instructions": "Please use this area to communicate with the editorial team. For news\/event posts - if you cannot find an image, let us know what you are looking for and we will try to help. Reminder, spotlights do not need images.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "maxlength": "",
+ "rows": "",
+ "new_lines": "br",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ]
+ ],
+ "menu_order": 5,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": [
+ "the_content",
+ "excerpt",
+ "featured_image"
+ ],
+ "active": true,
+ "description": "Add a notes field for admin review to Spotlight records",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c84904-3.json b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c84904-3.json
new file mode 100644
index 00000000..e48f2100
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/spotlight/group_54dd062c84904-3.json
@@ -0,0 +1,65 @@
+{
+ "key": "group_54dd062c84904-3",
+ "title": "Featured Article flag (Spotlights)",
+ "fields": [
+ {
+ "key": "field_5474bef390af8",
+ "label": "Featured Article on News Page",
+ "name": "featuredArticle",
+ "type": "radio",
+ "instructions": "Should this be featured on the front page of the news?",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "choices": {
+ "false": "Should not display on homepage",
+ "True": "Feature on homepage"
+ },
+ "other_choice": 0,
+ "save_other_choice": 0,
+ "default_value": "false : Should not display on homepage",
+ "layout": "vertical",
+ "allow_null": 0,
+ "return_format": "value"
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ]
+ ],
+ "menu_order": 2000,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "Add a flag to promote news site content (Spotlights) to parent site front page - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/data/spotlight/group_55101c54091f3-3.json b/web/app/mu-plugins/mitlib-post/data/spotlight/group_55101c54091f3-3.json
new file mode 100644
index 00000000..33026420
--- /dev/null
+++ b/web/app/mu-plugins/mitlib-post/data/spotlight/group_55101c54091f3-3.json
@@ -0,0 +1,63 @@
+{
+ "key": "group_55101c54091f3-3",
+ "title": "Homepage title (Spotlights)",
+ "fields": [
+ {
+ "key": "field_53ecc2b9abf15",
+ "label": "Homepage post title",
+ "name": "homepage_post_title",
+ "type": "text",
+ "instructions": "Enter the title of the post as it should appear on the homepage.",
+ "required": 0,
+ "conditional_logic": 0,
+ "wrapper": {
+ "width": "",
+ "class": "",
+ "id": ""
+ },
+ "default_value": "",
+ "placeholder": "",
+ "prepend": "",
+ "append": "",
+ "formatting": "none",
+ "maxlength": "",
+ "readonly": 0,
+ "disabled": 0
+ }
+ ],
+ "location": [
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "super_admin"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ],
+ [
+ {
+ "param": "current_user_role",
+ "operator": "==",
+ "value": "administrator"
+ },
+ {
+ "param": "post_type",
+ "operator": "==",
+ "value": "spotlights"
+ }
+ ]
+ ],
+ "menu_order": 11,
+ "position": "normal",
+ "style": "seamless",
+ "label_placement": "top",
+ "instruction_placement": "label",
+ "hide_on_screen": "",
+ "active": true,
+ "description": "Add a variation of the title field on Spotlight records for use on the parent site homepage - visible only to admins and above",
+ "show_in_rest": false
+}
diff --git a/web/app/mu-plugins/mitlib-post/src/class-base.php b/web/app/mu-plugins/mitlib-post/src/class-base.php
index 82437a4f..16c8dfb1 100644
--- a/web/app/mu-plugins/mitlib-post/src/class-base.php
+++ b/web/app/mu-plugins/mitlib-post/src/class-base.php
@@ -12,29 +12,53 @@
* Defines the Base class for custom post types.
*/
class Base {
+
+ /**
+ * This determines the appropriate subfolder to load based on which child
+ * class is being called.
+ *
+ * For example, the Mitlib\PostTypes\Exhibit class would end up loading the
+ * files located in data\exhibit, while Mitlib\PostTypes\Location would load
+ * from data\location.
+ */
+ public static function identify_subfolder() {
+ $class = get_called_class();
+ $arr_class = explode( '\\', $class );
+ $last_class = end( $arr_class );
+ return strtolower( $last_class );
+ }
+
/**
- * Called during acf/settings/load_json
+ * Called during acf/settings/load_json. This attempts to load field groups
+ * defined within a subfolder named after the class name which called this
+ * method.
*
* @param Array $paths An array of paths where JSON files describing field
* information can be loaded.
*/
public static function load_point( $paths ) {
+ // Identify, from context, which subfolder needs to be loaded.
+ $subfolder = self::identify_subfolder();
+
// Remove any previously-set paths (could be removed).
unset( $paths[0] );
- // Append the desired location to the array.
- $paths[] = plugin_dir_path( __FILE__ ) . '../data';
+ // Append the desired location to the array of searched paths.
+ $paths[] = plugin_dir_path( __FILE__ ) . "../data/{$subfolder}";
// Return the array.
return $paths;
}
/**
- * Called during acf?settings/save_json
+ * Called during acf/settings/save_json
*
* @param String $path A local path where field information will be saved.
*/
public static function save_point( $path ) {
- return plugin_dir_path( __FILE__ ) . '../data';
+ // Identify, from context, which subfolder needs to be loaded.
+ $subfolder = self::identify_subfolder();
+
+ return plugin_dir_path( __FILE__ ) . "../data/{$subfolder}";
}
}
diff --git a/web/app/plugins/mitlib-post-bibliotechs/README.md b/web/app/plugins/mitlib-post-bibliotechs/README.md
new file mode 100644
index 00000000..96aa0090
--- /dev/null
+++ b/web/app/plugins/mitlib-post-bibliotechs/README.md
@@ -0,0 +1,7 @@
+# MITlib Post Bibliotechs
+
+This defines a Bibliotech custom post type, extending the Base class provided by
+Mitlib Post.
+
+The fields within this post type are defined in a JSON file that can be found in
+the Mitlib Post data folder.
diff --git a/web/app/plugins/mitlib-post-bibliotechs/mitlib-post-bibliotechs.php b/web/app/plugins/mitlib-post-bibliotechs/mitlib-post-bibliotechs.php
new file mode 100644
index 00000000..25a573d1
--- /dev/null
+++ b/web/app/plugins/mitlib-post-bibliotechs/mitlib-post-bibliotechs.php
@@ -0,0 +1,27 @@
+ _x( 'Bibliotechs', 'Post Type General Name', 'text_domain' ),
+ 'singular_name' => _x( 'Bibliotech', 'Post Type Singular Name', 'text_domain' ),
+ 'menu_name' => __( 'Bibliotechs', 'text_domain' ),
+ 'name_admin_bar' => __( 'Bibliotech', 'text_domain' ),
+ 'parent_item_colon' => __( 'Parent Bibliotech', 'text_domain' ),
+ 'all_items' => __( 'All Bibliotechs', 'text_domain' ),
+ 'add_new_item' => __( 'Add New Bibliotech', 'text_domain' ),
+ 'add_new' => __( 'New Bibliotech', 'text_domain' ),
+ 'new_item' => __( 'New Bibliotech', 'text_domain' ),
+ 'edit_item' => __( 'Edit Bibliotech', 'text_domain' ),
+ 'update_item' => __( 'Update Bibliotech', 'text_domain' ),
+ 'view_item' => __( 'View Bibliotech', 'text_domain' ),
+ 'search_items' => __( 'Search Bibliotechs', 'text_domain' ),
+ 'not_found' => __( 'No Bibliotechs found', 'text_domain' ),
+ 'not_found_in_trash' => __( 'No Bibliotechs found in Trash', 'text_domain' ),
+ );
+ $args = array(
+ 'label' => __( 'Bibliotech', 'text_domain' ),
+ 'description' => __( 'Bibliotech', 'text_domain' ),
+ 'labels' => $labels,
+ 'supports' => array( 'title', 'editor', 'thumbnail' ),
+ 'taxonomies' => array( 'category' ),
+ 'hierarchical' => true,
+ 'public' => true,
+ 'show_ui' => true,
+ 'show_in_menu' => true,
+ 'menu_position' => 5,
+ 'menu_icon' => 'dashicons-media-document',
+ 'show_in_admin_bar' => true,
+ 'show_in_nav_menus' => true,
+ 'can_export' => true,
+ 'has_archive' => true,
+ 'exclude_from_search' => false,
+ 'publicly_queryable' => true,
+ 'capability_type' => 'post',
+ );
+ register_post_type( 'bibliotech', $args );
+ }
+
+ /**
+ * Define the Bibliotech Issues custom taxonomy, which is used to group
+ * articles according to the issue in which they originally appeared.
+ */
+ public static function taxonomies() {
+ $labels = array(
+ 'name' => _x( 'Bibliotechs', 'Taxonomy General Name', 'text_domain' ),
+ 'singular_name' => _x( 'Bibliotech', 'Taxonomy Singular Name', 'text_domain' ),
+ 'menu_name' => __( 'Issues', 'text_domain' ),
+ 'all_items' => __( 'All Issues', 'text_domain' ),
+ 'parent_item' => __( 'Parent Issue', 'text_domain' ),
+ 'parent_item_colon' => __( 'Parent Issue:', 'text_domain' ),
+ 'new_item_name' => __( 'New Issue', 'text_domain' ),
+ 'add_new_item' => __( 'Add New Issue', 'text_domain' ),
+ 'edit_item' => __( 'Edit Issue', 'text_domain' ),
+ 'update_item' => __( 'Update Issue', 'text_domain' ),
+ 'separate_items_with_commas' => __( 'Separate Issues with commas', 'text_domain' ),
+ 'search_items' => __( 'Search Issues', 'text_domain' ),
+ 'add_or_remove_items' => __( 'Add or Remove Issues', 'text_domain' ),
+ 'choose_from_most_used' => __( 'Choose from the most used Issues', 'text_domain' ),
+ 'not_found' => __( 'Not Found', 'text_domain' ),
+ );
+
+ $args = array(
+ 'labels' => $labels,
+ 'hierarchical' => false,
+ 'public' => true,
+ 'show_ui' => true,
+ 'show_admin_column' => true,
+ 'show_in_nav_menus' => true,
+ 'show_tagcloud' => true,
+ );
+ register_taxonomy( 'bibliotech_issues', array( 'bibliotech' ), $args );
+ }
+}
diff --git a/web/app/plugins/mitlib-post-site-news/mitlib-post-site-news.php b/web/app/plugins/mitlib-post-site-news/mitlib-post-site-news.php
new file mode 100644
index 00000000..16c8a012
--- /dev/null
+++ b/web/app/plugins/mitlib-post-site-news/mitlib-post-site-news.php
@@ -0,0 +1,25 @@
+ _x( 'Spotlights', 'Post Type General Name', 'text_domain' ),
+ 'singular_name' => _x( 'Spotlight', 'Post Type Singular Name', 'text_domain' ),
+ 'menu_name' => __( 'Spotlights', 'text_domain' ),
+ 'name_admin_bar' => __( 'Spotlight', 'text_domain' ),
+ 'parent_item_colon' => __( 'Parent Spotlight', 'text_domain' ),
+ 'all_items' => __( 'All Spotlights', 'text_domain' ),
+ 'add_new_item' => __( 'Add New Spotlight - should be about 60 characters', 'text_domain' ),
+ 'add_new' => __( 'New Spotlight', 'text_domain' ),
+ 'new_item' => __( 'New Spotlight', 'text_domain' ),
+ 'edit_item' => __( 'Edit Spotlight', 'text_domain' ),
+ 'update_item' => __( 'Update Spotlight', 'text_domain' ),
+ 'view_item' => __( 'View Spotlight', 'text_domain' ),
+ 'search_items' => __( 'Search Spotlights', 'text_domain' ),
+ 'not_found' => __( 'No Spotlights found', 'text_domain' ),
+ 'not_found_in_trash' => __( 'No Spotlights found in Trash', 'text_domain' ),
+ );
+ $args = array(
+ 'label' => __( 'Spotlight', 'text_domain' ),
+ 'description' => __( 'Spotlight', 'text_domain' ),
+ 'labels' => $labels,
+ 'supports' => array( 'title' ),
+ 'taxonomies' => array( 'category' ),
+ 'hierarchical' => true,
+ 'public' => true,
+ 'show_ui' => true,
+ 'show_in_menu' => true,
+ 'menu_position' => 5,
+ 'menu_icon' => 'dashicons-megaphone',
+ 'show_in_admin_bar' => true,
+ 'show_in_nav_menus' => true,
+ 'can_export' => true,
+ 'has_archive' => true,
+ 'exclude_from_search' => false,
+ 'publicly_queryable' => true,
+ 'capability_type' => 'post',
+ );
+ register_post_type( 'spotlights', $args );
+ }
+}