예제 #1
0
<h3><?php 
xt_admin_help_link('sys_setting_base');
?>
基本设置<span><img src="<?php 
echo esc_url(admin_url('images/wpspin_light.gif'));
?>
" class="ajax-feedback"></span></h3>
<table class="form-table">
    <tbody>
        <tr valign="top">
            <th scope="row">登录</th>
            <td>
                <input name="isForceLogin" type="checkbox" id="isForceLogin" value="1" <?php 
echo xt_is_forcelogin() ? 'checked' : '';
?>
>
                <label for="isForceLogin">未登录状态,进入具体网站购买时弹出登录提示框</label>	
            </td>
        </tr>
        <tr valign="top">
            <th scope="row">淘宝</th>
            <td>
                <fieldset>
                    <label for="isS8">
                        <input type="checkbox" name="isS8" id="isS8" value="1" <?php 
echo xt_is_s8() ? 'checked' : '';
?>
> 
                        搜索框关键词搜索直接跳转至淘宝(未选中则打开站内搜索页,如果您无完整PID权限,建议取消选中)
                    </label>
                    <br/>
예제 #2
0
    if (empty($_url)) {
        $_url = $iframe_url;
    }
}
$_url = xt_refresh_url($_url);
if (empty($_url)) {
    wp_redirect(home_url());
    exit;
}
$user = wp_get_current_user();
if ($IS_JUEJINLIAN) {
    if (!xt_is_forcelogin() || $user->exists()) {
        $IS_JUEJINLIAN_GO = true;
    }
} else {
    if (!empty($_url) && (!xt_is_forcelogin() || $user->exists())) {
        $IS_URL_LOGIN_SHOW = false;
        if ($_type == 'taobao' && empty($_id) && empty($_q)) {
            if (xt_is_clickurl($_url)) {
                wp_redirect($_url);
                exit;
            }
        } else {
            wp_redirect($_url);
            exit;
        }
    }
}
?>
<!DOCTYPE html>
<!--[if IE 8]>