function bp_group_avatar_delete_link()
{
    echo bp_get_group_avatar_delete_link();
}
Example #2
0
	<?php 
    if ('upload-image' == bp_get_avatar_admin_step()) {
        ?>
	<fieldset>
		<div class="form-left">
			<?php 
        bp_new_group_avatar($args = array('type' => 'full', 'width' => 200, 'height' => 200, 'no_grav' => true));
        ?>
			<input type="file" name="file" id="file" />
		
			<?php 
        if (bp_get_group_has_avatar()) {
            ?>
				<?php 
            bp_button(array('id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'button', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __('Delete Avatar', 'buddypress'), 'link_text' => '<i class="fa fa-remove"></i>Delete Avatar', 'wrapper' => false));
            ?>
			<?php 
        }
        ?>
		</div>
		
		<div class="form-right">
			<button type="submit" name="upload" id="upload" class="button"><i class="fa fa-cloud-upload"></i>Upload New Avatar</button>
		</div>

		<div class="hidden">
			<?php 
        wp_nonce_field('bp_avatar_upload');
        ?>
			<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
Example #3
0
        ?>
" />
				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
			</p>

			<?php 
        if (bp_get_group_has_avatar()) {
            ?>

				<p><?php 
            _e("If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'buddypress');
            ?>
</p>

				<?php 
            bp_button(array('id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __('Delete Avatar', 'buddypress'), 'link_text' => __('Delete Avatar', 'buddypress')));
            ?>

			<?php 
        }
        ?>

			<?php 
        nxt_nonce_field('bp_avatar_upload');
        ?>

	<?php 
    }
    ?>

	<?php 
Example #4
0
        ?>
" />
				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
			</p>

			<?php 
        if (bp_get_group_has_avatar()) {
            ?>

				<p><?php 
            _e("If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'firmasite');
            ?>
</p>

				<?php 
            bp_button(array('id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit btn btn-default', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __('Delete Group Profile Photo', 'firmasite'), 'link_text' => __('Delete Group Profile Photo', 'firmasite')));
            ?>

			<?php 
        }
        ?>

			<?php 
        wp_nonce_field('bp_avatar_upload');
        ?>

	<?php 
    }
    ?>

	<?php