Releases: UCF/UCF-News-Plugin
v3.0.2
v3.0.1
Enhancements:
- Explicitly unset underline styles on news item links to reduce visual clutter in anticipation of themes updating to Athena v1.1.1. Added underlines on hover/focus where there are no other visual differences in those states.
- Replaced usage of nonexistent
.text-small
class in external stories default layout with.font-size-sm
- Upgraded packages
v3.0.0
Enhancements:
-
Updated all [ucf-news-feed] layouts provided out-of-the-box to utilize Athena Framework classes. This is a breaking change--please read below ("Upgrade Notice") for details before upgrading this plugin in production.
This update will make it easier to maintain layouts moving forward, and provides a performance benefit by no longer needing to enqueue an additional stylesheet on every front-facing post/page.
-
Removed the "Include Default CSS" plugin option and associated stylesheet.
-
Upgraded packages, and removed packages and gulp tasks related to CSS minification.
Bug Fixes:
- Fixed an issue where Today stories with a video header (and, therefore, an oembed poster as a thumbnail) would never display a thumbnail in [ucf-news-feed] layouts.
Upgrade Notice:
-
A theme that includes the Athena Framework is now required for layouts provided by the plugin to display as intended.
You should be able to safely upgrade to v3.0.0 of this plugin if your site meets all of the following criteria:
- Your site uses the UCF WordPress Theme v0.7.2+, Colleges Theme v1.1.2+, or any other WordPress theme that includes the Athena Framework v1.1.0+
- Your site does not reference existing CSS classes from the "classic", "modern" or "card" layouts (such as
.ucf-news-item
,.ucf-news-thumbnail
) in custom layouts, markup on posts/pages, or markup within your theme or another plugin
However, we recommend testing this upgrade in a development/QA environment before upgrading in production.
If your site does include references to CSS classes from the "classic", "modern" or "card" layouts and depends on them for styling, you should update or remove them prior to upgrading this plugin.
If your site's active theme does not include the Athena Framework, you can still override and/or define your own custom layouts as needed.
v2.4.1
v2.4.0
Enhancements:
- Added new
search
arg for the[ucf-news-feed]
shortcode, which allows you to filter results by a search query. - Tidied up
UCF_News_Feed::get_news_items()
and adjustedUCF_News_Feed::format_tax_arg()
a bit to omit unset/empty query args from the final feed URL that's requested, and support custom feed URLs that already include query args. - Upgraded packages
v2.3.2
v2.3.1
Enhancements:
- Admin options page improvements (props @strmtrpr83):
- Added the WordPress CSS class 'large-text' to both feed URL inputs so the whole feed URL is visible.
- Hid the Fallback Image preview img tag when there is no URL instead of showing a broken image tag.
- Updated the tag: added alt text, removed the hard coded 'width' / 'height' and set 'max-width' and 'max-height' to 150px. This keeps the image from distoring in case the user selects a non square image and makes the image preview a little larger.
- Added the built in WordPress button CSS classes 'btn' and 'btn-primary' to the Upload link to make it a button.
- Changed the 'Upload' text to 'Add Image' when no fallback image is selected. It will automatically change to 'Change Image' when a fallback image is selected.
- Changed the 'Upload Image' text in the Media Library pop-up to 'Select Image'. It's more inline with the final user action.
- Added text for the user when no fallback image has been selected. Before the broken img tag could be cosntrued as an image being selected but failing to load. This message will automatically hide on adding/selecting an image.
- Added a 'Remove Image' button that will hide the preview img tag, set the ucf_news_fallback_image hidden field to '', display the no fallback image text, hide the 'Remove Image' button and change the 'Change Image' button back to say 'Add Image'.
v2.3.0
Enhancements:
- Added a
show_image
option to theucf-news-feed
shortcode, specifically used by thecard
layout. When set to false, the image from the feed will not be displayed. - Added the
ucf-statements
shortcode, which provides a way of listingstatement
posts from the News website. - Added the
classic
layout for theucf-statements
shortcode.
NOTE: As of the creation of this release, the statements
REST API endpoint which the ucf-statements
shortcode consumes is not currently in production. It is recommended that the shortcode not be used until the all the dependent code for the UCF News site has been released.
v2.2.2
Enhancements:
- Added
width
/height
attributes to<img>
tags in this plugin's provided layouts that utilize story thumbnails. Themes and other plugins can utilizeUCF_News_Common::get_story_img_tag()
to display thumbnails with these attributes applied in custom layouts. - Updated required files in main plugin files to use absolute paths.
- Upgraded packages
Upgrade notice:
- PHP 7.x is now required.