Exemplo n.º 1
0
function xt_header_script()
{
    global $xt;
    $_global = get_option(XT_OPTION_GLOBAL);
    $searchtaobaourl = '';
    if (xt_is_s8()) {
        $searchtaobaourl = xt_jump_url(array('title' => 'SEARCH'));
    } else {
        $searchtaobaourl = xt_get_taobao_search_url(array('keyword' => 'SEARCH'));
    }
    echo '<script type="text/javascript">var XT = ' . json_encode(array('isfanxian' => xt_is_fanxian() ? 1 : 0, 'siteurl' => home_url(), 'pluginurl' => XT_PLUGIN_URL, 'ajaxurl' => admin_url('admin-ajax.php'), 'loginurl' => site_url('wp-login.php'), 'inviteurl' => xt_site_url('invite-USERID'), 'authorizeurl' => xt_platform_authorize_url('[PLATFORM]', '[STATE]', '[MODE]'), 'registerurl' => site_url('wp-login.php?action=register&redirect_to=[REDIRECT]', 'login'), 'searchshareurl' => xt_get_shares_search_url(array('s' => 'SEARCH')), 'searchalbumurl' => xt_get_albums_search_url(array('s' => 'SEARCH')), 'searchuserurl' => '', 'searchtaobaourl' => $searchtaobaourl, 'taobaoitemurl' => xt_site_url('taobao-NUMIID'), 'searchshopurl' => xt_get_shop_search_url(array('keyword' => 'SEARCH')), 'searchtaobaoitemurl' => xt_jump_url(array('id' => 'SEARCH')), 'searchpaipaiurl' => xt_get_paipai_search_url(array('keyWord' => 'SEARCH')), 'searchbijiaurl' => xt_get_bijia_search_url(array('keyword' => 'SEARCH')), 'searchtuanurl' => xt_get_tuan_search_url(array('keyword' => 'SEARCH')), 'userId' => get_current_user_id(), 'token' => wp_create_nonce('token'), 'option' => $_global, 'is_taobaopopup' => xt_is_taobaoPopup(), 'is_shares' => $xt->is_shares, 'is_albums' => $xt->is_albums, 'is_users' => $xt->is_users, 'is_shops' => $xt->is_shops, 'is_paipais' => $xt->is_paipais, 'is_bijias' => $xt->is_bijias, 'is_tuans' => $xt->is_tuans, 'is_user' => $xt->is_user, 'is_album' => $xt->is_album, 'is_account' => $xt->is_account, 'rate' => xt_get_rate(), 'jifenbao' => xt_jifenbao_text(), 'outercode' => xt_outercode(), 'fanxianhtml' => xt_fanxian_html('{fx}', '{fxtext}'))) . ';</script>';
}
Exemplo n.º 2
0
        </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/>
                    <label for="isTaobaoPopup">
                        <input type="checkbox" name="isTaobaoPopup" id="isTaobaoPopup" value="1" <?php 
echo xt_is_taobaoPopup() ? 'checked' : '';
?>
> 
                        搜索框商品地址搜索直接弹出商品详情(未选中则打开访问详情页)
                    </label>
                </fieldset>	
            </td>
        </tr>
        <tr valign="top">
            <th scope="row">分享</th>
            <td>
                <fieldset>
                    <label for="isDisplayComment">
                        <input type="checkbox" name="isDisplayComment" id="isDisplayComment" value="1" <?php 
echo xt_is_displaycomment() ? 'checked' : '';
?>