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


PHP bp_get_current_profile_group_id函数代码示例

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


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

示例1: editor_form_buddypress

 public function editor_form_buddypress()
 {
     if (bp_get_current_profile_group_id() == $this->profile_group) {
         global $user_ID;
         $bbx_user_signature = get_user_meta($user_ID, 'signature', true);
         $form = apply_filters('d4p_bbpresssignature_bbpress_editor_file', GDBBPRESSTOOLS_PATH . 'forms/tools/signature_buddypress.php');
         include_once $form;
         remove_action('bp_custom_profile_edit_fields', array(&$this, 'editor_form_buddypress'));
     }
 }
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:10,代码来源:signature.php

示例2: editor_form_buddypress

    public function editor_form_buddypress() {
        if (bp_get_current_profile_group_id() == $this->profile_group) {
            $user_id = bp_displayed_user_id();

            if ($user_id > 0) {
                $user = get_user_by('id', $user_id);

                $old_filter = $user->filter;
                $user->filter = 'display';

                $_signature = $user->signature;

                $user->filter = $old_filter;

                $form = apply_filters('d4p_bbpresssignature_bbpress_editor_file', GDBBPRESSTOOLS_PATH.'forms/tools/signature_buddypress.php');
                include_once($form);
            }

            remove_action('bp_custom_profile_edit_fields', array(&$this, 'editor_form_buddypress'));
        }
    }
开发者ID:niamherinoc,项目名称:rctractors,代码行数:21,代码来源:signature.php

示例3: do_action

<?php

/**
 * BuddyPress - Members Single Profile Edit
 *
 * @package BuddyPress
 * @subpackage bp-legacy
 */
/**
 * Fires after the display of member profile edit content.
 *
 * @since 1.1.0
 */
do_action('bp_before_profile_edit_content');
if (bp_has_profile('profile_group_id=' . bp_get_current_profile_group_id())) {
    while (bp_profile_groups()) {
        bp_the_profile_group();
        ?>

<form action="<?php 
        bp_the_profile_group_edit_form_action();
        ?>
" method="post" id="profile-edit-form" class="standard-form <?php 
        bp_the_profile_group_slug();
        ?>
">

	<?php 
        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
        do_action('bp_before_profile_field_content');
        ?>
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:31,代码来源:edit.php

示例4: bp_current_profile_group_id

function bp_current_profile_group_id()
{
    echo bp_get_current_profile_group_id();
}
开发者ID:newington,项目名称:buddypress,代码行数:4,代码来源:bp-xprofile-template.php

示例5: bp_profile_group_tabs

				<?php 
        if (bp_profile_has_multiple_groups()) {
            ?>
					<ul class="button-nav">

						<?php 
            bp_profile_group_tabs();
            ?>

					</ul>
				<?php 
        }
        ?>

			<?php 
        if (bp_get_current_profile_group_id() != 3) {
            ?>

				<div class="clear"></div>
				
				<div>
					<p>The information you enter will be visible publicly. You can modify your privacy settings by clicking on the red “change” links below. <span>Before navigating away from this tab, make sure to scroll down and save your changes.</span></p>
				</div>

				<?php 
            while (bp_profile_fields()) {
                bp_the_profile_field();
                ?>

					<?php 
                if (bp_get_the_profile_field_name() == "Degree") {
开发者ID:gato-gordo,项目名称:association-print-scholars,代码行数:31,代码来源:edit.php

示例6: do_action

<?php do_action( 'bp_before_profile_edit_content' ) ?>

<?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

<form action="<?php bp_the_profile_group_edit_form_action() ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug() ?>">

	<?php do_action( 'bp_before_profile_field_content' ) ?>

		<h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>

		<ul class="button-nav">
			<?php bp_profile_group_tabs(); ?>
		</ul>

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

		<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>

			<div<?php bp_field_css_class( 'editfield' ) ?>>

				<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>

					<label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
					<input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" />

				<?php endif; ?>

				<?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>

					<label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
					<textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea>
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:edit.php

示例7: while

        // Profile Group 3 is Skipped.  That is the Scholarship tab.  That tab is populated by a WordPress loop. See else block below.
        ?>
			<?php 
        if (bp_get_current_profile_group_id() != 3) {
            ?>

				<div class="clear"></div>
				
				<div>
					<p>The information you enter will be visible publicly. You can modify your privacy settings by clicking on the red “change” links below. <span class="emphasis">Before navigating away from this tab, make sure to scroll down and save your changes.</span></p>
				</div>
				<?php 
            // If block only runs in Social Media tab.
            ?>
				<?php 
            if (bp_get_current_profile_group_id() == 4) {
                ?>
				<div>
					<p><span class="emphasis">Paste the full urls for your social media profiles into the respective fields below.</span></p>
				</div>
				<?php 
            }
            ?>

				<?php 
            while (bp_profile_fields()) {
                bp_the_profile_field();
                ?>

					<?php 
                /* If block inserts explanatory text before certain profile field areas.  Field ids found via the Dashboard in Users > Profile Fields */
开发者ID:gato-gordo,项目名称:association-print-scholars,代码行数:31,代码来源:edit.php


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