本文整理汇总了PHP中bp_is_first_group_creation_step函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_is_first_group_creation_step函数的具体用法?PHP bp_is_first_group_creation_step怎么用?PHP bp_is_first_group_creation_step使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_is_first_group_creation_step函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
<input type="submit" value="<?php
_e('Next Step', 'vibe');
?>
"
id="group-creation-next" name="save"/>
<?php
}
?>
<?php
/* Create Button */
?>
<?php
if (bp_is_first_group_creation_step()) {
?>
<input type="submit"
value="<?php
_e('Create Group and Continue', 'vibe');
?>
"
id="group-creation-create" name="save"/>
<?php
}
?>
<?php
/* Finish Button */
示例2: bp_is_group_creation_step
function bp_is_group_creation_step($step_slug)
{
global $bp;
/* Make sure we are in the groups component */
if (!bp_is_groups_component() || !bp_is_current_action('create')) {
return false;
}
/* If this the first step, we can just accept and return true */
$keys = array_keys($bp->groups->group_creation_steps);
if (!bp_action_variable(1) && array_shift($keys) == $step_slug) {
return true;
}
/* Before allowing a user to see a group creation step we must make sure previous steps are completed */
if (!bp_is_first_group_creation_step()) {
if (!bp_are_previous_group_creation_steps_complete($step_slug)) {
return false;
}
}
/* Check the current step against the step parameter */
if (bp_is_action_variable($step_slug)) {
return true;
}
return false;
}
示例3: bp_is_group_creation_step
function bp_is_group_creation_step( $step_slug ) {
global $bp;
/* Make sure we are in the groups component */
if ( $bp->current_component != BP_GROUPS_SLUG || 'create' != $bp->current_action )
return false;
/* If this the first step, we can just accept and return true */
if ( !$bp->action_variables[1] && array_shift( array_keys( $bp->groups->group_creation_steps ) ) == $step_slug )
return true;
/* Before allowing a user to see a group creation step we must make sure previous steps are completed */
if ( !bp_is_first_group_creation_step() ) {
if ( !bp_are_previous_group_creation_steps_complete( $step_slug ) )
return false;
}
/* Check the current step against the step parameter */
if ( $bp->action_variables[1] == $step_slug )
return true;
return false;
}