=== Dynamics Sidebars === Contributors: alyssonweb, akbortoli Tags: sidebar, custom, dynamic, widget, different Requires at least: 3.0 Tested up to: 4.0 Stable tag: 1.0.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6NTZTQUPXP8F2 DS adds functionality to display different widgets in a sidebar, according to a context (for example, a specific page). == Description == With DS, it's possible to change the widgets that display in a sidebar (widgetized area) according to a context (for example, a specific page). Setting up a custom widget area to display across multiple conditions is as easy as a few clicks and code changes. [Documentation](https://github.com/alyssonweb/wp-dynamics-sidebars/wiki) | [Support Forum](https://github.com/alyssonweb/wp-dynamics-sidebars/issues) **Usage** By default it will add 'custom-sidebar' support for the following post types: * Post * Page **IMPORTANT: Showing the sidebar** ***Note you can use this wherever you like to show you sidebar*** `` Or `` **Adding support for custom post type** In order to user this plugin features with your custom post type you must add a feature suppport to it. Do it by doing this: On you 'functions.php' file `` When you register your custom post type, on 'register_post_type' call. [Function Reference register_post_type](http://codex.wordpress.org/Function_Reference/register_post_type) for more information ` array( 'custom-sidebar' ) ); register_post_type( 'post_type', $args ); ?>` **Removing support for pages, posts and/or custom post types** To remove support from pages, posts and/or custom post type do like so: On you 'functions.php' file add this `` **Changing sidebar args** On your 'functions.php' file just add the following code. ` "$sidebar_name widget area", 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ); return $args; } ?>` [Documentation](https://github.com/akbortoli/wp-dynamics-sidebars/wiki) | [Support Forum](https://github.com/akbortoli/wp-dynamics-sidebars/issues) **Don't forget to check the 'Other Notes' tab for a list of all function and hook you can use.** == Installation == **Please Note** * Requires at least: 3.0 * Tested up to: 4.0 **Install** 1. Unzip the dynamics-sidebars.zip file. 1. Upload the the dynamics-sidebars folder (not just the files in it!) to your wp-contents/plugins folder. If you're using FTP, use 'binary' mode. **Activate** 1. In your WordPress admin area, go to "Plugins" page 1. Activate the "Dynamics Sidebars" plugin. == Screenshots == 1. Pages/Posts/Custom Post Types Edit Page 2. Quick Edit 3. Bulk Edit == Frequently Asked Questions == No FAQ yet. == Changelog == = 1.0.7 = * Fix Strict Standards: Non-static method Dynamic_Sidebars::get_instance() should not be called statically in /home/public_html/wp-content/plugins/dynamics-sidebars/dynamics-sidebars.php on line 52 Thanks to @[leninkster](https://profiles.wordpress.org/leninkster/) = 1.0.6 = * Fixed issue when trying to activate the plugin. (PHP 5.4) = 1.0.5 = * Fixed issue when trying to uninstall the plugin. = 1.0.4 = * Fixed issue where sidebar is not registered. = 1.0.3 = * Filter 'ds_save_ajax_message' now have a 2 param $error, true if has error false if everything is ok = 1.0.2 = * CHANGED Action 'ds_construct' to 'ds_init' = 1.0.1 = * Api: has_sidebar() * Action: ds_plugin_deactivate * Action: ds_register_column * Filter: ds_post_types * Added register_post_type pass to 'supports' => array( 'custom-sidebar' ) * API: has_sidebar( $post_id = 0 ) * Support for add_post_type_support (add post type feature) * Support for remove_post_type_support (remove post type feature) * Support for post_type_supports (check if post type supports feature) * Support for get_all_post_type_supports (get all features for a post type) * REMOVED Constant: DS_PLUGIN_FOR_PAGES, to render or not "Sidebar" metabox for pages * REMOVED Constant: DS_PLUGIN_FOR_POSTS, to render or not "Sidebar" metabox for posts = 1.0.0 = * Added: bulk edit * Added: quick edit * Added: select box with all registered sidebars and a text input for registering a new one * Added: save via ajax * Added: save via publich/update/save draft * Added: .POT file for Internationalization (i18n) * Added: pt_BR Translation * Api: the_sidebar( $fallback = '', $echo = false ) * Api: get_the_sidebar( $post_id = 0 ) * Api: get_custom_sidebars() * Api: get_all_sidebars() * Filter: the_sidebar * Filter: ds_save_permissions * Filter: ds_save_ajax_message * Filter: ds_save_ajax * Filter: ds_sidebar_args * Action: ds_plugin_install * Action: ds_plugin_uninstall * Action: ds_add_metabox * Action: ds_render_metabox * Action: ds_save * Constant: DS_PLUGIN_FOR_PAGES, to render or not "Sidebar" metabox for pages * Constant: DS_PLUGIN_FOR_POSTS, to render or not "Sidebar" metabox for posts * Constant: DS_PLUGIN_FOR_FRONT_PAGE, to render or not "Sidebar" metabox for front page "page_on_front" (if set) * Constant: DS_PLUGIN_FOR_POSTS_PAGE, to render or not "Sidebar" metabox for posts page "page_for_posts" (if set) = 0.1.2 = * Added install and uninstall functions * Changes to 'readme.txt' * Requires at least: 3.0 * Tested up to: 3.4.1 = 0.1 = * First release. == Upgrade Notice == Fixed issue when trying to activate the plugin. (PHP 5.4) == Internationalization (i18n) == This plugin has been translated into the languages listed below: * pt_BR - Portuguese Brazil. If you're interested in doing a translation into your language, please let me know. == Api == **Functions** * has_sidebar( $post_id = 0 ) * the_sidebar( $fallback = '', $echo = false ) * get_the_sidebar( $post_id = 0 ) * get_custom_sidebars() * get_all_sidebars() **Actions** * ds_plugin_install * ds_plugin_uninstall * ds_plugin_deactivate * ds_init * ds_add_metabox * ds_render_metabox * ds_save * ds_register_column **Filters** * the_sidebar * ds_save_permissions * ds_save_ajax_message * ds_save_ajax * ds_sidebar_args * ds_post_types **Constant** * DS_PLUGIN_FOR_FRONT_PAGE * DS_PLUGIN_FOR_POSTS_PAGE