Changeset 3912
- Timestamp:
- 01/24/2011 02:45:58 PM (14 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/css/default.css
r3901 r3912 1881 1881 1882 1882 ul#topic-post-list { 1883 margin: 15px -20px;1883 margin: 0px -19px 15px; 1884 1884 width: auto; 1885 1885 } … … 1891 1891 1892 1892 ul#topic-post-list li.alt { 1893 background: #f 4f4f4;1893 background: #f8f8f8; 1894 1894 } 1895 1895 … … 1911 1911 } 1912 1912 1913 div#topic-meta { 1914 padding: 5px 19px 30px; 1915 margin: -10px -19px; 1916 position: relative; 1917 } 1918 1913 1919 div#topic-meta div.admin-links { 1914 bottom: 0; 1915 right: 0; 1916 top: auto; 1917 } 1918 1919 div#topic-meta { 1920 position: relative; 1921 padding: 5px 0; 1920 right: 19px; 1921 top: -36px; 1922 1922 } 1923 1923 1924 1924 div#topic-meta h3 { 1925 1925 font-size: 20px; 1926 margin: 5px 0; 1926 1927 } 1927 1928 -
trunk/bp-themes/bp-default/groups/single/forum/edit.php
r3771 r3912 1 <?php do_action( 'bp_before_group_forum_edit_form' ) ?>1 <?php do_action( 'bp_before_group_forum_edit_form' ); ?> 2 2 3 3 <?php if ( bp_has_forum_topic_posts() ) : ?> 4 4 5 <form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form"> 5 <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form"> 6 7 <div class="item-list-tabs" id="subnav" role="navigation"> 8 <ul> 9 <li> 10 <a href="#post-topic-reply">↓ <?php _e( 'Reply', 'buddypress' ); ?></a> 11 </li> 12 13 <?php if ( !bp_forum_directory_is_disabled() ) : ?> 14 15 <li> 16 <a href="<?php bp_forum_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress'); ?></a> 17 </li> 18 19 <?php endif; ?> 20 21 </ul> 22 </div> 6 23 7 24 <div id="topic-meta"> 8 <h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3> 9 <a class="button" href="<?php bp_forum_permalink() ?>/">← <?php _e( 'Group Forum', 'buddypress' ) ?></a> <a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a> 25 <h3><?php _e( 'Edit:', 'buddypress' ); ?> <?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3> 10 26 11 27 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> 12 <div class="admin-links"><?php bp_the_topic_admin_links() ?></div> 28 29 <div class="last admin-links"> 30 31 <?php bp_the_topic_admin_links(); ?> 32 33 </div> 34 13 35 <?php endif; ?> 36 37 <?php do_action( 'bp_group_forum_topic_meta' ); ?> 38 14 39 </div> 15 40 … … 20 45 <div id="edit-topic"> 21 46 22 <?php do_action( 'bp_group_before_edit_forum_topic' ) ?>47 <?php do_action( 'bp_group_before_edit_forum_topic' ); ?> 23 48 24 <p><strong><?php _e( 'Edit Topic:', 'buddypress' ) ?></strong></p> 49 <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label> 50 <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" /> 25 51 26 <label for="topic_t itle"><?php _e( 'Title:', 'buddypress' )?></label>27 < input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title() ?>" />52 <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label> 53 <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text(); ?></textarea> 28 54 29 <label for="topic_text"><?php _e( 'Content:', 'buddypress' ) ?></label> 30 <textarea name="topic_text" id="topic_text"><?php bp_the_topic_text() ?></textarea> 55 <?php do_action( 'bp_group_after_edit_forum_topic' ); ?> 31 56 32 < ?php do_action( 'bp_group_after_edit_forum_topic' ) ?>57 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p> 33 58 34 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p> 35 36 <?php wp_nonce_field( 'bp_forums_edit_topic' ) ?> 59 <?php wp_nonce_field( 'bp_forums_edit_topic' ); ?> 37 60 38 61 </div> … … 42 65 <div id="edit-post"> 43 66 44 <?php do_action( 'bp_group_before_edit_forum_post' ) ?>67 <?php do_action( 'bp_group_before_edit_forum_post' ); ?> 45 68 46 <p><strong><?php _e( 'Edit Post:', 'buddypress' ) ?></strong></p> 47 48 <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text() ?></textarea> 69 <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea> 49 70 50 71 <?php do_action( 'bp_group_after_edit_forum_post' ) ?> 51 72 52 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" /></p>73 <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" /></p> 53 74 54 <?php wp_nonce_field( 'bp_forums_edit_post' ) ?>75 <?php wp_nonce_field( 'bp_forums_edit_post' ); ?> 55 76 56 77 </div> … … 65 86 66 87 <div id="message" class="info"> 67 <p><?php _e( 'This topic does not exist.', 'buddypress' ) ?></p>88 <p><?php _e( 'This topic does not exist.', 'buddypress' ); ?></p> 68 89 </div> 69 90 70 91 <?php endif;?> 71 92 72 <?php do_action( 'bp_after_group_forum_edit_form' ) ?>93 <?php do_action( 'bp_after_group_forum_edit_form' ); ?> -
trunk/bp-themes/bp-default/groups/single/forum/topic.php
r3771 r3912 1 <?php do_action( 'bp_before_group_forum_topic' ) ?>1 <?php do_action( 'bp_before_group_forum_topic' ); ?> 2 2 3 3 <?php if ( bp_has_forum_topic_posts() ) : ?> … … 5 5 <form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form"> 6 6 7 <div class="pagination no-ajax"> 7 <div class="item-list-tabs" id="subnav" role="navigation"> 8 <ul> 9 <li> 10 <a href="#post-topic-reply">↓ <?php _e( 'Reply', 'buddypress' ) ?></a> 11 </li> 8 12 9 <div id="post-count" class="pag-count"> 10 <?php bp_the_topic_pagination_count() ?> 11 </div> 13 <?php if ( !bp_forum_directory_is_disabled() ) : ?> 12 14 13 <div class="pagination-links" id="topic-pag">14 <?php bp_the_topic_pagination() ?>15 </div>15 <li> 16 <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a> 17 </li> 16 18 19 <?php endif; ?> 20 21 </ul> 17 22 </div> 18 23 19 24 <div id="topic-meta"> 20 25 <h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3> 21 <a class="button" href="<?php bp_forum_permalink() ?>/">← <?php _e( 'Group Forum', 'buddypress' ) ?></a> <?php if ( !bp_forum_directory_is_disabled() ) : ?><a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a><?php endif; ?>22 26 23 <div class="admin-links"> 24 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> 27 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> 28 29 <div class="last admin-links"> 30 25 31 <?php bp_the_topic_admin_links() ?> 26 <?php endif; ?>27 32 28 <?php do_action( 'bp_group_forum_topic_meta' ); ?> 33 </div> 34 35 <?php endif; ?> 36 37 <?php do_action( 'bp_group_forum_topic_meta' ); ?> 38 39 </div> 40 41 <div class="pagination no-ajax"> 42 43 <div id="post-count" class="pag-count"> 44 45 <?php bp_the_topic_pagination_count() ?> 46 29 47 </div> 48 49 <div class="pagination-links" id="topic-pag"> 50 51 <?php bp_the_topic_pagination() ?> 52 53 </div> 54 30 55 </div> 31 56 … … 116 141 117 142 </form><!-- #forum-topic-form --> 143 118 144 <?php else: ?> 119 145 -
trunk/bp-themes/bp-default/groups/single/home.php
r3771 r3912 1 <?php get_header() ?>1 <?php get_header(); ?> 2 2 3 3 <div id="content"> 4 4 <div class="padder"> 5 5 6 <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?> 6 7 … … 8 9 9 10 <div id="item-header" role="complementary"> 10 <?php locate_template( array( 'groups/single/group-header.php' ), true ) ?> 11 12 <?php locate_template( array( 'groups/single/group-header.php' ), true ); ?> 13 11 14 </div><!-- #item-header --> 12 15 … … 14 17 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> 15 18 <ul> 16 <?php bp_get_options_nav() ?>17 19 18 <?php do_action( 'bp_group_options_nav' ) ?> 20 <?php bp_get_options_nav(); ?> 21 22 <?php do_action( 'bp_group_options_nav' ); ?> 23 19 24 </ul> 20 25 </div> … … 22 27 23 28 <div id="item-body"> 24 <?php do_action( 'bp_before_group_body' ) ?>25 29 26 <?php if ( bp_is_group_admin_page() && bp_group_is_visible() ) : ?> 27 <?php locate_template( array( 'groups/single/admin.php' ), true ) ?> 30 <?php do_action( 'bp_before_group_body' ); 28 31 29 <?php elseif ( bp_is_group_members() && bp_group_is_visible() ) : ?>30 <?php locate_template( array( 'groups/single/members.php' ), true ) ?>32 if ( bp_is_group_admin_page() && bp_group_is_visible() ) : 33 locate_template( array( 'groups/single/admin.php' ), true ); 31 34 32 <?php elseif ( bp_is_group_invites() && bp_group_is_visible() ) : ?>33 <?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?>35 elseif ( bp_is_group_members() && bp_group_is_visible() ) : 36 locate_template( array( 'groups/single/members.php' ), true ); 34 37 35 <?php elseif ( bp_is_group_forum() && bp_group_is_visible() ) : ?>36 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?>38 elseif ( bp_is_group_invites() && bp_group_is_visible() ) : 39 locate_template( array( 'groups/single/send-invites.php' ), true ); 37 40 38 <?php elseif ( bp_is_group_membership_request() ) : ?>39 <?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?>41 elseif ( bp_is_group_forum() && bp_group_is_visible() ) : 42 locate_template( array( 'groups/single/forum.php' ), true ); 40 43 41 <?php elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) : ?>42 <?php locate_template( array( 'groups/single/activity.php' ), true ) ?>44 elseif ( bp_is_group_membership_request() ) : 45 locate_template( array( 'groups/single/request-membership.php' ), true ); 43 46 44 <?php elseif ( !bp_group_is_visible() ) : ?>45 <?php /* The group is not visible, show the status message */ ?>47 elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) : 48 locate_template( array( 'groups/single/activity.php' ), true ); 46 49 47 <?php do_action( 'bp_before_group_status_message' ) ?> 50 elseif ( !bp_group_is_visible() ) : 51 // The group is not visible, show the status message 52 53 do_action( 'bp_before_group_status_message' ); ?> 48 54 49 55 <div id="message" class="info"> 50 <p><?php bp_group_status_message() ?></p>56 <p><?php bp_group_status_message(); ?></p> 51 57 </div> 52 58 53 <?php do_action( 'bp_after_group_status_message' ) ?>59 <?php do_action( 'bp_after_group_status_message' ); 54 60 55 <?php else : ?> 56 <?php 57 /* If nothing sticks, just load a group front template if one exists. */ 58 locate_template( array( 'groups/single/front.php' ), true ); 59 ?> 60 <?php endif; ?> 61 else : 62 // If nothing sticks, just load a group front template if one exists. 63 locate_template( array( 'groups/single/front.php' ), true ); 61 64 62 <?php do_action( 'bp_after_group_body' ) ?> 65 endif; 66 67 do_action( 'bp_after_group_body' ); ?> 68 63 69 </div><!-- #item-body --> 64 70 65 <?php do_action( 'bp_after_group_home_content' ) ?>71 <?php do_action( 'bp_after_group_home_content' ); ?> 66 72 67 73 <?php endwhile; endif; ?> 74 68 75 </div><!-- .padder --> 69 76 </div><!-- #content --> 70 77 71 <?php get_sidebar() ?> 72 73 <?php get_footer() ?> 78 <?php get_sidebar(); ?> 79 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.