Ticket #21715: 21715.4.diff
| File 21715.4.diff, 9.2 KB (added by lancewillett, 9 months ago) |
|---|
-
wp-content/themes/twentytwelve/style.css
1199 1199 margin-bottom: 14px; 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; 1209 1209 width: auto; … … 1211 1211 padding-top: 1.714285714rem; 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; 1217 1217 font-size: 13px; … … 1220 1220 list-style-type: square; 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; 1232 1232 margin: 0.571428571rem 1.714285714rem 0.571428571rem 0; … … 1324 1324 float: left; 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 body. full-width .site-content {1329 body.template-full-width .site-content { 1331 1330 width: 100%; 1332 1331 } 1333 1332 .widget-area { … … 1428 1427 #respond form textarea.blog-textarea { 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%; 1438 1437 } … … 1441 1440 margin-bottom: 0; 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%; 1448 1447 margin-bottom: 24px; 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%; 1458 1457 margin: 0 0 24px; 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; 1465 1464 } … … 1624 1623 float: left; 1625 1624 width: 65.104166667%; 1626 1625 } 1627 .ie . full-width .site-content {1626 .ie .template-full-width .site-content { 1628 1627 float: none; 1629 1628 width: 100%; 1630 1629 } -
wp-content/themes/twentytwelve/full-width-page.php
1 <?php2 /**3 * Template Name: Full-width page, no sidebar4 *5 * @package WordPress6 * @subpackage Twenty_Twelve7 * @since Twenty Twelve 1.08 */9 10 get_header(); ?>11 12 <div id="primary" class="site-content">13 <div id="content" role="main">14 15 <?php while ( have_posts() ) : the_post(); ?>16 <?php get_template_part( 'content', 'page' ); ?>17 <?php comments_template( '', true ); ?>18 <?php endwhile; // end of the loop. ?>19 20 </div><!-- #content -->21 </div><!-- #primary -->22 23 <?php get_footer(); ?>24 No newline at end of file -
wp-content/themes/twentytwelve/rtl.css
139 139 /* =Home page template styling 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; 145 145 margin: 0.571428571rem 0 0.571428571rem 1.714285714rem; … … 178 178 /* Minimum width of 600 pixels. */ 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 } 184 184 .widget-area, … … 193 193 .entry-summary p { 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; 211 211 margin: 0 1.714285714rem 0; -
wp-content/themes/twentytwelve/functions.php
362 362 function twentytwelve_body_class( $classes ) { 363 363 $background_color = get_background_color(); 364 364 365 if ( ! is_active_sidebar( 1 ) || is_page_template( ' full-width-page.php' ) )366 $classes[] = ' full-width';365 if ( ! is_active_sidebar( 1 ) || is_page_template( 'page-templates/full-width.php' ) ) 366 $classes[] = 'template-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 ) ) 372 375 $classes[] = 'custom-background-empty'; … … 384 387 * @since Twenty Twelve 1.0 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; 390 393 } -
wp-content/themes/twentytwelve/page-templates/full-width.php
1 1 <?php 2 2 /** 3 * Template Name: Full-width page, no sidebar3 * Template Name: Full-width Page Template, No Sidebar 4 4 * 5 * @todo Better documentation here. 6 * 5 7 * @package WordPress 6 8 * @subpackage Twenty_Twelve 7 9 * @since Twenty Twelve 1.0 -
wp-content/themes/twentytwelve/page-templates/home.php
1 1 <?php 2 2 /** 3 * Template Name: Homepage 3 * Template Name: Homepage Template 4 4 * 5 * @todo Better documentation here. 6 * 5 7 * @package WordPress 6 8 * @subpackage Twenty_Twelve 7 9 * @since Twenty Twelve 1.0 -
wp-content/themes/twentytwelve/homepage.php
1 <?php2 /**3 * Template Name: Homepage4 *5 * @package WordPress6 * @subpackage Twenty_Twelve7 * @since Twenty Twelve 1.08 */9 10 get_header(); ?>11 12 <div id="primary" class="site-content">13 <div id="content" role="main">14 15 <?php while ( have_posts() ) : the_post(); ?>16 <?php if ( has_post_thumbnail() ) : ?>17 <div class="entry-page-image">18 <?php the_post_thumbnail(); ?>19 </div><!-- .entry-page-image -->20 <?php endif; ?>21 22 <?php get_template_part( 'content', 'page' ); ?>23 24 <?php endwhile; // end of the loop. ?>25 26 </div><!-- #content -->27 </div><!-- #primary -->28 29 <?php get_sidebar( 'home' ); ?>30 <?php get_footer(); ?>31 No newline at end of file
