コード例 #1
0
ファイル: functions.php プロジェクト: patrickod/City-Blogger
function kubrick_head()
{
    $path = header_image_for_now();
    $head = "<style type='text/css'>\n<!--";
    $output = '';
    $output .= "#header { background: url('{$path}') no-repeat bottom center; }\n";
    if (false !== ($color = kubrick_header_color())) {
        $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: {$color}; }\n";
    }
    if (false !== ($display = kubrick_header_display())) {
        $output .= "#headerimg { display: {$display} }\n";
    }
    $foot = "--></style>\n";
    if ('' != $output) {
        echo $head . $output . $foot;
    }
}
コード例 #2
0
ファイル: header.php プロジェクト: patrickod/City-Blogger
	}

	return true
}
// -->
</script>
<?php 
}
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
if (strpos($user_agent, 'msie') !== false && strpos($user_agent, 'windows') !== false && strpos($user_agent, 'opera') === false) {
    echo '<script type="text/javascript" src="style/imports/minmax.js"></script>';
}
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_head>', $tpl_temp, $tpl_main);
require_once "../blog/wp-content/themes/default/time-header.php";
$tpl_main = str_replace('<pun_headerimg>', header_image_for_now(), $tpl_main);
include '../conf.php';
global $lnSiteUrl;
$tpl_main = str_replace('<pun_siteurl>', $lnSiteUrl, $tpl_main);
global $lnSiteName;
$tpl_main = str_replace('<pun_sitename>', $lnSiteName, $tpl_main);
global $lnSiteDesc;
$tpl_main = str_replace('<pun_sitedescription>', $lnSiteDesc, $tpl_main);
global $lnCity;
$tpl_main = str_replace('<pun_city>', $lnCity, $tpl_main);
ob_end_clean();
// END SUBST - <pun_head>
global $lnHeaderHideText;
if ($lnHeaderHideText) {
    $style = 'cursor: pointer; display:none;';
} else {