Making WordPress.org


Ignore:
Timestamp:
04/15/2015 08:56:26 AM (11 years ago)
Author:
dd32
Message:

Theme Directory: Improve localisation by properly using a consistent text domain, and not relying upon strings contained within wp-admin.
This removes the Nav menu, replacing it with a hard-coded menu, and hard-coded site title.

File:
1 edited

Legend:

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

    r1406 r1477  
    66 */
    77
     8$GLOBALS['pagetitle'] = __( 'Theme Directory « Free WordPress Themes', 'wporg-themes' );
    89
    9 $GLOBALS['pagetitle'] = wp_title( '«', false, 'right' );
    1010require WPORGPATH . 'header.php';
    1111?>
     
    1313<div id="headline">
    1414    <div class="wrapper">
    15         <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
     15        <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _e( 'Theme Directory', 'wporg-themes' ) ?></a></h2>
    1616    </div>
    1717</div>
    1818<nav id="site-navigation" class="main-navigation" role="navigation">
    19     <?php
    20         wp_nav_menu( array(
    21             'theme_location' => 'primary',
    22             'container'      => false,
    23             'depth'          => 1,
    24         ) );
    25     ?>
     19    <ul id="menu-theme-directory" class="menu">
     20        <li><a href="<?php echo home_url( '/commercial/' ); ?>"><?php _e( 'Commercial Themes', 'wporg-themes' ); ?></a></li>
     21        <li><a href="<?php echo home_url( '/getting-started/' ); ?>"><?php _e( 'Upload Your Theme', 'wporg-themes' ); ?></a></li>
     22    </ul>
    2623</nav>
Note: See TracChangeset for help on using the changeset viewer.