Changeset 21886 for trunk/wp-content/themes/twentytwelve/functions.php
- Timestamp:
- 09/18/2012 05:28:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r21882 r21886 180 180 181 181 /** 182 * Registers our main widget area and the homepage widget areas.182 * Registers our main widget area and the front page widget areas. 183 183 * 184 184 * @since Twenty Twelve 1.0 … … 188 188 'name' => __( 'Main Sidebar', 'twentytwelve' ), 189 189 'id' => 'sidebar-1', 190 'description' => __( 'Appears on posts and pages except the optional Homepage template, which has its own widgets', 'twentytwelve' ),190 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), 191 191 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 192 192 'after_widget' => '</aside>', … … 196 196 197 197 register_sidebar( array( 198 'name' => __( 'First Homepage Widget Area', 'twentytwelve' ),198 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), 199 199 'id' => 'sidebar-2', 200 'description' => __( 'Appears when using the optional homepage template with a page set as Static Front Page', 'twentytwelve' ),200 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), 201 201 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 202 202 'after_widget' => '</aside>', … … 206 206 207 207 register_sidebar( array( 208 'name' => __( 'Second Homepage Widget Area', 'twentytwelve' ),208 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), 209 209 'id' => 'sidebar-3', 210 'description' => __( 'Appears when using the optional homepage template with a page set as Static Front Page', 'twentytwelve' ),210 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), 211 211 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 212 212 'after_widget' => '</aside>', … … 222 222 * @since Twenty Twelve 1.0 223 223 */ 224 function twentytwelve_ homepage_sidebar_class() {224 function twentytwelve_frontpage_sidebar_class() { 225 225 $classes = array( 'widget-area' ); 226 226 … … 365 365 * 1. Using a full-width layout, when no active widgets in the sidebar 366 366 * or full-width template. 367 * 2. A thumbnail in the Homepage page template.367 * 2. A thumbnail in the Front Page template. 368 368 * 3. White or empty background color to change the layout and spacing. 369 369 * … … 379 379 $classes[] = 'full-width'; 380 380 381 if ( is_page_template( 'page-templates/ home.php' ) ) {382 $classes[] = 'template- home';381 if ( is_page_template( 'page-templates/front-page.php' ) ) { 382 $classes[] = 'template-front-page'; 383 383 if ( has_post_thumbnail() ) 384 384 $classes[] = 'has-post-thumbnail';
Note: See TracChangeset
for help on using the changeset viewer.