{"id":12769,"date":"2011-04-06T13:31:22","date_gmt":"2011-04-06T13:31:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/put\/"},"modified":"2013-04-30T13:43:44","modified_gmt":"2013-04-30T13:43:44","slug":"put","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/put\/","author":2626207,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"3.6.1","requires":"3.1.0","requires_php":"","requires_plugins":"","header_name":"Post UI Tabs","header_author":"t31os_","header_description":"","assets_banners_color":"dadada","last_updated":"2013-04-30 13:43:44","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/put\/","header_author_uri":"","rating":4.7,"author_block_rating":0,"active_installs":500,"downloads":51457,"num_ratings":14,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"14","0":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"700716","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"704703","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"704703","resolution":"2","location":"assets"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"704703","resolution":"3","location":"assets"},"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":"704703","resolution":"4","location":"assets"}},"screenshots":{"1":"Two different sets of tabs in a single post.","2":"The Post UI Tabs settings page.","3":"One set of tabs in a post.","4":"TinyMCE buttons in the editor to make adding tabs easier."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1332,202,2459,80,2148],"plugin_category":[43,46,59],"plugin_contributors":[80777],"plugin_business_model":[],"class_list":["post-12769","plugin","type-plugin","status-publish","hentry","plugin_tags-editor","plugin_tags-jquery","plugin_tags-jquery-ui","plugin_tags-shortcode","plugin_tags-tabs","plugin_category-customization","plugin_category-editor-and-writing","plugin_category-utilities-and-tools","plugin_contributors-t31os_","plugin_committers-t31os_"],"banners":{"banner":"https:\/\/ps.w.org\/put\/assets\/banner-772x250.png?rev=700716","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/put_dadada.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/put\/assets\/screenshot-1.jpg?rev=704703","caption":"Two different sets of tabs in a single post."},{"src":"https:\/\/ps.w.org\/put\/assets\/screenshot-2.jpg?rev=704703","caption":"The Post UI Tabs settings page."},{"src":"https:\/\/ps.w.org\/put\/assets\/screenshot-3.jpg?rev=704703","caption":"One set of tabs in a post."},{"src":"https:\/\/ps.w.org\/put\/assets\/screenshot-4.jpg?rev=704703","caption":"TinyMCE buttons in the editor to make adding tabs easier."}],"raw_content":"<!--section=description-->\n<p>Show off your post content inside stylish jQuery powered tabs using one of 24 different jQuery UI themes or include your own custom stylesheet.<\/p>\n\n<h3>Filters<\/h3>\n\n<p>The plugin provides various filters to aid users, they are as follows<\/p>\n\n<ul>\n<li><code>put_decide_has_tabs<\/code>: (bool) true\/false value that determines whether to run the tabs script(runs inside a filter on <code>the_content<\/code>)<\/li>\n<li><code>put_theme_dir<\/code>: (string) passes the theme directory uri<\/li>\n<li><code>put_stylesheet<\/code>: (string) name of the stylesheet to use for tabs CSS<\/li>\n<li><code>put_skins<\/code>: (array) passes the array of skins available to the plugin<\/li>\n<li><code>put_stylesheet_uri<\/code>: (string) the full stylesheet uri used (easier hook for custom stylesheets)<\/li>\n<li><code>put_prev_text<\/code>: (string) the text used for previous tab navigation(text not shown by default)<\/li>\n<li><code>put_next_text<\/code>: (string) the text used for next tab navigation(text not shown by default)<\/li>\n<li><code>put_nav_class<\/code>: (string) the classes applied to the prev and next navigation(second arg indicates prev or next text)<\/li>\n<li><code>put_trailing_linebreak<\/code>: (bool) true\/false value to determine whether or not to add a trailing <code>&lt;br \/&gt;<\/code> (linebreak) after each tab set<\/li>\n<\/ul>\n\n<p>A couple of actions are also available for when you'd rather just turn off skins and enqueue your own stylesheet<\/p>\n\n<ul>\n<li><code>put_enqueue_css<\/code>: runs on front facing pages with tab sets when the <em>Disable skins<\/em> is enabled<\/li>\n<li><code>put_admin_enqueue_css<\/code>: runs on the plugin settings page when the <em>Disable skins<\/em> is enabled<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>put<\/code>(post-ui-tabs) folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress<\/li>\n<li>Visit the plugin configuration screen under <strong>WordPress Admin &gt; Settings &gt; Post UI Tabs<\/strong> and set your preferences<\/li>\n<li>Create posts using the easy to use shortcode and watch the magic happen<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>So how do i create tabs?<\/dt>\n<dd><p>Click one of the simple to use tinymce buttons provided by PUT in the post editor, quick tags are also available in the text editor.<\/p>\n\n<p>or<\/p>\n\n<p>Use the following format to write them directly into the post editor.<\/p>\n\n<pre><code>[tab name=\"Your tab name 1\"]Your tab content[\/tab] \n[tab name=\"Your tab name 2\"]Your tab content[\/tab]\n[tab name=\"Your tab name 3\"]Your tab content[\/tab]\n[end_tabset]\n<\/code><\/pre>\n\n<p><strong>NOTE:<\/strong> \nIt is necessary for all tab sets end with the <code>[end_tabset]<\/code> shortcode, the tabs will not appear without this shortcode.<br \/>\nPlease be aware that tab shortcodes can not be placed on the same line, this is a limitation of shortcode functionality in WordPress(and i do not wish to bloat this plugin with extra code to work around it).<\/p><\/dd>\n<dt>Can i use HTML inside the tabs?<\/dt>\n<dd><p>You may use any HTML the WordPress content editor usually allows inside the tab content, but not inside the tab names(which are sanitized seperately).<\/p><\/dd>\n<dt>Can i use tabs in pages?<\/dt>\n<dd><p>The plugin is not restricted to a particular kind of content, so yes pages, posts or custom post types(or at least any type that supports using the content editor).<\/p><\/dd>\n<dt>Can i use other shortcodes inside the tab content?<\/dt>\n<dd><p>Yes you should be able to, it has not been tested, but if you have any problems feel free to start a support topic right here in the WordPress.org forums.<\/p><\/dd>\n<dt>Why do the tabs not look the same when i view them on the front facing side of my site?<\/dt>\n<dd><p>It is possible your theme's stylesheet is applying CSS to some of the tabs elements, please feel free to start a support topic if you need help making adjustments.<\/p><\/dd>\n<dt>How can i remove the UI classes from the next and previous links?<\/dt>\n<dd><p>Add the following to your theme's <strong>functions.php<\/strong> file.<\/p>\n\n<pre><code>add_filter( 'put_nav_class', '__return_empty_array' );\n<\/code><\/pre><\/dd>\n<dt>When using text nav links how i can change the link text?<\/dt>\n<dd><p>You can modify the previous and next link text using the following in your theme's <strong>functions.php<\/strong> file.<\/p>\n\n<pre><code>\/\/ Remove the UI classes(used by default to display nav icons)\nadd_filter( 'put_nav_class', '__return_empty_array' );\n\n\/\/ Hook callback functions to the filters\nadd_filter( 'put_next_text', 'put_nav_next_text' );\nadd_filter( 'put_prev_text', 'put_nav_prev_text' );\n\n\/\/ Callback to change the 'Next' text\nfunction put_nav_next_text() { return 'Your next text'; }\n\n\/\/ Callback to change the 'Previous' text\nfunction put_nav_prev_text() { return 'Your previous text'; }\n<\/code><\/pre><\/dd>\n<dt>How do i include my own CSS in place of one of the jQuery UI themes?<\/dt>\n<dd><p><strong>Method one:<\/strong><br \/>\n<em>Using a stylesheet in your theme's directory(will work for child themes to)<\/em><\/p>\n\n<pre><code>add_filter( 'put_stylesheet_uri', 'my_custom_put_stylesheet' );\n\nfunction my_custom_put_stylesheet( $uri ) {\n    return get_stylesheet_directory_uri() . '\/mycustom.css';\n}\n<\/code><\/pre>\n\n<p><strong>Method two:<\/strong><br \/>\n<em>Adding a filter from inside your own plugin file<\/em><\/p>\n\n<pre><code>add_filter( 'put_stylesheet_uri', 'my_plugin_put_stylesheet' );\n\nfunction my_plugin_put_stylesheet( $uri ) {\n\n    \/\/ If the stylesheet is in the plugin's main directory\n\n    return plugins_url( '', __FILE__ ) . '\/mycustom.css';\n    \/\/ Eg. http:\/\/www.example.com\/wp-content\/plugins\/your-plugin\/mycustom.css\n\n\n    \/\/ If the stylesheet is in a subdirectory of the plugin\n\n    return plugins_url( 'dir', __FILE__ ) . '\/mycustom.css';\n    \/\/ Eg. http:\/\/www.example.com\/wp-content\/plugins\/your-plugin\/dir\/mycustom.css\n}\n<\/code><\/pre>\n\n<p><strong>Method three:<\/strong><br \/>\nCheck the <strong>Disable skins<\/strong> option on the Post UI Tabs settings page and do either of the following.<\/p>\n\n<ul>\n<li>Add your own CSS to your theme's stylesheet(typically <strong>style.css<\/strong>).  <\/li>\n<li>Call <code>wp_enqueue_style<\/code> on the <code>put_enqueue_styles<\/code> action, ie. the regular WP enqueuing method.<\/li>\n<\/ul><\/dd>\n<dt>Can i remove the linebreak that Post UI Tabs after each tab set?<\/dt>\n<dd><p>You can, simply place the following code into your theme's <code>functions.php<\/code> file or a plugin.<\/p>\n\n<pre><code>add_filter( 'put_trailing_linebreak', '__return_false' );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.10<\/h4>\n\n<ul>\n<li>Fix for undefined error in <code>post-tabs-ui.js<\/code> + some additional small adjustments<\/li>\n<li>Fix end tabs quicktag in text editor<\/li>\n<li>Added toggle option to determine whether to automatically select the active tab(disabling allows anchored links to select the active tab)<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Added WordPress version check<\/li>\n<li>Added GPL License to top of plugin main file<\/li>\n<li>First pass adding screen help to the plugin's configuration page(wp 3.3+ only)<\/li>\n<li>First pass adding TinyMCE buttons for tab shortcodes<\/li>\n<li>Added <code>&lt;br \/&gt;<\/code> after each tabset(can be removed using the new <code>put_trailing_linebreak<\/code> filter)<\/li>\n<li>Rewrote some of the Javscript\/jQuery code<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Fixed bug with jQuery code that caused the tabs not to render in IE7\/8 (my fault)<\/li>\n<li>Added backwards support for jQuery UI tabs prior to jQuery UI 1.9(WordPress 3.1 - 3.4)<\/li>\n<li>Update more of the readme, to reflect changes to plugin filter\/action names<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Added two new filters <code>put_decide_has_tabs<\/code> and <code>put_stylesheet_uri<\/code>. <\/li>\n<li>Switched the filter names(sorry) to use a more consistent and descriptive naming scheme - all hooks are now use the <code>put_<\/code> prefix.<\/li>\n<li>Change example code in readme and added a list of all the available plugin hooks<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Update jQuery functions inline with jQuery UI updates, ie. replace calls to deprecated functions<\/li>\n<li>Removed cookie support(removed from jQuery UI) - alternative to be provided later on<\/li>\n<li>Moved some filters that were not working correctly<\/li>\n<li>Added some new action hooks for users to disable jQuery UI css and enqueue their own<\/li>\n<li>Improved some jQuery to better handle previous and next navigation when there are disabled tabs<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Changed the <code>has_tabs<\/code> variable to public<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Update to jQuery UI 1.8.15 (for skins)<\/li>\n<li>Add option to display tab titles and content in feeds<\/li>\n<li>Rearrange markup for feeds so titles and content does not bunch together<\/li>\n<li>Move enqueues to more appropriate action<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Rename cookie javascript, possible fix for unknown problem with 404s to cookie script<\/li>\n<li>Remove shortcode content from feeds(was never intended to be output in feeds)<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Fix style\/script versions<\/li>\n<li>Add proper plugin version to plugin(whoops)<\/li>\n<li>Add more to readme.txt<\/li>\n<\/ul>","raw_excerpt":"Create jQuery tabs inside your posts, pages or post types using simple shortcodes inside the post editor.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12769"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/t31os_"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12769"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12769"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12769"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12769"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12769"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}