• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bnc_wptouch_get_settings函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中bnc_wptouch_get_settings函数的典型用法代码示例。如果您正苦于以下问题:PHP bnc_wptouch_get_settings函数的具体用法?PHP bnc_wptouch_get_settings怎么用?PHP bnc_wptouch_get_settings使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了bnc_wptouch_get_settings函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: isset

<?php

global $is_ajax;
$is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']);
if (!$is_ajax) {
    get_header();
}
$wptouch_settings = bnc_wptouch_get_settings();
?>
 <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
 	<div class="post content" id="post-<?php 
        the_ID();
        ?>
">
	 <div class="page">
		<div class="page-title-icon">		
			<?php 
        $mypages = bnc_wp_touch_get_pages();
        if (isset($mypages[get_the_ID()])) {
            $icon_name = $mypages[get_the_ID()]['icon'];
            if (file_exists(compat_get_plugin_dir('wptouch') . '/images/icon-pool/' . $icon_name)) {
                $image = compat_get_plugin_url('wptouch') . '/images/icon-pool/' . $icon_name;
            } else {
                $image = compat_get_upload_url() . '/wptouch/custom-icons/' . $icon_name;
            }
            echo '<img class="pageicon" src="' . $image . '" alt="icon" />';
        } else {
开发者ID:gigikiri,项目名称:bcnAutoWallpaperSite,代码行数:31,代码来源:page.php


示例2: wptouch_core_body_background

function wptouch_core_body_background()
{
    $wptouch_settings = bnc_wptouch_get_settings();
    echo $wptouch_settings['style-background'];
}
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:5,代码来源:core-functions.php


示例3: bnc_filter_iphone

 function bnc_filter_iphone()
 {
     $key = 'wptouch_switch_cookie';
     if (isset($_GET['theme_view'])) {
         if ($_GET['theme_view'] == 'mobile') {
             setcookie($key, 'mobile', 0);
         } elseif ($_GET['theme_view'] == 'normal') {
             setcookie($key, 'normal', 0);
         }
         $redirect_location = get_bloginfo('siteurl');
         // fix by cybrstudd
         if (isset($_GET['wptouch_redirect'])) {
             $protocol = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
             $redirect_location = $protocol . $_GET['wptouch_redirect'];
         }
         header('Location: ' . $redirect_location);
         die;
     }
     $settings = bnc_wptouch_get_settings();
     if (isset($_COOKIE[$key])) {
         $this->desired_view = $_COOKIE[$key];
     } else {
         if ($settings['enable-regular-default']) {
             $this->desired_view = 'normal';
         } else {
             $this->desired_view = 'mobile';
         }
     }
 }
开发者ID:nagyistoce,项目名称:moodle-Teach-Pilot,代码行数:29,代码来源:wptouch.php


示例4: bnc_filter_iphone

 function bnc_filter_iphone()
 {
     $key = 'wptouch_switch_toggle';
     $time = time() + 60 * 60 * 24 * 365;
     // one year
     $url_path = '/';
     if (isset($_GET['wptouch_view'])) {
         if ($_GET['wptouch_view'] == 'mobile') {
             setcookie($key, 'mobile', $time, $url_path);
         } elseif ($_GET['wptouch_view'] == 'normal') {
             setcookie($key, 'normal', $time, $url_path);
         }
     }
     $settings = bnc_wptouch_get_settings();
     if (isset($_COOKIE[$key])) {
         $this->desired_view = $_COOKIE[$key];
     } else {
         if ($settings['enable-regular-default'] || defined('XMLRPC_REQUEST') || defined('APP_REQUEST')) {
             $this->desired_view = 'normal';
         } else {
             $this->desired_view = 'mobile';
         }
     }
     if (isset($settings['enable-twenty-eleven-footer']) && $settings['enable-twenty-eleven-footer']) {
         if (function_exists('twentyeleven_setup')) {
             add_action('twentyeleven_credits', array(&$this, 'handle_footer'));
         } else {
             if (function_exists('twentyten_setup')) {
                 add_action('twentyten_credits', array(&$this, 'handle_footer'));
             }
         }
     }
 }
开发者ID:sangpena,项目名称:appflex.mobi,代码行数:33,代码来源:wptouch.php


示例5: bnc_filter_iphone

 function bnc_filter_iphone()
 {
     $key = 'wptouch_switch_cookie';
     if (isset($_GET['theme_view'])) {
         if ($_GET['theme_view'] == 'mobile') {
             setcookie($key, 'mobile', 0);
         } elseif ($_GET['theme_view'] == 'normal') {
             setcookie($key, 'normal', 0);
         }
         header('Location: ' . get_bloginfo('siteurl'));
         die;
     }
     $settings = bnc_wptouch_get_settings();
     if (isset($_COOKIE[$key])) {
         $this->desired_view = $_COOKIE[$key];
     } else {
         if ($settings['enable-regular-default']) {
             $this->desired_view = 'normal';
         } else {
             $this->desired_view = 'mobile';
         }
     }
 }
开发者ID:sjcockell,项目名称:fuzzierlogic.blog,代码行数:23,代码来源:wptouch.php


示例6: bnc_filter_iphone

 function bnc_filter_iphone()
 {
     $key = 'wptouch_switch_cookie';
     $time = time() + 60 * 60 * 24 * 365;
     $url_path = str_replace(array('http://' . $_SERVER['SERVER_NAME'] . '', 'https://' . $_SERVER['SERVER_NAME'] . ''), '', get_bloginfo('url') . '/');
     if (isset($_GET['theme_view'])) {
         if ($_GET['theme_view'] == 'mobile') {
             setcookie($key, 'mobile', $time, $url_path);
         } elseif ($_GET['theme_view'] == 'normal') {
             setcookie($key, 'normal', $time, $url_path);
         }
         $redirect_location = get_bloginfo('url');
         // fix by cybrstudd
         if (isset($_GET['wptouch_redirect'])) {
             $protocol = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
             $redirect_location = $protocol . $_GET['wptouch_redirect'];
         }
         header('Location: ' . $redirect_location);
         die;
     }
     $settings = bnc_wptouch_get_settings();
     if (isset($_COOKIE[$key])) {
         $this->desired_view = $_COOKIE[$key];
     } else {
         if ($settings['enable-regular-default']) {
             $this->desired_view = 'normal';
         } else {
             $this->desired_view = 'mobile';
         }
     }
 }
开发者ID:aim-web-projects,项目名称:ueno-chuoh,代码行数:31,代码来源:wptouch.php



注:本文中的bnc_wptouch_get_settings函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP boardsAllowedTo函数代码示例发布时间:2022-05-24
下一篇:
PHP bm函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap