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', ' ')); } }
function raindrops_link_unique($text = '', $id = 0, $class = 'raindrops_unique_identifier') { global $raindrops_link_unique_text; $raindrops_link_unique_text = raindrops_link_unique_text(); if (true == $raindrops_link_unique_text && !is_admin()) { $raindrops_aria_hidden = raindrops_doctype_elements('', 'aria-hidden="true"', false); $html = '<span class="%1$s" %4$s>[%2$s %3$s]</span>'; $html = sprintf($html, esc_attr($class), esc_attr($text), (int) $id, $raindrops_aria_hidden); return apply_filters('raindrops_link_unique', $html, $text, $id, $class); } return; }
<?php if (!defined('ABSPATH')) { exit; } global $template, $raindrops_current_theme_slug; $raindrops_link_unique_text = raindrops_link_unique_text(); do_action('raindrops_pre_part_' . basename(__FILE__, '.php')); do_action('raindrops_pre_part_' . basename(__FILE__, '.php') . '_' . basename($template)); ?> <!DOCTYPE html> <html <?php language_attributes(); ?> > <head> <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?> ; charset=<?php bloginfo('charset'); ?> " /> <?php wp_head(); ?> </head> <body id="<?php echo $raindrops_current_theme_slug; ?> " <?php