當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。