Widget Announcements

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.

Installation

  • 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 ==

  1. Create new announcement in the custom post type.
  2. Add widget to widget area and select category.
  3. Widget displayed on front end when announcement meets date criteria.

Frequently Asked Questions

Can I translate this plugin?

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).

Is this plugin compatible with both WordPress and ClassicPress?

This plugin is developed for ClassicPress, but will likely work on WordPress.

Changelog

  • 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 azurecurveWidgetAnnouncements across 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_action and add_filter calls into includes/setup.php.
  • Replace pluginmenu/ directory with standard includes/azurecurve-menu-populate.php and includes/azurecurve-menu-display.php.
  • Move logo.svg and all assets into assets/ directory; rename style.css to styles.css.
  • Add assets/css/admin-standard.css and assets/css/admin-pluginmenu.css.
  • Update text domain from widget-announcements / widget-announcement to consistent azrcrv-wa.
  • Update Domain Path to /assets/languages.
  • Replace wp_redirect() with wp_safe_redirect() in settings save function.
  • Fix undefined variable $post_ID bug in repeat announcement metabox save (was $post_id).
  • Remove custom azrcrv_wa_is_plugin_active() reimplementation; use WordPress core is_plugin_active() directly.
  • Remove extract() from widget display method; replace with explicit variable assignments.
  • Replace timezone-unaware date() calls with current_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 into assets/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_Widget subclass from azrcrv_wa_register_widget to namespaced Announcements_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.

Other Notes

About azurecurve

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: