Making WordPress.org


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

Rosetta Sites: The global header is now generated by one of the rosetta plugins to allow non-rosetta themes on rosetta sites to have a localised header.

File:
1 edited

Legend:

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

    r994 r1476  
    11<?php
    2 
    3 global $pagetitle;
    4 $pagetitle = get_bloginfo( 'name', 'display' ) . wp_title( '&laquo;', false, 'left' );
    5 
    6 $GLOBALS['wporg_global_header_options'] = array(
    7     'rosetta_site' => get_bloginfo( 'name', 'display' ),
    8     'search' => false,
    9     'menu' => wp_nav_menu( array( 'theme_location' => 'rosetta_main', 'container' => false, 'echo' => false, 'menu_id' => 'wporg-header-menu' ) ),
    10 );
    112
    123wp_enqueue_style( 'rosetta', get_stylesheet_uri(), array(), 16, 'screen' );
Note: See TracChangeset for help on using the changeset viewer.