本文整理汇总了PHP中header_textcolor函数的典型用法代码示例。如果您正苦于以下问题:PHP header_textcolor函数的具体用法?PHP header_textcolor怎么用?PHP header_textcolor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了header_textcolor函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elegant_grunge_header_style
/**
* Styles the header image and text displayed on the blog
*
* @see elegant_grunge_custom_header_setup().
*
*/
function elegant_grunge_header_style()
{
?>
<style type="text/css">
<?php
if ('blank' != get_header_textcolor()) {
?>
#header div a,
#header h1,
#header h2,
#blog-description {
color: #<?php
header_textcolor();
?>
;
}
<?php
} else {
?>
#header h1,
#header h2,
#blog-description {
display: none;
}
<?php
}
?>
</style>
<?php
}
示例2: SLUG_custom_header
function SLUG_custom_header()
{
?>
<style type="text/css">
#branding {
background: url(<?php
header_image();
?>
);
}
#branding, #branding a, #branding a:hover {
color: #<?php
header_textcolor();
?>
!important;
}
#branding a:hover {
text-decoration: none;
}
#description {
filter: alpha(opacity=60);
opacity: 0.6;
}
</style><?php
}
示例3: header_style
function header_style()
{
?>
<style type="text/css">
#header{
background: url(<?php
header_image();
?>
) no-repeat;
height: <?php
echo HEADER_IMAGE_HEIGHT;
?>
px;
width: <?php
echo HEADER_IMAGE_WIDTH;
?>
px;
}
#header h1 a{color:#<?php
header_textcolor();
?>
;}
</style>
<?php
}
示例4: oulipo_header_style
function oulipo_header_style()
{
?>
<style type="text/css">
span.header_image { background: url(<?php
header_image();
?>
) no-repeat;
width: <?php
echo HEADER_IMAGE_WIDTH;
?>
px;
height: <?php
echo HEADER_IMAGE_HEIGHT;
?>
px;
display: block;
margin-bottom: 30px;
}
#main_nav h1.masthead a { color:#<?php
header_textcolor();
?>
; }
</style><?php
}
示例5: prose_custom_header_style
/**
* Styling included at the top of the site page for a custom header.
*
* @author StudioPress
*/
function prose_custom_header_style()
{
if (get_header_image()) {
?>
<!-- custom-header styling --><style type="text/css">
#header{background:url(<?php
header_image();
?>
) scroll no-repeat 0 0;}
<?php
if (get_theme_mod('header_textcolor') && get_theme_mod('header_textcolor') != 'blank') {
?>
#title-area #title a, #title-area #title a:hover{color:#<?php
header_textcolor();
?>
;}
#title-area #description{color: #<?php
header_textcolor();
?>
;}
<?php
}
?>
</style>
<?php
}
}
示例6: digg3_header_style
function digg3_header_style()
{
?>
<style type="text/css">
<?php
if ('blank' == get_header_textcolor()) {
?>
#header h1 a, #header .description {
display: none;
}
<?php
} else {
?>
#header h1 a, #header h1 a:hover, #header .description {
color: #<?php
header_textcolor();
?>
;
}
<?php
}
?>
</style>
<?php
}
示例7: redo_header_style
function redo_header_style()
{
?>
<style type="text/css">
#header_content {
background:#900 url(<?php
header_image();
?>
) center repeat-y;
}
<?php
if ('blank' == get_header_textcolor()) {
?>
#header_content #title {
display: none;
}
<?php
} else {
?>
#header_content h1 a, #header_content h1 a:hover {
color: #<?php
header_textcolor();
?>
;
}
<?php
}
?>
</style>
<?php
}
示例8: theme_header_style
function theme_header_style()
{
?>
<style type="text/css">
#header-image {background-image:url(<?php
header_image();
?>
);}
#header h1,#header h1 a,#header h1 small {color:#<?php
header_textcolor();
?>
;}
</style>
<?php
}
示例9: enlightenment_header_style
function enlightenment_header_style()
{
if ('' != get_header_image()) {
add_filter('enlightenment_archive_location_args', 'enlightenment_custom_header_archive_location_args');
add_action('enlightenment_after_header', 'enlightenment_entry_header_background', 1);
}
if ('' != get_header_image() || 'blank' == get_header_textcolor() || get_header_textcolor() != get_theme_support('custom-header', 'default-text-color')) {
?>
<style type="text/css">
<?php
if ('' != get_header_image()) {
?>
.archive-header .background-parallax {
background-image: url(<?php
header_image();
?>
);
}
<?php
}
if (!is_singular() && get_header_textcolor() != get_theme_support('custom-header', 'default-text-color') && 'blank' != get_header_textcolor()) {
?>
.archive-title {
color: #<?php
header_textcolor();
?>
;
}
<?php
}
?>
<?php
if (is_singular() && current_theme_supports('enlightenment-post-thumbnail-header')) {
?>
@media (min-width: 768px) {
.single .site-content,
.page .site-content {
margin-top: 0;
}
}
<?php
}
?>
</style>
<?php
}
}
示例10: rubric_admin_header_style
function rubric_admin_header_style()
{
?>
<style type="text/css">
#header{
background: url(<?php
header_image();
?>
) no-repeat top right;
width: 550px;
height: 160px;
font-family: Georgia;
font-weight: normal;
}
#header h1{
font-size: 32px;
font-weight: normal;
padding-top: 20px;
text-align: left;
}
#header h1 a{
color:#<?php
header_textcolor();
?>
;
text-decoration: none;
border-bottom: none;
}
<?php
if ('blank' == get_header_textcolor()) {
?>
#headimg h1 {
display: none;
}
<?php
}
?>
</style>
<?php
}
示例11: consulta_custom_header
function consulta_custom_header()
{
$custom_header = get_custom_header();
?>
<style type="text/css">
#branding { background: url(<?php
header_image();
?>
) no-repeat; height: <?php
echo $custom_header->height;
?>
px;}
<?php
if ('blank' == get_header_textcolor()) {
?>
#branding a { height: <?php
echo $custom_header->height;
?>
px; }
#branding a:hover { background: none !important; }
<?php
} else {
?>
#branding, #branding a, #branding a:hover { color: #<?php
header_textcolor();
?>
!important; }
#branding a:hover { text-decoration: none; }
#description { filter: alpha(opacity=60); opacity: 0.6; }
<?php
}
?>
</style>
<?php
}
示例12: header_style
function header_style()
{
$test = HEADER_IMAGE;
if (!strstr(get_theme_mod('header_image', HEADER_IMAGE), $test)) {
?>
<style type="text/css">
#title { margin: 0; height: 180px; vertical-align: middle; display: table-cell; width: 920px; overflow: hidden; margin-bottom: 15px; text-align: center;}
#title { background: url(<?php
header_image();
?>
) no-repeat top;}
<?php
if ('blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR)) {
?>
h1#title, div#title {
text-indent: -1000em !important;
}
<?php
} else {
?>
h1#title a, div#title a,
h1#title a:hover, div#title a:hover {
color: #<?php
header_textcolor();
?>
!important;
font-size: 48px;
height: 100%;
overflow: auto;
text-align: center;
}
<?php
}
?>
</style>
<?php
}
}
示例13: header_style
function header_style()
{
?>
<style type="text/css">
#header {
background: url(<?php
header_image();
?>
) scroll no-repeat 0 0;
height: <?php
echo genesis_get_option('header_height');
?>
px;
}
.header-image #title-area, .header-image #title-area #title, .header-image #title-area #title a {
height: <?php
echo genesis_get_option('header_height');
?>
px;
}
<?php
if (get_theme_mod('header_textcolor') && get_theme_mod('header_textcolor') != 'blank') {
?>
#title-area #title a, #title-area #title a:hover {color: #<?php
header_textcolor();
?>
}
#title-area #description {color: #<?php
header_textcolor();
?>
}
<?php
}
?>
</style>
<?php
}
示例14: pinboard_admin_header_style
/**
* Shows the header image preview in the admin panel.
*
* @since Pinboard 1.0
*/
function pinboard_admin_header_style() {
$header_image = get_header_image(); ?>
<style type="text/css">
@import url("<?php echo ( is_ssl() ? 'https' : 'http' ); ?>://fonts.googleapis.com/css?family=Oswald:300|Open+Sans:normal&subset=latin");
.appearance_page_custom-header #headimg {
max-width:1132px;
width:100%;
border:none;
}
#headimg {
padding:0 20px;
background:#F8F8F8;
}
#headimg h1 {
float:left;
margin:0;
font-family:"Oswald", sans-serif;
font-size:32px;
font-weight:bold;
line-height:120px;
}
#headimg h1 a {
text-decoration:none;
}
#desc {
float:left;
margin-left:20px;
font-family:"Open Sans", sans-serif;
font-size:12px;
font-weight:normal;
line-height:120px;
}
#headimg img {
max-width: 100%;
vertical-align:middle;
}
#headimg h1 a,
#desc {
color:#<?php header_textcolor() ?>;
}
</style>
<?php
}
示例15: step_1
/**
* Display first step of custom header image page.
*
* @since unknown
*/
function step_1()
{
if ($_GET['updated']) {
?>
<div id="message" class="updated fade">
<p><?php
_e('Header updated.');
?>
</p>
</div>
<?php
}
?>
<div class="wrap">
<?php
screen_icon();
?>
<h2><?php
_e('Your Header Image');
?>
</h2>
<p><?php
_e('This is your header image. You can change the text color or upload and crop a new image.');
?>
</p>
<div id="headimg" style="background-image: url(<?php
esc_url(header_image());
?>
);">
<h1><a onclick="return false;" href="<?php
bloginfo('url');
?>
" title="<?php
bloginfo('name');
?>
" id="name"><?php
bloginfo('name');
?>
</a></h1>
<div id="desc"><?php
bloginfo('description');
?>
</div>
</div>
<?php
if (!defined('NO_HEADER_TEXT')) {
?>
<form method="post" action="<?php
echo admin_url('themes.php?page=custom-header&updated=true');
?>
">
<input type="button" class="button" value="<?php
esc_attr_e('Hide Text');
?>
" onclick="hide_text()" id="hidetext" />
<input type="button" class="button" value="<?php
esc_attr_e('Select a Text Color');
?>
" id="pickcolor" /><input type="button" class="button" value="<?php
esc_attr_e('Use Original Color');
?>
" onclick="colorDefault()" id="defaultcolor" />
<?php
wp_nonce_field('custom-header');
?>
<input type="hidden" name="textcolor" id="textcolor" value="#<?php
esc_attr(header_textcolor());
?>
" /><input name="submit" type="submit" class="button" value="<?php
esc_attr_e('Save Changes');
?>
" /></form>
<?php
}
?>
<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;display:none;"> </div>
</div>
<div class="wrap">
<h2><?php
_e('Upload New Header Image');
?>
</h2><p><?php
_e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.');
?>
</p>
<p><?php
printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT);
?>
</p>
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php
echo esc_attr(add_query_arg('step', 2));
//.........这里部分代码省略.........