=== Dynamics Sidebars ===
Contributors: alyssonweb
Tags: sidebar, custom, dynamic, widget, different
Requires at least: 3.0
Tested up to: 3.4.1
Stable tag: 1.0.1
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
Create a custom (dynamic) widget area (sidebar) to pages, posts and custom post types.
== Description ==
Want your pages/posts or custom post types to have differents sidebar areas? This plugin is for you!
An awesome plugin to add custom (dynamic) widget area (sidebar) to your page, post or even custom post type.
**Usage**
``
Or
``
**Changing sidebar args**
On your 'functions.php' file just add the following code.
` 'My widget area',
'before_widget' => '
',
'after_widget' => '', 'after_widget',
'before_title' => '', 'after_title',
);
return $args;
}
?>`
**Remove from poge/post or custom post type**
``
**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: 3.4.1
**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.1 =
* Api: has_sidebar()
* Action: ds_init
* 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_construct
* 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 deactivation hook deleting all data and added some other features.
== 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_construct
* ds_add_metabox
* ds_render_metabox
* ds_save
* ds_init
* 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