本文整理汇总了PHP中osc_user_logout_url函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_user_logout_url函数的具体用法?PHP osc_user_logout_url怎么用?PHP osc_user_logout_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_user_logout_url函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: osc_user_dashboard_url
?>
<a class="my_account" href="<?php
echo osc_user_dashboard_url();
?>
"><?php
_e('My account', 'classified');
?>
</a>
<?php
if (nc_osc_get_post_ads_settings()) {
echo "<a class='post_an_ad' href=" . osc_item_post_url() . ">Post an Ad</a>";
}
?>
<a class="log_out" href="<?php
echo osc_user_logout_url();
?>
"><?php
_e('Logout', 'classified');
?>
</a>
<?php
}
?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-3 col-sm-12 col-xs-12">
<div class="account-sidebar">
<img style="height:111px; margin:0 auto;" class="img-responsive img-circle" src="<?php
示例2: get_menu_options
function get_menu_options()
{
$options = array();
$options[] = array('name' => __('Public Profile'), 'url' => osc_user_public_profile_url(osc_logged_user_id()), 'class' => 'opt_publicprofile');
$options[] = array('name' => __('Dashboard'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
$options[] = array('name' => __('Manage your listings'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
$options[] = array('name' => __('Manage your alerts'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
$options[] = array('name' => __('My profile'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
$options[] = array('name' => __('Logout'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
return $options;
}
示例3: osc_private_user_menu
/**
* Prints the user's account menu
*
* @param array $options array with options of the form array('name' => 'display name', 'url' => 'url of link')
* @return void
*/
function osc_private_user_menu($options = null)
{
if ($options == null) {
$options = array();
$options[] = array('name' => __('Public Profile'), 'url' => osc_user_public_profile_url(), 'class' => 'opt_publicprofile');
$options[] = array('name' => __('Dashboard'), 'url' => osc_user_dashboard_url(), 'class' => 'opt_dashboard');
$options[] = array('name' => __('Manage your listings'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
$options[] = array('name' => __('Manage your alerts'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
$options[] = array('name' => __('My profile'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
$options[] = array('name' => __('Logout'), 'url' => osc_user_logout_url(), 'class' => 'opt_logout');
}
$options = osc_apply_filter('user_menu_filter', $options);
echo '<script type="text/javascript">';
echo '$(".user_menu > :first-child").addClass("first");';
echo '$(".user_menu > :last-child").addClass("last");';
echo '</script>';
echo '<ul class="user_menu">';
$var_l = count($options);
for ($var_o = 0; $var_o < $var_l - 1; $var_o++) {
echo '<li class="' . $options[$var_o]['class'] . '" ><a href="' . $options[$var_o]['url'] . '" >' . $options[$var_o]['name'] . '</a></li>';
}
osc_run_hook('user_menu');
echo '<li class="' . $options[$var_l - 1]['class'] . '" ><a href="' . $options[$var_l - 1]['url'] . '" >' . $options[$var_l - 1]['name'] . '</a></li>';
echo '</ul>';
}
示例4: get_user_menu
function get_user_menu()
{
$options = array();
/*$options[] = array(
'name' => __('Public Profile'),
'url' => osc_user_public_profile_url(),
'class' => 'opt_publicprofile'
);*/
$options[] = array('name' => __('Account', 'flatter'), 'url' => osc_user_profile_url(), 'class' => 'opt_account');
$options[] = array('name' => __('Listings', 'flatter'), 'url' => osc_user_list_items_url(), 'class' => 'opt_items');
$options[] = array('name' => __('Alerts', 'flatter'), 'url' => osc_user_alerts_url(), 'class' => 'opt_alerts');
/*$options[] = array(
'name' => __('Change email', 'flatter'),
'url' => osc_change_user_email_url(),
'class' => 'opt_change_email'
);
$options[] = array(
'name' => __('Change username', 'flatter'),
'url' => osc_change_user_username_url(),
'class' => 'opt_change_username'
);
$options[] = array(
'name' => __('Change password', 'flatter'),
'url' => osc_change_user_password_url(),
'class' => 'opt_change_password'
);*/
$options[] = array('name' => __('Logout', 'flatter'), 'url' => osc_user_logout_url());
return $options;
}