Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/20/2010 06:41:55 PM (14 years ago)
Author:
djpaul
Message:

Adds widget sidebar to footer, and adds custom background support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/functions.php

    r3452 r3458  
    66add_theme_support( 'automatic-feed-links' );
    77
     8// This theme allows users to set a custom background
     9add_custom_background();
     10
    811// Register the widget columns
    9 register_sidebars( 1,
    10     array(
    11         'name'          => 'Sidebar',
    12         'before_widget' => '<div id="%1$s" class="widget %2$s">',
    13         'after_widget'  => '</div>',
    14         'before_title'  => '<h3 class="widgettitle">',
    15         'after_title'   => '</h3>'
    16     )
    17 );
     12// Area 1, located in the sidebar. Empty by default.
     13register_sidebar( array(
     14    'name'          => 'Sidebar',
     15    'before_widget' => '<div id="%1$s" class="widget %2$s">',
     16    'after_widget'  => '</div>',
     17    'before_title'  => '<h3 class="widgettitle">',
     18    'after_title'   => '</h3>'
     19) );
     20
     21// Area 2, located in the footer. Empty by default.
     22register_sidebar( array(
     23    'name' => __( 'First Footer Widget Area', 'buddypress' ),
     24    'id' => 'first-footer-widget-area',
     25    'description' => __( 'The first footer widget area', 'buddypress' ),
     26    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
     27    'after_widget' => '</li>',
     28    'before_title' => '<h3 class="widgettitle">',
     29    'after_title' => '</h3>',
     30) );
     31
     32// Area 3, located in the footer. Empty by default.
     33register_sidebar( array(
     34    'name' => __( 'Second Footer Widget Area', 'buddypress' ),
     35    'id' => 'second-footer-widget-area',
     36    'description' => __( 'The second footer widget area', 'buddypress' ),
     37    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
     38    'after_widget' => '</li>',
     39    'before_title' => '<h3 class="widgettitle">',
     40    'after_title' => '</h3>',
     41) );
     42
     43// Area 4, located in the footer. Empty by default.
     44register_sidebar( array(
     45    'name' => __( 'Third Footer Widget Area', 'buddypress' ),
     46    'id' => 'third-footer-widget-area',
     47    'description' => __( 'The third footer widget area', 'buddypress' ),
     48    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
     49    'after_widget' => '</li>',
     50    'before_title' => '<h3 class="widgettitle">',
     51    'after_title' => '</h3>',
     52) );
     53
     54// Area 5, located in the footer. Empty by default.
     55register_sidebar( array(
     56    'name' => __( 'Fourth Footer Widget Area', 'buddypress' ),
     57    'id' => 'fourth-footer-widget-area',
     58    'description' => __( 'The fourth footer widget area', 'buddypress' ),
     59    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
     60    'after_widget' => '</li>',
     61    'before_title' => '<h3 class="widgettitle">',
     62    'after_title' => '</h3>',
     63) );
    1864
    1965// Register navigation menu
Note: See TracChangeset for help on using the changeset viewer.