Releases: UCF/UCF-WordPress-Theme
Releases · UCF/UCF-WordPress-Theme
v0.5.3
v0.5.2
Enhancements:
- Added new layout for the UCF Post List Shortcode plugin, "news", which displays posts in a news-like layout with optional thumbnails, excerpt text, and subhead text
- Updated default excerpt trailing text from "[..]" to "..."
- Added utility function
ucfwp_get_excerpt()for retrieving a post's excerpt with an optional custom length - Upgraded packages to latest versions, including the Athena Framework
v0.5.1
v0.5.0
Enhancements:
- Pagination: Added pagination to the main
index.phploop, as well as opintionated pagination functions and styles. See #50. - Conditional
<header>tag: Added a conditional content print inheader.phpand theheader_content-custom.phptemplate part, which allows theucfwp_get_header_markupanducfwp_get_header_content_markupfilters to return empty contents and subsequently prevent an empty<header>tag from being printed at the top of the document. - Responsive image max
srcsetsize: Added a wrapper function forwp_get_attachment_image()calleducfwp_get_attachment_image(), which forces the maximum width in the image's generatedsrcsetto not exceed the requested image dimensions. See #54 - Support per-alert URLs and CTAs: Updated the
faiconalert layout to remove references to deleted UCF Alert Plugin options and support per-alert URLs and call-to-action text. Supports the UCF Alert Plugin v2.0.0+.
Accessibility improvements:
- Added a default background color of
#797979on.header-mediawhen no.bg-*modifier classes are also present on the element. Helps ensure that black and white text within media headers is readable when a header video/image fails to load. - Removed the
titleattribute from decorative images in person post lists to prevent conflicts with emptyaltattributes.
Bug fixes:
- Updated header title logic to return the correct title text for author and year/month/day-based archives, when those archives are re-enabled by a child theme
- Updated default nav template to only display the mobile toggle button if a menu is set. See #51
- Added small fix for the
thumbnail_captionsattribute on our[gallery]shortcode overrides, since it wasn't properly getting filtered as a boolean value before
v0.4.0
Enhancements:
- Refactored how headers, navbars, and footers are loaded to utilize template parts. See #48 for more details.
Upgrade notice:
Please note that the following functions have been deprecated as of v0.4.0, and will be removed in a future major release. If you're using any of these functions in a child theme, you should remove/replace them:
| Deprecated function name | Potential Alternative |
|---|---|
ucfwp_get_object_id() |
Function was unused; no alternatives available |
ucfwp_get_object_field_id() |
Pass the entire queried object to get_field() instead |
ucfwp_get_header_content_title_subtitle() |
Use ucfwp_get_header_content_markup() instead |
ucfwp_get_header_content_custom() |
Use ucfwp_get_header_content_markup() instead |
ucfwp_get_header_media_markup() |
Use ucfwp_get_header_markup() instead |
ucfwp_get_header_default_markup() |
Use ucfwp_get_header_markup() instead |
ucfwp_get_mainsite_menu() |
Use ucfwp_get_nav_markup() instead |
v0.3.0
Enhancements:
- Removed references to comments and link notifications in the theme, as we've decided not to support them (based on feedback from other developers and on our team's experience, the majority of sites using this theme don't require comments and benefit from them being disabled). Child themes will be able to remove this action and create + add their own comment template if comments are needed.
- Upgraded Athena Framework to v1.0.4 and upgraded other npm packages to latest versions.
v0.2.7
Bugfixes:
- Fixed incorrect usage of
add_filter()when registering theucfwp_add_favicon_defaultaction
Enhancements:
- Updated logic in
ucfwp_get_header_title()to more closely match how WordPress generates a page title inwp_get_document_title(). Support for titles in templates that are disabled by default (e.g. author, date-based views) inucfwp_kill_unused_templates()has been added in case a child theme re-enables a template. - Added returns after
ucfwp_get_header_images_before,ucfwp_get_header_videos_before,ucfwp_get_header_title_before, anducfwp_get_header_subtitle_beforeto allow these hooks to properly short-circuit the rest of their containing functions when filters are provided. - Added
aria-labelto top-level<nav>'s generated by the theme. - Added post-theme activation logic to warn the user if ACF PRO isn't installed, and revert back to the last active theme.
Other:
- Fixed version number
@sincereferences in source code - Added CONTRIBUTING file and Github issue + PR templates
- Added linter config updates to be up to date with what's provided in the CM-Project-Templates repo
- Updated gulpfile for linter errors and consistency with CM-Project-Templates
- Fixed sass lint errors in the project
- Updated README to reference new wiki documentation
v0.2.6
v0.2.5
Enhancements:
- Theme mod retrieval updates:
- Updated theme mod retrieval functions to allow other defaults sets to be referenced (for child themes and their own customizer settings)
- Simplified
ucfwp_get_theme_mod_or_default()by utilizingget_theme_mod()'s$defaultparam.
- Media background display overrides:
- Added hooks for specifying a
data-object-positionattribute value on media headers. Allows child themes to provide polyfilled media backgroundobject-positions to re-position header images/videos as screen sizes expand or contract. - Made
ucfwp_get_media_background_picture()anducfwp_get_media_background_video()pluggable. - Added hook that allows
ucfwp_get_media_background_picture_srcs()'s returned value to be modified.
- Added hooks for specifying a
- Updated included jQuery script to be enqueued earlier to help ensure it has loaded for dependent plugins that don't explicitly define it as a dependency
- Updates the Athena Framework, Babel, and other packages to their latest versions.
v0.2.4
Bug fixes:
- Added rule to globally hide empty
<p>tags to prevent undesirable post content formatting - Fixed Sass linter warning in
src/scss/_person.scss - Updated 'modern' Academic Calendar layout to respect empty 'title' attr
- Fixed issue where the UCF WP Theme's enqueued css's version number would include the child theme's version number at the end of the stylesheet url, instead of the UCF WP Theme version number, if used as a parent theme
- Added ellipses to Person email addresses when displayed in the 'people' UCF Post List layout to prevent overflow
- Removed invalid
alttext on Person thumbnails when displayed in the 'people' UCF Post List layout
Enhancements:
- Updated site title in primary nav to be wrapped in a
<h1>on the homepage; updated header markup functions to use a<h2>for the main page heading on the homepage - Made person-related functions in this theme pluggable
Other:
- Bumped WP and PHP installation required versions