Provides a shortcode, widget, functions, and default styles for displaying UCF events.
This plugin provides a shortcode, widget, helper functions, and default styles for displaying event data from events.ucf.edu. It is written to work out-of-the-box for non-programmers, but is also extensible and customizable for developers.
- Upload the plugin files (unzipped) to the
/wp-content/plugins
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the "Plugins" screen in WordPress
- Configure plugin settings from the WordPress admin under "Settings > UCF Events".
$ wp plugin install --activate https://github.com/UCF/UCF-Events-Plugin/archive/master.zip
. See WP-CLI Docs for more command options.- Configure plugin settings from the WordPress admin under "Settings > UCF Events".
Enhancements:
- Added composer file.
Enhancements:
- Bug Fixes:
- Improved compatibility with PHP 7.2 due to deprecation of
create_function()
- Updated Events JSON Feed URL input box to expand the full width of the screen using a built in WP class for better usability
- Improved compatibility with PHP 7.2 due to deprecation of
- Bug Fixes:
- Added logic to enforce a minimum value greater than 0 for feed transient expirations
- Updated default feed URL to use HTTPS
- Bug Fixes:
- Fixed display of event widget markup (the display function was not set to
echo
its results) - Reduced text sizes of modern layout dates + titles within widgets
- Fixed display of event widget markup (the display function was not set to
- Enhancements:
- Added http_timeout to allow timeout to be adjusted
- Bug Fixes:
- Removed
is_plugin_active()
check inucf-events.php
and replaced withclass_exists()
check to prevent errors whenwp-admin/includes/plugin.php
is not loaded.
- Removed
- Enhancements:
- Added
$fallback_message
parameter to allow a no results message to be customized. Add the message by inserting it in between the opening and closing shortcodes (the content area), i.e.[ucf-news-feed]<insert message here>[/ucf-news-feed]
.
- Added
-
Bug Fixes:
- Fixed notices that could occur when
UCF_Events_Feed::get_events
returns null when using the modern layout
- Fixed notices that could occur when
-
Enhancements:
- Added new
modern_nodesc
layout, which is identical to the existingmodern
layout but excludes event descriptions.
- Added new
- Enhancements:
- Updated layout hooks to use filters instead of actions. Please note this change is not backward-compatible with layouts registered using hooks provided by older versions of the plugin.
- Bug Fixes:
- Fixed bug in modern layout that could cause broken HTML in event descriptions.
- Bug Fixes:
- Fixed
display_events()
inUCF_Events_Common
not being set as a static method - Updated
UCF_Events_Common::display_events()
to return its output - Added false-y check for
$items
inucf_events_display_classic()
to help prevent looping through non-items.
- Fixed
- Enhancements:
- Added modern layout.
- Bug Fixes:
- Fixed
[ucf-events]
shortcode to return its output instead of echo it; fixes output buffer issues with shortcode contents.
- Fixed
- Bug Fixes:
- Whitelists the hostname from the default
feed_url
option to make surewp_safe_remote_get
does not mark calls to the host as unsafe.
- Whitelists the hostname from the default
- Bug Fixes:
- Updated style enqueue logic to always enqueue, instead of being dependent on the widget or shortcode being on a page.
- Corrected problem with do_action dereferencing arrays with a single index. Account for this dereference in callbacks.
- Initial release
n/a
None
NOTE: this plugin's readme.md file is automatically generated. Please only make modifications to the readme.txt file, and make sure the gulp readme
command has been run before committing readme changes.
- Complete shortcode interface registration (need to complete shortcode wysiwyg interface plugin first)