本文整理汇总了PHP中TravelHelper::build_url方法的典型用法代码示例。如果您正苦于以下问题:PHP TravelHelper::build_url方法的具体用法?PHP TravelHelper::build_url怎么用?PHP TravelHelper::build_url使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TravelHelper
的用法示例。
在下文中一共展示了TravelHelper::build_url方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_post_meta
*/
if (isset($_REQUEST['btn-reg'])) {
STUser_f::registration_user();
}
$class_form = "";
if (is_page_template('template-login.php')) {
$class_form = 'form-group-ghost';
}
$btn_sing_up = get_post_meta(get_the_ID(), 'btn_sing_up', true);
if (empty($btn_sing_up)) {
$btn_sing_up = __("Sign Up", ST_TEXTDOMAIN);
}
?>
<form method="post" action="<?php
echo TravelHelper::build_url('url', STInput::get('url'));
?>
">
<div class="form-group <?php
echo esc_attr($class_form);
?>
form-group-icon-left"><i class="fa fa-user input-icon input-icon-show"></i>
<label><?php
st_the_language('full_name');
?>
</label>
<input name="full_name" class="form-control" placeholder="<?php
_e('e.g. John Doe', ST_TEXTDOMAIN);
?>
" type="text" />
</div>
示例2: st
<div class="sort_icon fist"><a class="<?php
if ($style == 'grid') {
echo 'active';
}
?>
" href="<?php
echo TravelHelper::build_url('style', 'grid');
?>
"><i class="fa fa-th-large "></i></a></div>
<div class="sort_icon last"><a class="<?php
if ($style == 'list') {
echo 'active';
}
?>
" href="<?php
echo TravelHelper::build_url('style', 'list');
?>
"><i class="fa fa-list "></i></a></div>
</div>
</div>
</div>
<?php
echo st()->load_template('rental/loop', false, array('style' => $style));
?>
<div class="row" style="margin-bottom: 40px;">
<div class="col-sm-12">
<hr>
</div>
<div class="col-md-6">
<p>
<small><?php
示例3: update_user
function update_user()
{
global $current_user;
if (!empty($_REQUEST['st_btn_update'])) {
if (wp_verify_nonce($_REQUEST['st_update_user'], 'user_setting')) {
$id_user = $current_user->ID;
if (!empty($_FILES['st_avatar'])) {
$st_avatar = $_FILES['st_avatar'];
$id_avatar = self::upload_image_return($st_avatar, 'st_avatar', $st_avatar['type']);
} else {
$id_avatar = $_REQUEST['id_avatar'];
}
update_user_meta($id_user, 'st_avatar', $id_avatar);
update_user_meta($id_user, 'st_phone', $_REQUEST['st_phone']);
update_user_meta($id_user, 'st_airport', $_REQUEST['st_airport']);
update_user_meta($id_user, 'st_address', $_REQUEST['st_address']);
update_user_meta($id_user, 'st_city', $_REQUEST['st_city']);
update_user_meta($id_user, 'st_province', $_REQUEST['st_province']);
update_user_meta($id_user, 'st_zip_code', $_REQUEST['st_zip_code']);
update_user_meta($id_user, 'st_country', $_REQUEST['st_country']);
$is_check = '';
if (!empty($_REQUEST['st_is_check_show_info'])) {
$is_check = 'on';
}
update_user_meta($id_user, 'st_is_check_show_info', $is_check);
$name = $_REQUEST['st_name'];
$userdata = array('ID' => $id_user, 'display_name' => esc_attr($name));
wp_update_user($userdata);
update_user_meta($id_user, 'nickname', esc_attr($name));
wp_redirect(TravelHelper::build_url('url', $_GET['url']) . '&status="success"');
exit;
} else {
print 'Sorry, your nonce did not verify.';
exit;
}
}
}