本文整理汇总了PHP中bp_get_group_avatar_delete_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_group_avatar_delete_link函数的具体用法?PHP bp_get_group_avatar_delete_link怎么用?PHP bp_get_group_avatar_delete_link使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_get_group_avatar_delete_link函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_group_avatar_delete_link
function bp_group_avatar_delete_link()
{
echo bp_get_group_avatar_delete_link();
}
示例2: bp_new_group_avatar
<?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" />
示例3: _e
?>
" />
<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
示例4: _e
?>
" />
<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