Echo post title.
beans_post_title( )
Return: (void)
Source
function beans_post_title() {
$title = beans_output( 'beans_post_title_text', get_the_title() );
$title_tag = 'h1';
if ( empty( $title ) ) {
return;
}
if ( ! is_singular() ) {
$title_link = beans_open_markup( 'beans_post_title_link', 'a', array(
'href' => get_permalink(), // Automatically escaped.
'title' => the_title_attribute( 'echo=0' ),
'rel' => 'bookmark',
) );
$title_link .= $title;
$title_link .= beans_close_markup( 'beans_post_title_link', 'a' );
$title = $title_link;
$title_tag = 'h2';
}
beans_open_markup_e( 'beans_post_title', $title_tag, array(
'class' => 'uk-article-title',
'itemprop' => 'headline',
) );
echo $title;
beans_close_markup_e( 'beans_post_title', $title_tag );
}