当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_initialize_the_theme_message函数代码示例

本文整理汇总了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;未经允许,请勿转载。