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 index e015b75a..be6d7c1a 100644 --- 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 @@ -99,7 +99,7 @@ "operator": "==", "value": "administrator" } - ], + ] ], "menu_order": 7, "position": "normal", 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 index 81605b45..64bbcbd3 100644 --- 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 @@ -1,5 +1,5 @@ { - "key": "group_54dd062c31627", + "key": "group_54dd062c31627-1", "title": "Urgency flag (Post)", "fields": [ { 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 index 7963e7f8..582cbdc3 100644 --- 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 @@ -1,5 +1,5 @@ { - "key": "group_54dd062c31627", + "key": "group_54dd062c31627-2", "title": "Urgency flag (Spotlights)", "fields": [ { diff --git a/web/app/plugins/mitlib-post-bibliotechs/src/class-bibliotech.php b/web/app/plugins/mitlib-post-bibliotechs/src/class-bibliotech.php index 2195f230..f02234a7 100644 --- a/web/app/plugins/mitlib-post-bibliotechs/src/class-bibliotech.php +++ b/web/app/plugins/mitlib-post-bibliotechs/src/class-bibliotech.php @@ -63,8 +63,8 @@ public static function define() { */ public static function taxonomies() { $labels = array( - 'name' => _x( 'Bibliotechs', 'Taxonomy General Name', 'text_domain' ), - 'singular_name' => _x( 'Bibliotech', 'Taxonomy Singular Name', 'text_domain' ), + 'name' => _x( 'Bibliotech Issues', 'Taxonomy General Name', 'text_domain' ), + 'singular_name' => _x( 'Bibliotech Issue', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Issues', 'text_domain' ), 'all_items' => __( 'All Issues', 'text_domain' ), 'parent_item' => __( 'Parent Issue', 'text_domain' ), diff --git a/web/app/themes/mitlib-news/functions.php b/web/app/themes/mitlib-news/functions.php index d3a0b614..56311023 100644 --- a/web/app/themes/mitlib-news/functions.php +++ b/web/app/themes/mitlib-news/functions.php @@ -68,6 +68,19 @@ function admin_styles() { } add_action( 'admin_head', 'Mitlib\News\admin_styles' ); +/** + * Add custom images for the news. + * + * @uses add_theme_support() To enable the theme's support for custom header + * images. + * @uses add_image_size() Registers a new image size for use by the theme. + */ +add_theme_support( 'post-thumbnails' ); +add_image_size( 'news-home', 111, 206, true ); // Hard Crop Mode. +add_image_size( 'news-listing', 323, 111, true ); // Hard Crop Mode. +add_image_size( 'news-feature', 657, 256, true ); // Hard Crop Mode. +add_image_size( 'news-single', 451, 651, true ); // Hard Crop Mode. + /** * Remove parent theme page templates. *