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

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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() ?>