Skip to:
Content

BuddyPress.org

Changeset 3458


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.

Location:
trunk/bp-themes/bp-default
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r3453 r3458  
    55
    66body {
    7     background: #eaeaea url( ../images/background.gif ) top left repeat-x;
     7    background-color: #eaeaea;
     8    background-image: url( ../images/background.gif );
     9    background-repeat: repeat-x;
     10    background-position: top left;
    811    font-size: 12px;
    912    font-family: Arial, Tahoma, Verdana, sans-serif;
     
    166169    background: #fff;
    167170    overflow: hidden;
     171    margin-bottom: 20px;
    168172}
    169173    body.activity-permalink div#container {
     
    205209        }
    206210
     211    #footer-widget-area h3.widgettitle,
    207212    div#sidebar h3.widgettitle {
    208213        margin: 25px -20px 10px -19px;
     
    213218    }
    214219
     220    #footer-widget-area .widget_search,
    215221    div#sidebar .widget_search {
    216222        margin-top: 20px;
    217223    }
     224        #footer-widget-area .widget_search input[type=text],
    218225        div#sidebar .widget_search input[type=text] {
    219226            width: 110px;
     
    221228        }
    222229
     230    #footer-widget-area ul#recentcomments li, #footer-widget-area .widget_recent_entries ul li,
    223231    div#sidebar ul#recentcomments li, div#sidebar .widget_recent_entries ul li {
    224232        margin-bottom: 15px;
    225233    }
    226234
     235    #footer-widget-area ul.item-list img.avatar,
    227236    div#sidebar ul.item-list img.avatar {
    228237        width: 20px;
     
    230239        margin-right: 10px;
    231240    }
     241        #footer-widget-area div.item-avatar img,
    232242        div#sidebar div.item-avatar img {
    233243            width: 40px;
     
    236246        }
    237247
     248        #footer-widget-area .avatar-block,
    238249        div#sidebar .avatar-block { overflow: hidden; }
    239250
     251    #footer-widget-area ul.item-list div.item-title,
    240252    div#sidebar ul.item-list div.item-title {
    241253        font-size: 12px;
    242254    }
    243255
     256    #footer-widget-area div.item-options,
    244257    div#sidebar div.item-options {
    245258        margin: -10px -20px 0 -19px;
     
    249262    }
    250263
     264    #footer-widget-area div.item-meta, #footer-widget-area div.item-content,
    251265    div#sidebar div.item-meta, div#sidebar div.item-content {
    252266        margin-left: 38px;
     
    254268    }
    255269
     270    #footer-widget-area div.tags div#tag-text,
    256271    div#sidebar div.tags div#tag-text {
    257272        font-size: 1.4em;
     
    17611776
    17621777#footer {
    1763     padding: 25px;
    1764     text-align: center;
    1765     color: #bbb;
    1766     text-shadow: #fafafa 1px 1px 0;
    1767 }
    1768     #footer a {
     1778    margin-bottom: 25px;
     1779    padding: 0 19px 19px 19px;
     1780    border-radius: 6px;
     1781    -moz-border-radius: 6px;
     1782    -webkit-border-radius: 6px;
     1783    border-right: 1px solid #e0e0e0;
     1784    border-bottom: 1px solid #e0e0e0;
     1785    background: #fff;
     1786}
     1787    #site-generator {
     1788        text-align: center;
    17691789        color: #bbb;
    1770     }
     1790        text-shadow: #fafafa 1px 1px 0;
     1791    }
     1792
     1793    #footer-widget-area {
     1794        margin-bottom: 20px;
     1795        overflow: hidden;
     1796    }
     1797        #footer-widget-area div.widget-area > ul {
     1798            float: left;
     1799            margin-right: 19px;
     1800            width: 23%;
     1801        }
     1802
     1803        #footer-widget-area h3.widgettitle {
     1804            margin-top: 19px;
     1805            margin-left: 0;
     1806            margin-right: 0;
     1807        }
     1808
     1809        #footer-widget-area div div.item-options {
     1810            margin-left: 0;
     1811            margin-right: 0;
     1812        }
     1813
     1814        #footer-widget-area ul.item-list li img.avatar {
     1815            margin-left: 15px;  /* border is 4px */
     1816        }
    17711817
    17721818/* Menu
  • trunk/bp-themes/bp-default/footer.php

    r3300 r3458  
    55
    66        <div id="footer">
    7             <p><?php printf( __( '%s is proudly powered by <a href="http://wordpress.org">WordPress</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), get_bloginfo( 'name' ) ); ?></p>
     7            <?php get_sidebar( 'footer' ) ?>
     8
     9            <div id="site-generator">
     10                <p><?php printf( __( '%s is proudly powered by <a href="http://wordpress.org">WordPress</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), get_bloginfo( 'name' ) ); ?></p>
     11            </div>
    812
    913            <?php do_action( 'bp_footer' ) ?>
  • 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
  • trunk/bp-themes/bp-default/rtl.css

    r2631 r3458  
    9595    }
    9696
     97    #footer-widget-area h3.widgettitle,
    9798    div#sidebar h3.widgettitle {
    9899        margin: 25px -19px 10px -20px;
     
    100101    }
    101102
     103    #footer-widget-area ul.item-list img.avatar,
    102104    div#sidebar ul.item-list img.avatar {
    103105        margin-left: 10px;
     
    105107    }
    106108
     109    #footer-widget-area div.item-options,
    107110    div#sidebar div.item-options {
    108111        margin: -10px -19px 0 -20px;
    109112    }
    110113
     114    #footer-widget-area div.item-meta, #footer-widget-area div.item-content,
    111115    div#sidebar div.item-meta, div#sidebar div.item-content {
    112116        margin-right: 38px;
     
    646650    }
    647651
     652/* > Footer
     653-------------------------------------------------------------- */
     654#footer-widget-area div.widget-area > ul {
     655    float: right;
     656    margin-left: 19px;
     657    margin-right: 0;
     658}
     659
     660#footer-widget-area ul.item-list li img.avatar {
     661    margin-right: 15px;  /* border is 4px */
     662    margin-left: 0;
     663}
     664
    648665/***
    649666 * The admin bar styles.
  • trunk/bp-themes/bp-default/style.css

    r3325 r3458  
    66Author: BuddyPress.org
    77Author URI: http://buddypress.org
    8 Tags: buddypress, two-columns, custom-header, white, blue, translation-ready
     8Tags: buddypress, two-columns, custom-header, custom-background, threaded-comments, white, blue, translation-ready
    99
    1010** IMPORTANT - DO NOT COPY THIS THEME **
Note: See TracChangeset for help on using the changeset viewer.