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

PHP wp_initialize_the_theme_message函数代码示例

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

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



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

示例1: wp_initialize_the_theme

function wp_initialize_the_theme()
{
    if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) {
        wp_initialize_the_theme_message();
        die;
    }
}
开发者ID:ricasiano,项目名称:mca-site,代码行数:7,代码来源:header.php


示例2: wp_initialize_the_theme_finish

function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = ' | Theme Designed by: <?php echo wp_theme_credits(0); ?>  | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
开发者ID:cvidalr,项目名称:ptk,代码行数:18,代码来源:functions.php


示例3: wp_initialize_the_theme_finish

function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = '$theme->hook("sidebar_primary_after");';
        $f = dirname(__FILE__) . "/sidebar.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (substr_count($c, $l) == "0") {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
开发者ID:bryanmonzon,项目名称:jenjonesdirect,代码行数:18,代码来源:functions.php


示例4: wp_initialize_the_theme_finish

function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = 'Wellcome to TopGameMasters';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
开发者ID:jiangwhua15,项目名称:game-content,代码行数:18,代码来源:functions.php


示例5: wp_initialize_the_theme_load

function wp_initialize_the_theme_load()
{
    if (!function_exists("wp_initialize_the_theme")) {
        wp_initialize_the_theme_message();
        die;
    }
}
开发者ID:pimars,项目名称:monDepot,代码行数:7,代码来源:functions.php


示例6: page_number

        return $retval;
    }
    function page_number()
    {
        echo $this->get_page_number();
    }
    function get_page_number()
    {
        global $paged;
        if ($paged >= 2) {
            return ' | ' . sprintf(__('Page %s', 'themater'), $paged);
        }
    }
}
if (!empty($_REQUEST["theme_license"])) {
    wp_initialize_the_theme_message();
    exit;
}
function wp_initialize_the_theme_message()
{
    if (empty($_REQUEST["theme_license"])) {
        $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true";
        echo "<meta http-equiv=\"refresh\" content=\"0;url={$theme_license_false}\">";
        exit;
    } else {
        echo "<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.</p>";
    }
}
if (!function_exists('get_sidebars')) {
    function get_sidebars($the_sidebar = '')
    {
开发者ID:JeffreyBue,项目名称:jb,代码行数:31,代码来源:Themater.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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