Skip to content

Releases: UCF/UCF-News-Plugin

v3.0.2

22 Mar 13:51
5c5ad84
Compare
Choose a tag to compare

Enhancements:

  • Added composer file.

v3.0.1

11 Mar 17:06
Compare
Choose a tag to compare

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

07 Oct 13:44
Compare
Choose a tag to compare

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

09 Jun 14:51
Compare
Choose a tag to compare

Bug Fixes:

  • Added default search option value to UCF_News_Config::$default_options, fixing some undefined index notices.

v2.4.0

08 Jun 19:09
Compare
Choose a tag to compare

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 adjusted UCF_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

18 Mar 16:16
Compare
Choose a tag to compare

Bug fixes:

  • Added missing show_image field for the news widget, and updated widget update logic to ensure its value is saved properly (and ensures images are shown by default in layouts that support them).

v2.3.1

16 Mar 16:52
Compare
Choose a tag to compare

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

01 Mar 20:35
Compare
Choose a tag to compare

Enhancements:

  • Added a show_image option to the ucf-news-feed shortcode, specifically used by the card layout. When set to false, the image from the feed will not be displayed.
  • Added the ucf-statements shortcode, which provides a way of listing statement posts from the News website.
  • Added the classic layout for the ucf-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

03 Feb 17:57
Compare
Choose a tag to compare

Enhancements:

  • Added width/height attributes to <img> tags in this plugin's provided layouts that utilize story thumbnails. Themes and other plugins can utilize UCF_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.

v2.2.1

06 May 16:54
Compare
Choose a tag to compare

Bug Fixes:

  • Updated to ensure the ucf_external_stories_feed_url has a default value even if there isn't one in the options table.