Ticket #1393: 1393.2.patch
File 1393.2.patch, 4.0 KB (added by , 9 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/footer.php
1 1 <?php 2 require WPORGPATH . 'footer.php'; 3 No newline at end of file 2 /** 3 * The template for displaying the footer. 4 * 5 * @package wporg-login 6 */ 7 8 require WPORGPATH . 'footer.php'; -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php
1 1 <?php 2 /** 3 * WP.org login' functions and definitions. 4 * 5 * @package wporg-login 6 */ 2 7 8 9 10 /** 11 * Registers support for various WordPress features. 12 */ 13 function wporg_login_setup() { 14 15 load_theme_textdomain( 'wporg-login' ); 16 17 add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); 18 19 } 20 add_action( 'after_setup_theme', 'wporg_login_setup' ); 21 22 23 24 /** 25 * Extend the default WordPress body classes. 26 * 27 * @param array $classes A list of existing body class values. 28 * @return array The filtered body class list. 29 */ 3 30 function wporg_login_body_class( $classes ) { 4 31 // $classes[] = 'wporg-responsive'; 5 32 $classes[] = 'wporg-login'; … … 7 34 } 8 35 add_filter( 'body_class', 'wporg_login_body_class' ); 9 36 37 38 39 /** 40 * Remove the toolbar. 41 */ 10 42 function wporg_login_init() { 11 // We don't need the toolbar on this site.12 43 show_admin_bar( false ); 13 44 } 14 add_action( 'init', 'wporg_login_init' ); 15 No newline at end of file 45 add_action( 'init', 'wporg_login_init' ); -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/header.php
1 1 <?php 2 /** 3 * The template for displaying the header. 4 * 5 * @package wporg-login 6 */ 7 2 8 global $pagetitle, $wporg_global_header_options; 3 9 $pagetitle = wp_title( '', false ); 4 10 wp_enqueue_style( 'blog-wp4', 'https://wordpress.org/style/blog-wp4.css', array(), 12 ); … … 10 16 ); 11 17 12 18 require WPORGPATH . 'header.php'; 13 -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/index.php
1 <?php get_header(); ?> 1 <?php 2 /** 3 * The main template file. 4 * 5 * @package wporg-login 6 */ 2 7 8 get_header(); 9 ?> 10 3 11 <div id="pagebody"> 4 12 <div id="login-welcome" class="wrapper"> 5 <h1> Welcome!</h1>13 <h1><?php _e( 'Welcome!', 'wporg-login' ); ?></h1> 6 14 <ul> 7 15 <?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> 9 17 <?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> 12 20 <?php endif; ?> 13 21 </ul> 14 22 <?php /* Could display wp_login_form(); */ ?>