<?xml version="1.0" encoding="UTF-8"?>
<changelogs>
    <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.6</version>
    <security>
      <item>Colours, text alignment, sizes and analytics IDs are validated before being printed into inline CSS/JS; inline CSS can no longer close its style tag; Theme Editor escapes theme names and preview CSS.</item>
    </security>
    <fix>
      <item>Fixed Error 500 "Error decoding JSON data: Control character error" on pages showing the bar and on the module edit screen.</item>
      <item>Install/update repairs every Header Notification Bar module whose settings contain raw line breaks or invalid UTF-8; originals are kept in administrator/logs/mod_header_bar-params-backup.php. Unrepairable settings are reset and the module is unpublished with a notice.</item>
      <item>The module reads damaged settings safely instead of failing the page.</item>
    </fix>
    <change>
      <item>Message, B Message, Extra CSS, Custom JavaScript and Custom Analytics Code are normalised on save (line endings, control characters, invalid UTF-8).</item>
      <item>Theme Editor no longer writes files while the form loads; inline admin CSS/JS uses the Web Asset Manager (no deprecated Document calls).</item>
      <item>Test Mode now defaults to OFF for new modules so close/dismiss is remembered.</item>
      <item>Requires Joomla 4.4+ and PHP 8.1+ (checked on install).</item>
    </change>
  </changelog>
    <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.5</version>
    <addition>
      <item>Download Key support on the update site (dlid).</item>
    </addition>
  </changelog>
<changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.4</version>
    <change>
      <item>Runs on Joomla 5 and 6 with Behaviour Backward Compatibility disabled</item>
      <item>Styles, the theme editor script, Google Fonts, and the analytics script load through the Web Asset Manager</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.3</version>
    <fix>
      <item>Bug Fix: Theme Editor CSS is sanitized on save so module parameters stay valid JSON. Line breaks in custom theme CSS can no longer produce a site error when the module loads.</item>
    </fix>
    <change>
      <item>Safer Theme Editor field filter for Joomla admin saves: control characters are stripped, line endings are normalized, and invalid UTF-8 is ignored.</item>
      <item>Single package for Joomla 4, 5, and 6: mod_header_bar_3.3.zip.</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.2</version>
    <fix>
      <item>Bar stays hidden in the module slot, then portals to document.body so fixed header/footer positioning is correct from first paint</item>
      <item>Same behaviour for Fixed Header, Fixed Footer, and Header Pushed positions</item>
    </fix>
    <change>
      <item>Frontend rebuilt with vanilla JavaScript and CSS: no jQuery and no jquery-cookie on the site</item>
      <item>Dismiss memory still uses header_cookie_{id} via native document.cookie (cookie or session)</item>
      <item>Show, hide, scroll appear, countdown, coupon copy, auto-dismiss, body offset, and analytics hooks run through JxHeaderBar</item>
      <item>Single package for Joomla 4, 5, and 6: mod_header_bar_3.2.zip</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.1</version>
    <change>
      <item>Major Update: Flash-sale toolkit and modern Joomla architecture Countdown timer with optional hide-on-expire</item>
      <item>One-click coupon code copy chip</item>
      <item>Floating/inset layout with body offset support</item>
      <item>Icons, badges, secondary link, and auto-dismiss progress bar</item>
      <item>Device targeting and A/B testing (message/button/theme/coupon variants)</item>
      <item>GA4 / gtag, GTM, legacy UA, and custom analytics events (view, click, close, coupon)</item>
      <item>UX: Compacted module parameters into General, Content, Style, Targeting, and Advanced tabs</item>
      <item>Cleanup: Removed redundant Language / Menu / User Group parameter duplicates in favour of core Joomla assignment, Access, and Language fields</item>
      <item>Technical: Joomla 5-style services provider, namespaced Dispatcher/Helpers/Fields, WebAssetManager assets under assets/</item>
      <item>UI: Refreshed typography field (inline size/unit controls) and modernised frontend bar CSS/themes</item>
      <item>Compatibility: Joomla 4.x, 5.x, and 6.x</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>3.0</version>
    <change>
      <item>Compatible with Joomla 6</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.9</version>
    <addition>
      <item>Implemented comprehensive typography controls with Google Fonts integration</item>
      <item>Added AJAX loading option for better performance</item>
      <item>Added ModHeaderBarFields helper class for advanced styling processing</item>
    </addition>
    <change>
      <item>Major Update: Complete redesign with 50+ predefined themes and advanced customization options Added theme selector with live theme editor and CSS customization</item>
      <item>Created custom styling mode with improved flexibility and control</item>
      <item>New Features: Added several powerful capabilities to enhance notification functionality Scheduling system for date and time-based notification display</item>
      <item>User group targeting to show different messages to different user groups</item>
      <item>Animation effects including fade, slide, and bounce with customizable timing</item>
      <item>Google Analytics and Tag Manager integration for conversion tracking</item>
      <item>Enhancement: Improved mobile responsiveness and user experience Redesigned layout with proper mobile-first approach</item>
      <item>Improved button styling and positioning</item>
      <item>Technical: Updated codebase and structure Removed support for Joomla 3.x - now compatible only with Joomla 4.x and 5.x</item>
      <item>Reorganized file structure with new helpers and field types</item>
      <item>Documentation: Completely revised documentation with comprehensive guidance on all new features</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.8</version>
    <fix>
      <item>Fix: Ensured compatibility with both Joomla 3.x and Joomla 4.x by updating relevant code sections for each version.</item>
    </fix>
    <addition>
      <item>New Feature: Added the ability to specify the distance of the notification bar from the top or bottom of the page. New configuration fields distanceFromTop and distanceFromBottom added to the module settings.</item>
      <item>Documentation: Updated module documentation to reflect the new feature and provide guidance on how to use the new settings.</item>
    </addition>
    <change>
      <item>Updated module PHP file to apply the new distance settings dynamically.</item>
      <item>Modified the template file to include the new styles for top and bottom distances.</item>
      <item>Enhancement: Improved styling flexibility by allowing users to control the position of the notification bar more precisely.</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.7</version>
    <change>
      <item>Supports Joomla 5</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.6</version>
    <addition>
      <item>Added an option to add extra css class to the header button.</item>
    </addition>
    <change>
      <item>Single file installation for both Joomla 3 and Joomla 4</item>
    </change>
    <remove>
      <item>Removed jQuery load on body. Default : Head</item>
    </remove>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.5</version>
    <change>
      <item>Supports PHP version 8</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.4</version>
    <change>
      <item>Supports Joomla 4 Alpha and Beta</item>
      <item>Changes to Joomla Module Parameters.</item>
      <item>Code Optimization</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.3</version>
    <change>
      <item>Option to add button into the notification bar</item>
      <item>Parameters to open the link in new/same tab.</item>
      <item>Option to set the text color, background color and hover color of the button.</item>
      <item>Option set font size and border radius of the button in the styling settings tab.</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.2</version>
    <change>
      <item>Notification Bar Style Parameters added. You can set to flat or shadow</item>
      <item>Opacity of the notification bar has been removed and merged with Background color bar where the color of the background can be set with opacity.</item>
      <item>Option to add spacing around the bar. Bar Padding Parameters has been added.</item>
      <item>Option to show or hide the close button parameters has been added.</item>
      <item>The helper file has been removed. The size of the package has now been reduced.</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.1</version>
    <fix>
      <item>Fixed Scroll Issue of Header Bar</item>
    </fix>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>2.0</version>
    <change>
      <item>Header Pushed Option added to Notification Position</item>
      <item>Extra CSS Parameter Added</item>
      <item>Option to change the font family and use Google Fonts</item>
      <item>Backend made easier and simpler</item>
      <item>Joomla Update System Integrated</item>
    </change>
  </changelog>
  <changelog>
    <element>mod_header_bar</element>
    <type>module</type>
    <version>1.7</version>
    <change>
      <item>Support Multiple Instance</item>
      <item>CSS and JS modification</item>
    </change>
  </changelog>
</changelogs>
