Changeset 7379 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-get.php
- Timestamp:
- 07/06/2018 04:21:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-get.php
r7366 r7379 9 9 10 10 namespace WordPressdotorg\MainTheme; 11 12 $hosts = [ 13 'bluehost' => [ 14 'description' => __( 'Our optimized hosting is fast, secure, and simple. We are turning our passion for WordPress into the most amazing managed platform for your WordPress websites ever.', 'wporg' ), 15 'logo' => 'images/logo-bluehost.png', 16 'name' => 'Bluehost', 17 'url' => 'https://www.bluehost.com/wordpress-hosting', 18 ], 19 20 /* 21 'dreamhost' => [ 22 'description' => __( '', 'wporg' ), 23 'logo' => '', 24 'name' => 'Dreamhost', 25 'url' => 'https://www.dreamhost.com/wordpress-hosting/', 26 ], 27 'siteground' => [ 28 'description' => __( '', 'wporg' ), 29 'logo' => '', 30 'name' => 'Siteground', 31 'url' => 'https://www.siteground.com/wordpress-hosting.htm', 32 ], 33 */ 34 'wordpress.com' => [ 35 'description' => __( 'WordPress.com is the easiest way to create a free website or blog. It’s a powerful hosting platform that grows with you. We offer expert support for your WordPress site.', 'wporg' ), 36 'logo' => 'images/logo-wpcom.png', 37 'name' => 'WordPress.com', 38 'url' => 'https://wordpress.com/', 39 ], 40 ]; 11 41 12 42 // Prevent Jetpack from looking for a non-existent featured image. … … 114 144 <p class="subheading col-8"><?php esc_html_e( 'Choosing a hosting provider can be difficult, so we have selected a few of the best to get you started.', 'wporg' ); ?></p> 115 145 146 <?php foreach ( array_rand( $hosts, 2 ) as $host ) : ?> 116 147 <div class="host col-6"> 117 <img src="<?php echo esc_url( get_theme_file_uri( 'images/logo-bluehost.png' ) ); ?>" class="logo__bluehost" /> 118 <p><?php esc_html_e( 'Our optimized hosting is fast, secure, and simple. We are turning our passion for WordPress into the most amazing managed platform for your WordPress websites ever.', 'wporg' ); ?></p> 119 <a href="https://www.bluehost.com/wordpress-hosting"><?php esc_html_e( 'Visit Bluehost', 'wporg' ); ?></a> 148 <img src="<?php echo esc_url( get_theme_file_uri( $hosts[ $host ]['logo'] ) ); ?>" class="logo" /> 149 <p><?php echo esc_html( $hosts[ $host ]['description'] ); ?></p> 150 <a href="<?php echo esc_url( $hosts[ $host ]['url'] ); ?>"> 151 <?php 152 /* translators: Name of hosting company */ 153 printf( esc_html__( 'Visit %s', 'wporg' ), esc_html( $hosts[ $host ]['name'] ) ); 154 ?> 155 </a> 120 156 </div> 121 <div class="host col-6"> 122 <img src="<?php echo esc_url( get_theme_file_uri( 'images/logo-wpcom.png' ) ); ?>" class="logo__wpcom" /> 123 <p><?php esc_html_e( 'WordPress.com is the easiest way to create a free website or blog. It’s a powerful hosting platform that grows with you. We offer expert support for your WordPress site.', 'wporg' ); ?></p> 124 <a href="https://wordpress.com/"><?php esc_html_e( 'Visit WordPress.com', 'wporg' ); ?></a> 125 </div> 157 <?php endforeach; ?> 158 126 159 <a href="<?php echo esc_url( home_url( '/hosting/' ) ); ?>" class="call-to-action col-12"><?php esc_html_e( 'See all of our recommended hosts', 'wporg' ); ?></a> 127 160 </section>
Note: See TracChangeset
for help on using the changeset viewer.