=== CatBar — Collapsible Admin Top Bar ===
Contributors: winner1
Tags: admin menu, admin bar, horizontal menu, productivity, responsive
Requires at least: 5.2
Tested up to: 6.9
Stable tag: 1.10
Requires PHP: 7.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Move the WordPress admin menu from the sidebar to a compact collapsible horizontal top bar — more screen space, same navigation.

== Description ==

**CatBar** replaces the default vertical WordPress admin sidebar with a sleek collapsible horizontal bar at the top of the screen, freeing up valuable content space without losing any navigation.

= Free Features =

* Converts the vertical admin sidebar into a collapsible horizontal top bar
* Hamburger icon in the admin toolbar opens and closes the menu
* Fully responsive — works on desktop, tablet, and mobile
* Works on both the WordPress admin backend and the frontend admin bar (for logged-in users)
* Lightweight — pure CSS/JS, no jQuery dependency

= How It Works =

1. After activation, the standard left-side admin menu moves to a collapsible horizontal bar beneath the admin toolbar.
2. Click the hamburger icon (&#9776;) in the admin bar to open or close the menu.
3. Click **Close menu** inside the panel to collapse it.

= Pro Version =

**[CatBar Pro](https://increaseprofit.info/cat/)** adds:

* Personal icon shortcut buttons in the admin bar — each user configures their own set
* Choose from hundreds of icons (IcoFont icon library)
* Colour-pick any icon to match your workflow
* Removes the "Howdy," greeting from the admin bar
* Buttons saved independently per WordPress user

== Installation ==

1. Upload the `catbar` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. The admin menu moves to the horizontal top bar immediately after activation.
4. Click the hamburger icon (&#9776;) in the admin bar to toggle the menu open or closed.

== Frequently Asked Questions ==

= Does this affect the public-facing frontend of my site? =

No. The plugin only modifies the WordPress admin bar, which is visible to logged-in users only. Regular visitors see no difference.

= Will it work with my theme? =

Yes. The plugin modifies the WordPress admin bar and admin menu, which are controlled by WordPress core, not by the active theme.

= Is this compatible with WooCommerce? =

Yes. The plugin includes specific layout adjustments for WooCommerce admin pages.

= Does the plugin store any data? =

The free version does not store any site data. If you use the Pro add-on, each user's icon shortcuts are stored in WordPress user meta and are removed when the plugin is uninstalled.

= How do I get the icon shortcut buttons? =

Icon shortcut buttons in the admin bar are a feature of **CatBar Pro**. [Learn more](https://increaseprofit.info/cat/).

== Screenshots ==

1. Horizontal admin menu bar — desktop view
2. Hamburger icon opens the full navigation panel
3. Mobile view with collapsible full-screen menu
4. (Pro) Personal icon shortcut buttons in the admin bar
5. (Pro) Icon picker with color customization

== Changelog ==

= 1.10 =
* Security: nonce verification added to all AJAX handlers
* Security: `current_user_can()` checks added to all admin-only AJAX endpoints
* Fixed: JS global variable renamed to `catbar` to avoid conflicts
* Fixed: hardcoded plugin path replaced with `CATBAR_URL` / `CATBAR_PATH` constants
* Fixed: frontend scripts and styles now load only when admin bar is visible
* Fixed: separate asset handles for admin and frontend contexts
* Fixed: constants renamed to use unique `CATBAR_` prefix
* Added: `CATBAR_VERSION` constant for cache-busting asset versioning
* Added: `uninstall.php` cleans up all plugin data on deletion
* Added: upsell notice for Pro features
* Added: review/feedback notice (shown once after 7 days, permanently dismissible)
* Code: all PHP functions use `catbar_` prefix throughout

= 1.0 =
* Initial release

== Upgrade Notice ==

= 1.10 =
Maintenance and security update. Please update at your earliest convenience.

== Credits ==

The Pro add-on of this plugin uses IcoFont for the icon picker feature.

* **IcoFont** v1.0.1
* Source: https://icofont.com/
* Copyright &copy; Iota Commerce Pvt. Ltd.
* CSS files: MIT License — https://opensource.org/licenses/MIT
* Font files (.ttf, .woff, .woff2, .eot, .svg): SIL Open Font License 1.1 — https://scripts.sil.org/OFL
* Icons (glyphs): Creative Commons Attribution 4.0 International (CC BY 4.0) — https://creativecommons.org/licenses/by/4.0/
