Skip to:
Content

BuddyPress.org

Changeset 1249


Ignore:
Timestamp:
03/25/2009 03:58:53 PM (15 years ago)
Author:
apeatling
Message:

Theme support the blogs, groups and members directories now that they are handled in the BuddyPress member theme.

Location:
trunk/bp-themes/buddypress-member
Files:
15 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/buddypress-member/css/base.css

    r1220 r1249  
    3737    margin: 0 auto;
    3838}
    39     body.in-blog { background-image: url(../images/background_blog.gif); }
     39    body.directory { background: none; }
    4040
    4141p { margin: 0 0 1em 0; }
     
    4848    clear: right;
    4949}
    50     .info-group div.clear, p.clear {
     50    .info-group div.clear, p.clear, body.directory div.clear {
    5151        clear: both;
    5252    }
     
    172172        text-transform: uppercase;
    173173        text-align: center;
    174         background: url(../images/userbar_header.gif) top left no-repeat;
    175         height: 24px;
     174        background: url(../images/userbar_header.gif) bottom center no-repeat;
     175        min-height: 24px;
    176176        padding: 8px 0 8px 0;
    177177    }
     
    336336        text-transform: uppercase;
    337337        text-align: center;
    338         background: url(../images/optionsbar_header_noarrow.gif) top left repeat-x;
    339         height: 24px;
    340         padding: 8px 0 8px 0;
     338        background: url(../images/optionsbar_header_noarrow.gif) top center repeat-x;
     339        padding: 8px 0 17px 0;
    341340        letter-spacing: 0.5px;
    342341    }
    343342        #optionsbar.arrow h3 {
    344             background: url(../images/optionsbar_header_arrow.gif) top center no-repeat;
     343            background: #c9c9c9 url(../images/optionsbar_header_arrow.gif) bottom center no-repeat;
    345344        }
    346345   
     
    415414    min-width: 680px;
    416415}
     416    body.directory #main { margin-left: 0; }
     417   
    417418    #main div.content-header {
    418419        font: normal 1em "Georgia", Times, serif;
  • trunk/bp-themes/buddypress-member/css/loader.php

    r1056 r1249  
    11<?php
     2/* Set the content type to CSS */
     3header('Content-type: text/css');
     4?>
    25
    3 /* Load the WP environment */
    4 require_once( preg_replace('%(.*)[/\\\\]wp-content[/\\\\].*%', '\1', $_SERVER['SCRIPT_FILENAME'] ) . '/wp-load.php' );
     6@import url(base.css);
     7@import url(settings.css);
    58
    6 /* Set the content type to CSS */
    7 header('Content-type: text/css');
     9@import url(activity.css);
     10@import url(blogs.css);
     11@import url(directories.css);
     12@import url(friends.css);
     13@import url(groups.css);
     14@import url(messaging.css);
     15@import url(wire.css);
     16@import url(profiles.css);
     17@import url(forums.css);
    818
    9 /* Load the base and settings css as they will always be present */
    10 if ( file_exists('base.css') )
    11     echo "@import url(base.css);\n";
    12 
    13 if ( file_exists('settings.css') )
    14     echo "@import url(settings.css);\n";
    15    
    16 /* Load CSS for components that are installed */
    17 
    18 /* Activity Streams */
    19 if ( function_exists('bp_activity_user_install') && file_exists('activity.css') )
    20     echo "@import url(activity.css);\n";
    21    
    22 /* Blogs */
    23 if ( function_exists('bp_blogs_install') && file_exists('blogs.css') )
    24     echo "@import url(blogs.css);\n";   
    25 
    26 /* Friends */
    27 if ( function_exists('friends_install') && file_exists('friends.css') )
    28     echo "@import url(friends.css);\n";
    29 
    30 /* Groups */
    31 if ( function_exists('groups_install') && file_exists('groups.css') )
    32     echo "@import url(groups.css);\n";
    33 
    34 /* Messages */
    35 if ( function_exists('messages_install') && file_exists('messaging.css') )
    36     echo "@import url(messaging.css);\n";
    37    
    38 /* Wire */
    39 if ( function_exists('bp_wire_install') && file_exists('wire.css') )
    40     echo "@import url(wire.css);\n";
    41 
    42 /* Profiles */
    43 if ( function_exists('xprofile_install') && file_exists('profiles.css') )
    44     echo "@import url(profiles.css);\n";
    45 
    46 /* Forums */
    47 if ( function_exists('bp_forums_setup') && file_exists('forums.css') )
    48     echo "@import url(forums.css);\n";
    49 
    50 /* If the root blog is set up for right to left reading, include the rtl.css file */
    51 if ( get_bloginfo( 1, 'text_direction' ) == 'rtl' && file_exists( 'rtl.css' ) )
    52     echo "@import url(rtl.css);\n";
    53    
     19<?php
    5420/* If there are any custom component css files inside the /custom-components/ dir, load them. */
    5521if ( is_dir( './custom-components' ) ) {
     
    6632if ( file_exists('custom.css') )
    6733    echo "@import url(custom.css);\n";
    68 
    69 do_action( 'bp_custom_member_styles' );
    70 
    7134?>
  • trunk/bp-themes/buddypress-member/functions.php

    r1145 r1249  
    1111    global $bp;
    1212
    13     if ( !bp_is_home() && $bp->current_component == $bp->profile->slug || $bp->current_component == $bp->friends->slug  || $bp->current_component == $bp->blogs->slug ) {
     13    if ( ( !bp_is_home() && $bp->current_component == $bp->profile->slug ) || ( !bp_is_home() && $bp->current_component == $bp->friends->slug ) || ( !bp_is_home() && $bp->current_component == $bp->blogs->slug ) ) {
    1414        echo ' class="arrow"';
    1515    }
  • trunk/bp-themes/buddypress-member/header.php

    r1078 r1249  
    2525</head>
    2626
    27 <body>
     27<body<?php if ( bp_is_directory() ) : ?> class="directory"<?php endif; ?>>
    2828
    2929<div id="search-login-bar">
     
    5454</div>
    5555
    56 <?php include_once( TEMPLATEPATH . '/userbar.php' ) ?>
    57 <?php include_once( TEMPLATEPATH . '/optionsbar.php' ) ?>
     56<?php bp_get_optionsbar() ?>
     57<?php bp_get_userbar() ?>
     58
    5859
    5960<div id="main">
Note: See TracChangeset for help on using the changeset viewer.