Widget Announcements
Developed by azurecurve
Plugin Description
Announce holidays, events, achievements, etc. in a widget.
Announce holidays, events, achievements and notable historical figures in a widget.
Announcements can be made:
- One off
- Monthly
- Annually
- Good Friday
- Easter Sunday
- Easter Monday
- Monthly on the nth day (e.g. 2nd Wednesday)
- Annually on the nth day of the month (e.g. 4th Thursday November)
Announcements are created as a custom post type and can have details, an image and additional text after the image.
- Download the latest release of the plugin from GitHub.
- Upload the entire zip file using the Plugins upload function in your ClassicPress admin panel.
- Activate the plugin.
- Configure relevant settings via the settings page in the admin control panel (azurecurve menu).
== Screenshots ==
- Create new announcement in the custom post type.
- Add widget to widget area and select category.
- Widget displayed on front end when announcement meets date criteria.
Yes, the .pot file is in the plugins languages folder; if you do translate this plugin, please sent the .po and .mo files to [email protected] for inclusion in the next version (full credit will be given).
This plugin is developed for ClassicPress, but will likely work on WordPress.
- Update to correct versioning problem.
- Update azurecurve menu.
- Upgrade UpdateClient.
- Update azurecurve plugins list.
- Replace jquery with vanilla js.
- Correct headings on settings admin pages.
- Correct constants to match standard pattern.
- Remove To Twitter (azrcrv-tt) integration, including autopost/tweet/retweet metaboxes, settings tab, cron scheduling and related functions.
- Update settings tabs and css to format th elements correctly.
- Update description and list of plugins.
- Modernise plugin to follow current azurecurve code patterns.
- Introduce
namespace azurecurveWidgetAnnouncementsacross all PHP files. - Add plugin identity constants (
PLUGIN_NAME,PLUGIN_SLUG,PLUGIN_HYPHEN,PLUGIN_UNDERSCORE,PLUGIN_FILE,DEVELOPER_*). - Refactor monolithic plugin file into focused
includes/files:setup.php,functions-settings.php,functions-styles.php,functions-scripts.php,functions-menu.php,functions-language.php,functions-plugin-images.php,functions-custom-post-type.php,functions-metaboxes.php,functions-cron.php,functions-twitter.php,functions-widget.php. - Consolidate all
add_actionandadd_filtercalls intoincludes/setup.php. - Replace
pluginmenu/directory with standardincludes/azurecurve-menu-populate.phpandincludes/azurecurve-menu-display.php. - Move
logo.svgand all assets intoassets/directory; renamestyle.csstostyles.css. - Add
assets/css/admin-standard.cssandassets/css/admin-pluginmenu.css. - Update text domain from
widget-announcements/widget-announcementto consistentazrcrv-wa. - Update
Domain Pathto/assets/languages. - Replace
wp_redirect()withwp_safe_redirect()in settings save function. - Fix undefined variable
$post_IDbug in repeat announcement metabox save (was$post_id). - Remove custom
azrcrv_wa_is_plugin_active()reimplementation; use WordPress coreis_plugin_active()directly. - Remove
extract()from widget display method; replace with explicit variable assignments. - Replace timezone-unaware
date()calls withcurrent_time()in cron and widget date matching. - Replace plugin image path filter to use constant-based approach instead of
strpos()matching. - Move inline
style=""attributes from metabox render functions intoassets/css/admin.css. - Remove redundant activation hook cron scheduling; cron lifecycle managed entirely from settings save.
- Fix escaping throughout:
esc_attr()on time input values,esc_html()on page title output,esc_url()on all URL outputs. - Fix settings page submit button PHP short tag inside string literal.
- Standardise all comparisons to strict equality (
===); use(int)casting consistently. - Convert all files from Windows CRLF to Unix LF line endings.
- Refactor settings page to use standard azurecurve tab pattern; replace custom CSS tab toggle logic with server-side tab visibility.
- Rename
WP_Widgetsubclass fromazrcrv_wa_register_widgetto namespacedAnnouncements_Widget. - Increase required version of PHP to 8.2.
- Update plugin header for compatibility with ClasssicPress v2.
- Update plugin header and readme for compatibility with ClassicPress Directory v2.
- Update Update Manager to version 2.5.0.
- Update readme file for compatibility with ClassicPress Directory.
- Update readme files.
- Update language template.
- Fix bug with azurecurve menu.
- Update azurecurve menu.
- Update readme files.
- Remove dev code.
- Update translations to escape strings.
- Update azurecurve menu and logo.
- Refactor settings page to be accessible using jQuery UI Tabs.
- Add integration with Toggle Show/Hide from azurecurve for read more toggle in announcements.
- Add uninstall function.
- Refactor settings page.
- Compress banners, icons and screenshots.
- Fix To Twitter integration check.
- Remove extraneous code.
- Fix incorrect default options.
- Fix bug with To Twitter checked.
- Add integration with To Twitter from azurecurve for automatic tweeting and retweeting of announcements.
- Fix bug with population of default options.
- Fix incorrect Download link.
- Update handling of announcement image in widget.
- Add default size for announcement image in widget.
- Fix bug with excerpt label changing for all post types, not just the custom post type.
- Initial release.
azurecurve was one of the first plugin developers to start developing for ClassicPress; all plugins are available from azurecurve Development and are integrated with the Update Manager plugin for fully integrated, no hassle, updates.
The plugins available from azurecurve are:
- Add Open Graph Tags – details / download
- Add Twitter Cards – details / download
- Avatars – details / download
- BBCode – details / download
- Breadcrumbs – details / download
- Broken Links – details / download
- Call-out Boxes – details / download
- Chroma – details / download
- Code – details / download
- Comment Validator – details / download
- Conditional Links – details / download
- Contact Forms – details / download
- Disable FLoC – details / download
- Display After Post Content – details / download
- Estimated Read Time – details / download
- Events – details / download
- Feed to Post – details / download
- Filtered Categories – details / download
- Flags – details / download
- Floating Featured Image – details / download
- Get GitHub File – details / download
- Icons – details / download
- Image Optimiser – details / download
- Images – details / download
- Insult Generator – details / download
- Load Admin CSS – details / download
- Loop Injection – details / download
- Lorem Ipsum Generator – details / download
- Maintenance Mode – details / download
- Markdown – details / download
- Nearby – details / download
- Page Index – details / download
- Post Archive – details / download
- Quiz Engine – details / download
- Read GitHub File – details / download
- Redirect – details / download
- Remove Revisions – details / download
- RSS Feed – details / download
- RSS Suffix – details / download
- Series Index – details / download
- Shortcodes in Comments – details / download
- Shortcodes in Widgets – details / download
- SMTP – details / download
- Snippets – details / download
- String Inspector – details / download
- Strong Password Generator – details / download
- Tag Cloud – details / download
- Taxonomy Index – details / download
- Taxonomy Order – details / download
- Theme Switcher – details / download
- Timelines – details / download
- Toggle Show/Hide – details / download
- Update Admin Menu – details / download
- URL Shortener – details / download
- Username Protection – details / download
- View Counter – details / download
- Widget Announcements – details / download