Changeset 3631
- Timestamp:
- 07/07/2016 06:04:37 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php
r3630 r3631 7 7 8 8 // Cacheing hack 9 wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), '20160707 ' );9 wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), '20160707a' ); 10 10 } 11 11 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\styles', 11 ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php
r3630 r3631 27 27 $hash = isset( $_COOKIE[ $cookie ] ) ? $_COOKIE[ $cookie ] : ''; 28 28 29 if ( $welcome && md5( $welcome->post_content ) !== $hash ) { 29 $content_hash = $welcome ? md5( $welcome->post_content ) : ''; 30 31 if ( $welcome && ( empty( $hash ) || $content_hash !== $hash ) ) { 32 $columns = preg_split( '|<hr\s*/?>|', $welcome->post_content ); 33 if ( count( $columns ) === 2 ) { 34 $welcome->post_content = "<div class='first-column'>\n\n{$columns[0]}</div><div class='second-column'>\n\n{$columns[1]}</div>"; 35 } 30 36 setup_postdata( $welcome ); 31 37 ?> 32 38 <div class="make-welcome-wrapper"> 33 <span id="make-welcome-hide" class="dashicons dashicons-no" data-hash="<?php echo md5( $welcome->post_content ); ?>" data-cookie="<?php echo $cookie; ?>" title="<?php _e( 'Hide this message', 'p2-breathe' ); ?>"></span>39 <span id="make-welcome-hide" class="dashicons dashicons-no" data-hash="<?php echo $content_hash; ?>" data-cookie="<?php echo $cookie; ?>" title="<?php _e( 'Hide this message', 'p2-breathe' ); ?>"></span> 34 40 <div class="make-welcome"> 35 41 <?php -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css
r3630 r3631 314 314 #make-welcome-hide { 315 315 float: right; 316 margin: 30px;316 margin: 15px; 317 317 cursor: pointer; 318 318 } … … 349 349 } 350 350 351 .make-welcome .first-column { 352 width: 71%; 353 display: inline-block; 354 } 355 356 .make-welcome .second-column { 357 width: 25%; 358 float: right; 359 } 360 351 361 .make-welcome .welcome { 352 362 padding-top: 1%; … … 362 372 text-align: right; 363 373 margin: 0 5px 5px 0; 374 clear: both; 364 375 } 365 376 … … 387 398 } 388 399 } 400 401 @media screen and (max-width: 1000px) { 402 .make-welcome .first-column, 403 .make-welcome .second-column { 404 width: 100%; 405 float: none; 406 clear: both; 407 } 408 }
Note: See TracChangeset
for help on using the changeset viewer.