本文整理汇总了PHP中header_textcolor函数的典型用法代码示例。如果您正苦于以下问题:PHP header_textcolor函数的具体用法?PHP header_textcolor怎么用?PHP header_textcolor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了header_textcolor函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
}
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:37,代码来源:custom-header.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
}
开发者ID:hacklabr,项目名称:portal-timtec,代码行数:27,代码来源:custom-header.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
}
开发者ID:TitaniumBunker,项目名称:dirty-blue,代码行数:26,代码来源:functions.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
}
开发者ID:revathskumar,项目名称:Coderepo,代码行数:25,代码来源:functions.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
}
}
开发者ID:nmrugg,项目名称:studiopress-premum-wp-themes,代码行数:32,代码来源:custom-header.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
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:25,代码来源:functions.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
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:31,代码来源:functions.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
}
开发者ID:jeremylightsmith,项目名称:blog,代码行数:15,代码来源:functions.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
}
}
开发者ID:thano,项目名称:cfpi-theme-2016,代码行数:48,代码来源:custom-header.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
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:42,代码来源:functions.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
}
开发者ID:cabelotaina,项目名称:redelivre,代码行数:38,代码来源:functions.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
}
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:38,代码来源:wpcom-header.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
}
开发者ID:nmrugg,项目名称:studiopress-premum-wp-themes,代码行数:37,代码来源:custom-header.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
}
开发者ID:ramo01,项目名称:1kapp,代码行数:48,代码来源:functions.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));
//.........这里部分代码省略.........
开发者ID:papayalabs,项目名称:htdocs,代码行数:101,代码来源:custom-header.php
示例16: header_textcolor
?>
;
}
header div.placeholder span.description,
footer,
footer h2 {
color: #<?php
header_textcolor();
?>
;
}
header div.placeholder span.description {
border-color: #<?php
header_textcolor();
?>
;
}
</style>
</head>
<body <?php
body_class();
?>
>
<a href="#primary_content" class="screen-reader-text"><?php
_e('Skip to content', 'enigma-2015');
?>
</a>
<a href="#primary_navigation" class="screen-reader-text"><?php
_e('Skip to Navigation', 'enigma-2015');
开发者ID:AlchemyMomentum,项目名称:public_html,代码行数:31,代码来源:header.php
示例17: rookie_header_area
/**
* Display header area sections.
*/
function rookie_header_area()
{
$options = get_option('themeboy', array());
if (array_key_exists('logo_url', $options) && !empty($options['logo_url'])) {
$logo = $options['logo_url'];
$logo = esc_url($logo);
}
$sections = apply_filters('rookie_header_area_sections', array('widgets', 'menu'));
?>
<?php
if (get_header_image()) {
?>
<div class="header-area header-area-custom<?php
if (isset($logo)) {
?>
header-area-has-logo<?php
}
?>
" style="background-image: url(<?php
header_image();
?>
);">
<?php
} else {
?>
<div class="header-area<?php
if (isset($logo)) {
?>
header-area-has-logo<?php
}
?>
">
<?php
}
?>
<?php
foreach ($sections as $section) {
?>
<?php
if ('widgets' == $section) {
?>
<?php
if (is_active_sidebar('header-1')) {
?>
<div id="tertiary" class="site-widgets" role="complementary">
<div class="site-widget-region">
<?php
dynamic_sidebar('header-1');
?>
</div>
</div>
<?php
}
?>
<?php
} elseif ('branding' == $section) {
?>
<div class="site-branding">
<?php
if (isset($logo)) {
?>
<a class="site-logo" href="<?php
echo esc_url(home_url('/'));
?>
" rel="home"><img src="<?php
echo $logo;
?>
" alt="<?php
bloginfo('name');
?>
"></a>
<?php
}
?>
<?php
if (display_header_text()) {
?>
<hgroup style="color: #<?php
header_textcolor();
?>
">
<h1 class="site-title"><a href="<?php
echo esc_url(home_url('/'));
?>
" rel="home"><?php
bloginfo('name');
?>
</a></h1>
<h2 class="site-description"><?php
bloginfo('description');
?>
</h2>
</hgroup>
<?php
}
?>
</div><!-- .site-branding -->
//.........这里部分代码省略.........
开发者ID:nemesiscodex,项目名称:e-sportspy.com-theme,代码行数:101,代码来源:template-tags.php
示例18: bp_dtheme_header_style
/**
* The styles for the post thumbnails / custom page headers.
*
* Referenced via add_custom_image_header() in bp_dtheme_setup().
*
* @global WP_Query $post The current WP_Query object for the current post or page
* @since BuddyPress (1.2)
*/
function bp_dtheme_header_style()
{
global $post;
$header_image = '';
if (is_singular() && current_theme_supports('post-thumbnails') && has_post_thumbnail($post->ID)) {
$image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'post-thumbnail');
// $src, $width, $height
if (!empty($image) && $image[1] >= HEADER_IMAGE_WIDTH) {
$header_image = $image[0];
} else {
$header_image = get_header_image();
}
} else {
$header_image = get_header_image();
}
?>
<style type="text/css">
<?php
if (!empty($header_image)) {
?>
#header { background-image: url(<?php
echo $header_image;
?>
); }
<?php
}
?>
<?php
if ('blank' == get_header_textcolor()) {
?>
#header h1, #header #desc { display: none; }
<?php
} else {
?>
#header h1 a, #desc { color:#<?php
header_textcolor();
?>
; }
<?php
}
?>
</style>
<?php
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:55,代码来源:functions.php
示例19: p2_header_style
function p2_header_style()
{
?>
<style type="text/css">
<?php
if (1) {
?>
#header {
background: url(<?php
echo get_bloginfo('stylesheet_directory') . '/images/header.jpg';
/* tikirobot change */
?>
) ;
height: <?php
echo HEADER_IMAGE_HEIGHT;
?>
px;
}
#header a.secondary {
height: <?php
echo HEADER_IMAGE_HEIGHT;
?>
px;
width:<?php
echo HEADER_IMAGE_WIDTH;
?>
px;
display: block;
position: absolute;
top: 0;
}
#header a.secondary:hover {
border: 0;
}
#header .sleeve {
position: relative;
margin-top: 0;
margin-right: 0;
background-color: transparent;
box-shadow: none !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
height: <?php
echo HEADER_IMAGE_HEIGHT;
?>
px;
}
<?php
/* tikirobot change - comment out box-shadow
#header {
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) !important;
-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) !important;
-moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) !important;
} */
?>
<?php
}
?>
<?php
if ('blank' == get_header_textcolor()) {
?>
#header h1, #header small {
padding: 0;
text-indent: -1000em;
}
<?php
} else {
?>
#header h1 a, #header small {
color: #<?php
header_textcolor();
?>
;
}
<?php
}
?>
</style>
<?php
}
开发者ID:rajbot,项目名称:tikirobot_p2,代码行数:80,代码来源:functions.php
示例20: casper_customizer_head
/**
* Customizer hook
*/
function casper_customizer_head()
{
if (get_theme_mod('casper_custom_meta') != false) {
echo get_theme_mod('casper_custom_meta');
}
?>
<style type="text/css">
<?php
if (get_header_textcolor()) {
?>
.blog-title a, .blog-description, .social-icons a { color: #<?php
header_textcolor();
?>
; }
<?php
}
?>
<?php
if ('blank' === get_header_textcolor()) {
?>
.blog-description { display: none; }
<?php
}
?>
<?php
if (false != get_theme_mod('casper_header_textcolor') && false != get_theme_mod('casper_display_header')) {
?>
body:not(.home) .blog-title a, body:not(.home) .blog-description, body:not(.home) .social-icons a {
color: <?php
echo get_theme_mod('casper_header_textcolor');
?>
;
}
<?php
}
?>
<?php
if (get_theme_mod('casper_header_color')) {
?>
.site-head { background-color: <?php
echo get_theme_mod('casper_header_color');
?>
; }
<?php
}
?>
<?php
if (false != get_theme_mod('casper_display_header')) {
?>
body:not(.home) #masthead{ background: none; }
<?php
}
?>
<?php
if (false != get_theme_mod('casper_display_header_all')) {
?>
body:not(.home) .site-head:after { display: none; }
body:not(.home) #masthead{ height: auto; border: none; }
body:not(.home) .blog-title, body:not(.home) .blog-description { display: none; }
body:not(.home) .inner { padding-top: 1em; }
body:not(.home) .main-navigation { position: relative; }
<?php
}
?>
<?php
if (get_theme_mod('casper_link_color')) {
?>
section a { color: <?php
echo get_theme_mod('casper_link_color');
?>
; }
<?php
}
?>
<?php
if (get_theme_mod('casper_hover_color')) {
?>
a:hover, body .blog-title a:hover, body .social-icons a:hover { color: <?php
echo get_theme_mod('casper_hover_color');
?>
; }
<?php
}
?>
<?php
if (get_theme_mod('casper_menu_color')) {
?>
.main-navigation a { color: <?php
echo get_theme_mod('casper_menu_color');
?>
; }
<?php
//.........这里部分代码省略.........
开发者ID:shubham79,项目名称:Jhintaak,代码行数:101,代码来源:functions.php
注:本文中的header_textcolor函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论