本文整理汇总了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;
}
}
示例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;
}
}
}
示例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;
}
}
}
示例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;
}
}
}
示例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;
}
}
示例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 = '')
{