Skip to:
Content

BuddyPress.org

Changeset 377


Ignore:
Timestamp:
10/09/2008 04:38:26 AM (17 years ago)
Author:
apeatling
Message:

Committing updates to home theme.

Location:
trunk/buddypress-theme/home
Files:
13 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/home/footer.php

    r262 r377  
    11
    2 <?php $current_site = get_current_site(); ?>
    3 <hr />
     2<div id="footer">
     3   
    44</div>
    55
    6 <p style="border-top: 1px solid #ccc; padding-top: 10px; color: #888">
    7 <small>This is just a placeholder theme, eventually you will be able to make this an aggregation of site content, or a site blog.</small>
    8 </p>
     6<?php wp_footer(); ?>
    97
    10 <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ -->
    11 <?php /* "Just what do you think you're doing Dave?" */ ?>
     8<!-- <?php echo get_num_queries(); ?> queries / <?php timer_stop(1); ?> seconds -->
     9</body>
    1210
    13         <?php wp_footer(); ?>
    14 </body>
    1511</html>
  • trunk/buddypress-theme/home/functions.php

    r262 r377  
    11<?php
    22
    3 /*************************************************************
    4  Check the request URI and forward to the correct custom pages
    5  *************************************************************/
    6 
    7 $uri = explode("/", $_SERVER['REQUEST_URI']);
    8 if($uri[count($uri)-1] == "") { array_pop($uri); }
    9 
    10 switch($uri[count($uri)-1]) {
    11     case "blog":
    12         require(TEMPLATEPATH . '/blog.php'); die;
    13     break;
    14 }
    15 
    16 
    17 /*************************************************************
    18  Check the request URI and forward to the correct custom pages
    19  *************************************************************/
    20 
    21 if ( function_exists('register_sidebar') )
    22     register_sidebar(array(
    23         'before_widget' => '<li id="%1$s" class="widget %2$s">',
     3/* Register the widget columns */
     4register_sidebars( 1,
     5    array(
     6        'name' => 'left-column',
     7        'before_widget' => '<li id="%1$s" class="widget %2$s">',
    248        'after_widget' => '</li>',
    259        'before_title' => '<h2 class="widgettitle">',
    26         'after_title' => '</h2>',
    27     ));
     10        'after_title' => '</h2>'
     11    )
     12);
    2813
     14register_sidebars( 1,
     15    array(
     16        'name' => 'center-column',
     17        'before_widget' => '<li id="%1$s" class="widget %2$s">',
     18        'after_widget' => '</li>',
     19        'before_title' => '<h2 class="widgettitle">',
     20        'after_title' => '</h2>'
     21    )
     22);
     23
     24register_sidebars( 1,
     25    array(
     26        'name' => 'right-column',
     27        'before_widget' => '<li id="%1$s" class="widget %2$s">',
     28        'after_widget' => '</li>',
     29        'before_title' => '<h2 class="widgettitle">',
     30        'after_title' => '</h2>'
     31    )
     32);
    2933
    3034?>
  • trunk/buddypress-theme/home/header.php

    r262 r377  
    1717</head>
    1818<body>
     19   
     20    <div id="search-login-bar">
     21        <!--
     22        <form action="" method="post" id="search-form">
     23            <input type="text" id="search-terms" name="search-terms" value="Search everything" />
     24            <input type="submit" name="search-submit" id="search-submit" value="Search" />
     25        </form>
     26        -->
     27       
     28        <?php if ( !is_user_logged_in() ) : ?>
     29            <form name="login-form" id="login-form" action="<?php get_option('home') ?>/wp-login.php" method="post">
     30                <input type="text" name="log" id="user_login" value="Username" onfocus="if (this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" />
     31                <input type="password" name="pwd" id="user_pass" class="input" value="" />
     32                <!--<input name="rememberme" type="checkbox" id="rememberme" value="forever" />-->
     33                <input type="submit" name="wp-submit" id="wp-submit" value="Log In" />             
     34                <input type="button" name="signup-submit" id="signup-submit" value="Signup" onclick="location.href='<?php echo site_url() . '/wp-signup.php' ?>'" />
     35                <input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" />
     36                <input type="hidden" name="testcookie" value="1" />
     37            </form>
     38        <?php else : ?>
     39            <div id="logout-link">
     40                <?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?> &nbsp;
     41                <?php bp_loggedinuser_link() ?>
     42                / <a href="<?php echo site_url() . '/wp-login.php?action=logout' ?>">Log Out</a>
     43            </div>
     44        <?php endif; ?>
     45        <div class="clear"></div>
     46    </div>
    1947
    20 <div id="page">
    21 
    22 <div id="header">
    23 
    24     <p onclick="location.href='/'" style="cursor:pointer"><img src="<?php echo get_template_directory_uri(); ?>/images/bp_logo.gif" alt="BuddyPress" /></p>
    25 
    26 </div>
    27 <hr />
     48    <div id="header">       
     49        <h1 id="logo">Social Network</h1>
     50       
     51        <ul id="nav">
     52            <li><a href="<?php echo get_option('home') ?>" title="Home">Home</a></li>
     53            <!--
     54            <li><a href="<?php echo get_option('home') ?>/news" title="Home">News</a></li>
     55            <li><a href="<?php echo get_option('home') ?>/members" title="Home">Members</a></li>
     56            <li><a href="<?php echo get_option('home') ?>/groups" title="Home">Groups</a></li>
     57            <li><a href="<?php echo get_option('home') ?>/blogs" title="Home">Blogs</a></li>
     58            <li><a href="<?php echo get_option('home') ?>/forum" title="Home">Forum</a></li>
     59            -->
     60        </ul>
     61       
     62        <div class="clear"></div>
     63    </div>
     64   
     65    <div class="clear"></div>
    2866
    2967<?php get_sidebar(); ?>
  • trunk/buddypress-theme/home/home.php

    r294 r377  
    33<div id="content" class="widecolumn">
    44
    5 <p>This is a <a href="http://mu.wordpress.org/">WordPress Mu</a> + <a href="http://buddypress.org">BuddyPress</a> powered site.</p>
    6 <p>You can:
    7     <ul>
    8         <li> <h4><a href="wp-login.php">Login</a></h4> </li>
    9         <li> <h4><a href="wp-signup.php">Register</a></h4></li>
    10     </ul>
    11 </p>
    12 <hr />
    13 <h4>Site News:</h4>
    14 <ul>
    15 <?php
    16 query_posts('showposts=7');
    17 if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    18 <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title();?> </a></li>
    19 <?php endwhile; ?><?php endif; ?>
    20 </ul>
     5    <div id="right-column">
     6        <?php if ( !function_exists('dynamic_sidebar')
     7                || !dynamic_sidebar('right-column') ) : ?>
     8       
     9        <div class="widget-error">
     10            Please log in and <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=sidebar-1">add widgets to this column</a>.
     11        </div>
     12       
     13        <?php endif; ?>
     14    </div>
     15
     16    <div id="center-column">
     17        <?php if ( !function_exists('dynamic_sidebar')
     18                || !dynamic_sidebar('center-column') ) : ?>
     19       
     20        <div class="widget-error">
     21            Please log in and <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=sidebar-2">add widgets to this column</a>.
     22        </div>
     23       
     24        <?php endif; ?>
     25    </div>
     26
     27    <div id="left-column">
     28        <?php if ( !function_exists('dynamic_sidebar')
     29                || !dynamic_sidebar('left-column') ) : ?>
     30
     31        <div class="widget-error">
     32            Please log in and <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=sidebar-3">add widgets to this column</a>.
     33        </div>     
     34       
     35        <?php endif; ?>
     36    </div>
    2137
    2238</div>
  • trunk/buddypress-theme/home/style.css

    r309 r377  
    33Theme URI: http://buddypress.com/
    44Description: The theme for the home of an install
    5 Version: 0.1
     5Version: 0.2
    66Author: Andy Peatling
    77Author URI: http://blazenewmedia.com/
    8 
    98*/
    109
     10/***********************************************************
     11 Global Reset
     12************************************************************/
     13
     14*, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 }
     15table { border-collapse:collapse; border-spacing:0 }
     16fieldset, img { border:0 }
     17address, caption, cite, code, dfn, em, strong, th, var { font-style:normal; font-weight:normal }
     18ol, ul, li { list-style:none }
     19caption, th { text-align:left }
     20h1, h2, h3, h4, h5, h6 { font-size:100%; font-weight: normal; }
     21q:before, q:after { content:'' }
     22a { text-decoration:none }
     23strong { font-weight:bold }
     24em { font-style:italic }
     25* a { position:relative }
     26a img { border:none }
     27* { outline: none; }
     28
     29/***********************************************************
     30 Let the games begin...
     31************************************************************/
     32
    1133html {
    12     font-size: 62.5%;
    13     font-family: "Lucida Grande", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif;
     34    background: #fff;
     35    font: 62.5% normal "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif;
    1436}
    1537
    1638body {
     39    background: #fff;
    1740    font-size: 1.2em;
    18     color: #333;
    19     width: 760px;
     41    color: #555;
     42    background: url(images/background.gif) top left repeat-y;
     43    line-height: 170%;
     44    min-width: 960px;
     45    max-width: 1300px;
    2046    margin: 0 auto;
    21     padding: 0.5em;
    22     line-height: 155%;
    23 }
    24 
    25 hr {
     47}
     48
     49div.clear {
    2650    clear: both;
    27     margin: 0;
    28     padding: 0;
    29     visibility: hidden;
    30 }
    31 
    32 a {
    33     color: #1c56ab;
    34 }
    35     a:hover {
    36         background: #1c56ab;
     51}
     52
     53a { color: #f7740a; text-decoration: underline; }
     54a:hover { color: #555; text-decoration: none; }
     55a.selected { color: #555; text-decoration: none; }
     56
     57/*** SEARCH / LOGIN BAR **********/
     58
     59#search-login-bar {
     60    border-top: 10px solid #f7740a;
     61    background: #fff9df;
     62    padding: 7px 20px;
     63}
     64    #search-login-bar #search-form {
     65        float: left;
     66    }
     67   
     68    #search-login-bar #login-form, #logout-link {
     69        float: right;
     70    }
     71   
     72    #logout-link img {
     73        vertical-align: middle;
     74    }
     75
     76
     77/*** HEADER **********/
     78
     79#header {
     80    padding: 25px 20px;
     81}
     82    #header h1 {
     83        width: 214px;
     84        height: 29px;
     85        overflow: hidden;
     86        text-indent: -999px;
     87        background: url(images/logo.gif) top left no-repeat;
     88        float: left;
     89    }
     90   
     91    #header ul {
     92        float: right;
     93        margin: 7px 0 0 0;
     94    }
     95        #header ul li {
     96            float: left;
     97            margin: 0 0 0 18px;
     98        }
     99            #header ul li a {
     100                background: #f0f0f0;
     101                color: #555;
     102                display: block;
     103                padding: 2px 15px;
     104                -moz-border-radius: 3px;
     105                -webkit-border-radius: 3px;
     106                text-decoration: none;
     107            }
     108
     109
     110/*** CONTENT **********/
     111
     112#content {
     113    padding: 0 20px;
     114}
     115
     116h3 {
     117    font: normal 1.6em "Georgia", Times, serif;
     118    margin: 0 0 10px 0;
     119}
     120
     121p.create-account {
     122    margin: 10px 0;
     123    text-align: right;
     124}
     125
     126/*** WIDGETS **********/
     127
     128li.widget {
     129    margin: 0 0 25px 0;
     130}
     131
     132li.widget h2 {
     133    padding: 3px 8px;
     134    margin-bottom: 5px;
     135    height: 36px;
     136    font-weight: bold;
     137}
     138    li.bp_core_widget_welcome h2 {
     139        background: url(images/welcome_header_back.gif) top left no-repeat !important;
     140        color: #fff !important;
     141    }
     142
     143li.widget ul.item-list li {
     144    background: url(images/item_list_back.gif) top left repeat-x;
     145    padding: 15px;
     146}
     147
     148    li.widget ul.item-list li .item-avatar, .avatar-block img.avatar {
     149        float: left;
     150        margin: 0 15px 0 0;
     151    }
     152   
     153    li.widget ul.item-list li .item-avatar img, img.avatar {
     154        border: 3px solid #ddd;
     155    }
     156   
     157    li.widget ul.item-list li h4.item-title {
     158        font: normal 1.4em "Georgia", Times, serif;
     159        margin: 0 0 7px 0; 
     160    }
     161       
     162    li.widget ul.item-list li .item {
     163        margin-left: 71px;
     164    }
     165   
     166    li.widget ul.item-list li .item-meta {
     167        font: normal 1em "Georgia", Times, serif;
     168        margin: 10px 0;
     169    }
     170   
     171    li.widget .item-options {
     172        text-align: right;
     173        font-size: 0.9em;
     174        margin: -15px 0 5px 0;
     175    }
     176   
     177.widget-error {
     178    padding: 10px;
     179    background: #fff9df;
     180}
     181
     182span.activity {
     183    color: #888;
     184    background: #FFF9DB;
     185    padding: 4px 6px;
     186    border-right: 1px solid #FFE8C4;
     187    border-bottom: 1px solid #FFE8C4;
     188    display: inline-block;
     189    font: 0.9em normal "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, Verdana, Arial, sans-serif;
     190    margin: -5px 0 0 0;
     191}
     192
     193div.avatar-block {
     194    padding: 0 15px;
     195}
     196
     197
     198/** ACTIVITY FEED **********/
     199
     200.activity-list {
     201    padding: 0 5px;
     202}
     203
     204.activity-list li {
     205    margin: 15px 0;
     206    padding-left: 21px;
     207}
     208    .activity-list li.blogs {
     209        background: url(images/blog_bullet.gif) 0 4px no-repeat;       
     210    }
     211   
     212    .activity-list li.profile {
     213        background: url(images/profile_bullet.gif) 0 4px no-repeat;
     214    }
     215
     216    .activity-list li.friends {
     217        background: url(images/friends_bullet.gif) 0 4px no-repeat;
     218    }
     219   
     220    .activity-list li.groups {
     221        background: url(images/groups_bullet.gif) 0 4px no-repeat;
     222    }
     223   
     224    .activity-list li.wire {
     225        background: url(images/wire_bullet.gif) 0 4px no-repeat;
     226    }
     227
     228.activity-list li blockquote {
     229    padding: 7px 15px 7px 40px;
     230    background: url(images/quotes_background.gif) 10px 9px no-repeat #eee;
     231    margin: 5px 0;
     232}
     233
     234.activity-list li span.time-since {
     235    font-size: 0.8em;
     236    color: #999;
     237}
     238
     239
     240/*** LEFT COLUMN **********/
     241
     242#left-column {
     243    margin-right: 560px;
     244}
     245
     246    #left-column li.widget h2 {
     247        background: url(images/leftcol_header_back.gif) top left no-repeat;
     248    }
     249   
     250#center-column {
     251    float: right;
     252    width: 260px;
     253    margin-right: 20px;
     254}
     255
     256    #center-column li.widget h2 {
     257        background: url(images/centercol_header_back.gif) top left no-repeat;
    37258        color: #fff;
    38259    }
    39260
    40 /** HEADER **/
    41 
    42 #header h1 {
    43     font-size: 3em;
    44     font-family: georgia, times, serif;
    45     font-weight: normal;
    46     margin: 0.5em 0 0.1em 0;
    47     border-bottom: 1px solid #ddd;
    48     padding-bottom: 0.5em;
    49 }
    50     #header h1 span {
    51         color: #1c56ab;
    52     }
    53 
    54 #header ul#menu {
    55     float: left;
    56     border-bottom: 1px solid #ddd;
    57     width: 100%;
    58     margin: 0 0 1.5em 0;
    59     padding: 0 0 0.3em 0;
    60     list-style: none;
    61 }
    62 
    63     #header ul#menu li {
    64         float: left;
    65         margin: 0 0.75em 0 0;
    66         font-family: georgia, times, serif;
    67         text-transform: uppercase;
    68         font-size: 1.1em;
    69     }
    70         #header ul#menu li a {
    71             color: #555;
    72             text-decoration: none;
    73             display: block;
    74             padding: 0.4em 0.8em;
    75             background: #fafafa;
    76         }
    77             #header ul#menu li a:hover {
    78                 background: #f3f3f3;
    79             }
    80 
    81 /** CONTENT **/
    82 
    83 #content {
    84     margin: 0 auto;
    85 }
    86 
    87 #profile-name {
    88     font-size: 1.6em;
    89     font-family: georgia, times, serif;
    90     margin-bottom: 1px;
    91     padding: 0 0 0.75em 0;
    92     border-bottom: 1px solid #ccc;
    93 }
    94 
    95     #profile-name h2 {
    96         font-size: 1.6em;
    97         font-weight: normal;
    98         margin: 0;
    99         padding: 0.2em 0 0.4em 0;
    100     }
    101         #profile-name h2 a {
    102             text-decoration: none;
    103             color: #555;
    104         }
    105        
    106     #profile-name div.description {
    107         font-size: 0.8em;
    108     }
    109    
    110 .profile-group h3, h3.page-title {
    111     background: #8b919a;
    112     color: #fff;
    113     padding: 0.25em 0.5em;
    114     margin: 0 0 0.75em 0;
    115     font-family: georgia, times, serif;
    116     font-weight: normal;
    117     font-size: 1.4em;
    118 }
    119 
    120 .profile-group table {
    121     padding-bottom: 0.75em;
    122 }
    123 
    124 .profile-group table td {
    125     padding: 0 0 1em 0;
    126     vertical-align: top;
    127 }
    128     .profile-group table td.label {
    129         width: 150px;
    130         color: #555;
    131     }
    132    
    133     .profile-group table td.data {
    134         padding-left: 0.5em;
    135     }
    136    
    137 h2, h3 {
    138     border-bottom: 1px solid #ccc;
    139     font-family: georgia, times, serif;
    140     font-size: 20px;
    141     padding-bottom: 8px;
    142     font-weight: normal;
    143 }
    144 /** BLOG **/
    145 
    146 .blog h2 {
    147     font-family: georgia, times, serif;
    148     font-weight: normal;
    149     font-size: 1.6em;   
    150     margin-bottom: 0.2em;
    151 }
    152     .blog h2 a {
    153 
    154     }
    155    
    156     .blog small {
    157         font-family: georgia, times, serif;
    158         font-weight: normal;
    159         font-size: 1em;
    160         color: #666;
    161         padding-bottom: 0.5em;
    162         display: block;
    163     }
    164    
    165     .post {
    166         border-bottom: 1px solid #ccc;
    167         padding: 0 0.5em 1em 0.5em;
    168     }
    169 
    170     textarea#comment {
    171         width: 100%;
    172     }
    173 
    174 /** SIDEBAR **/
    175 
    176 div#sidebar {
    177     float: left;
    178     width: 250px;
    179     overflow: hidden;
    180     margin: 0 1.5em 0 0;
    181 }
    182    
    183     #profilePic {
    184         text-align: center;
    185         margin-bottom: 1.5em;
    186     }
    187    
    188     #profilePic img {
    189         padding: 5px;
    190         border: 1px solid #ccc;
    191         background: #f3f3f3;
    192     }
    193 
    194     ul#quickLinks, ul#components {
    195         list-style: none;
    196         margin: 0;
    197         padding: 0;
    198     }
    199    
    200         ul#quickLinks li {
    201             border-bottom: 1px solid #ccc;
    202             padding: 0.3em 0;
    203         }
    204 
    205     ul#components li {
    206         margin: 2em 0 0 0;
    207         border-bottom: 2px solid #ccc;
    208     }
    209         ul#components li ul li {
    210             border: none;
    211             margin: 0;
    212             padding: 0.3em 0;
    213         }
    214        
    215         ul#components li h2 {
    216             margin: 0;
    217             font-family: georgia, times, serif;
    218             font-weight: normal;
    219             font-size: 1.4em;
    220             border-bottom: 1px solid #ccc;
    221             padding: 0 0 0.2em 0;
    222         }
     261#right-column {
     262    float: right;
     263    width: 260px;
     264}
     265
     266    #right-column li.widget h2 {
     267        background: url(images/rightcol_header_back.gif) top left no-repeat;
     268        color: #fff;
     269    }
    223270
    224271/** SIGNUP FIELDS CSS **/
     
    280327    margin: 5px 0 0 0;
    281328}
     329
     330/*** IMPORT CUSTOM STYLES ************/
     331@import url(custom-styles.css);
Note: See TracChangeset for help on using the changeset viewer.