=== Plugin Name ===
Contributors: intoxstudio
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KPZHE6A72LEN4&lc=US&item_name=WordPress%20Plugin%3a%20Content%20Aware%20Sidebars&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
Tags: sidebar, widget area, custom sidebars, dynamic sidebar, replace sidebar, create sidebar, sidebar generator, replace widget area, create widget area, context aware, conditional, bbpress, buddypress, qtranslate, polylang, transposh, wpml, woocommerce
Requires at least: 3.8
Tested up to: 4.4
Stable tag: 3.1.1
License: GPLv3

Create and display custom sidebars according to the content being viewed. Fast and powerful.

== Description ==

Manage an infinite number of sidebars.
Boost on-site SEO with better Calls to Action by controlling what content or context your sidebars should be displayed with.
The sidebar manager makes it incredibly easy for anyone to create dynamic, custom sidebars without the need of code.

Developed with functionality and performance in mind, Content Aware Sidebars is the only plugin of its kind that will never hog or slow down your site.

= Lots of awesome Features =

* Easy-to-use Sidebar Manager
* Create unlimited number of sidebars
* Manage widgets in Theme Customizer (WP3.9+)
* Automatic support for Custom Post Types and Taxonomies
* Sidebars can automatically merge with or replace a host sidebar
* Create complex content with nested sidebars
* Private sidebars only for logged in users
* Schedule sidebars for later publishing
* Template Tag to display custom sidebars anywhere in your theme
* Shortcode to display custom sidebars anywhere in your content

= Display sidebars on certain conditions = 

* Singulars, e.g. posts or pages
* Custom Post Types
* Singulars with given taxonomies, e.g. categories or tags
* Singulars by a given author
* Page Templates
* Post Formats
* Post Type Archives
* Author Archives
* (Custom) Taxonomy Archives
* Date Archives
* Search Results
* 404 Not Found Page
* Front Page
* bbPress User Profiles
* BuddyPress Member Pages
* Languages (qTranslate, Polylang, Transposh, WPML)
* **[NEW]** Pods Pages

Combine these conditions in any way you like, e.g. display a sidebar on all Posts in Category X by author Y.

**NEW:** Negate conditions, e.g. display a sidebar on all pages except Page X.

= Integrated Support for Popular Plugins =

* bbPress (v2.5+)
* BuddyPress (v2.0+)
* qTranslate X (v3.4.6.4+)
* Pods (v2.6+)
* Polylang (v1.7+)
* Transposh Translation Filter (v0.9.5+)
* [WPML Multilingual Blog/CMS (v2.4.3+) Tested and certified](http://wpml.org/plugin/content-aware-sidebars/)

= Multilingual and Translation Ready =

Content Aware Sidebars comes in 38 languages.

Arabic (ar), Bulgarian (bg_BG), Basque (eu), Catalan (ca), Chinese (zh_CN), Croatian (hr), Czech (cs_CZ), Danish (da_DK), Dutch (nl_NL), English, Estonian (et), Finnish (fi), French, Canada (fr_CA), French, France (fr_FR), German (de_DE), Greek (el), Hebrew (he_IL), Hungarian (hu_HU), Indonesian (id_ID), Italian (it_IT), Japanese (ja), Korean (ko_KR), Latvian (lv_LV), Lithuanian (lt_LT), Norwegian Bokmål (nb_NO), Persian (fa_IR), Polish (pl_PL), Portuguese, Brazil (pt_BR), Portuguese, Portugal (pt_PT), Russian (ru_RU), Serbian (sr_RS), Slovak (sk_SK), Slovenian (sl_SI), Spanish (es_ES), Swedish (sv_SE), Turkish (tr_TR), Ukranian (uk), Vietnamese (vi)

[Click here to go to Transifex.com to translate Content Aware Sidebars into your language](https://www.transifex.com/projects/p/content-aware-sidebars/).

= For more information =

* [Documentation](http://www.intox.dk/en/plugin/content-aware-sidebars-en/)
* [Follow development on Github](https://github.com/intoxstudio/content-aware-sidebars)
* [Intox Studio on Facebook](https://www.facebook.com/intoxstudio)
* [Intox Studio on Twitter](https://twitter.com/intoxstudio)

== Installation ==

1. Upload the full plugin directory to your `/wp-content/plugins/` directory or install the plugin through `Plugins` in the administration 
1. Activate the plugin through `Plugins` in the administration
1. Have fun creating your first sidebar under the menu *Sidebars > Add New*
1. Optional: Insert Template Tag `<?php ca_display_sidebar( $args ); ?>` in your theme for manually handled sidebars
1. Optional: Insert Shortcode `[ca-sidebar id=]` in some content for manually handled sidebars

== Frequently Asked Questions ==

[Click here to go to the official FAQ page for Content Aware Sidebars](http://www.intox.dk/en/plugin/content-aware-sidebars-en/faq/).

== Translation Contributors ==

********
[Dr.Outlander](https://www.transifex.com/accounts/profile/Dr.Outlander/), [allo.babi](https://www.transifex.com/accounts/profile/allo.babi/), [gattiken](https://www.transifex.com/accounts/profile/gattiken/), [eliuzunova](https://www.transifex.com/accounts/profile/eliuzunova/), [DCLXVI](https://www.transifex.com/accounts/profile/DCLXVI/), [kaotiko](https://www.transifex.com/accounts/profile/kaotiko/), [keystorm](https://www.transifex.com/accounts/profile/keystorm/), [tkjune](https://www.transifex.com/accounts/profile/tkjune/), [wcybrick](https://www.transifex.com/accounts/profile/wcybrick/), [luka.peharda](https://www.transifex.com/accounts/profile/luka.peharda/), [MrRajic](https://www.transifex.com/accounts/profile/MrRajic/), [denisbeckers](https://www.transifex.com/accounts/profile/denisbeckers/), [7GRAFIX](https://www.transifex.com/accounts/profile/7GRAFIX/), [SynergiaWeb](https://www.transifex.com/accounts/profile/SynergiaWeb/), [MSTannu](https://www.transifex.com/accounts/profile/MSTannu/), [addicted2web](https://www.transifex.com/accounts/profile/addicted2web/), [Fastfuel](https://www.transifex.com/accounts/profile/Fastfuel/), [ewx](https://www.transifex.com/accounts/profile/ewx/), [henrik.heil](https://www.transifex.com/accounts/profile/henrik.heil/), [18micha48](https://www.transifex.com/accounts/profile/18micha48/), [mcpitten](https://www.transifex.com/accounts/profile/mcpitten/), [milan.bolland](https://www.transifex.com/accounts/profile/milan.bolland/), [TheFluffyDonkey](https://www.transifex.com/accounts/profile/TheFluffyDonkey/), [akuhl](https://www.transifex.com/accounts/profile/akuhl/), [tabakisp](https://www.transifex.com/accounts/profile/tabakisp/), [Dimis13](https://www.transifex.com/accounts/profile/Dimis13/), [cyberwani](https://www.transifex.com/accounts/profile/cyberwani/), [Neftigon](https://www.transifex.com/accounts/profile/Neftigon/), [Lucky65](https://www.transifex.com/accounts/profile/Lucky65/), [tkfmkjm](https://www.transifex.com/accounts/profile/tkfmkjm/), [ashf](https://www.transifex.com/accounts/profile/ashf/), [saynim](https://www.transifex.com/accounts/profile/saynim/), [zanpress](https://www.transifex.com/accounts/profile/zanpress/), [phpkalemi](https://www.transifex.com/accounts/profile/phpkalemi/), [syruas](https://www.transifex.com/accounts/profile/syruas/), [PaalJoachim](https://www.transifex.com/accounts/profile/PaalJoachim/), [khalil.delavaran](https://www.transifex.com/accounts/profile/khalil.delavaran/), [mayones](https://www.transifex.com/accounts/profile/mayones/), [artilogic](https://www.transifex.com/accounts/profile/artilogic/), [greenspiracje](https://www.transifex.com/accounts/profile/greenspiracje/), [ibushi](https://www.transifex.com/accounts/profile/ibushi/), [marcelo.ghelman](https://www.transifex.com/accounts/profile/marcelo.ghelman/), [ovelhaaa](https://www.transifex.com/accounts/profile/ovelhaaa/), [luismartins](https://www.transifex.com/accounts/profile/luismartins/), [Almaz](https://www.transifex.com/accounts/profile/Almaz/), [NikitaM](https://www.transifex.com/accounts/profile/NikitaM/), [Aakurb](https://www.transifex.com/accounts/profile/Aakurb/), [Rakhmanov](https://www.transifex.com/accounts/profile/Rakhmanov/), [jurcc](https://www.transifex.com/accounts/profile/jurcc/), [horacio.salazar](https://www.transifex.com/accounts/profile/horacio.salazar/), [javitopo](https://www.transifex.com/accounts/profile/javitopo/), [killawabbit](https://www.transifex.com/accounts/profile/killawabbit/), [IBsweden](https://www.transifex.com/accounts/profile/IBsweden/), [adrianb](https://www.transifex.com/accounts/profile/adrianb/), [eebrutas](https://www.transifex.com/accounts/profile/eebrutas/), [ahmetyilmaz](https://www.transifex.com/accounts/profile/ahmetyilmaz/), [auludag](https://www.transifex.com/accounts/profile/auludag/), [Dikhotheta](https://www.transifex.com/accounts/profile/Dikhotheta/)
********

Do you want to contribute and see your name here?

[Click here to go to Transifex.com to translate Content Aware Sidebars into your language](https://www.transifex.com/projects/p/content-aware-sidebars/).

== Screenshots ==

1. Add a new Content Aware Sidebar to be displayed with all Posts that contains the category Very Categorized. It replaces `Primary Sidebar`
2. Simple overview of all created Content Aware Sidebars
3. Add widgets to the newly added sidebar
4. Viewing front page of site. `Primary Sidebar` is displayed
5. Viewing a Post that contains Very Categorized. `Very Categorized Posts` sidebar has replaced `Primary Sidebar`

== Upgrade Notice ==

= 3.0 = 

* Content Aware Sidebars data in your database will be updated automatically. It is highly recommended to backup this data before updating the plugin.
* Minimum WordPress version compatibility is now 3.8.

= 2.0 = 

* Content Aware Sidebars data in your database will be updated automatically. It is highly recommended to backup this data before updating the plugin.
* Minimum WordPress version compatibility is now 3.3.

= 1.1 =

* Content Aware Sidebars data in your database will be updated automatically. Remember to backup this data before updating the plugin.

= 0.8 =

* Content Aware Sidebars data in your database will be updated automatically. Remember to backup this data before updating the plugin.

= 0.5 =

* Note that the plugin now requires at least WordPress 3.1 because of post type archives.

= 0.4 =

* All current custom sidebars have to be updated after plugin upgrade due to the new archive rules

= 0.1 =

* Hello World

== Changelog ==

= 3.1.1 =

* Added: pods pages module, props @sc0ttkclark @herold
* Fixed: better compat when other themes or plugins load breaking scripts

= 3.1 =

* Added: completely rewritten sidebar editor ui
* Added: refactored plugin into more logical abstractions
* Added: wp-db-updater now handles database updates
* Added: tour reflects new sidebar editor ui
* Added: review notice after 2 weeks use
* Added: admin footer text on relevant pages
* Added: minified some scripts
* Added: qtranslate x module
* Fixed: sidebar and widget filtering for wp4.4+
* Fixed: bug making attachments not selectable
* Fixed: bumped versions for integrated plugins
* Removed: qtranslate module

= 3.0.1 =

* Added: wp4.4 compatibility

= 3.0 =

* Added: plugin rewritten with wp-content-aware-engine to take care of everything related to conditional content
* Added: migrate existing sidebar data to wp-content-aware-engine standards
* Added: negation of condition groups
* Added: new api to add modules
* Added: new action and filter hooks
* Added: intro tour
* Added: ca_display_sidebar deprecates display_ca_sidebar
* Added: filter for sidebars on widgets screen
* Added: add sidebar from widgets screen
* Added: filter for available widgets on widgets screen
* Added: more simple information meta box
* Added: gui improvements in sidebar editor
* Added: bulk update messages translatable
* Added: draft post status included in post type lists
* Added: arabic, bulgarian, croatian, czech, estonian, french (canada), greek, hebrew, indonesian, japanese, persian, vietnamese translations
* Fixed: uninstall script cleans residual data better
* Fixed: posts page and front page excluded from page post type list
* Fixed: updated translations
* Fixed: finnish translation included properly
* Fixed: minimum requirement wp3.8
* Removed: all action and filter hooks (moved to wp-content-aware-engine under new names)
* Removed: deprecated icons
* Removed: screenshots

= 2.6.3 =

* Fixed: sidebars would not be displayed on front page

= 2.6.2 =
* Added: wp4.3 compatibility
* Fixed: sidebars would not be displayed on 404 or empty content
* Fixed: sidebars would not be displayed when queried object differed from post object
* Fixed: included ukranian translation properly

= 2.6.1 =

* Added: finnish, korean, portuguese (portugal), slovenian and swedish translations
* Fixed: updated translations
* Fixed: better compatibility when used together with other sidebar managers

= 2.6 =

* Added: date module to display sidebars on date archives
* Added: basque and french translations
* Fixed: support for mariadb 10.0

= 2.5.3 =

* Added: catalan, norwegian bokmål and turkish translations
* Fixed: updated translations

= 2.5.2 =

* Added: delete_posts capability. fixes conflict in wp4.1
* Fixed: only get custom sidebars when $post is set. fixes conflict in wp4.1

= 2.5.1 =

* Fixed: properly include casmodule.php

= 2.5 =

* Added: ca-sidebar shortcode
* Added: serbian and dutch translations
* Added: teaser meta box
* Added: shortcode is displayed when selecting manual handle in sidebar editor
* Added: description can be added to modules
* Added: generic module callback for ajax allowing search and pagination to use same request
* Added: or-separator between condition groups in editor
* Fixed: headers already sent error on ajax request

= 2.4.3 =

* Fixed: german translation properly included

= 2.4.2 =

* Added: polish, brazilian portuguese and russian translations
* Fixed: "auto-select new children of selected ancestors" caused new top level post types to be selected
* Fixed: "auto-select new children of selected ancestors" for taxonomies could prevent sidebar from being displayed

= 2.4.1 =

* Fixed: authors found via search in sidebar editor could not be saved
* Fixed: displaying max 20 authors in search results instead of 10
* Fixed: improved ux design for sidebars in widgets screen

= 2.4 =

* Added: compatibility with wp4.0
* Added: better ux design for condition groups
* Added: better ux design for sidebars in widgets screen, including an edit link
* Added: dashicon for admin menu (wp3.8+)
* Fixed: using some newer wordpress actions and filters for admin columns
* Fixed: sidebars could be fetched and prepared in administration

= 2.3 =

* Added: ukranian translation
* Added: error if trying to access php files directly
* Added: bbpress, bp_member, polylang, qtranslate, transposh and wpml modules are more robust
* Added: content rule boxes can be hidden in screen options in sidebar editor
* Added: help tab in sidebar editor
* Added: widgets count column in sidebar overview
* Added: menu order moved to options meta box in sidebar editor
* Fixed: merge position option hidden on forced replace handle
* Fixed: polylang compatibility now 1.2+
* Fixed: width of columns in sidebar overview
* Removed: exposure column in sidebar overview

= 2.2.1 =

* Fixed: taxonomy archive conditions did not work with other modules properly
* Fixed: removed display limit of 20 for saved post type conditions
* Fixed: saved post type conditions ordered alphabetically

= 2.2 =

* Added: sidebar displayed in theme customizer (wp3.4+)
* Added: widget management integration in theme customizer (wp3.9+)
* Added: handle for forced replace
* Fixed: reduced database queries in sidebar editor
* Fixed: disable all add to group buttons before creating first condition group

= 2.1 =

* Added: empty condition groups cannot be saved
* Added: confirmation on various condition group actions in sidebar editor
* Added: improved ux design for sidebar editor
* Added: chinese translation
* Added: wp3.9 compatibility
* Fixed: transposh compatibility now 0.9.5+
* Fixed: removed warnings for auto-select new children functionality
* Fixed: unprivileged users could in theory make, but never successfully execute, ajax requests for sidebar editor
* Fixed: removed warning in widgets screen when handle is not set

= 2.0.3 =

* Fixed: taxonomy pagination in sidebar editor
* Fixed: categories found in search can now be saved. props Xandoc

= 2.0.2 =

* Fixed: terms caused a sidebar to be displayed on all pages

= 2.0.1 =

* Fixed: admin menu would in some cases be overwritten by other plugins

= 2.0 =

* Added: condition groups
* Added: gui and uxd overhaul for sidebar editor
* Added: pagination for taxonomies in sidebar editor
* Added: pagination for post types in sidebar editor
* Added: mysql 5.6+ compatibility
* Added: more efficient uninstall process
* Added: easier for developers to extend and manipulate content support
* Added: wp3.8 and mp6 compatibility
* Added: german translation
* Added: hungarian translation
* Added: latvian translation
* Added: spanish translation
* Added: all conditions follow a strict logical "and" operator per group
* Fixed: scripts and styles only loaded on sidebar administrative pages
* Fixed: slovak translation now recognized
* Fixed: paths to assets compatible with ssl
* Removed: jquery ui autocomplete and accordion

= 1.3.5 =

* Fixed: menu would disappear in rare cases. Props grezvany13
* Fixed: search function now searches in title and slug (not content) for post types
* Added: search function displays at most 20 results instead of 10

= 1.3.4 =

* Fixed: cas_walker_checklist now follows walker declaration for wp3.6
* Fixed: content list in accordion now not scrollable
* Fixed: only terms from public taxonomies are included for content recognition.
* Fixed: polylang fully supported again
* Fixed: consistent css across wp versions
* Removed: flushing rewrite rules on activation/deactivation is needless

= 1.3.3 =

* Added: html placeholder in search field
* Added: items already displayed in edit page moved to top and checked when found in search
* Fixed: private and scheduled singulars included in search results
* Fixed: search results displayed in ascending order

= 1.3.2 =

* Added: items found in search now added to list directly on select
* Fixed: some terms found by search could not be saved
* Fixed: widget locations are saved again for each theme

= 1.3.1 =

* Added: authors and bbpress user profiles now searchable on edit page
* Added: items found in search on edit page are prepended and checked by default
* Added: updated edit page gui
* Added: search field only visible when quantity is above 20
* Fixed: select all checkbox will now disable all input in container
* Fixed: host sidebar could sometimes not be found in sidebar list

= 1.3 =

* Added: post type posts and taxonomy terms now searchable on edit page
* Added: sidebar handle and host shown on widgets page
* Added: slovak translation
* Fixed: sidebar meta boxes more robust to external modifications
* Fixed: admin column headers more robust to external modifications
* Fixed: sidebar menu now always hidden for users without right cap
* Fixed: code optimization and refactor for performance
* Removed: support for sidebar excerpt

= 1.2 =

* Added: polylang support
* Added: buddypress support
* Added: managing sidebars now requires edit_theme_options cap
* Added: bbpress user profile has own rules instead of author rules
* Added: filter for content recognition
* Added: auto-select new children of selected taxonomy or post type ancestor

= 1.1.2 =

* Added: wordpress 3.5 compatibility 
* Fixed: slight css changes on edit screen
* Fixed: "show with all" checkbox toggles other checkboxes correctly

= 1.1.1 =

* Fixed: slight css changes on edit screen
* Fixed: tick.png included
* Fixed: taxonomy terms could influence each other in rare cases
* Fixed: taxonomy wide rules for taxonomy archives
* Fixed: cache caused db update module to skip 1.1 update if going from 0

= 1.1 =

* Added: improved gui on edit screen including content accordion 
* Added: bbpress forum-topic dependency
* Added: sidebars hidden on password protected content
* Added: relevant usermeta cleared on plugin deletion
* Fixed: performance gain by dropping serialized metadata
* Fixed: database data update module revised
* Fixed: css class in posts and terms walker
* Fixed: limit of max 200 of each content type on edit screen (temp)
* Fixed: style and scripts loaded properly
* Removed: individual content meta boxes on edit screen

= 1.0 =

* Added: plugin rewritten to flexible modular system
* Added: builtin support for bbpress, qtranslate, transposh, wpml
* Added: lithuanian translation
* Fixed: all present rules now dependent of each other
* Fixed: sidebar update messages
* Fixed: specific hooks now not sitewide
* Fixed: better use of meta cache
* Fixed: dir structure
* Fixed: unexpected output notice on plugin activation

= 0.8.3 =

* Added: danish and italian translation
* Fixed: sidebar query might be larger than max_join_size
* Fixed: row content in admin overview would be loaded with post types with matching keys

= 0.8.2 =

* Fixed: new rules caused issues with post types with taxonomies

= 0.8.1 =

* Fixed: several checks for proper widget and sidebar removal

= 0.8 =

* Added: some rules are dependent of each other if present
* Added: widgets in removed sidebars will be removed too
* Added: database data update module
* Added: rewrite rules flushed on plugin deactivation
* Added: data will be removed when plugin is uninstalled
* Added: icon-32 is back
* Added: message if a host is not available in sidebar overview
* Fixed: prefixed data
* Fixed: data hidden from custom fields
* Fixed: manage widgets link removed from trashed sidebars
* Fixed: view sidebar link removed in wp3.1.x
* Fixed: all custom taxonomies could not be removed again when assigned to sidebar
* Fixed: altered options meta box on edit screen
* Fixed: check if host of sidebar exists before handling it

= 0.7 =

* Added: sidebars will be displayed even if empty (i.e. hidden)
* Added: author rules on singulars and archives
* Added: page template rules
* Added: javascript handling for disabling/enabling specific input on editor page
* Fixed: minor tweak for full compatibility with wp3.3
* Fixed: function for meta boxes is called only on editor page
* Fixed: proper column sorting in administration
* Fixed: specific post type label not supported in wp3.1.x
* Fixed: type (array) not supported as post_status in get_posts() in wp3.1.x
* Fixed: code cleanup

= 0.6.3 =

* Added: scheduled and private singulars are selectable in sidebar editor
* Added: combined cache for manual and automatically handled sidebars
* Added: display_ca_sidebar accepts specific ids to be included
* Fixed: only a limited amount of sidebars were present in widgets area
* Fixed: better caching in sidebar editor
* Fixed: page list in sidebar editor could behave incorrectly if some pages were static

= 0.6.2 =

* Fixed: array_flip triggered type mismatch errors in some cases

= 0.6.1 =

* Fixed: an image caused headers already sent error

= 0.6 =

* Added: sidebars can be set with specific singulars
* Added: sidebars can be set with specific post formats
* Added: updated gui
* Fixed: draft sidebars save meta

= 0.5 =

* Added: search, 404, front page rules now supported
* Fixed: custom tax and terms are now supported properly (again)

= 0.4 =

* Added: post type archives, taxonomy archives and taxonomy terms archives now supported
* Added: taxonomy rules
* Added: removable donation button
* Fixed: faster!

= 0.3 =

* Added: sidebars can now be private
* Fixed: taxonomy terms are now supported by template function
* Fixed: faster rule recognition and handling
* Fixed: custom taxonomies are now supported properly
* Fixed: error if several sidebars had taxonomy terms rules

= 0.2 =

* Added: taxonomy terms rules
* Added: optional description for sidebars
* Added: display_ca_sidebar also accepts URL-style string as parameter
* Fixed: saving meta now only kicks in with sidebar types
* Fixed: archives are not singulars and will not be treated like them

= 0.1 =

* First stable release
