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


PHP bp_avatar_delete_link函数代码示例

本文整理汇总了PHP中bp_avatar_delete_link函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_avatar_delete_link函数的具体用法?PHP bp_avatar_delete_link怎么用?PHP bp_avatar_delete_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bp_avatar_delete_link函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _e

				<input type="submit" name="upload" id="upload" value="<?php 
        _e('Upload Image', 'bp-magic');
        ?>
" />
				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
			</p>

			<?php 
        if (bp_get_user_has_avatar()) {
            ?>
				<p><?php 
            _e("If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'bp-magic');
            ?>
</p>
				<p><a class="btn btn-delete button edit" href="<?php 
            bp_avatar_delete_link();
            ?>
" title="<?php 
            _e('Delete Avatar', 'bp-magic');
            ?>
"><?php 
            _e('Delete My Avatar', 'bp-magic');
            ?>
</a></p>
			<?php 
        }
        ?>

		<?php 
    }
    ?>
开发者ID:buddydev,项目名称:bp-magic,代码行数:31,代码来源:change-avatar.php

示例2: if

	<form action="" method="post" id="avatar-upload-form" enctype="multipart/form-data">

		<?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>

			<p><?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?></p>

			<p id="avatar-upload">
				<input type="file" name="file" id="file" />
				<input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
				<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
			</p>

			<?php if ( bp_get_user_has_avatar() ) : ?>
				<p><?php _e( "If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ) ?></p>
				<p><a class="button edit" href="<?php bp_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete My Avatar', 'buddypress' ) ?></a></p>
			<?php endif; ?>

			<?php wp_nonce_field( 'bp_avatar_upload' ) ?>

		<?php endif; ?>

		<?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>

			<h5><?php _e( 'Crop Your New Avatar', 'buddypress' ) ?></h5>

			<img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />

			<div id="avatar-crop-pane">
				<img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
			</div>
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:change-avatar.php


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