Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 06:56:42 PM (17 years ago)
Author:
apeatling
Message:

Merging last few trunk changes and stripping all whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-themes/bp-sn-parent/groups/create.php

    r1905 r2076  
    77        </div>
    88
    9         <div id="content">     
     9        <div id="content">
    1010                <h2><?php _e( 'Create a Group', 'buddypress' ) ?> <?php bp_group_creation_stage_title() ?></h2>
    1111                <?php do_action( 'template_notices' ) // (error/success feedback) ?>
    … …  
    1414
    1515                <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    16        
     16
    1717                        <!-- Group creation step 1: Basic group details -->
    1818                        <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    1919
    2020                                <?php do_action( 'bp_before_group_details_creation_step' ); ?>
    21                                
    22                                 <label for="group-name"><?php _e('Group Name', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
     21
     22                                <label for="group-name"><?php _e('* Group Name', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
    2323                                <input type="text" name="group-name" id="group-name" value="<?php bp_new_group_name() ?>" />
    24        
    25                                 <label for="group-desc"><?php _e('Group Description', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
     24
     25                                <label for="group-desc"><?php _e('* Group Description', 'buddypress') ?> <? _e( '(required)', 'buddypress' )?></label>
    2626                                <textarea name="group-desc" id="group-desc"><?php bp_new_group_description() ?></textarea>
    27        
     27
    2828                                <label for="group-news"><?php _e('Recent News', 'buddypress') ?></label>
    2929                                <textarea name="group-news" id="group-news"><?php bp_new_group_news() ?></textarea>
    30                
     30
    3131                                <?php do_action( 'bp_after_group_details_creation_step' ); /* Deprecated -> */ do_action( 'groups_custom_group_fields_editable' ); ?>
    3232
    … …  
    3535                        <?php endif; ?>
    3636
    37                         <!-- Group creation step 2: Group settings -->         
     37                        <!-- Group creation step 2: Group settings -->
    3838                        <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    3939
    … …  
    4545                                </div>
    4646                                <?php endif; ?>
    47        
     47
    4848                                <?php if ( function_exists('bp_forums_setup') ) : ?>
    4949                                        <?php if ( bp_forums_is_installed_correctly() ) : ?>
    … …  
    6363
    6464                                <div class="radio">
    65                                         <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 
     65                                        <label><input type="radio" name="group-status" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    6666                                                <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
    6767                                                <ul>
    … …  
    7171                                                </ul>
    7272                                        </label>
    73                
     73
    7474                                        <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    7575                                                <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
    … …  
    8080                                                </ul>
    8181                                        </label>
    82                
     82
    8383                                        <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> />
    8484                                                <strong><?php _e('This is a hidden group', 'buddypress') ?></strong>
    … …  
    9494
    9595                                <?php wp_nonce_field( 'groups_create_save_group-settings' ) ?>
    96        
    97                         <?php endif; ?>
    98                
    99                         <!-- Group creation step 3: Avatar Uploads --> 
     96
     97                        <?php endif; ?>
     98
     99                        <!-- Group creation step 3: Avatar Uploads -->
    100100                        <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    101101
    102102                                <?php do_action( 'bp_before_group_avatar_creation_step' ); ?>
    103103
    104                                 <div class="left-menu">
    105                                         <?php bp_new_group_avatar() ?>
    106                                 </div>
    107                
    108                                 <div class="main-column">
    109                                         <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
    110                        
    111104                                <?php if ( !bp_get_avatar_admin_step() ) : ?>
    112                        
    113                                         <p>
    114                                                 <input type="file" name="file" id="file" />
    115                                                 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
    116                                                 <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    117                                         </p>
    118 
    119                                 <?php endif; ?>
    120                        
     105
     106                                        <div class="left-menu">
     107                                                <?php bp_new_group_avatar() ?>
     108                                        </div>
     109
     110                                        <div class="main-column">
     111                                                <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
     112
     113                                                <p>
     114                                                        <input type="file" name="file" id="file" />
     115                                                        <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
     116                                                        <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
     117                                                </p>
     118
     119                                                <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>
     120                                        </div>
     121
     122                                <?php endif; ?>
     123
    121124                                <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    122                        
     125
    123126                                        <h3><?php _e( 'Crop Group Avatar', 'buddypress' ) ?></h3>
    124                                
     127
    125128                                        <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
    126                                
    127                                         <div id="avatar-crop-pane" style="width:100px;height:100px;overflow:hidden;">
     129
     130                                        <div id="avatar-crop-pane">
    128131                                                <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
    129132                                        </div>
    130133
    131134                                        <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    132                                
     135
    133136                                        <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
    134137                                        <input type="hidden" name="upload" id="upload" />
    … …  
    139142
    140143                                <?php endif; ?>
    141                                
    142                                         <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>
    143                                 </div>
    144144
    145145                                <?php do_action( 'bp_after_group_avatar_creation_step' ); ?>
    146146
    147147                                <?php wp_nonce_field( 'groups_create_save_group-avatar' ) ?>
    148                
    149                         <?php endif; ?>
    150                
    151                         <!-- Group creation step 4: Invite friends to group --> 
     148
     149                        <?php endif; ?>
     150
     151                        <!-- Group creation step 4: Invite friends to group -->
    152152                        <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    153153
    … …  
    155155
    156156                                <div class="left-menu">
    157                                
     157
    158158                                        <div id="invite-list">
    159159                                                <ul>
    160160                                                        <?php bp_new_group_invite_friend_list() ?>
    161161                                                </ul>
    162                                        
     162
    163163                                                <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ) ?>
    164164                                        </div>
    165                                
     165
    166166                                </div>
    167167
    168168                                <div class="main-column">
    169                
     169
    170170                                        <div id="message" class="info">
    171171                                                <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p>
    … …  
    175175                                        <ul id="friend-list" class="item-list">
    176176                                        <?php if ( bp_group_has_invites() ) : ?>
    177                                        
     177
    178178                                                <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
    179179
    180180                                                        <li id="<?php bp_group_invite_item_id() ?>">
    181181                                                                <?php bp_group_invite_user_avatar() ?>
    182                                                        
     182
    183183                                                                <h4><?php bp_group_invite_user_link() ?></h4>
    184184                                                                <span class="activity"><?php bp_group_invite_user_last_active() ?></span>
    185                                                        
     185
    186186                                                                <div class="action">
    187                                                                         <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a> 
     187                                                                        <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a>
    188188                                                                </div>
    189189                                                        </li>
    190190
    191191                                                <?php endwhile; ?>
    192                                        
     192
    193193                                                <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ) ?>
    194194                                        <?php endif; ?>
    195195                                        </ul>
    196        
     196
    197197                                        <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?>
    198                                
     198
    199199                                </div>
    200200
    201201                                <?php do_action( 'bp_after_group_invites_creation_step' ); ?>
    202                        
    203                         <?php endif; ?>
    204                
     202
     203                        <?php endif; ?>
     204
    205205                        <?php do_action( 'groups_custom_create_steps' ) // Allow plugins to add custom group creation steps ?>
    206                
     206
    207207                        <?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
    208208
    … …  
    217217                                        <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> &rarr;" id="group-creation-next" name="save" />
    218218                                <?php endif;?>
    219                
     219
    220220                                <!-- Create Button -->
    221221                                <?php if ( bp_is_first_group_creation_step() ) : ?>
    222222                                        <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> &rarr;" id="group-creation-create" name="save" />
    223223                                <?php endif; ?>
    224                
     224
    225225                                <!-- Finish Button -->
    226226                                <?php if ( bp_is_last_group_creation_step() ) : ?>
    … …  
    228228                                <?php endif; ?>
    229229                        </div>
    230                        
     230
    231231                        <?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
    232232
    … …  
    236236
    237237                <?php do_action( 'bp_after_group_creation_content' ) ?>
    238        
     238
    239239        </div>
    240240
Note: See TracChangeset for help on using the changeset viewer.