WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/25/2011 08:24:07 PM (10 years ago)
Author:
azaozz
Message:

Twenty Eleven RTL update, props yoavf, fixes #17882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r18276 r18342  
    165165        'theme_layout' => 'content-sidebar',
    166166    );
     167
     168    if ( is_rtl() )
     169        $default_theme_options['theme_layout'] = 'sidebar-content';
    167170
    168171    return apply_filters( 'twentyeleven_default_theme_options', $default_theme_options );
     
    392395        $classes = array( 'one-column' );
    393396
    394     $classes[] = $current_layout;
     397    if ( 'content-sidebar' == $current_layout )
     398        $classes[] = 'right-sidebar';
     399    elseif ( 'sidebar-content' == $current_layout )
     400        $classes[] = 'left-sidebar';
     401    else
     402        $classes[] = $current_layout;
    395403
    396404    $classes = apply_filters( 'twentyeleven_layout_classes', $classes, $current_layout );
Note: See TracChangeset for help on using the changeset viewer.