Ticket #21715: 21715.diff
File 21715.diff, 9.4 KB (added by , 8 years 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 .page-template-page-templateshome-php .site-content article { 1203 1203 border: 0; 1204 1204 margin-bottom: 0; 1205 1205 } 1206 .page-template- homepage-php .widget-area {1206 .page-template-page-templateshome-php .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 .page-template-page-templateshome-php .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 .page-template-page-templateshome-php .widget-area .widget li a { 1224 1224 color: #777; 1225 1225 } 1226 .page-template- homepage-php .widget-area .widget li a:hover {1226 .page-template-page-templateshome-php .widget-area .widget li a:hover { 1227 1227 color: #21759b; 1228 1228 } 1229 .page-template- homepage-php .widget-area .widget_text img {1229 .page-template-page-templateshome-php .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.page-template-page-templatesfull-width-php .site-content, 1328 body.page-template-page-templateshome-php .site-content, 1329 1329 body.single-attachment .site-content, 1330 1330 body.full-width .site-content { 1331 1331 width: 100%; … … 1428 1428 #respond form textarea.blog-textarea { 1429 1429 width: 79.666666667%; 1430 1430 } 1431 .page-template- homepage-php .site-content,1432 .page-template- homepage-php article {1431 .page-template-page-templateshome-php .site-content, 1432 .page-template-page-templateshome-php article { 1433 1433 overflow: hidden; 1434 1434 } 1435 .page-template- homepage-php.has-post-thumbnail article {1435 .page-template-page-templateshome-php.has-post-thumbnail article { 1436 1436 float: left; 1437 1437 width: 47.916666667%; 1438 1438 } … … 1441 1441 margin-bottom: 0; 1442 1442 width: 47.916666667%; 1443 1443 } 1444 .page-template- homepage-php .widget-area .widget,1445 .page-template- homepage-php .widget-area.two .home-widgets {1444 .page-template-page-templateshome-php .widget-area .widget, 1445 .page-template-page-templateshome-php .widget-area.two .home-widgets { 1446 1446 float: left; 1447 1447 width: 51.875%; 1448 1448 margin-bottom: 24px; 1449 1449 margin-bottom: 1.714285714rem; 1450 1450 } 1451 .page-template- homepage-php .widget-area .widget:nth-child(odd) {1451 .page-template-page-templateshome-php .widget-area .widget:nth-child(odd) { 1452 1452 clear: right; 1453 1453 } 1454 .page-template- homepage-php .widget-area .widget:nth-child(even),1455 .page-template- homepage-php .widget-area.two .home-widgets + .home-widgets {1454 .page-template-page-templateshome-php .widget-area .widget:nth-child(even), 1455 .page-template-page-templateshome-php .widget-area.two .home-widgets + .home-widgets { 1456 1456 float: right; 1457 1457 width: 39.0625%; 1458 1458 margin: 0 0 24px; 1459 1459 margin: 0 0 1.714285714rem; 1460 1460 } 1461 .page-template- homepage-php .widget-area.two .widget,1462 .page-template- homepage-php .widget-area.two .widget:nth-child(even) {1461 .page-template-page-templateshome-php .widget-area.two .widget, 1462 .page-template-page-templateshome-php .widget-area.two .widget:nth-child(even) { 1463 1463 float: none; 1464 1464 width: auto; 1465 1465 } -
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 .page-template-page-templateshome-php .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 .page-template-page-templateshome-php.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 .page-template-page-templateshome-php .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 .page-template-page-templateshome-php .widget-area .widget, 201 .page-template-page-templateshome-php .widget-area.two .home-widgets { 202 202 float: right; 203 203 } 204 .page-template- homepage-php .widget-area .widget:nth-child(odd) {204 .page-template-page-templateshome-php .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 .page-template-page-templateshome-php .widget-area .widget:nth-child(even), 208 .page-template-page-templateshome-php .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' ) )365 if ( ! is_active_sidebar( 1 ) || is_page_template( 'page-templates/full-width-page.php' ) ) 366 366 $classes[] = 'full-width'; 367 367 368 if ( is_page_template( ' homepage.php' ) && has_post_thumbnail() )368 if ( is_page_template( 'page-templates/home.php' ) && has_post_thumbnail() ) 369 369 $classes[] = 'has-post-thumbnail'; 370 370 371 371 if ( empty( $background_color ) ) … … 384 384 * @since Twenty Twelve 1.0 385 385 */ 386 386 function twentytwelve_content_width() { 387 if ( is_page_template( ' full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) {387 if ( is_page_template( 'page-templates/full-width-page.php' ) || is_attachment() || ! is_active_sidebar( 1 ) ) { 388 388 global $content_width; 389 389 $content_width = 960; 390 390 } -
wp-content/themes/twentytwelve/page-templates/full-width-page.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