Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
}
Loading