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


PHP bp_group_id函数代码示例

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


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

示例1: _e

						<label><?php _e( 'Content:', 'buddypress' ) ?></label>
						<textarea name="topic_text" id="topic_text"></textarea>

						<label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label>
						<input type="text" name="topic_tags" id="topic_tags" value="" />

						<label><?php _e( 'Post In Group Forum:', 'buddypress' ) ?></label>
						<select id="topic_group_id" name="topic_group_id">

							<option value="">----</option>

							<?php while ( bp_groups() ) : bp_the_group(); ?>

								<?php if ( bp_group_is_forum_enabled() && 'public' == bp_get_group_status() ) : ?>

									<option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>

								<?php endif; ?>

							<?php endwhile; ?>

						</select><!-- #topic_group_id -->

						<?php do_action( 'groups_forum_new_topic_after' ) ?>

						<div class="submit">
							<input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ) ?>" />
							<input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ) ?>" />
						</div>

						<?php wp_nonce_field( 'bp_forums_new_topic' ) ?>
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:index.php

示例2: elseif

							<?php 
        }
    }
    ?>

					</select>
				</div>
				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />

			<?php 
} elseif (bp_is_group_home()) {
    ?>

				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
				<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php 
    bp_group_id();
    ?>
" />

			<?php 
}
?>

			<?php 
do_action('bp_activity_post_form_options');
?>

		</div><!-- #whats-new-options -->
	</div><!-- #whats-new-content -->

	<?php 
开发者ID:kosir,项目名称:thatcamp-org,代码行数:31,代码来源:post-form.php

示例3: do_action

			<?php 
        }
        ?>
			
			<?php 
        do_action('groups_custom_group_boxes');
        ?>
		
			<?php 
        if (bp_group_is_visible() && bp_group_is_wire_enabled()) {
            ?>
				<?php 
            if (function_exists('bp_wire_get_post_list')) {
                ?>
					<?php 
                bp_wire_get_post_list(bp_group_id(false, false), __('Group Wire', 'buddypress'), sprintf(__('There are no wire posts for %s', 'buddypress'), bp_group_name(false)), bp_group_is_member(), true);
                ?>
				<?php 
            }
            ?>
			<?php 
        }
        ?>
		
		</div>

	<?php 
    }
} else {
    ?>
		<div id="message" class="error">
开发者ID:alvaropereyra,项目名称:shrekcms,代码行数:31,代码来源:group-home.php

示例4: invite_anyone_screen_one_content


//.........这里部分代码省略.........
        ?>
				<label for="invite-anyone-custom-message"><?php 
        _e('Message:', 'invite-anyone');
        ?>
</label>
					<textarea name="invite_anyone_custom_message" id="invite-anyone-custom-message" disabled="disabled"><?php 
        echo invite_anyone_invitation_message($returned_message);
        ?>
</textarea>

				<input type="hidden" name="invite_anyone_custom_message" value="<?php 
        echo invite_anyone_invitation_message();
        ?>
" />
			<?php 
    }
    ?>

		</li>

		<?php 
    if (invite_anyone_are_groups_running()) {
        ?>
			<?php 
        if ($iaoptions['can_send_group_invites_email'] == 'yes' && bp_has_groups("per_page=10000&type=alphabetical&user_id=" . bp_loggedin_user_id())) {
            ?>
			<li>
				<p><?php 
            _e('(optional) Select some groups. Invitees will receive invitations to these groups when they join the site.', 'invite-anyone');
            ?>
</p>
				<ul id="invite-anyone-group-list">
					<?php 
            while (bp_groups()) {
                bp_the_group();
                ?>
						<?php 
                // Enforce per-group invitation settings
                if (!bp_groups_user_can_send_invites(bp_get_group_id()) || 'anyone' !== invite_anyone_group_invite_access_test(bp_get_group_id())) {
                    continue;
                }
                ?>
						<li>
						<input type="checkbox" name="invite_anyone_groups[]" id="invite_anyone_groups-<?php 
                bp_group_id();
                ?>
" value="<?php 
                bp_group_id();
                ?>
" <?php 
                if ($from_group == bp_get_group_id() || array_search(bp_get_group_id(), $returned_groups)) {
                    ?>
checked<?php 
                }
                ?>
 />

						<label for="invite_anyone_groups-<?php 
                bp_group_id();
                ?>
" class="invite-anyone-group-name"><?php 
                bp_group_avatar_mini();
                ?>
 <span><?php 
                bp_group_name();
                ?>
</span></label>

						</li>
					<?php 
            }
            ?>

				</ul>
			</li>
			<?php 
        }
        ?>

		<?php 
    }
    ?>

		<?php 
    do_action('invite_anyone_addl_fields');
    ?>

	</ol>

	<div class="submit">
		<input type="submit" name="invite-anyone-submit" id="invite-anyone-submit" value="<?php 
    _e('Send Invites', 'buddypress');
    ?>
 " />
	</div>


	</form>
	<?php 
}
开发者ID:kd5ytx,项目名称:Empirical-Wordpress,代码行数:101,代码来源:by-email.php

示例5: bp_legacy_groups_admin_screen_hidden_input

/**
 * Renders the group ID hidden input on group admin screens.
 *
 * @since 2.7.0
 *
 * @return string html
 */
function bp_legacy_groups_admin_screen_hidden_input()
{
    ?>
 	<input type="hidden" name="group-id" id="group-id" value="<?php 
    bp_group_id();
    ?>
" />
	<?php 
}
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:16,代码来源:buddypress-functions.php

示例6: _e

				<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ) ?>" />
			</div>

			<?php if ( function_exists('bp_has_groups') && !bp_is_my_profile() && !bp_is_group() ) : ?>
				<div id="whats-new-post-in-box">
					<?php _e( 'Post in', 'buddypress' ) ?>:

					<select id="whats-new-post-in" name="whats-new-post-in">
						<option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ) ?></option>

						<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) : while ( bp_groups() ) : bp_the_group(); ?>
							<option value="<?php bp_group_id() ?>"><?php bp_group_name() ?></option>
						<?php endwhile; endif; ?>
					</select>
				</div>
				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
			<?php elseif ( bp_is_group_home() ) : ?>
				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
				<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id() ?>" />
			<?php endif; ?>

			<?php do_action( 'bp_activity_post_form_options' ) ?>

		</div><!-- #whats-new-options -->
	</div><!-- #whats-new-content -->

	<?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
	<?php do_action( 'bp_after_activity_post_form' ) ?>

</form><!-- #whats-new-form -->
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:post-form.php

示例7: bp_group_management_admin_main


//.........这里部分代码省略.........
        _e('Group type', 'bp-group-management');
        ?>
</th>
            		<th scope="col"><a href="admin.php?page=bp-group-management&amp;order=group_id"><?php 
        _e('Date Created', 'bp-group-management');
        ?>
</a></th>
            		<th scope="col"><a href="admin.php?page=bp-group-management&amp;order=popular"><?php 
        _e('Number of Members', 'bp-group-management');
        ?>
</a></th>

            		<?php 
        do_action('bp_gm_group_column_header');
        ?>
            	</tr>
            </thead>

			<tbody id="the-list">
            	<?php 
        while (bp_groups()) {
            bp_the_group();
            ?>
   					<?php 
            $group = $groups_template->group;
            ?>
            		<tr>
            			<th scope="row" class="check-column">

						</th>

						<th scope="row"  class="bp-gm-group-id">
							<?php 
            bp_group_id();
            ?>
						</th>


						<td scope="row" class="bp-gm-avatar">
  							 <a href="admin.php?page=bp-group-management&action=edit&id=<?php 
            bp_group_id();
            ?>
" class="edit"><?php 
            bp_group_avatar('width=35&height=35');
            ?>
</a>
 						</td>

						<td scope="row">
							<?php 
            bp_group_name();
            ?>
									<br/>
									<?php 
            $controlActions = array();
            $controlActions[] = '<a href="admin.php?page=bp-group-management&amp;action=edit&amp;id=' . bp_get_group_id() . '" class="edit">' . __('Members', 'bp-group-management') . '</a>';
            $controlActions[] = '<a class="delete" href="admin.php?page=bp-group-management&amp;action=delete&amp;id=' . bp_get_group_id() . '">' . __("Delete") . '</a>';
            $controlActions[] = '<a href="' . bp_get_group_permalink() . 'admin">' . __('Admin', 'bp-group-management') . '</a>';
            $controlActions[] = "<a href='" . bp_get_group_permalink() . "' rel='permalink'>" . __('Visit', 'bp-group-management') . '</a>';
            $controlActions = apply_filters('bp_gm_group_action_links', $controlActions);
            ?>

									<?php 
            if (count($controlActions)) {
                ?>
									<div class="row-actions">
开发者ID:adisonc,项目名称:MaineLearning,代码行数:67,代码来源:bp-group-management-bp-functions.php

示例8: invite_anyone_create_screen_content


//.........这里部分代码省略.........
							<?php 
                    }
                    ?>
						<?php 
                }
                ?>
						</ul>

						<?php 
                do_action('bp_after_group_send_invites_list');
                ?>

					</div>

					<div class="clear"></div>

				<?php 
                if ($event != 'create') {
                    ?>
					<p class="clear"><input type="submit" name="submit" id="submit" value="<?php 
                    _e('Send Invites', 'buddypress');
                    ?>
" /></p>
					<?php 
                    wp_nonce_field('groups_send_invites', '_wpnonce_send_invites');
                    ?>
				<?php 
                }
                ?>



					<input type="hidden" name="group_id" id="group_id" value="<?php 
                bp_group_id();
                ?>
" />
				<?php 
                if ($event != 'create') {
                    ?>
					</form>
				<?php 
                }
                ?>


			<?php 
                do_action('bp_before_group_send_invites_content');
                ?>
	<?php 
            }
        }
    } else {
        // Begin BP 1.2 code
        ?>
	<?php 
        do_action('bp_before_group_send_invites_content');
        ?>

	<?php 
        if (invite_anyone_access_test() && !bp_is_group_create()) {
            ?>
		<p><?php 
            _e('Want to invite someone to the group who is not yet a member of the site?', 'bp-invite-anyone');
            ?>
 <a href="<?php 
            echo bp_loggedin_user_domain() . BP_INVITE_ANYONE_SLUG . '/invite-new-members/group-invites/' . bp_get_group_id();
开发者ID:hnla,项目名称:invite-anyone,代码行数:67,代码来源:group-invites.php

示例9: esc_attr_e

		<div id="mpp-whats-new-options">
			<div id="mpp-whats-new-submit">
				<input type="submit" name="mpp-aw-whats-new-submit" id="mpp-aw-whats-new-submit" value="<?php 
esc_attr_e('Post', 'mediapress');
?>
" />
			</div>


			<?php 
if (bp_is_active('groups') && bp_is_group()) {
    ?>

				<input type="hidden" id="mpp-whats-new-post-object" name="whats-new-post-object" value="groups" />
				<input type="hidden" id="mpp-whats-new-post-in" name="whats-new-post-in" value="<?php 
    bp_group_id(groups_get_current_group());
    ?>
" />

			<?php 
}
?>
				<?php 
if (mpp_is_single_gallery() && !mpp_is_single_media()) {
    ?>
					<input type="hidden" name='mpp-item-id' id="mpp-item-id" value="<?php 
    echo mpp_get_current_gallery_id();
    ?>
" />
					<input type="hidden" name='mpp-activity-type' id="mpp-activity-type" value="gallery" />
				<?php 
开发者ID:markc,项目名称:mediapress,代码行数:31,代码来源:post-form.php

示例10: display

    function display($page = 1)
    {
        global $bp, $groups_template;
        $parent_template = $groups_template;
        $hide_button = false;
        if (isset($_REQUEST['grpage'])) {
            $page = (int) $_REQUEST['grpage'];
        } else {
            if (!is_numeric($page)) {
                $page = 1;
            } else {
                $page = (int) $page;
            }
        }
        /** Respect BuddyPress group creation restriction */
        if (function_exists('bp_user_can_create_groups')) {
            $hide_button = !bp_user_can_create_groups();
        }
        bp_has_groups_hierarchy(array('type' => 'alphabetical', 'parent_id' => $bp->groups->current_group->id, 'page' => $page));
        ?>
		<div class="group">

			<?php 
        if (($bp->is_item_admin || $bp->groups->current_group->can_create_subitems) && !$hide_button) {
            ?>
			<div class="generic-button group-button">
				<a title="<?php 
            printf(__('Create a %s', 'bp-group-hierarchy'), __('Member Group', 'bp-group-hierarchy'));
            ?>
" href="<?php 
            echo $bp->root_domain . '/' . bp_get_groups_root_slug() . '/' . 'create' . '/?parent_id=' . $bp->groups->current_group->id;
            ?>
"><?php 
            printf(__('Create a %s', 'bp-group-hierarchy'), __('Member Group', 'bp-group-hierarchy'));
            ?>
</a>
			</div><br /><br />
			<?php 
        }
        ?>

		<?php 
        if ($groups_template && count($groups_template->groups) > 0) {
            ?>

			<div id="pag-top" class="pagination">
				<div class="pag-count" id="group-dir-count-top">
					<?php 
            bp_groups_pagination_count();
            ?>
				</div>
		
				<div class="pagination-links" id="group-dir-pag-top">
					<?php 
            bp_groups_pagination_links();
            ?>
				</div>
			</div>
	
			<ul id="groups-list" class="item-list">
				<?php 
            while (bp_groups()) {
                bp_the_group();
                ?>
				<?php 
                $subgroup = $groups_template->group;
                ?>
				<?php 
                if ($subgroup->status == 'hidden' && !(groups_is_user_member($bp->loggedin_user->id, $subgroup->id) || groups_is_user_admin($bp->loggedin_user->id, $bp->groups->current_group->id))) {
                    continue;
                }
                ?>
				<li id="tree-childof_<?php 
                bp_group_id();
                ?>
">
					<div class="item-avatar">
						<a href="<?php 
                bp_group_permalink();
                ?>
"><?php 
                bp_group_avatar('type=thumb&width=50&height=50');
                ?>
</a>
					</div>
		
					<div class="item">
						<div class="item-title"><a href="<?php 
                bp_group_permalink();
                ?>
"><?php 
                bp_group_name();
                ?>
</a></div>
						<div class="item-meta"><span class="activity"><?php 
                printf(__('active %s', 'buddypress'), bp_get_group_last_active());
                ?>
</span></div>
						<div class="item-desc"><?php 
                bp_group_description_excerpt();
//.........这里部分代码省略.........
开发者ID:adisonc,项目名称:MaineLearning,代码行数:101,代码来源:extension.php

示例11: invite_anyone_screen_one_content


//.........这里部分代码省略.........
    } else {
        ?>
				<label for="invite-anyone-custom-message"><?php 
        _e('Message:', 'bp-invite-anyone');
        ?>
</label>
					<textarea name="invite_anyone_custom_message" id="invite-anyone-custom-message" disabled="disabled"><?php 
        echo invite_anyone_invitation_message($returned_message);
        ?>
</textarea>
				
				<input type="hidden" name="invite_anyone_custom_message" value="<?php 
        echo invite_anyone_invitation_message();
        ?>
" />
			<?php 
    }
    ?>
				<p><?php 
    _e('The message will also contain a custom footer containing links to accept the invitation or opt out of further email invitations from this site.', 'bp-invite-anyone');
    ?>
</p>

		</li>

		<?php 
    if (invite_anyone_are_groups_running()) {
        ?>
			<?php 
        if ($iaoptions['can_send_group_invites_email'] == 'yes' && bp_has_groups("per_page=10000&type=alphabetical&user_id=" . bp_loggedin_user_id())) {
            ?>
			<li>
				<p><?php 
            _e('(optional) Select some groups. Invitees will receive invitations to these groups when they join the site.', 'bp-invite-anyone');
            ?>
</p>
				<ul id="invite-anyone-group-list">
					<?php 
            while (bp_groups()) {
                bp_the_group();
                ?>
						<li>
						<input type="checkbox" name="invite_anyone_groups[]" id="invite_anyone_groups-<?php 
                bp_group_id();
                ?>
" value="<?php 
                bp_group_id();
                ?>
" <?php 
                if ($from_group == bp_get_group_id() || array_search(bp_get_group_id(), $returned_groups)) {
                    ?>
checked<?php 
                }
                ?>
 />
						
						<label for="invite_anyone_groups-<?php 
                bp_group_id();
                ?>
" class="invite-anyone-group-name"><?php 
                bp_group_avatar_mini();
                ?>
 <span><?php 
                bp_group_name();
                ?>
</span></label>

						</li>
					<?php 
            }
            ?>

				</ul>
       
			</li>
			<?php 
        }
        ?>

		<?php 
    }
    ?>

		<?php 
    do_action('invite_anyone_addl_fields');
    ?>

	</ol>

	<div class="submit">
		<input type="submit" name="invite-anyone-submit" id="invite-anyone-submit" value="<?php 
    _e('Send Invites', 'buddypress');
    ?>
 " />
	</div>


	</form>
	<?php 
}
开发者ID:hnla,项目名称:invite-anyone,代码行数:101,代码来源:by-email.php


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