Making WordPress.org


Ignore:
Timestamp:
01/22/2021 07:26:44 PM (4 years ago)
Author:
iandunn
Message:

wporg-main: Sync with static homepage.

File:
1 edited

Legend:

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

    r10616 r10624  
    3434$swag_class = $showcase ? 'col-4' : 'col-2';
    3535$user_class = $showcase ? 'col-12' : 'col-2';
     36
     37$cdn_domain = defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ? 's-origin.wordpress.org' : 's.w.org';
    3638
    3739get_header( 'wporg' );
     
    256258                        <?php
    257259                        $user_links = [
    258                             'people'        => 'https://wordpress.org/showcase/stylewatch-off-the-rack/',
     260                            'whitehouse'    => 'https://wordpress.org/showcase/the-white-house/',
     261                            'rolling-stone' => 'https://wordpress.org/showcase/rolling-stone/',
     262                            'bbc-america'   => 'https://wordpress.org/showcase/bbc-america/',
     263                            'unicef-uk'     => 'https://wordpress.org/showcase/unicef-uk/',
     264                            'pioneer-woman' => 'https://wordpress.org/showcase/the-pioneer-woman',
    259265                            'playstation'   => 'https://wordpress.org/showcase/playstationblog/',
    260266                            'blondie'       => 'https://wordpress.org/showcase/blondie/',
    261                             'marthastewart' => 'https://wordpress.org/showcase/themarthablog/',
    262267                        ];
    263268
    264269                        foreach ( array_rand( $user_links, 3 ) as $slug ) :
    265270                            printf(
    266                                 '<li><a href="%1$s"><img src="https://s.w.org/images/notableusers/%2$s-2x.png" alt="%2$s" width="130" height="57" /></a></li>',
     271                                '<li><a href="%1$s"><img src="https://'. $cdn_domain .'/images/notableusers/%2$s-2x.png?version=2" alt="%2$s" width="130" height="57" /></a></li>',
    267272                                $user_links[ $slug ],
    268273                                $slug
Note: See TracChangeset for help on using the changeset viewer.