本文整理汇总了PHP中bp_the_profile_group_name函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_the_profile_group_name函数的具体用法?PHP bp_the_profile_group_name怎么用?PHP bp_the_profile_group_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_the_profile_group_name函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: do_action
<?php do_action( 'bp_before_profile_loop_content' ) ?>
<?php if ( function_exists('xprofile_get_profile') ) : ?>
<?php if ( bp_has_profile() ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php if ( bp_profile_group_has_fields() ) : ?>
<?php do_action( 'bp_before_profile_field_content' ) ?>
<div class="bp-widget <?php bp_the_profile_group_slug() ?>">
<?php if ( 1 != bp_get_the_profile_group_id() ) : ?>
<h4><?php bp_the_profile_group_name() ?></h4>
<?php endif; ?>
<table class="profile-fields zebra">
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<?php if ( bp_field_has_data() ) : ?>
<tr<?php bp_field_css_class() ?>>
<td class="label">
<?php bp_the_profile_field_name() ?>
</td>
<td class="data">
<?php bp_the_profile_field_value() ?>
</td>
开发者ID:n-sane,项目名称:zaroka,代码行数:30,代码来源:profile-loop.php
示例2: while
while (bp_profile_groups()) {
bp_the_profile_group();
?>
<?php
if (bp_profile_fields()) {
?>
<table class="profile-settings" id="xprofile-settings-<?php
bp_the_profile_group_slug();
?>
">
<thead>
<tr>
<th class="title field-group-name"><?php
bp_the_profile_group_name();
?>
</th>
<th class="title"><?php
_e('Visibility', 'buddypress');
?>
</th>
</tr>
</thead>
<tbody>
<?php
while (bp_profile_fields()) {
bp_the_profile_field();
?>
开发者ID:mawilliamson,项目名称:wordpress,代码行数:31,代码来源:profile.php
示例3: bp_gameful_admin_eggs
function bp_gameful_admin_eggs()
{
global $bp;
/* If the form has been submitted and the admin referrer checks out, save the settings */
if (isset($_POST['submit']) && check_admin_referer('bp-gameful-settings')) {
foreach ((array) $_POST['bp-gameful-role-points'] as $key => $value) {
$options[$key] = $value;
}
update_option('bp-gameful-role-points', $options);
$updated = true;
}
$options = get_option('bp-gameful-role-points');
?>
<div class="wrap">
<h2><?php
_e('Easter Eggs', 'bp-gameful');
?>
</h2>
<br />
<?php
if (isset($updated)) {
echo "<div id='message' class='updated fade'><p>" . __('Settings Updated.', 'bp-gameful') . "</p></div>";
}
?>
<form action="<?php
echo site_url() . '/wp-admin/admin.php?page=bp-gameful-settings';
?>
" name="gameful-settings-form" id="gameful-settings-form" method="post">
<div class="'bp-widget">
<table class="widefat field-group">
<thead>
<tr>
<th scope="col" colspan="3"><?php
bp_the_profile_group_name();
?>
</th>
</tr>
<tr class="header">
<td><?php
_e('Role', 'bp-gameful');
?>
</td>
<td width="80%"><?php
_e('Points', 'bp-gameful');
?>
</td>
</tr>
</thead>
<tbody id="the-list">
<tr>
<td>Gameful Beginner</td>
<td>
<input type="text" name="bp-gameful-role-points[gf_beginner]"
id="bp-gameful-role-points[gf_beginner]" size='3' value="<?php
echo $options['gf_beginner'];
?>
" />
</td>
</tr>
<tr>
<td>Gameful Contributor</td>
<td>
<input type="text" name="bp-gameful-role-points[gf_contributer]"
id="bp-gameful-role-points[gf_contributer]" size='3' value="<?php
echo $options['gf_contributer'];
?>
" />
</td>
</tr>
<tr>
<td>Board Member</td>
<td>
<input type="text" name="bp-gameful-role-points[gf_boardmember]"
id="bp-gameful-role-points[gf_boardmember]" size='3' value="<?php
echo $options['gf_boardmember'];
?>
" />
</td>
</tr>
</tbody>
</table>
</div>
<div class="submit">
<input type="submit" name="submit" value="<?php
_e('Save Settings', 'bp-gameful');
?>
"/>
</div>
<?php
/* This is very important, don't leave it out. */
wp_nonce_field('bp-gameful-settings');
?>
</form>
</div>
<?php
}
开发者ID:natron,项目名称:Gameful-BP-Plugin,代码行数:99,代码来源:bp-gameful-admin.php
注:本文中的bp_the_profile_group_name函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论