Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
|
|
|
|
| 133 | 133 | */ |
| 134 | 134 | function twentyeleven_layouts() { |
| 135 | 135 | $layout_options = array( |
| 136 | | 'content-sidebar' => array( |
| 137 | | 'value' => 'content-sidebar', |
| | 136 | 'right-sidebar' => array( |
| | 137 | 'value' => 'right-sidebar', |
| 138 | 138 | 'label' => __( 'Content on left', 'twentyeleven' ), |
| 139 | | 'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png', |
| | 139 | 'thumbnail' => get_template_directory_uri() . '/inc/images/right-sidebar.png', |
| 140 | 140 | ), |
| 141 | | 'sidebar-content' => array( |
| 142 | | 'value' => 'sidebar-content', |
| | 141 | 'left-sidebar' => array( |
| | 142 | 'value' => 'left-sidebar', |
| 143 | 143 | 'label' => __( 'Content on right', 'twentyeleven' ), |
| 144 | | 'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png', |
| | 144 | 'thumbnail' => get_template_directory_uri() . '/inc/images/left-sidebar.png', |
| 145 | 145 | ), |
| 146 | 146 | 'content' => array( |
| 147 | 147 | 'value' => 'content', |
| … |
… |
|
| 162 | 162 | $default_theme_options = array( |
| 163 | 163 | 'color_scheme' => 'light', |
| 164 | 164 | 'link_color' => twentyeleven_get_default_link_color( 'light' ), |
| 165 | | 'theme_layout' => 'content-sidebar', |
| | 165 | 'theme_layout' => 'right-sidebar' |
| 166 | 166 | ); |
| 167 | 167 | |
| | 168 | if ( is_rtl() ) |
| | 169 | $default_theme_options['theme_layout'] = 'left-sidebar'; |
| | 170 | |
| 168 | 171 | return apply_filters( 'twentyeleven_default_theme_options', $default_theme_options ); |
| 169 | 172 | } |
| 170 | 173 | |
| … |
… |
|
| 386 | 389 | $options = twentyeleven_get_theme_options(); |
| 387 | 390 | $current_layout = $options['theme_layout']; |
| 388 | 391 | |
| 389 | | if ( in_array( $current_layout, array( 'content-sidebar', 'sidebar-content' ) ) ) |
| | 392 | if ( in_array( $current_layout, array( 'right-sidebar', 'left-sidebar' ) ) ) |
| 390 | 393 | $classes = array( 'two-column' ); |
| 391 | 394 | else |
| 392 | 395 | $classes = array( 'one-column' ); |
| … |
… |
|
| 397 | 400 | |
| 398 | 401 | return array_merge( $existing_classes, $classes ); |
| 399 | 402 | } |
| 400 | | add_filter( 'body_class', 'twentyeleven_layout_classes' ); |
| 401 | | No newline at end of file |
| | 403 | add_filter( 'body_class', 'twentyeleven_layout_classes' ); |