-
-
Notifications
You must be signed in to change notification settings - Fork 4
Changelog
Jory Hogeveen edited this page Feb 21, 2024
·
16 revisions
- Hotfix: Security fix (contributor+ users only).
Detailed info: PR on GitHub
- Fix: Incomplete merge of JS code.
- Enhancement: Link close option is now opt-in.
Detailed info: PR on GitHub
-
New: Filter
ocs_enable_frontend
, modify enable frontend setting. -
New: Filter
ocs_enable_assets
, can be used to disable frontend assets. #114 -
New: Filter
ocs_inline_styles
, modify the plugin inline styles. - Enhancement: Improve init handler for frontend.
- Enhancement: Changed the default hooks for easier onboarding as the WP core hooks are now supported by most themes.
- Enhancement: Improve adding inline styles.
-
Enhancement: Add
rel="nofollow"
XFN attribute to link type element triggers. #116 - Fix: JS multiple events as string param.
Detailed info: PR on GitHub
- Fix: Class concatenation bug. #104 (Props: Samuele Mancuso)
Detailed info: PR on GitHub
- Enhancement: Improved compatibility with the toolbar and fixed elements (legacy CSS mode).
- Enhancement: Update to data attributes.
-
Enhancement: New filter
ocs_sidebar_attributes
. -
Enhancement: New filter
ocs_sidebar_element
. - Enhancement: Added event action manager.
- Enhancement: Do not add the same triggers again on reinit.
- Enhancement: Load widget admin assets in site head instead of each widget separately.
- UI Use WP meta box functions for setting pages to enhance UI compatibility.
- Fix: Set slidebars script to plugin version to prevent browser cache issues.
Detailed info: PR on GitHub
- Feature: Overwrite hook priority within the plugin settings.
- Feature: Basic theme hook setup validator. #95
- Enhancement: Reorder settings page fields.
- Enhancement: Improve Slidebars init and allow reinit.
-
Enhancement: Added
ocs_default_settings
andocs_default_sidebar_settings
filters. - Fix: Make sure sidebars correctly overwrite global settings. #91
- Fix: Escape all translated strings for HTML.
-
Fix: Add
rel="noopener noreferrer"
to all links that open in a new tab.
Detailed info: PR on GitHub
-
Compatibility: Changed the CSS to be compatible with
position: sticky;
elements. #83 -
Compatibility: Fix default before and after widget args. Widget element changed to
<div>
instead of<li>
. #88 - Enhancement: Late init option. #81
- Enhancement: Allow minimum value of 0 for numeric settings.
- Fix: Gutenberg notice that OCS couldn't be initialized.
- UI: Rename control elements to triggers (uniform names).
Detailed info: PR on GitHub
-
Compatibility: Support
wp_body_open
aswebsite_before
hook introduced in WordPress 5.2. #70 -
Enhancement: Allow Genesis Framework hooks to be overwritten in respect for
wp_body_open
. -
Enhancement: Use CSS
vh
unit for canvas container min-height instead of JavaScript. - Enhancement: Better use of WP core UI elements.
- Enhancement: Code quality improvements.
Detailed info: PR on GitHub
- Enhancement: Don't render triggers of disabled sidebars if auto-hide is enabled. #56
-
Enhancement: Support
wp_footer
aswebsite_after
hook. (Not compatible with all themes!) -
Enhancement: Filters to overwrite
website_before
andwebsite_after
hook priorities. - Enhancement: Do not render inactive trigger buttons if auto-hide is enabled.
Detailed info: PR on GitHub
-
Feature: New filter:
ocs_is_sidebar_enabled
to filter whether a sidebar should be rendered or not. - Enhancement/Refactoring: Class autoloader.
- Fix: Bug with creating sidebars on a new installation. #52
- Enhancement/Refactoring: Control trigger rendering.
Detailed info: PR on GitHub
- Feature: Make closing the slidebar after clicking a link an option. #47 & #48
- Feature: Add icon options in control trigger API and shortcode.
- Feature: Enhance widget UI with advanced options for control triggers. #27
- Enhancement: Setting page JS and UI enhancements.
- Enhancement: Use data attributes to conform W3C HTML5 specifications. #50
- Enhancement: Add support links on plugins overview page.
- Refactoring: Separate classes for tabs, page and settings/validation. Enhances plugin option validation. #38
- Refactoring: Global OCS_DOMAIN constant.
- Updated/Added: Screenshots.
Detailed info: PR on GitHub
- Enhancement: Keep scrollbar visible when scroll lock is active. #44 & PR #45
- Enhancement: (Slidebars library) Make sure that percentage based widths are rounded to actual pixels to prevent 1px differences on display.
-
Fix: PHP Notice on
fixed_elements
key. - Compatibility: Tested with WordPress 4.9
Detailed info: PR on GitHub
- Fix: Loading the correct menu in an off-canvas sidebar was not working correctly. #37
- Fix: Scroll lock feature with CSS instead of JavaScript. #39
- Enhancement: Add active sidebar ID to the html element classes. #41
Detailed info: PR on GitHub
-
Feature:
[ocs_trigger]
shortcode to display trigger buttons/elements anywhere you like, click here for documentation. #24- Shortcode generator available in the settings page.
- Integrate a shortcode generator with the WP Editor. #32
- Enhancement: New "Legacy CSS" mode. Modified the Slidebars library to support older CSS2 animations. Can fix a lot of issues with fixed elements. #26
- Compatibility: Modified the default Slidebars CSS to support anchor links and common smooth scroll implementations.
- Compatibility: Some enhancements for compatibility with the WP Admin Bar.
- UI: Improve widget UI #27
- Fix: Enhance the codebase to be more aligned with the WP coding standards with CodeClimate.
Detailed info: PR on GitHub
- Fix: Settings page checkbox bug when saving
- Feature: Allow changing this plugin capability to show the settings page
- Fix: Update fixed element compat for the new Slidebars version (still experimental, Slidebars still doesn't fully support fixed elements within the site container)
- Fix: Don't echo empty sidebar CSS selectors if no styles are set
-
UI: Set
.ocs-button
tocursor: pointer;
by default - Update textdomain hook
Detailed info: PR on GitHub
- Feature: Allow sidebars to overwrite some general settings
- Feature: Option to set padding to sidebars
- Feature: Option to choose other content types than only a WP sidebar for an off-canvas sidebar
-
Feature: Option to set your own CSS prefix (some classes are fixes to
ocs
and can't be changed, the prefixocs
is also the default prefix for new installations) - Feature: Added various actions, filters and JS hooks - Click here for info
- Feature: OCS API functions to output off canvas sidebars in your theme instead of using this plugin frontend functions - Click here for info
- Fix: Sidebar ID validation wasn't correct
Detailed info: PR on GitHub
- Feature: Option to set the animation speed for sidebars
- Feature: Option to use the FastClick library - Click here for info
- Fix: Disabling sidebars on global settings page didn't work
- Fix: Add touch events for iOS mobile device compatibility
- Enhancement: Added some actions for front-end (see Other Notes)
- Fix: Global variable bug
- UI: Improve settings page
- Update Slidebars plugin to v2.0.2: click here for info
- Feature: An unlimited amount of off-canvas sidebars (No longer just one left, one right)
- Feature: 2 new locations (top and bottom)
- Feature: 2 new effects (reveal and shift)
- UI: Improved settings pages
- I18n: Translations are now managed at translate.wordpress.org
- Screenshots updated
- Tested with WordPress 4.6
-
Feature: First experiment for compatibility with fixed elements within the site container with the use of
transform: translateZ
(needed for-webkit-
and-moz-
only). See problem here - Improvement: Usage of a single instance of the class
- Feature: Added the option to change the website_before and website_after hook names
Created from nothingness just to be one of the cool kids. Yay!