本文整理汇总了PHP中bp_new_group_avatar函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_new_group_avatar函数的具体用法?PHP bp_new_group_avatar怎么用?PHP bp_new_group_avatar使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_new_group_avatar函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: do_action
<?php
if (bp_is_group_creation_step('group-avatar')) {
?>
<?php
do_action('bp_before_group_avatar_creation_step');
?>
<?php
if ('upload-image' == bp_get_avatar_admin_step()) {
?>
<div class="left-menu">
<?php
bp_new_group_avatar();
?>
</div><!-- .left-menu -->
<div class="main-column">
<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.", 'vibe');
?>
</p>
<p>
<input type="file" name="file" id="file"/>
<input type="submit" name="upload" id="upload"
value="<?php
_e('Upload Image', 'vibe');
示例2: bp_new_group_avatar
<h3 class="double-border bottom">Step 4 - Upload Guild Avatar</h2>
<ul>
<li>Upload an image to use as the guild avatar.</li>
<li>The image will be shown on the main group page, and in search results.</li>
<li>Avatars are automatically resized to 200 pixel jpegs after cropping.</li>
<li>You may skip the avatar upload process by hitting the "Next Step" button.</li>
</ul>
</div>
<?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">
示例3: do_action
<?php
if (bp_is_group_creation_step('group-avatar')) {
?>
<?php
do_action('bp_before_group_avatar_creation_step');
?>
<?php
if ('upload-image' == bp_get_avatar_admin_step()) {
?>
<div class="left-menu">
<?php
bp_new_group_avatar('width=35&height=35');
?>
</div><!-- .left-menu -->
<div class="main-column">
<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.", 'huddle');
?>
</p>
<p>
<input type="file" name="file" id="file" />
<input type="submit" class="btn-gray" name="upload" id="upload" value="<?php
_e('Upload Image', 'huddle');
?>
示例4: do_action
<?php
if (bp_is_group_creation_step('group-avatar')) {
?>
<?php
do_action('bp_before_group_avatar_creation_step');
?>
<?php
if ('upload-image' == bp_get_avatar_admin_step()) {
?>
<div class="left-menu">
<?php
bp_new_group_avatar('type=thumb&width=256&height=256');
?>
</div><!-- .left-menu -->
<div class="main-column">
<p>Ladda upp en bild att använda som gruppbild/avatar. Denna bild visas i gruppvyer och i sökresultat.</p>
<p>
<input type="file" name="file" id="file" />
<input type="submit" name="upload" id="upload" class="btn btn-primary" value="<?php
_e('Upload Image', 'buddypress');
?>
" />
<input type="hidden" name="action" id="action" value="bp_avatar_upload" />
</p>