Making WordPress.org


Ignore:
Timestamp:
10/04/2017 06:38:13 PM (9 years ago)
Author:
obenland
Message:

Main: Introduce cube grid to manage small sceens

Adds a comfortable way to manage page structure and widget arrangement on small
screens.

See #2861.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php

    r5892 r5998  
    105105                </div>
    106106
    107                 <div id="home-below" class="home-below">
    108                         <div class="col-2">
    109                                 <h4><a href="https://wordpress.org/about/swag/"><?php _e( 'WordPress&nbsp;Swag' ); ?></a></h4>
    110                                 <a href="https://wordpress.org/about/swag/"><img width="132" height="177" src="https://wpdotorg.files.wordpress.com/2015/10/gray-tshirt-swag.jpg" alt="<?php esc_attr_e( 'WordPress Swag' ); ?>" /></a>
    111                         </div>
    112 
     107                <div id="home-below" class="home-below row gutters">
    113108                        <div class="col-4">
    114109                                <h4><a href="https://wordpress.org/news/"><?php _e( 'News From Our Blog' ); ?></a></h4>
    115110
    116111                                <?php
    117                                 $featured = new \WP_Query( [ 'posts_per_page' => 1 ] );
     112                                $featured = new \WP_Query( [ 'posts_per_page' => 1, 'ignore_sticky_posts' => true ] );
    118113                                while ( $featured->have_posts() ) :
    119114                                        $featured->the_post();
     
    133128                                        <li class="three"><span></span><?php printf( __( '<a href="%s">Read the Documentation</a> and become a WordPress expert yourself, impress your friends.' ), esc_url( 'https://developer.wordpress.org' ) ); ?></li>
    134129                                </ol>
     130                        </div>
     131
     132                        <div class="col-2 first">
     133                                <h4><a href="https://wordpress.org/about/swag/"><?php _e( 'WordPress&nbsp;Swag' ); ?></a></h4>
     134                                <a href="https://wordpress.org/about/swag/"><img width="132" height="177" src="https://wpdotorg.files.wordpress.com/2015/10/gray-tshirt-swag.jpg" alt="<?php esc_attr_e( 'WordPress Swag' ); ?>" /></a>
    135135                        </div>
    136136
Note: See TracChangeset for help on using the changeset viewer.