Changeset 180

Show
Ignore:
Timestamp:
07/02/08 02:06:12 (5 months ago)
Author:
apeatling
Message:

Style updates to default theme to fully support messaging and blog comments.
Support for new notices functionality in messaging.

Location:
trunk/buddypress-theme/default
Files:
2 added
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/default/comments.php

    r175 r180  
    9797<!--<p><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>--> 
    9898 
    99 <p><textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea></p> 
     99<p><textarea name="comment" id="comment" cols="38" rows="10" tabindex="4"></textarea></p> 
    100100 
    101101<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> 
  • trunk/buddypress-theme/default/messages/compose.php

    r176 r180  
    66 
    77        <div id="content"> 
    8                 <?php bp_get_callback_message() ?> 
     8                <?php do_action( 'template_notices' ) ?> 
     9 
    910                <?php bp_compose_message_form() ?> 
    1011        </div> 
  • trunk/buddypress-theme/default/messages/index.php

    r176 r180  
    11<?php get_header(); ?> 
     2         
     3        <form action="<?php bp_messages_form_action() ?>" method="post" id="messages-form"> 
    24 
    35        <div class="content-header"> 
    4                 X New Messages 
     6                <div class="pagination-links"> 
     7                        <?php bp_messages_pagination() ?> 
     8                </div> 
     9                 
     10                <div class="messages-options">   
     11                        <?php bp_messages_options() ?> 
     12                </div> 
    513        </div> 
    614 
    715        <div id="content"> 
     16                <?php do_action( 'template_notices' ) ?> 
     17                 
     18                <?php bp_message_get_notices(); ?> 
    819         
    920                <?php if ( bp_has_message_threads() ) : ?> 
     
    1122                        <table id="message-threads"> 
    1223                        <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 
    13                                 <tr<?php if ( bp_message_thread_has_unread() ) : ?> class="unread"<?php endif; ?>> 
    14                                         <td> 
    15                                                 <?php if ( bp_message_thread_has_unread() ) : ?> 
    16                                                         <?php bp_message_thread_unread_count() ?> 
    17                                                 <?php endif; ?> 
     24                                <tr id="m-<?php bp_message_thread_id() ?>"<?php if ( bp_message_thread_has_unread() ) : ?> class="unread"<?php else: ?> class="read"<?php endif; ?>> 
     25                                        <td width="1%"> 
     26                                                <span class="unread-count"><?php bp_message_thread_unread_count() ?></span> 
    1827                                        </td> 
    19                                         <td><?php bp_message_thread_avatar() ?></td> 
    20                                         <td> 
     28                                        <td width="1%"><?php bp_message_thread_avatar() ?></td> 
     29                                        <td width="27%"> 
    2130                                                <p>From: <?php bp_message_thread_from() ?></p> 
    2231                                                <p class="date"><?php bp_message_thread_last_post_date() ?></p> 
    2332                                        </td> 
    24                                         <td> 
     33                                        <td width="40%"> 
    2534                                                <p><a href="<?php bp_message_thread_view_link() ?>" title="View Message"><?php bp_message_thread_subject() ?></a></p> 
    2635                                                <p><?php bp_message_thread_excerpt() ?></p> 
     36                                        </td> 
     37                                        <td width="10%"> 
     38                                                <a href="<?php bp_message_thread_delete_link() ?>" title="Delete Message" class="delete">Delete</a> &nbsp;  
     39                                                <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" /> 
    2740                                        </td> 
    2841                                </tr> 
     
    3245                <?php else: ?> 
    3346                         
    34                         <p><?php _e('No Messages!'); ?></p> 
     47                        <div id="message" class="error"> 
     48                                <p>You have no messages in your inbox.</p> 
     49                        </div>   
    3550                         
    3651                <?php endif;?> 
     
    3853        </div> 
    3954         
     55        </form> 
     56         
    4057<?php get_footer() ?> 
  • trunk/buddypress-theme/default/messages/sentbox.php

    r176 r180  
    22 
    33        <div class="content-header"> 
    4                 X New Messages 
     4                <div class="pagination-links"> 
     5                        <?php bp_messages_pagination() ?> 
     6                </div> 
    57        </div> 
    68 
    79        <div id="content"> 
     10                <?php do_action( 'template_notices' ) ?> 
    811         
    912                <?php if ( bp_has_message_threads() ) : ?> 
     
    1114                        <table id="message-threads"> 
    1215                        <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 
    13                                 <tr<?php if ( bp_message_thread_has_unread() ) : ?> class="unread"<?php endif; ?>> 
    14                                         <td> 
    15                                                 <?php if ( bp_message_thread_has_unread() ) : ?> 
    16                                                         <?php bp_message_thread_unread_count() ?> 
    17                                                 <?php endif; ?> 
     16                                <tr> 
     17                                        <td width="1%"> 
    1818                                        </td> 
    19                                         <td><?php bp_message_thread_avatar() ?></td> 
    20                                         <td> 
    21                                                 <p>From: <?php bp_message_thread_to() ?></p> 
     19                                        <td width="1%"><?php bp_message_thread_avatar() ?></td> 
     20                                        <td width="27%"> 
     21                                                <p>To: <?php bp_message_thread_to() ?></p> 
    2222                                                <p class="date"><?php bp_message_thread_last_post_date() ?></p> 
    2323                                        </td> 
    24                                         <td> 
     24                                        <td width="40%"> 
    2525                                                <p><a href="<?php bp_message_thread_view_link() ?>" title="View Message"><?php bp_message_thread_subject() ?></a></p> 
    2626                                                <p><?php bp_message_thread_excerpt() ?></p> 
     27                                        </td> 
     28                                        <td width="4%"> 
     29                                                        <a href="<?php bp_message_thread_delete_link() ?>" title="Delete Message">Delete</a>  
     30                                                        <input type="checkbox" name="" value="" /> 
    2731                                        </td> 
    2832                                </tr> 
     
    3236                <?php else: ?> 
    3337                         
    34                         <p><?php _e('No Messages!'); ?></p> 
    35                          
     38                        <div id="message" class="error"> 
     39                                <p>You have no sent messages.</p> 
     40                        </div>   
     41 
    3642                <?php endif;?> 
    3743         
  • trunk/buddypress-theme/default/messages/view.php

    r176 r180  
    22 
    33        <div class="content-header"> 
    4                 X New Messages 
     4                 
    55        </div> 
    66 
    77        <div id="content"> 
     8                <?php do_action( 'template_notices' ) ?> 
     9 
    810                <?php bp_message_thread_view() ?> 
    911        </div> 
  • trunk/buddypress-theme/default/style.css

    r176 r180  
    493493                                        } 
    494494                                         
    495         .form-table { display: none; }  
    496          
    497495        .avatar-box {  
    498496                float: left; 
     
    567565                        margin-top: 1.5em; 
    568566                } 
     567                 
     568                a.delete { 
     569                        overflow: hidden; 
     570                        text-indent: -999px; 
     571                        display: block; 
     572                        float: left; 
     573                        margin-top: 2px; 
     574                        background: url(images/error_icon.gif) top left no-repeat; 
     575                        width: 12px; 
     576                        height: 13px; 
     577                } 
     578                 
     579                span.unread-count { 
     580                        background: #c2582b; 
     581                        border: 2px solid #c2582b; 
     582                        padding: 0 0.5em; 
     583                        color: #fff; 
     584                        font-size: 0.8em; 
     585                        font-weight: bold; 
     586                        -moz-border-radius: 3px; 
     587                        -webkit-border-radius: 3px; 
     588                } 
     589                        .read .unread-count { display: none; } 
     590                 
     591                .pagination-links { 
     592                        float: left; 
     593                        padding: 0 0 0 3em; 
     594                } 
     595                        .pagination-links .page-numbers { 
     596                                padding: 0.65em 0.7em; 
     597                                height: 24px; 
     598                        } 
     599                                a.page-numbers:hover { background: #e1e1e1; } 
     600                         
     601                        .pagination-links .current { 
     602                                background: #d5d5d5; 
     603                                border-bottom: 2px solid #f28935; 
     604                                padding: 0.5em 0.7em !important; 
     605                        } 
     606                 
     607                .messages-options { 
     608                        float: right; 
     609                        padding: 0 3em 0 0; 
     610                        font: normal 0.9em "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif !important; 
     611                        text-transform: none; 
     612                        color: #888; 
     613                        margin-top: -2px; 
     614                } 
     615                        .messages-options a { color: #888; } 
     616                 
     617                .notices td { vertical-align: top; } 
     618                .notice { 
     619                        position: relative; 
     620                        background: url(images/notice_back.gif) top left repeat-x; 
     621                        padding: 1.2em;          
     622                } 
     623                .notice a#close-notice { 
     624                        position: absolute; 
     625                        top: 1em; 
     626                        right: 1.2em; 
     627                } 
     628                .notice h5 { 
     629                        font: normal 1.4em Georgia, Times, serif; 
     630                        margin: 0 0 0.8em 0; 
     631                } 
     632                .notice a { color: #0051FF;} 
     633                 
    569634                 
    570635/**************************