WordPress.org

Plugin Directory

Changeset 623196


Ignore:
Timestamp:
11/09/12 22:08:29 (17 months ago)
Author:
markoheijnen
Message:

Uploaded fixes for 0.4 and new fixes for 0.4.1

Location:
tabify-edit-screen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tabify-edit-screen/tags/0.4/inc/admin.php

    r623083 r623196  
    5555            'posttypes' => array( 'title' => __('Post types'), 'class' => 'Tabify_Edit_Screen_Settings_Posttypes' ) 
    5656        ); 
    57         $tabs = apply_filters( 'tabify-edit-screen-settings-tabs', $tabs ); 
     57        $tabs = apply_filters( 'tabify_settings_tabs', $tabs ); 
    5858 
    5959        $this->tabs = new Tabify_Edit_Screen_Tabs( $tabs, 'horizontal', 'tab', false ); 
     
    9191        if( $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST['tabify'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'tabify_edit_screen_nonce' ) ) { 
    9292            $options = $_POST['tabify']; 
    93             $options = apply_filters( 'tabify-settings-update', $options ); 
     93            $options = apply_filters( 'tabify_settings_update', $options ); 
    9494 
    9595            update_option( 'tabify-edit-screen', $options ); 
  • tabify-edit-screen/trunk/inc/admin.php

    r622109 r623196  
    5555            'posttypes' => array( 'title' => __('Post types'), 'class' => 'Tabify_Edit_Screen_Settings_Posttypes' ) 
    5656        ); 
    57         $tabs = apply_filters( 'tabify-edit-screen-settings-tabs', $tabs ); 
     57        $tabs = apply_filters( 'tabify_settings_tabs', $tabs ); 
    5858 
    5959        $this->tabs = new Tabify_Edit_Screen_Tabs( $tabs, 'horizontal', 'tab', false ); 
     
    9191        if( $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST['tabify'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'tabify_edit_screen_nonce' ) ) { 
    9292            $options = $_POST['tabify']; 
    93             $options = apply_filters( 'tabify-settings-update', $options ); 
     93            $options = apply_filters( 'tabify_settings_update', $options ); 
    9494 
    9595            update_option( 'tabify-edit-screen', $options ); 
  • tabify-edit-screen/trunk/inc/settings-posttype.php

    r622109 r623196  
    7575            echo '<div class="tabifybox-options">'; 
    7676            echo '<p><input type="checkbox" name="tabify[posttypes][' . $posttype . '][show]" value="1" ' . $checked . '/> ' . __( 'Show tabs in this post type.', 'tabify-edit-screen' ) . '</p>'; 
    77             do_action( 'tabify-settings-posttype', $posttype, $options[ $posttype ] ); 
     77            do_action( 'tabify_settings_posttype', $posttype, $options[ $posttype ] ); 
    7878            echo '</div>'; 
    7979 
  • tabify-edit-screen/trunk/js/admin.js

    r622109 r623196  
    1919                var item = $( ui.item ); 
    2020                var parts = $( 'input', ui.item ).attr('name').split( '][' ); 
    21                 parts[2] = item.closest( 'div' ).index(); 
     21                parts[3] = item.closest( 'div' ).index(); 
    2222                $( 'input', ui.item ).attr( 'name', parts.join( '][' ) ); 
    2323 
     
    4040 
    4141        var html = '<div class="menu-item-handle tabify_tab">'; 
    42         html += '<h2><span>' + title + '</span><input type="text" name="tabify[' + posttype + '][tabs][' + counter + '][title]" value="' + title + '" style="display: none;" /></h2>'; 
     42        html += '<h2><span>' + title + '</span><input type="text" name="tabify[posttypes][' + posttype + '][tabs][' + counter + '][title]" value="' + title + '" style="display: none;" /></h2>'; 
    4343        html += '<a href="#" class="tabify-remove-tab">' + tabify_l10.remove + '</a><div class="clear"></div>'; 
    4444        html += '<ul></ul></div>'; 
  • tabify-edit-screen/trunk/tabify-edit-screen.php

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