=== Oxy Toolbox ===
Contributors: Gagan Goraya, Sridhar Katakam
Tags: oxygen, oxygen builder, oxygen editor
Requires at least: 4.9
Tested up to: 5.6
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds several useful and time-saving features for the Oxygen builder.

== Description ==

Current Features:

* Functionality of Oxy Class Act - lets you move or copy the styles associated with id or a class of any element to a new class; lets you reset all the styles for the class/id.
* Functionality of Oxy Cleaner - lets you rename classes and remove unused ones.
* Fullscreen - lets you toggle panels off and on and make code editor panel full width using a hotkey. Detached layout opens the center frame in a new tab/window.
* Oxy Text Edit - adds a text area to view/edit text of Heading and Text components.
* Back To Top - allows users to smoothly scroll back to the top of the page.
* Conditions - adds additional conditions in the Oxygen editor.
* Editor Tweaks
	* Autosave - enables you to automatically press Save in the Oxygen editor and optionally in a smart manner (only when there is no keyboard and mouse activity)
	* Back To WP Additions - adds Templates and Pages menu items under “Back to WP” menu in the Oxygen editor.
	* Compact View For Element Buttons - makes the buttons for adding elements in the left Add+ panel appear in 3 columns instead of the standard 2.
	* Components Panel - adds a panel of Oxygen components which appears when hovered along the top edge of Oxygen editor.
	* CSS Tweaks - adds general CSS fixes for the conditions diaglog on smaller screens, removes the unneeded scrollbars and light gray background for range slider inputs, vertically centers the color picker circle in Firefox etc.
	* Currently Editing - adds the name of current Template or Page or any other kind of entry that is currently being edited to the left of Structure button in Oxygen's editor interface.
	* Dropdowns On Hover - makes Media Query, Manage Menu, Back to WP Menu and Select Box dropdowns to appear on hover.
	* Expanded Oxygen Toolbar Menus - makes the buttons for Settings, Stylesheets, Selectors, Admin and Frontend a single click away.
	* Open Back To WP Menu Links In New Tabs - makes links under Back to WP Menu like Admin and Frontend buttons to open in a new tab.
* Oxygen Navigator - adds useful links in the Toolbar for directly editing Pages and Templates with Oxygen; optionally show the toolbar in the Oxygen editor if you want. Makes direct editing of any Template or Page from anywhere literally a single click away.
* Oxygen Rank Math Integration - includes Oxygen editor content in Rank Math's content analsys.
* Oxygen Yoast Integration - includes Oxygen editor content in Yoast's content analsys.
* Oxygen Essentials - enables HTML5 support for elements like the search form and adds some CSS for making essential changes like making all images responsive and fixing the WordPress Toolbar submenu links not clickable issue with sticky header.
* Add a link to go back to the Templates list screen when editing a Oxygen Template.
JS/jQuery Scripts - registers popular scripts like Flickity, Isotope and Infinite Scroll so you can enqueue them anywhere in Oxygen.
* Remove "Themes" and "Theme Editor" menu items from the Appearance menu in the WP admin.
* Gutenberg - Adds options to disable Gutenberg and to make the Gutenberg editor full width.
* Adds a checkbox to disable Oxygen metabox on post types other than `page` in the plugin settings page.

== Installation ==

1. Click on the download link in your purchase confirmation email if you have not already downloaded it after your purchase.

2. Download the plugin's zip file.

3. Go to Plugins > Add New in your WordPress admin. Click "Add New" button, then "Upload Plugin" button, then "Choose File", browse to and select the plugin's zip file.

4. Activate the plugin.

5. Enter the license key and activate your plugin license at Oxygen > Oxy Toolbox > License.

Valid license key should be entered for the plugin to function and to receive automatic updates.

== Changelog ==

= 1.4.4 ( January 12, 2021 ) =
* [Stylesheets Editor] Fixed backslashes being added when quotes are present in the CSS code.
* [Stylesheets Editor] Height now auto-expands as more code is added.
* [Editor Tweaks] Added "Highlight Active Options" option. Details: https://wpdevdesign.com/anti-ant-mode-for-luci/.
* [Navigator] Added "Advanced Scripts" top-level WP admin bar option.
* [Conditions] Changed "Current CPT Author" condition to "Current Post Author" so it can now be used with not only CPTs but also built-in post types, `page` and `post`.

= 1.4.3 ( December 29, 2020 ) =
* [Navigator] Added granular control with options for enabling/disabling Pages, Posts etc. separately.
* [Navigator] Added "Stylesheets Editor" item under "Oxygen" menu.

= 1.4.2 ( December 20, 2020 ) =
* [Stylesheets Editor] Added new module for managing user stylesheets outside Oxygen editor.

= 1.4.1 ( December 16, 2020 ) =
* [Navigator] Added "Plugins" option for quickly navigating to Installed Plugins, Plugins > Add New, Active, Inactive, Auto-updates Enabled, Auto-updates Disabled, Upload Plugin admin pages from anywhere with links to also open in new tabs for admins.
* [Navigator] Made additions under New option only for admin users.
* [Navigator] Templates and Pages (for directly editing with Oxygen) top-level WP admin bar menu items now appear only for admins.

= 1.4.0 ( December 15, 2020 ) =
* [Rank Math] Fixed Oxygen's shortcodes from appearing in Rank Math's XML sitemaps for images and image captions.
* [General] "Oxy Toolbox" admin menu item no longer appears for "Edit Only" users.
* [Conditions] Added new "Is Archive" and "Post Has Tags" conditions.
* [Editor Tweaks] Added a sub-option for the Components Panel to appear on click instead of on hover.
* [Editor Tweaks] Set "Expanded Oxygen Toolbar Menus" option to work only for non-Edit Only admins.
* [Fullscreen] Fixed the center frame in Oxygen editor getting zoomed in.
* [General] Added "oxy-toolbox-is-active" to Oxygen editor page's body classes list so other Oxygen plugins can target Oxy Toolbox' CSS.
* [Navigator] Made "Oxygen" WP admin bar menu item not appear for Edit Only users, Replaced Role Manager and Post Type Manager menu item links under "Oxygen" with Client Control.

= 1.3.9 ( October 22, 2020 ) =
* Added "Components Panel" option under Editor Tweaks module.
* Added a checkbox to disable Oxygen metabox on post types other than `page` in the plugin settings page.
* Added "Small to Large" suboption under Editor Tweaks > Media Query Buttons.
* Moved Autosave option of the Undo module into Editor Tweaks.
* Removed Undo module.
* Added Tab as a hotkey option in Fullscreen module.

= 1.3.8 ( September 10, 2020 ) =
* Added a new "WordPress" module.
** Disable Admin Email Check
** Disable Auto-update UI Elements
** Disable Auto-update Emails
** Disable Core Sitemaps
** Disable Sitemap Generation for Oxygen Templates
** Disable XML-RPC
** Disable Year Month Folders for Uploads
** Remove Help
** Remove Screen Options
* [Gutenberg] Added new options.
** Disable Editor Fullscreen by Default
** Disable NUX
** Disable Welcome Guide
* [Editor Tweaks] Reversed the order of Media Query Buttons so the breakpoints appear larger to smaller from left to right.
* [Fullscreen] Fixed KeyLoaded is not defined Uncaught ReferenceError.
* Added expand-collapse functionality in the plugin's settings page with the modules collapsed by default.

= 1.3.7 ( August 28, 2020 ) =
* Added Revisions module.
* [Conditions] Replaced `wp_get_referer` with `wp_get_raw_referer` for improved referer detection.

= 1.3.6 ( August 21, 2020 ) =
* [Conditions] Added HTTP Referer condition. Allows you to conditionally output elements depending on whether the provided string is present in or not present in or is exactly equal to the referring page URL. Documentation: https://oxyplugins.com/doc/conditions/#HTTPReferer.
* [Scripts] Updated Splide's files to 2.4.11.

= 1.3.5 ( August 18, 2020 ) =
* [Conditions] Product selection dropdown has been changed to a text input for entering the product ID in "Has Product in Cart" and "Has Purchased Product" conditions to avoid performance issues on sites with a large number of products.

= 1.3.4 ( August 12, 2020 ) =
* [Fullscreen] Fixed "ReferenceError: keyLoaded is not defined.."

= 1.3.3 ( August 12, 2020 ) =
* Added a new module: Fullscreen. Documentation: https://oxyplugins.com/doc/fullscreen/.
* Added a new module: Move Oxygen Admin Menu Up. Documentation: https://oxyplugins.com/doc/move-oxygen-admin-menu-up/.

= 1.3.2 ( August 05, 2020 ) =
* [Navigator] Added the missing "Edit Post", "Edit Page", "Edit <CPT>" etc. in the WP toolbar.
* [Navigator] Fixed the CSS loading on the front end even when the admin bar is not showing.
* [Conditions] Fixed these WooCommerce conditions so they only work with published products: Selected Tag has at least One Product, Selected Category has at least One Product.
* [Conditions] Moved these WooCommerce conditions in the conditions dialog from "Woo Product" category to "WooCommerce": Selected Tag has at least One Product, Selected Category has at least One Product, At least One Featured Product, At least One Product on Sale. These conditions can be used on any page. If you are currently using one of these conditions, you will need to delete it and re-add.
* [Conditions] Fixed warnings related to "Invalid argument supplied for foreach()...Cannot modify header information - headers already sent" in the WLM membership(s) code.

= 1.3.1 ( July 17, 2020 ) =
* [Gutenberg] Moved "Disable Gutenberg" as an option under a new "Gutenberg" module and added another option, "Full Width Editor".
* [Back To Top] Fixed Back To Top button not appearing when NextGen Gallery is active.

= 1.3 ( July 14, 2020 ) =
* [Conditions] Fixed Mobile Detect conditions.
* [Navigator] Edit Page, Edit Post and Edit Product admin bar links now appear only on relevant views.
* [Navigator] Fixed frontend links to view the Pages and Posts. All of them were linking to the homepage earlier.

= 1.2.9 ( July 10, 2020 ) =
* [Conditions] Added "Is Affiliate (AffiliateWP)" condition.
* [Navigator] Fixed misalignment of panels in the Oxygen editor due to a bug in v1.2.8.

= 1.2.8 ( July 09, 2020 ) =
* Fixed settings export not including the nested options.
* [Table of Contents] Wrapped the button element and div.toc-list in div.oxy-toc in the TOC HTML output.
* [Navigator] Fixed edit post link missing for user roles according to their permissions.
* [Navigator] Changed WP_Query to direct SQL query for the page/posts/templates listings in the WP admin bar for better performance.
* Added function exists checks for oxygen_vsb_register_condition to prevent fatal error when Oxygen is deactivated.
* Added function exists check for is_oxygen_edit_post_locked() to prevent fatal error with older versions of Oxygen.

= 1.2.7 ( June 13, 2020 ) =
* Added the ability to save/export/import plugin's settings.
* Fixed the URL for Isotope script.
* Added Headroom script.
* Updated Splide script.

= 1.2.6 ( June 13, 2020 ) =
* Added a new module: Image Width and Height Size Attributes.

= 1.2.5 ( June 12, 2020 ) =
* Fixed license activation/deactivation issue especially after site has been migrated to a new location.
* Fixed "At least One Product on Sale" condition.

= 1.2.4 ( June 09, 2020 ) =
* Added these WooCommerce conditions:
** Selected Tag has at least One Product
** Selected Category has at least One Product
** At least One Featured Product
** At least One Product on Sale

= 1.2.3 ( June 08, 2020 ) =
* Fixed fatal error on sites where WooCommerce is not active.
* Masked the license key with dots.

= 1.2.2 ( June 07, 2020 ) =
* Fixed Mobile Detect conditions.
* Added WooCommerce conditions. Details: https://oxyplugins.com/doc/conditions/#WooCommerce.
* Added links to OxyExtras' settings page (same and new tab) under Navigator's Oxygen admin bar menu item.

= 1.2.1 (June 04, 2020) =

* Improved Rank Math module to have Rank Math detect images from Oxygen in its XML sitemaps under the Images column.
* Fixed the width of toolbar menu when "Expanded Oxygen Toolbar Menus" editor tweak is enabled.

= 1.2 ( June 01, 2020 ) =
* Removed the visibility of License Key from the plugin's settings page after the plugin has been licensed. Changed the 2-step process of saving + activating/deactivating to a single step.
* Added "Wider Library Flyout Panel" editor tweak.
* Moved Oxygen's "Edit with Oxygen" or "Edit <Template>" under the Navigator's Oxygen admin bar menu.
* Fixed Collapse Editor button not appearing when editing a Stylesheet.
* Fixed custom TOC title not appearing.
* Fixed the CSS of "Expanded Oxygen Toolbar Menus" in preparation for Oxygen 3.4.
* Removed the "Remove default padding, default margin and list styles on ul, ol elements with a class attribute" CSS code in Essentials.

= 1.1.9 ( May 27, 2020 ) =
* Major overhaul of Navigator module
** added support for editing and viewing Pages and Posts.
** added links to open in new tab for Templates and Pages.
** added "Show ACF Field Groups" option.
** added "Show Fluent Forms' Forms" option.
** added "Show WooCommerce Products" option.
** added "New" Admin Bar Menu Additions option which adds links to new ACF Field Group, Code Snippet, Fluent Forms form, Reusable under "New" menu item.

Credit: inspired by Admin Page Spider plugin.

= 1.1.8 ( May 24, 2020 ) =
* Improved Rank Math module to include the parent Oxygen Template (if a Template has been selected in the RENDER PAGE USING TEMPLATE dropdown) in Rank Math's content analysis.
* Fixed media query buttons appearing vertically on hover when Dropdowns On Hover option is enabled.
* Added blue underline for the active media query button when Dropdowns On Hover option is enabled.
* Replaced system font with Source Sans Pro in Offline Mode module.
* Changed display of label from inline-block to inline in the Essentials module.

= 1.1.7 ( May 23, 2020 ) =
* Fixed remove media styles button not being easily clickable when "Media Query Buttons" editor tweak is enabled.

= 1.1.6 ( May 23, 2020 ) =
* Added "Offline Mode" module. Credit: Supa Mike and David Browne.
* Added "Media Query Buttons" editor tweak. Credit: Yan Fodé Kiara.
* Added "CSS Tweaks" editor tweak.
* Added "Remove min-width and min-height for empty Divs" editor tweak.
* Added Splide script.
* Changed display of label to inline-block from block in Essentials.

= 1.1.5 ( May 18, 2020 ) =
* Added Body Class condition.
* Added Browser Detect condition.
* Made the Text Edit module's textarea resizable with a min-height of 15vh.
* Added != operator for the "Author has CPT entry" condition.

= 1.1.4 ( May 16, 2020 ) =
* Fixed an issue with adding library elements in the Undo module.

= 1.1.3 ( May 15, 2020 ) =
* Added the following Conditions:
** Archive Type
** MemberPress Membership
** RCP Membership
** Referrer URL Parameter
** Language
* Fixed undefined index notice issue introduced from the recently added success message upon saving plugin's settings.

= 1.1.2 ( May 13, 2020 ) =
* Added Conditions module with several conditions. More to follow.

= 1.1.1 ( May 12, 2020 ) =
* Added an option to disable keyboard shortcuts in the Undo module.
* Added "Oxy Toolbox settings have been saved." success message after pressing the Save Changes button on the plugin's settings page.

= 1.1 ( May 11, 2020 ) =
* Disabled undo and redo in the class name fields and fixed error upon undoing/redoing after adding a class name.

= 1.0.9 ( May 11, 2020 ) =
* Added Disable Gutenberg module.

= 1.0.8 ( May 10, 2020 ) =
* Added Table of Contents module.
* Added a link to the Feature requests Trello board in the plugin's settings page.

= 1.0.7 ( May 08, 2020 ) =
* Added Reading Progress Bar module.
* Excluded styling of lists in Gutenberg from being reset. Thanks Yan Fodé Kiara.
* Fixed styling in Navigator module to make the ruler in Oxygen editor visible again.
* Added links to changelog, Facebook group and Support on the plugin's settings page.

= 1.0.6 ( May 07, 2020 ) =
* Fixed the size of Oxygen icons appearing larger than they should be in the WP Toolbar on admin pages when certain plugins like Gravity Forms/MailPoet and Navigator are enabled.
* Fixed Repeater components vanishing on clearing styles with Class Act module.
* Removed antialiased font smoothing for body tag from the Essentials module. Ref.: https://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/, https://responsivedesign.is/articles/font-smoothing/.
* Removed "text-rendering: optimizeSpeed" for body tag from the Essentials module. Ref.: https://bocoup.com/blog/text-rendering.

= 1.0.5 ( May 06, 2020 ) =
* Added link to the settings page in the plugins list admin page.
* Replaced base64 string for Oxygen icons with png in the WP Toolbar when Navigator is enabled.

= 1.0.4 ( May 05, 2020 ) =
* Added a new module: Open External Links In A New Tab
* Fixed undefined variable PHP notices.
* Got rid of CSS for removing all animations and transitions for people that prefer not to see them via prefers-reduced-motion. This is apparently causing issues with Animate on Scroll and other needed animations.

= 1.0.3 ( May 04, 2020 ) =
* Fixed Templates and Pages links under Back To WP Additions not linking to the correct URLs for sites on subdomains.
* Fixed items in the Previewing dropdown not being reachable on hover with "Dropdowns On Hover" enabled.

= 1.0.2 ( May 04, 2020 ) =
* Fixed unwanted space at the top coming from enabling WP Toolbar in the Oxygen editor via Navigator module.
* Fixed back to top button not being clickable reliably in the Oxygen editor.

= 1.0.1 ( May 03, 2020 ) =
* License check deactivation to make the plugin work temporarily.

= 1.0 ( May 03, 2020 ) =
* Initial Release.