WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/07/2014 01:54:49 AM (6 years ago)
Author:
netweb
Message:

WPBBP: bbPress v2.x Theme for International Support Forums

There is more to do here, this gives us a working theme to get going with now and to iterate on further as we go.

Props johnjamesjacoby, netweb. Fixes #376

File:
1 edited

Legend:

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

    r443 r965  
    1 <?php
    2 /**
    3  * The Header for our theme.
    4  *
    5  * @package WPBBP
    6  */
    7 $GLOBALS['pagetitle'] = wp_title( '&laquo;', false, 'right' ) . ' ' . get_bloginfo( 'name' );
    8 require WPORGPATH . 'header.php';
    9 ?>
     1<?php wporg_get_global_header(); ?>
     2
     3<div id="headline">
     4    <div class="wrapper">
     5        <h2><a href="<?php bbp_forums_url(); ?>">Forums</a></h2>
     6        <p class="login">
     7            <?php if ( is_user_logged_in() ) : ?>
     8                <?php echo sprintf( esc_html__( 'Howdy, %s', 'wporg' ), '<a href="' . bbp_get_user_profile_url( bbp_get_current_user_id() ) . '">' . bbp_get_current_user_name() . '</a>' ); ?>
     9
     10                <small>(
     11                <?php if ( bbp_is_user_keymaster() ) : ?>
     12                    <a href="<?php echo esc_url( admin_url() ); ?>"><?php esc_html_e( 'Admin', 'wporg' ); ?></a> |
     13                <?php endif; ?>
     14                    <a href="<?php bbp_logout_url(); ?>"><?php esc_html_e( 'Sign Out', 'wporg' ); ?></a>
     15                )</small><br>
     16            <?php else : ?>
     17               
     18            <?php endif; ?>
     19        </p>
     20    </div>
     21</div>
Note: See TracChangeset for help on using the changeset viewer.