Changeset 2069 for trunk/bp-themes/bp-sn-parent/groups/create.php
- Timestamp:
- 11/01/2009 09:35:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-sn-parent/groups/create.php
r1905 r2069 7 7 </div> 8 8 9 <div id="content"> 9 <div id="content"> 10 10 <h2><?php _e( 'Create a Group', 'buddypress' ) ?> <?php bp_group_creation_stage_title() ?></h2> 11 11 <?php do_action( 'template_notices' ) // (error/success feedback) ?> … … 14 14 15 15 <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data"> 16 16 17 17 <!-- Group creation step 1: Basic group details --> 18 18 <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?> 19 19 20 20 <?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> 23 23 <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> 26 26 <textarea name="group-desc" id="group-desc"><?php bp_new_group_description() ?></textarea> 27 27 28 28 <label for="group-news"><?php _e('Recent News', 'buddypress') ?></label> 29 29 <textarea name="group-news" id="group-news"><?php bp_new_group_news() ?></textarea> 30 30 31 31 <?php do_action( 'bp_after_group_details_creation_step' ); /* Deprecated -> */ do_action( 'groups_custom_group_fields_editable' ); ?> 32 32 … … 35 35 <?php endif; ?> 36 36 37 <!-- Group creation step 2: Group settings --> 37 <!-- Group creation step 2: Group settings --> 38 38 <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?> 39 39 … … 45 45 </div> 46 46 <?php endif; ?> 47 47 48 48 <?php if ( function_exists('bp_forums_setup') ) : ?> 49 49 <?php if ( bp_forums_is_installed_correctly() ) : ?> … … 63 63 64 64 <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 } ?> /> 66 66 <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong> 67 67 <ul> … … 71 71 </ul> 72 72 </label> 73 73 74 74 <label><input type="radio" name="group-status" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 75 75 <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong> … … 80 80 </ul> 81 81 </label> 82 82 83 83 <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 84 84 <strong><?php _e('This is a hidden group', 'buddypress') ?></strong> … … 94 94 95 95 <?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 --> 100 100 <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?> 101 101 102 102 <?php do_action( 'bp_before_group_avatar_creation_step' ); ?> 103 103 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 111 104 <?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 121 124 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 122 125 123 126 <h3><?php _e( 'Crop Group Avatar', 'buddypress' ) ?></h3> 124 127 125 128 <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"> 128 131 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> 129 132 </div> 130 133 131 134 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 132 135 133 136 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 134 137 <input type="hidden" name="upload" id="upload" /> … … 139 142 140 143 <?php endif; ?> 141 142 <p><?php _e( 'To skip the avatar upload process, hit the "Next Step" button.', 'buddypress' ) ?></p>143 </div>144 144 145 145 <?php do_action( 'bp_after_group_avatar_creation_step' ); ?> 146 146 147 147 <?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 --> 152 152 <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?> 153 153 … … 155 155 156 156 <div class="left-menu"> 157 157 158 158 <div id="invite-list"> 159 159 <ul> 160 160 <?php bp_new_group_invite_friend_list() ?> 161 161 </ul> 162 162 163 163 <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ) ?> 164 164 </div> 165 165 166 166 </div> 167 167 168 168 <div class="main-column"> 169 169 170 170 <div id="message" class="info"> 171 171 <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p> … … 175 175 <ul id="friend-list" class="item-list"> 176 176 <?php if ( bp_group_has_invites() ) : ?> 177 177 178 178 <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?> 179 179 180 180 <li id="<?php bp_group_invite_item_id() ?>"> 181 181 <?php bp_group_invite_user_avatar() ?> 182 182 183 183 <h4><?php bp_group_invite_user_link() ?></h4> 184 184 <span class="activity"><?php bp_group_invite_user_last_active() ?></span> 185 185 186 186 <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> 188 188 </div> 189 189 </li> 190 190 191 191 <?php endwhile; ?> 192 192 193 193 <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ) ?> 194 194 <?php endif; ?> 195 195 </ul> 196 196 197 197 <?php wp_nonce_field( 'groups_create_save_group-invites' ) ?> 198 198 199 199 </div> 200 200 201 201 <?php do_action( 'bp_after_group_invites_creation_step' ); ?> 202 203 <?php endif; ?> 204 202 203 <?php endif; ?> 204 205 205 <?php do_action( 'groups_custom_create_steps' ) // Allow plugins to add custom group creation steps ?> 206 206 207 207 <?php do_action( 'bp_before_group_creation_step_buttons' ); ?> 208 208 … … 217 217 <input type="submit" value="<?php _e('Next Step', 'buddypress') ?> →" id="group-creation-next" name="save" /> 218 218 <?php endif;?> 219 219 220 220 <!-- Create Button --> 221 221 <?php if ( bp_is_first_group_creation_step() ) : ?> 222 222 <input type="submit" value="<?php _e('Create Group and Continue', 'buddypress') ?> →" id="group-creation-create" name="save" /> 223 223 <?php endif; ?> 224 224 225 225 <!-- Finish Button --> 226 226 <?php if ( bp_is_last_group_creation_step() ) : ?> … … 228 228 <?php endif; ?> 229 229 </div> 230 230 231 231 <?php do_action( 'bp_after_group_creation_step_buttons' ); ?> 232 232 … … 236 236 237 237 <?php do_action( 'bp_after_group_creation_content' ) ?> 238 238 239 239 </div> 240 240
Note: See TracChangeset
for help on using the changeset viewer.