WordPress.org

Making WordPress.org

Changeset 9953


Ignore:
Timestamp:
06/04/2020 01:34:59 AM (20 months ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org/bbPress.org: Add Survey support to bb-base header area.

This commit introduces a new template part (header-survey.php) and uses it across the 3 BuddyPress.org WordPress themes (Codex, Developer, and Base).

Because Surveys are done annually, it makes the most sense to leave this as a template part that can more easily be included, excluded, and modified in future years.

Props mercime.

Fixes #5208.

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/header.php

    r9131 r9953  
    2020
    2121<div id="header">
     22    <?php get_template_part( 'template-parts/header', 'survey' ); ?>
     23
    2224    <div id="header-inner">
    2325
     
    2729            <a href="https://buddypress.org"><?php bloginfo( 'name' ); ?></a>
    2830        </div>
    29 
    3031    </div>
    3132    <div style="clear:both"></div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/header.php

    r6965 r9953  
    88
    99    <div id="header">
     10        <?php get_template_part( 'header', 'survey' ); ?>
     11
    1012        <div id="header-inner">
    11         <?php get_template_part( 'header', 'nav' ); ?>
     13            <?php get_template_part( 'header', 'nav' ); ?>
    1214
    13         <h1><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    14     </div></div>
     15            <h1><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     16        </div>
     17    </div>
    1518    <hr class="hidden" />
    1619
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/header.php

    r6965 r9953  
    88
    99    <div id="header">
     10        <?php get_template_part( 'header', 'survey' ); ?>
     11
    1012        <div id="header-inner">
    11         <?php get_template_part( 'header', 'nav' ); ?>
     13            <?php get_template_part( 'header', 'nav' ); ?>
    1214
    13         <h1><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    14     </div></div>
     15            <h1><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     16        </div>
     17    </div>
    1518    <hr class="hidden" />
    1619
Note: See TracChangeset for help on using the changeset viewer.