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
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"operator": "==",
"value": "administrator"
}
],
]
],
"menu_order": 7,
"position": "normal",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"key": "group_54dd062c31627",
"key": "group_54dd062c31627-1",
"title": "Urgency flag (Post)",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"key": "group_54dd062c31627",
"key": "group_54dd062c31627-2",
"title": "Urgency flag (Spotlights)",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
13 changes: 13 additions & 0 deletions web/app/themes/mitlib-news/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down