WordPress.org

Making WordPress.org

Changeset 2084


Ignore:
Timestamp:
11/16/2015 09:04:23 PM (4 years ago)
Author:
stephdau
Message:

login.wordpress.org: Adding phpDocs, translation strings, text-domain, and other common ".org" theme practices.

Props @ramiy, via #1393

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

Legend:

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

    r2081 r2084  
    11<?php
     2/**
     3 * The template for displaying the footer.
     4 *
     5 * @package wporg-login
     6 */
     7
    28require WPORGPATH . 'footer.php';
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r2081 r2084  
    11<?php
     2/**
     3 * WP.org login' functions and definitions.
     4 *
     5 * @package wporg-login
     6 */
    27
     8
     9
     10/**
     11 * Registers support for various WordPress features.
     12 */
     13function wporg_login_setup() {
     14    load_theme_textdomain( 'wporg-login' );
     15}
     16add_action( 'after_setup_theme', 'wporg_login_setup' );
     17
     18
     19
     20/**
     21 * Extend the default WordPress body classes.
     22 *
     23 * @param array $classes A list of existing body class values.
     24 * @return array The filtered body class list.
     25 */
    326function wporg_login_body_class( $classes ) {
    427//  $classes[] = 'wporg-responsive';
     
    831add_filter( 'body_class', 'wporg_login_body_class' );
    932
     33
     34
     35/**
     36 * Remove the toolbar.
     37 */
    1038function wporg_login_init() {
    11     // We don't need the toolbar on this site.
    1239    show_admin_bar( false );
    1340}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php

    r2081 r2084  
    11<?php
     2/**
     3 * The template for displaying the header.
     4 *
     5 * @package wporg-login
     6 */
     7
    28global $pagetitle, $wporg_global_header_options;
    39$pagetitle = wp_title( '', false );
     
    1117
    1218require WPORGPATH . 'header.php';
    13 
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/index.php

    r2081 r2084  
    1 <?php get_header(); ?>
     1<?php
     2/**
     3 * The main template file.
     4 *
     5 * @package wporg-login
     6 */
     7
     8get_header();
     9?>
    210
    311<div id="pagebody">
    412    <div id="login-welcome" class="wrapper">
    5         <h1>Welcome!</h1>
     13        <h1><?php _e( 'Welcome!', 'wporg-login' ); ?></h1>
    614        <ul>
    715            <?php if ( is_user_logged_in() ) : ?>
    8                 <li class="button"><a href="<?php echo wp_logout_url(); ?>"><?php _e( 'Logout' ) ?></a></li>
     16                <li class="button"><a href="<?php echo wp_logout_url(); ?>"><?php _e( 'Logout', 'wporg-login' ); ?></a></li>
    917            <?php else : ?>
    10                 <li class="button"><a href="<?php echo wp_login_url(); ?>">Login</a></li>
    11                 <li class="button"><a href="https://wordpress.org/support/register.php">Register</a></li>
     18                <li class="button"><a href="<?php echo wp_login_url(); ?>"><?php _e( 'Login', 'wporg-login' ); ?></a></li>
     19                <li class="button"><a href="https://wordpress.org/support/register.php"><?php _e( 'Register', 'wporg-login' ); ?></a></li>
    1220            <?php endif; ?>
    1321        </ul>
Note: See TracChangeset for help on using the changeset viewer.