Make WordPress Core


Ignore:
Timestamp:
11/02/2010 11:25:24 PM (15 years ago)
Author:
nacin
Message:

Tabs for internal linking. props koopersmith, see #11420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/wp-mce-link-includes.php

    r15943 r16159  
    33class WP_Tab_Bar {
    44    var $tabs = array();
     5   
     6    var $id = '';
     7    var $classes = array();
    58   
    69    var $selected = '';
     
    2225            $this->selected = $this->tabs[0]['for'];
    2326
    24         $out = "<ul class='wp-tab-bar'>";
     27        array_unshift( $this->classes, 'wp-tab-bar' );
     28       
     29        $out = "<ul id='$this->id' class='" . esc_attr( implode( ' ', $this->classes ) ) . "'>";
    2530        foreach( $this->tabs as $tab ) {
    2631            if ( !isset($tab['url']) )
Note: See TracChangeset for help on using the changeset viewer.