本文整理汇总了PHP中bbp_user_profile_edit_url函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_user_profile_edit_url函数的具体用法?PHP bbp_user_profile_edit_url怎么用?PHP bbp_user_profile_edit_url使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_user_profile_edit_url函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_user_profile_edit_url
</span>
</li>
<?php
}
?>
<li class="<?php
if (bbp_is_single_user_edit()) {
?>
current<?php
}
?>
">
<span class="bbp-user-edit-link">
<a href="<?php
bbp_user_profile_edit_url();
?>
" title="<?php
printf(esc_attr__("Edit %s's Profile", 'bbpress'), bbp_get_displayed_user_field('display_name'));
?>
"><?php
_e('Edit', 'bbpress');
?>
</a>
</span>
</li>
<?php
}
?>
示例2: bbp_user_profile_edit_url
<?php
/**
* bbPress User Profile Edit Part
*
* @package bbPress
* @subpackage Dante
*/
?>
<form id="bbp-your-profile" action="<?php
bbp_user_profile_edit_url(bbp_get_displayed_user_id());
?>
" method="post" enctype="multipart/form-data">
<h2 class="entry-title"><?php
_e('Name', 'bbpress');
?>
</h2>
<?php
do_action('bbp_user_edit_before');
?>
<fieldset class="bbp-form">
<legend><?php
_e('Name', 'bbpress');
?>
</legend>
<?php
示例3: widget
//.........这里部分代码省略.........
?>
<button class="btn btn-primary" type="submit" name="user-submit" id="user-submit" tabindex="<?php
bbp_tab_index();
?>
" class="button submit user-submit"><span class="glyphicon ipt-icomoon-switch"></span> <?php
_e('Log In', 'bbpress');
?>
</button>
</div>
<?php
bbp_user_login_fields();
?>
</fieldset>
</form>
<?php
} else {
?>
<div class="bbp-logged-in">
<a href="<?php
bbp_user_profile_url(bbp_get_current_user_id());
?>
" class="submit user-submit thumbnail pull-left"><?php
echo get_avatar(bbp_get_current_user_id(), '64');
?>
</a>
<h4><?php
bbp_user_profile_link(bbp_get_current_user_id());
?>
</h4>
<div class="btn-group">
<a class="btn btn-default btn-sm" href="<?php
bbp_user_profile_edit_url(bbp_get_current_user_id());
?>
" title="<?php
printf(esc_attr__("Edit Your Profile", 'ipt_kb'));
?>
"><span class="glyphicon glyphicon-edit"></span> <?php
_e('Edit', 'bbpress');
?>
</a>
<?php
bbp_logout_link();
?>
</div>
<div class="clearfix"></div>
<div class="list-group">
<a href="<?php
bbp_user_profile_url(bbp_get_current_user_id());
?>
" class="list-group-item bbp-user-forum-role <?php
if (bbp_is_user_home() && bbp_is_single_user_profile()) {
echo 'active';
}
?>
">
<span class="glyphicon ipt-icomoon-user4"></span> <?php
printf(__('%s Forum Role', 'ipt_kb'), '<span class="badge">' . bbp_get_user_display_role(bbp_get_current_user_id()) . '</span>');
?>
</a>
<a href="<?php
bbp_user_topics_created_url(bbp_get_current_user_id());
?>
示例4: test_bbp_user_profile_edit_url
/**
* @covers ::bbp_user_profile_edit_url
*/
public function test_bbp_user_profile_edit_url()
{
// Pretty permalinks
$this->set_permalink_structure('/%postname%/');
$profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/forums/users/' . $this->keymaster_userdata->user_nicename . '/edit/';
// Output.
$this->expectOutputString($profile_edit_url);
bbp_user_profile_edit_url($this->keymaster_id);
ob_clean();
// Ugly permalinks
$this->set_permalink_structure();
$profile_edit_url = 'http://' . WP_TESTS_DOMAIN . '/?bbp_user=' . $this->keymaster_id . '&edit=1';
// Output.
$this->expectOutputString($profile_edit_url);
bbp_user_profile_edit_url($this->keymaster_id);
}
示例5: widget
//.........这里部分代码省略.........
do_action('login_form');
?>
<button type="submit" name="user-submit" id="user-submit" tabindex="<?php
bbp_tab_index();
?>
" class="button submit user-submit"><?php
_e('Log In', 'bbpress');
?>
</button>
<?php
bbp_user_login_fields();
?>
</div>
</fieldset>
</form>
<?php
if (!empty($settings['register'])) {
?>
<div class="bbp-register-info"><?php
_ex("Don't have an account?", 'bbPress', 'bunyad-widgets');
?>
<a href="<?php
echo esc_url($settings['register']);
?>
" class="register-modal"><?php
_ex('Register Now!', 'bbPress', 'bunyad-widgets');
?>
</a>
</div>
<?php
}
?>
<?php
} else {
?>
<div class="bbp-logged-in">
<a href="<?php
bbp_user_profile_url(bbp_get_current_user_id());
?>
" class="submit user-submit"><?php
echo get_avatar(bbp_get_current_user_id(), '60');
?>
</a>
<div class="content">
<?php
_ex('Welcome back, ', 'bbPress', 'bunyad-widgets');
?>
<?php
bbp_user_profile_link(bbp_get_current_user_id());
?>
<ol class="links">
<li><a href="<?php
bbp_user_profile_edit_url(bbp_get_current_user_id());
?>
">
<?php
_ex('Edit Profile', 'bbPress', 'bunyad-widgets');
?>
</a></li>
<li><a href="<?php
bbp_subscriptions_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Subscriptions', 'bbPress', 'bunyad-widgets');
?>
</a></li>
<li><a href="<?php
bbp_favorites_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Favorites', 'bbPress', 'bunyad-widgets');
?>
</a></li>
</ol>
<?php
bbp_logout_link();
?>
</div>
</div>
<?php
}
echo $args['after_widget'];
}
示例6: bbps_envato_notify_purchase_code
function bbps_envato_notify_purchase_code()
{
if (get_option('_bbps_envato_username', '') && get_option('_bbps_envato_api_key', '') && is_user_logged_in()) {
$user_id = get_current_user_id();
if ($user_id) {
$envato_codes = get_user_meta($user_id, 'envato_codes', true);
if (!$envato_codes) {
$envato_codes = array();
}
if (isset($_POST['user_purchase_code']) && strlen($_POST['user_purchase_code']) > 5) {
$purchase_code = strtolower(trim($_POST['user_purchase_code']));
$api_result = verify_purchase($purchase_code);
if (is_array($api_result)) {
$envato_codes[$purchase_code] = $api_result;
update_user_meta($user_id, 'envato_codes', $envato_codes);
?>
<div class="alert alert-info" role="alert">
Thank you <strong><?php
echo $api_result['buyer'];
?>
</strong>! <br/>
You have verified your purchase of <em><?php
echo $api_result['item_name'];
?>
</em> from <em><?php
echo $api_result['created_at'];
?>
</em>. <br/>
You can verify additional purchases from your <a href="<?php
bbp_user_profile_edit_url($user_id);
?>
">profile page</a>.
</div>
<?php
} else {
if ($api_result === 0) {
?>
<div class="alert alert-error" role="alert">Sorry a temporary error occurred while processing your license code request.</div>
<?php
} else {
?>
<div class="alert alert-error" role="alert">Sorry this license code is not valid. Please send through an email support request for assistance.</div>
<?php
}
}
}
if (!$envato_codes) {
?>
<div class="alert alert-info" role="alert">
<div style="padding-bottom: 10px">
<strong>Notice:</strong> To continue posting on the Support Forum please enter your Item Purchase Code below. This helps us verify buyers and provide a better level of service. Please <a href="//dtbaker.net/admin/includes/plugin_envato/images/envato-license-code.gif" target="_blank">click here</a> for help finding your purchase code.
</div>
<form name="envato_purchase_code" id="envato_purchase_code" action="" method="post">
<div class="form-group">
<input type="text" class="form-control" name="user_purchase_code" id="register_widget_purchase_code" placeholder="Please paste your purchase code here">
</div>
<button type="submit" class="btn btn-default">Submit Purchase Code</button>
</form>
</div>
<?php
}
}
}
}
示例7: get_avatar
" class="submit user-submit"><?php
echo get_avatar(bbp_get_current_user_id(), '60');
?>
</a>
<div class="content">
<?php
_ex('Welcome back, ', 'bbPress', 'bunyad');
?>
<?php
bbp_user_profile_link(bbp_get_current_user_id());
?>
<ol class="links">
<li><a href="<?php
bbp_user_profile_edit_url(bbp_get_current_user_id());
?>
">
<?php
_ex('Edit Profile', 'bbPress', 'bunyad');
?>
</a></li>
<li><a href="<?php
bbp_subscriptions_permalink(bbp_get_current_user_id());
?>
">
<?php
_ex('Subscriptions', 'bbPress', 'bunyad');
?>
</a></li>
<li><a href="<?php