<?php
$tag = $args['html_tag'];
$hasLink = $args['link'] !== 'none';
if ($hasLink === true) {
	$link_attr = Tbp_Utils::getLinkParams($args);
}
$args = null;
if ($hasLink === true && !isset($link_attr['href'])) {
	$hasLink = false;
	if (isset($link_attr['class'])) {
		$link_attr['class'] .= ' tbp_link tbp_title';
	} else {
		$link_attr['class'] = 'tbp_link tbp_title';
	}
}
?>
<<?php echo $tag ?> class="tbp_title">
<?php if ($hasLink === true): ?>
	<a <?php echo themify_get_element_attributes($link_attr); ?>>
	<?php endif; ?>
	<?php the_title(); ?>
	<?php if ($hasLink === true): ?>
	</a>
<?php endif; ?>
</<?php echo $tag ?>>