<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('post');
?>
>

	<h1 class="post-title"><?php 
$title = get_the_title();
$title_formatted = '';
$accent_text_override = get_field('accent_color_text_override');
if ($accent_text_override && $accent_text_override != '') {
    $title_formatted = '<span>' . str_replace($accent_text_override, '</span><span class="accent-color">' . $accent_text_override . '</span>', $title);
} else {
    $title_formatted = pu06_string_to_spans($title);
}
if (is_singular()) {
    echo $title_formatted;
} else {
    ?>

			<a href="<?php 
    echo esc_url(get_permalink());
    ?>
" rel="bookmark"><?php 
    echo $title_formatted;
    ?>
			</a><?php 
}
?>
Esempio n. 2
0
    echo $outer_classes;
    ?>
 menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-<?php 
    echo $item->ID;
    ?>
">
							<span class="item-wrapper">
								<a href="<?php 
    echo $item->url;
    ?>
" class="<?php 
    echo $classes_string;
    ?>
">
									<span class="item-title"><?php 
    echo pu06_string_to_spans($title);
    ?>
</span>
								</a>
							</span>
						</li>

					<?php 
    if ($counter % 2 > 0) {
        echo "</span>";
    }
    $counter++;
}
?>

				</ul>