WordPress.org

Plugin Directory

Changeset 623079


Ignore:
Timestamp:
11/09/12 17:05:47 (20 months ago)
Author:
markoheijnen
Message:

Ready for 0.4 release

Location:
tabify-edit-screen/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tabify-edit-screen/trunk/inc/tabs.php

    r622109 r623079  
    6464        $class = 'tabify-tabs tab-' .  $this->type; 
    6565 
    66         if( ! $this->javascript_support ) { 
     66        if( ! $this->javascript_support ) 
    6767            $class .= ' js-disabled'; 
    68         } 
    6968 
    70         if( 'horizontal' == $this->type ) { 
    71             $class .= ' nav-tab-wrapper'; 
    72         } 
     69        $return  = '<div class="' . $class . '">'; 
    7370 
    7471 
    75         $return  = '<h2 class="' . $class . '">'; 
     72        if( 'horizontal' == $this->type ) 
     73            $return .= '<h2 class="nav-tab-wrapper">'; 
     74        else 
     75            $return .= '<h2>'; 
    7676 
    7777        if( $show_current_tab_input == true ) { 
     
    8080 
    8181        $return .= $this->get_tabs(); 
    82         $return .=  '</h2>'; 
     82 
     83        $return .= '</h2>'; 
     84 
     85        $return .= apply_filters( 'tabify_tabs_under', '', $this->type ); 
     86 
     87        $return .= '</div>'; 
    8388 
    8489        //When tabs are requested also enqueue the javascript and css code 
    85         wp_register_script( 'tabify-edit-screen', plugins_url( '/js/tabs.js', dirname( __FILE__ ) ), array( 'jquery' ), '1.0' ); 
     90        $required = array( 'jquery' ); 
     91 
     92        if ( 'post' == get_current_screen()->base ) 
     93            $required[] = 'postbox'; 
     94 
     95        wp_register_script( 'tabify-edit-screen', plugins_url( '/js/tabs.js', dirname( __FILE__ ) ), $required, '1.0' ); 
    8696        wp_enqueue_script( 'tabify-edit-screen' ); 
    8797 
  • tabify-edit-screen/trunk/js/tabs.js

    r622109 r623079  
    2626                    if( id && id.length != 0 ) { 
    2727                        $( ".tabifybox" ).hide(); 
    28                         $( ".tabifybox-" + id ).show(); 
    2928                        $( ".current_tab", holder ).val( id ); 
     29 
     30                        $( ".tabifybox-" + id ).each( function( index ) { 
     31                            var checkbox = $( '#' + $(this).attr('id') + '-hide' ); 
     32 
     33                            if( checkbox.attr('type') != 'checkbox' || checkbox.is(':checked') ) 
     34                                $(this).show(); 
     35                        }); 
    3036                    } 
    3137                } 
    3238            }); 
    3339        } 
    34     });  
     40    }); 
     41 
     42    postboxes.save_state = function( page ) { 
     43        var closed = $('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','), 
     44            hidden = $('.hide-postbox-tog').not(':checked').map(function() { return this.value; }).get().join(','); 
     45 
     46        $.post(ajaxurl, { 
     47            action: 'closed-postboxes', 
     48            closed: closed, 
     49            hidden: hidden, 
     50            closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(), 
     51            page: page 
     52        }); 
     53    } 
    3554})(jQuery); 
  • tabify-edit-screen/trunk/readme.txt

    r622109 r623079  
    44Tags: tabs, edit, admin, post, page, posts 
    55Requires at least: 3.3 
    6 Tested up to: 3.4 
    7 Stable tag: 0.3 
     6Tested up to: 3.5 
     7Stable tag: 0.4 
    88 
    99Enable tabs in the edit screen and manage them from the back-end. 
     
    1515The plugin is still in active development, and I'm always looking for ways to improve it.  
    1616 
    17 Known issue: currently the plugin ignores the "show on screen" values from the Screen options. I'm currently working to fix this issue. 
    18  
     17There are still lots of things changing in the code base. There are some hooks you can use but they can change from implementation till 1.0. I will always try to maintain backwards-compatible but till 1.0 I can't be sure for that. 
    1918 
    2019== Installation == 
     
    5049* Fix notice on edit screen when no items where inside a tab 
    5150* Fix issue that not all post types are showing 
     51* Now able to hide a metabox as an user and that the plugin will listen to that. Thank Elles for nagging me about to fix that ;) 
    5252* Ability to remove plugin support and isn't on by default anymore. Can be enabled with the filter "tabify_plugin_support" 
    5353* Added plugin support for Members and WordPress SEO. (Thanks sc0ttkclark for his help ) 
  • tabify-edit-screen/trunk/tabify-edit-screen.php

    r622109 r623079  
    66Author: Marko Heijnen 
    77Text Domain: tabify-edit-screen 
    8 Version: 0.4-dev 
     8Version: 0.4 
    99Author URI: http://markoheijnen.com 
    1010*/ 
Note: See TracChangeset for help on using the changeset viewer.