当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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();
}
开发者ID:kd5ytx,项目名称:Empirical-Wordpress,代码行数:4,代码来源:bp-groups-template.php

示例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" />
开发者ID:tamriel-foundry,项目名称:apoc2,代码行数:30,代码来源:admin.php

示例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 
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:admin.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 
开发者ID:jason-herndon,项目名称:bas-intranet,代码行数:31,代码来源:admin.php


注:本文中的bp_get_group_avatar_delete_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。