WordPress.org

Make WordPress Core

Ticket #17882: 17882-2.patch

File 17882-2.patch, 2.6 KB (added by azaozz, 7 years ago)
  • wp-content/themes/twentyeleven/inc/theme-options.php

     
    391391        else
    392392                $classes = array( 'one-column' );
    393393
    394         $classes[] = $current_layout;
     394        if ( 'content-sidebar' == $current_layout )
     395                $classes[] = 'right-sidebar';
     396        elseif ( 'sidebar-content' == $current_layout )
     397                $classes[] = 'left-sidebar';
     398        else
     399                $classes[] = $current_layout;
    395400
    396401        $classes = apply_filters( 'twentyeleven_layout_classes', $classes, $current_layout );
    397402
    398403        return array_merge( $existing_classes, $classes );
    399404}
    400 add_filter( 'body_class', 'twentyeleven_layout_classes' );
    401  No newline at end of file
     405add_filter( 'body_class', 'twentyeleven_layout_classes' );
  • wp-content/themes/twentyeleven/rtl.css

     
    2727        padding-left: 0;
    2828}
    2929
     30#site-title {
     31    margin-right: 0;
     32}
    3033
     34#site-description {
     35    margin: 0 0 3.65625em;
     36}
     37
    3138/* =Menu
    3239-------------------------------------------------------------- */
    3340
     
    5966#branding #s {
    6067        float: left;
    6168        padding: 4px 28px 4px 10px;
    62         width: 8%;
    6369}
    6470#branding #s:focus {
    6571        width: 26%;
  • wp-content/themes/twentyeleven/style.css

     
    101101        margin: 0;
    102102}
    103103.singular #content,
    104 .sidebar-content.singular #content {
     104.left-sidebar.singular #content {
    105105        margin: 0 7.6%;
    106106        position: relative;
    107107        width: auto;
     
    126126
    127127/* Showcase */
    128128.page-template-showcase-php #primary,
    129 .sidebar-content.page-template-showcase-php #primary {
     129.left-sidebar.page-template-showcase-php #primary {
    130130        margin: 0;
    131131}
    132132.page-template-showcase-php #content,
    133 .sidebar-content.page-template-showcase-php #content {
     133.left-sidebar.page-template-showcase-php #content {
    134134        margin: 0 7.6%;
    135135        width: auto;
    136136}
     
    174174}
    175175
    176176/* Right Content */
    177 .sidebar-content #primary {
     177.left-sidebar #primary {
    178178        float: right;
    179179        margin: 0 0 0 -26.4%;
    180180        width: 100%;
    181181}
    182 .sidebar-content #content {
     182.left-sidebar #content {
    183183        margin: 0 7.6% 0 34%;
    184184        width: 58.4%;
    185185}
    186 .sidebar-content #secondary {
     186.left-sidebar #secondary {
    187187        float: left;
    188188        margin-left: 7.6%;
    189189        margin-right: 0;