Esempio n. 1
0
 function raindrops_child_custom_header_image_content($content)
 {
     global $raindrops_link_unique_text, $raindrops_fluid_maximum_width, $post;
     $raindrops_link_unique_text = raindrops_link_unique_text();
     $boots_site_title = raindrops_site_title();
     if (true !== $raindrops_link_unique_text) {
         /* remove nested a elements */
         $boots_site_title = strip_tags(raindrops_site_title(), '<span><h1><div>');
     }
     $boots_site_title = '<a href="' . esc_url(home_url()) . '" rel="home">' . $boots_site_title . '</a>';
     $html = '<div class="tagline-wrapper no-header-image"><div id="header-inner" style="%3$s">' . '%1$s%2$s' . '</div></div>';
     $image = get_header_image();
     if (empty($image)) {
         return sprintf($html, $boots_site_title, '<p class="tagline">' . get_bloginfo('description') . '</p>', apply_filters('boots_header_no_image_tagline_style', ' '));
     }
     $post_meta = get_post_custom_values('_raindrops_this_header_image', $post->ID);
     if (is_singular() && isset($post_meta) && $post_meta[0] == 'hide') {
         return sprintf($html, $boots_site_title, '<p class="tagline">' . get_bloginfo('description') . '</p>', apply_filters('boots_header_no_image_tagline_style', ' '));
     }
 }
Esempio n. 2
0
 /**
  *
  * @param type $content
  * @return type
  * @since 1.278
  */
 function raindrops_custom_header_image_contents($content)
 {
     $setting_value = raindrops_warehouse_clone('raindrops_place_of_site_title');
     if ($setting_value == 'header_image') {
         return $content . raindrops_site_title();
     }
     return $content;
 }
 function raindrops_custom_header_image_home_url($slider)
 {
     return $slider . raindrops_site_title();
 }
Esempio n. 4
0
?>
" class="<?php 
echo esc_attr('yui-' . raindrops_warehouse('raindrops_col_width'));
?>
 hfeed">
		<?php 
raindrops_prepend_doc();
?>
<header id="top">
			<div id="hd" <?php 
raindrops_doctype_elements('', 'role="banner"');
?>
>
				<?php 
if (raindrops_is_place_of_site_title() == true) {
    echo raindrops_site_title();
}
echo raindrops_site_description();
?>
               
			</div>
            <?php 
/**
 * Custom Header
 */
$raindrops_title_in_the_header_check = raindrops_warehouse_clone('raindrops_place_of_site_title');
if (true == $raindrops_link_unique_text || $raindrops_title_in_the_header_check == 'header_image') {
    ?>
			
			<?php 
    echo raindrops_header_image('elements');