WordPress.org

Making WordPress.org

Changeset 956


Ignore:
Timestamp:
10/29/2014 11:02:38 PM (6 years ago)
Author:
coffee2code
Message:

Code Reference: open up public access to the primary landing page and plugin handbook landing page

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/redirects.php

    r954 r956  
    4747            ( 'handbook' == get_query_var( 'name' ) && ! get_query_var( 'post_type' ) ) ||
    4848            // Temporary: Disable access to handbooks unless a member of the site
    49             ( ! is_user_member_of_blog() && is_post_type_archive( array( 'plugin-handbook', 'theme-handbook' ) ) )
     49            ( ! is_user_member_of_blog() && is_post_type_archive( array( 'theme-handbook' ) ) )
    5050        ) {
    5151            wp_redirect( home_url() );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/page-home-landing.php

    r948 r956  
    88 */
    99
    10 // Temporarily redirect to reference until other section become live, justifying a main landing page.
    11 if ( ! is_user_member_of_blog() ) {
    12     wp_redirect( get_permalink( get_page_by_path( 'reference' ) ) );
    13     exit();
    14 }
    15 
    1610get_header(); ?>
    1711
     
    2216            <div class="handbook-banner section blue clear color">
    2317                <div class="inner-wrap two-columns">
    24                     <div class="widget box box-left transparent">
    25                         <h3 class="widget-title"><div class="dashicons dashicons-welcome-widgets-menus"></div><?php _e( 'Themes', 'wporg' ); ?></h3>
     18                    <div class="widget box box-left transparent" style="color:#999;">
     19                        <h3 class="widget-title" style="color:#999;"><div class="dashicons dashicons-welcome-widgets-menus"></div><?php _e( 'Themes', 'wporg' ); ?></h3>
    2620                        <p class="widget-description"><?php _e( 'Want to know all there is to know about theming and WordPress?', 'wporg' ); ?></p>
     21                        <?php if ( is_user_member_of_blog() ) : ?>
    2722                        <a href="<?php esc_attr_e( get_post_type_archive_link( 'theme-handbook' ) ); ?>" class="themes-go get-started go button"><?php _e( 'Develop Themes ', 'wporg' ); ?><span class="dashicons dashicons-arrow-right-alt2"></span></a>
     23                        <?php else :?>
     24                        <strong><em><?php _e( 'Coming Soon!', 'wporg' ); ?></em></strong>
     25                        <?php endif; ?>
    2826                    </div>
    2927                    <div class="widget box box-right transparent">
Note: See TracChangeset for help on using the changeset viewer.