Making WordPress.org


Ignore:
Timestamp:
07/09/2018 05:18:18 PM (7 years ago)
Author:
obenland
Message:

Main: Add links to child pages from Get page.

Props kjellr.
See #3673.

File:
1 edited

Legend:

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

    r7389 r7391  
    4040];
    4141shuffle( $hosts );
     42
     43$menu_items = [
     44    'download/releases'     => _x( 'All Releases', 'Page title', 'wporg' ),
     45    'download/beta-nightly' => _x( 'Beta/Nightly Versions', 'Page title', 'wporg' ),
     46    'download/counter'      => _x( 'Download Counter', 'Page title', 'wporg' ),
     47    'download/source'       => _x( 'Source Code', 'Page title', 'wporg' ),
     48];
    4249
    4350// Prevent Jetpack from looking for a non-existent featured image.
     
    118125                    </aside>
    119126
    120                     <aside class="col-12">
     127                    <aside class="col-6">
    121128                        <h4><?php esc_html_e( 'Requirements', 'wporg' ); ?></h4>
    122129                        <p class="aside">
     
    141148                        </p>
    142149                    </aside>
    143                     <a href="<?php echo esc_url( home_url( '/download/' ) ); ?>" class="call-to-action col-12"><?php esc_html_e( 'Discover other ways to get WordPress', 'wporg' ); ?></a>
     150
     151                    <aside class="col-6">
     152                        <h4><?php esc_html_e( 'More resources', 'wporg' ); ?></h4>
     153                        <ul>
     154                            <?php foreach ( $menu_items as $slug => $text ) : ?>
     155                                <li><a href="<?php echo esc_url( home_url( $slug ) ); ?>"><?php echo esc_html( $text ); ?></a></li>
     156                            <?php endforeach; ?>
     157                        </ul>
     158                    </aside>
    144159                </section>
    145160
Note: See TracChangeset for help on using the changeset viewer.