=== F4 Post Tree ===
Contributors: faktorvier
Donate link: https://www.faktorvier.ch/donate/
Tags: tree, treeview, drag-and-drop, sidebar, hierarchy
Requires at least: 6.5.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 2.0.5
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This plugin adds a neat and easy to use sidebar tree view to your posts and pages backend.

== Description ==

[F4 Post Tree](https://www.f4dev.ch) adds a neat and easy to use **sidebar tree view** to your **posts and/or pages backend**.

Once activated, your posts/pages will be displayed **hierarchically** in the tree sidebar.

The sidebar appears on every post related page in WordPress, so you don't have to leave your current page to manage or sort the posts/pages.

For every **post status** there is a **icon color**, so you can see if a post/page is published, draft or planned.

You can also see if **someone else is currently editing a post**. In this case a small **lock-icon** appears in the tree.

This Plugin is currently not compatible with Multisites. This feature will be added in the near future.

= Usage =

This plugin works out-of-the-box. By default, the tree will be displayed for both pages and posts. You can enable/disable the tree for both individually on the settings page (Settings -> F4 Post Tree).

= Features overview =

* Tree view sidebar for pages and posts backend
* Hierarchical order and display
* Drag and drop sorting
* Colorful icons for every post status
* Displayed on list view and edit page
* Lock symbol for posts that are currently locked by another user
* Automatically refresh if another user edits a page

= Planned features =

* Context menu for quick actions
* Multisite compatibility
* More tba

= Upcoming PRO version =

We're working on a extended **PRO version** for this plugin, which adds a few neat features:

First of all, it adds support for **custom post types**.

But the most interesting feature is the support for **menus**. With this feature you can **manage and sort the menus you want directly in your tree sidebar**.

That means, you can activate every menu you want to be shown in the tree, so you can drag&drop posts directly at the position you want the post to appear in the menu. You don't have do add/remove/sort posts and pages through the awkward menu page (Display -> Menus).

This feature improves the handling for menus drastic. Your editors and authors will love this!

If you are interested in this neat fetures, you can write us an [email](mailto:hallo@faktorvier.ch?subject=I'm%20interested%20in%20F4%20Post%20Tree%20PRO!&body=Please%20notify%20me%20if%20the%20PRO%20version%20is%20available!) to get notified when the PRO version will be released.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/f4-tree` directory, or install the plugin through the WordPress plugins screen directly
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Settings -> F4 Post Tree screen to configure the plugin

== Frequently Asked Questions ==

= How can I add the tree to my custom post types? =

This feature will be avaiable with the PRO version of our plugin.

If you are interested, you can write us an [email](mailto:hallo@faktorvier.ch?subject=I'm%20interested%20in%20F4%20Post%20Tree%20PRO!&body=Please%20notify%20me%20if%20the%20PRO%20version%20is%20available!) to get notified when the PRO version will be released.
= When will the PRO version be released? =

We don't know yet, but as soon as possible!

If you are interested, you can write us an [email](mailto:hallo@faktorvier.ch?subject=I'm%20interested%20in%20F4%20Post%20Tree%20PRO!&body=Please%20notify%20me%20if%20the%20PRO%20version%20is%20available!) to get notified when the PRO version will be released.

= How much will the PRO version cost? =

We don't know yet, but the pricing will be pretty reasonable.

If you are interested, you can write us an [email](mailto:hallo@faktorvier.ch?subject=I'm%20interested%20in%20F4%20Post%20Tree%20PRO!&body=Please%20notify%20me%20if%20the%20PRO%20version%20is%20available!) to get notified when the PRO version will be released.

== Screenshots ==

1. Hierarchical page tree in list view
2. Hierarchical page tree while editing a page

== Changelog ==

= 2.0.5 =
* Fix ajax vulnerability
* Support WordPress 7.0

= 2.0.4 =
* Update freemius sdk to version 2.13.0
* Support WordPress 6.9

= 2.0.3 =
* Fix move action for trees with a lot of nodes

= 2.0.2 =
* Make post types with orderby = menu_order sortable
* Fix pages order in tree

= 2.0.1 =
* Update translations

= 2.0.0 =
* Complete icons, style and javascript rework
* Save resized tree width on current user
* Better expanded nodes handling, so the tree stays expanded like expected
* Only poll for changes if browser tab is active
* Show better icons for posts
* Show special icon for password protected posts
* Disable sorting for non-hierarchically posts
* Migration from fancytree to wunderbaum
* Update required PHP version to 8.0.0
* Various performance and security optimisations

= 1.2.0 =
* Replace long poll logic with normal polling interval

= 1.1.20 =
* Update freemius sdk to version 2.11.0

= 1.1.19 =
* Fixed a XSS vulnerability
* Added some input sanitizations and validations

= 1.1.18 =
* Optimize drag&drop sorting performance, especially for many posts
* Update freemius sdk to version 2.9.0
* Support WordPress 6.7

= 1.1.17 =
* Exclude some post types from settings page

= 1.1.16 =
* Update freemius sdk to version 2.6.2
* Support WordPress 6.5

= 1.1.15 =
* Update freemius sdk to version 2.5.10

= 1.1.14 =
* Remove drag&drop for main tree nodes

= 1.1.13 =
* Fix support for PHP 8.1
* Support WordPress 6.2
* Update freemius sdk to version 2.5.4

= 1.1.12 =
* Remove z-index properties from tree elements
* Support WordPress 6.1
* Update freemius sdk to version 2.5.2

= 1.1.11 =
* Update www.f4dev.ch links

= 1.1.10 =
* Better compability with WPBakery editor
* Support WordPress 6.0

= 1.1.9 =
* Update freemius sdk to version 2.4.3

= 1.1.8 =
* Support WordPress 5.9

= 1.1.7 =
* Fix incompatibility with WPML

= 1.1.6 =
* Fix tree sidebar position on mobile and in block editor

= 1.1.5 =
* Fix Freemius paid plan config

= 1.1.4 =
* Support WordPress 5.8

= 1.1.3 =
* Support WordPress 5.7
* Update Freemius to version 2.4.2

= 1.1.2 =
* Support WordPress 5.6

= 1.1.1 =
* Update Freemius to version 2.4.1

= 1.1.0 =
* Add special icons for WooCommerce pages (shop, cart, checkout, my account)
* Refresh permalink if page is moved while on post edit page
* Add F4 logo to settings page
* Better compability with Gutenberg editor
* Add Freemius

= 1.0.9 =
* Support WordPress 5.5

= 1.0.8 =
* Support WordPress 5.4

= 1.0.7 =
* Fix wrong constant name
* Update admin submenu style

= 1.0.6 =
* Update compatibility for WordPress 5.3
* Fix wpdb custom queries for more compatibility
* Fix children tree function for custom post types
* Fix tree output on unwanted pages

= 1.0.5 =
* Fix fancytree init bug

= 1.0.4 =
* Enable tree for posts and pages on initial install

= 1.0.3 =
* Fix auto refresh for post slug

= 1.0.2 =
* Initial stable release
