Changeset 21642
- Timestamp:
- 08/28/2012 05:12:10 PM (14 years ago)
- Location:
- trunk/wp-content/themes/twentytwelve
- Files:
-
- 1 added
- 3 edited
- 2 moved
-
functions.php (modified) (2 diffs)
-
page-templates (added)
-
page-templates/full-width.php (moved) (moved from trunk/wp-content/themes/twentytwelve/full-width-page.php) (1 diff)
-
page-templates/home.php (moved) (moved from trunk/wp-content/themes/twentytwelve/homepage.php) (1 diff)
-
rtl.css (modified) (3 diffs)
-
style.css (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r21639 r21642 363 363 $background_color = get_background_color(); 364 364 365 if ( ! is_active_sidebar( 1 ) || is_page_template( ' full-width-page.php' ) )365 if ( ! is_active_sidebar( 1 ) || is_page_template( 'page-templates/full-width.php' ) ) 366 366 $classes[] = 'full-width'; 367 367 368 if ( is_page_template( 'homepage.php' ) && has_post_thumbnail() ) 369 $classes[] = 'has-post-thumbnail'; 368 if ( is_page_template( 'page-templates/home.php' ) ) { 369 $classes[] = 'template-home'; 370 if ( has_post_thumbnail() ) 371 $classes[] = 'has-post-thumbnail'; 372 } 370 373 371 374 if ( empty( $background_color ) ) … … 385 388 */ 386 389 function twentytwelve_content_width() { 387 if ( is_page_template( ' full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) {390 if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { 388 391 global $content_width; 389 392 $content_width = 960; -
trunk/wp-content/themes/twentytwelve/page-templates/full-width.php
r21641 r21642 1 1 <?php 2 2 /** 3 * Template Name: Full-width page, no sidebar 3 * Template Name: Full-width Page Template, No Sidebar 4 * 5 * @todo Better documentation here. 4 6 * 5 7 * @package WordPress -
trunk/wp-content/themes/twentytwelve/page-templates/home.php
r21641 r21642 1 1 <?php 2 2 /** 3 * Template Name: Homepage 3 * Template Name: Homepage Template 4 * 5 * @todo Better documentation here. 4 6 * 5 7 * @package WordPress -
trunk/wp-content/themes/twentytwelve/rtl.css
r21617 r21642 140 140 -------------------------------------------------------------- */ 141 141 142 . page-template-homepage-php.widget-area .widget_text img {142 .template-home .widget-area .widget_text img { 143 143 float: right; 144 144 margin: 8px 0 8px 24px; … … 179 179 @media screen and (min-width: 600px) { 180 180 .site-content, 181 . page-template-homepage-php.has-post-thumbnail article {181 .template-home.has-post-thumbnail article { 182 182 float: right; 183 183 } … … 194 194 text-align: right; 195 195 } 196 . page-template-homepage-php.widget-area .widget_text img {196 .template-home .widget-area .widget_text img { 197 197 float: right; 198 198 margin: 8px 0 8px 24px; 199 199 } 200 . page-template-homepage-php.widget-area .widget,201 . page-template-homepage-php.widget-area.two .home-widgets {200 .template-home .widget-area .widget, 201 .template-home .widget-area.two .home-widgets { 202 202 float: right; 203 203 } 204 . page-template-homepage-php.widget-area .widget:nth-child(odd) {204 .template-home .widget-area .widget:nth-child(odd) { 205 205 clear: left; 206 206 } 207 . page-template-homepage-php.widget-area .widget:nth-child(even),208 . page-template-homepage-php.widget-area.two .home-widgets + .home-widgets {207 .template-home .widget-area .widget:nth-child(even), 208 .template-home .widget-area.two .home-widgets + .home-widgets { 209 209 float: left; 210 210 margin: 0 24px 0; -
trunk/wp-content/themes/twentytwelve/style.css
r21639 r21642 1200 1200 margin-bottom: 1rem; 1201 1201 } 1202 . page-template-homepage-php.site-content article {1202 .template-home .site-content article { 1203 1203 border: 0; 1204 1204 margin-bottom: 0; 1205 1205 } 1206 . page-template-homepage-php.widget-area {1206 .template-home .widget-area { 1207 1207 clear: both; 1208 1208 float: none; … … 1212 1212 border-top: 1px solid #ededed; 1213 1213 } 1214 . page-template-homepage-php.widget-area .widget li {1214 .template-home .widget-area .widget li { 1215 1215 margin: 8px 0 0; 1216 1216 margin: 0.571428571rem 0 0; … … 1221 1221 list-style-position: inside; 1222 1222 } 1223 . page-template-homepage-php.widget-area .widget li a {1223 .template-home .widget-area .widget li a { 1224 1224 color: #777; 1225 1225 } 1226 . page-template-homepage-php.widget-area .widget li a:hover {1226 .template-home .widget-area .widget li a:hover { 1227 1227 color: #21759b; 1228 1228 } 1229 . page-template-homepage-php.widget-area .widget_text img {1229 .template-home .widget-area .widget_text img { 1230 1230 float: left; 1231 1231 margin: 8px 24px 8px 0; … … 1325 1325 width: 65.104166667%; 1326 1326 } 1327 body.page-template-full-width-page-php .site-content, 1328 body.page-template-homepage-php .site-content, 1327 body.template-home .site-content, 1329 1328 body.single-attachment .site-content, 1330 1329 body.full-width .site-content { … … 1429 1428 width: 79.666666667%; 1430 1429 } 1431 . page-template-homepage-php.site-content,1432 . page-template-homepage-phparticle {1430 .template-home .site-content, 1431 .template-home article { 1433 1432 overflow: hidden; 1434 1433 } 1435 . page-template-homepage-php.has-post-thumbnail article {1434 .template-home.has-post-thumbnail article { 1436 1435 float: left; 1437 1436 width: 47.916666667%; … … 1442 1441 width: 47.916666667%; 1443 1442 } 1444 . page-template-homepage-php.widget-area .widget,1445 . page-template-homepage-php.widget-area.two .home-widgets {1443 .template-home .widget-area .widget, 1444 .template-home .widget-area.two .home-widgets { 1446 1445 float: left; 1447 1446 width: 51.875%; … … 1449 1448 margin-bottom: 1.714285714rem; 1450 1449 } 1451 . page-template-homepage-php.widget-area .widget:nth-child(odd) {1450 .template-home .widget-area .widget:nth-child(odd) { 1452 1451 clear: right; 1453 1452 } 1454 . page-template-homepage-php.widget-area .widget:nth-child(even),1455 . page-template-homepage-php.widget-area.two .home-widgets + .home-widgets {1453 .template-home .widget-area .widget:nth-child(even), 1454 .template-home .widget-area.two .home-widgets + .home-widgets { 1456 1455 float: right; 1457 1456 width: 39.0625%; … … 1459 1458 margin: 0 0 1.714285714rem; 1460 1459 } 1461 . page-template-homepage-php.widget-area.two .widget,1462 . page-template-homepage-php.widget-area.two .widget:nth-child(even) {1460 .template-home .widget-area.two .widget, 1461 .template-home .widget-area.two .widget:nth-child(even) { 1463 1462 float: none; 1464 1463 width: auto;
Note: See TracChangeset
for help on using the changeset viewer.