Releases: UCF/UCF-WordPress-Theme
Releases · UCF/UCF-WordPress-Theme
v0.7.3
Enhancements:
- Media background video adjustments:
- Ported over media background video updates from the Main Site theme (ensure
aria-hidden="true"
is set on header<video>
s, and thatpreload
andautoplay
attributes are properly handled + videos don't unintentionally get loaded at the -xs breakpoint) - Added a new
ucfwp_media_background_video_viewport_min_width
hook, which lets child themes/plugins control the minimum browser width at which header videos should be displayed
- Ported over media background video updates from the Main Site theme (ensure
- Person post list layout accessibility improvements:
- Updated the "person" post list layout provided by the theme to remove full email addresses + replace with a "Email" link with envelope icon, without text clipping
- Updated how profile links are wrapped around each list item so that list items linking out to a profile can still display an "Email" link
- Added a setting to specify if jQuery should be loaded in the document head or footer (defaults to the footer--a change from prior theme versions)
- Upgraded packages, including Font Awesome; re-ran gulp
Deprecated:
- Deprecated
after_body_open
hook in favor ofwp_body_open
Full Changelog: v0.7.2...v0.7.3
v0.7.2
v0.7.1
Enhancements:
- Added inline
min-height
,background-color
to UCF Header placeholder elem to reduce layout shift on load. - Added Customizer option for specifying additional domains that should be
dns-prefetch
'ed. - Made some small adjustments in
ucfwp_enqueue_frontend_assets()
to ensure webfonts are enqueued as dependencies for the main theme stylesheet. - Bumped jQuery to latest 3.x release.
- Added preloading of Cloud.Typography CSS key or fallback Athena sans-serif font files, and Font Awesome font files (if enabled). Preloaded Athena fonts and Font Awesome fonts can be modified with the
ucfwp_preload_athena_fallback_fonts
anducfwp_preload_font_awesome_fonts
filter hooks, respectively. - Cleaned up some old
update_option()
calls to useoption_${option_name}
filter hooks instead. - Updated how Font Awesome 5 fonts are stored in the theme--now, to ensure older versions of FA5 font files are cache-busted with new releases, the font files in
static/fonts/
are prefixed with a specific version number (e.g.static/fonts/font-awesome-5/5.15.2/...
. - Added PHP functions that retrieve the path to Font Awesome 5 font files (and for other packages) for the sake of preloading. (
ucfwp_get_theme_packages()
,ucfwp_get_theme_package_version()
,ucfwp_get_font_awesome_5_font_url()
) - Upgraded packages, including Font Awesome 5.
Other:
- Removed unused
wp-a11y
enqueue.
v0.7.0
Enhancements:
- Removed Font Awesome and references to mixins/variables from the main theme stylesheet. References to FA icons in the theme have been replaced with inline SVG pseudo-elements.
- Added two separate stylesheets for Font Awesome 4 and 5, and a customizer option for toggling which version to load (default 4, for backward compatibility). FA can also be disabled entirely.
Accessibility improvements:
- Added a unique ARIA label to the site
<header>
and<footer>
elements.
v0.6.3
Enhancements:
- Added functions for determining what type of element to wrap the site title within the primary navigation in, as well as the title text within the page header, instead of relying solely on
is_home() || is_front_page()
. See #83. - Upgraded packages to latest versions.
v0.6.2
Enhancements:
- Replaced
<section>
s used in the footer template part’s inner columns with<div>
s. - Modified wrapper element around a single person’s name in a person list from
<h3>
to<strong>
.
Documentation:
- Updated the contributing doc to reflect the switch from slack to teams.
v0.6.1
Enhancements:
- Cleaned up code that overrides allowed HTML tags and attributes in post content, wrapping the definitions within a filter (see
ucfwp_kses_allowed_html()
) - Added
<picture>
and<source>
as valid HTML tags in post content to support markup for Athena media backgrounds. Note that WP core still does not have complete support for thesrcset
attribute at time of writing, so certain uses ofsrcset
may still be filtered outside of our control.
v0.6.0
This update includes changes to the theme's ACF config. Unless you're using a child theme that defines a custom set of fields, you should re-import the theme's ACF config after upgrading the theme on your site.
Enhancements:
- Added ACF interface for defining custom subnav menu items per-page. You can now choose to generate a page subnav automatically (default) or define each nav item manually.
- Removed UCF Social custom styles, since they've been ported over to the UCF Social plugin as of v3.0.2.
- Updated attachment links referenced throughout the WordPress admin to link directly to an individual file, instead of a single attachment view (which, in this theme, is disabled by default, and redirects back to the site homepage.) See #68 for an example.
- Added cross-browser support for the lazysizes js library against media backgrounds. The theme doesn't include lazysizes out of the box, but this update helps provide compatibility with the equivalent lazysizes WordPress plugin, if lazy-loading of image assets is desired.
- Upgraded packages to latest versions, including the Athena Framework and the jscookie lib (used for storing header bg video play/pause settings).
Bug fixes:
- Adds missing
break
s in the outer switch cases in_ucfwp_get_template_part()
. - Removed redundant
role
attributes on section and nav elements. - Applied grammar fixes in the theme's 404 template.