<?php
/**
 * Image Overlay: Title Botom
 *
 * @package Total WordPress Theme
 * @subpackage Partials
 * @version 5.0
 */

defined( 'ABSPATH' ) || exit;

// Only used for inside position
if ( 'inside_link' != $position ) {
	return;
}

// Get post data
$title = isset( $args['post_title'] ) ? $args['post_title'] : get_the_title();

// Title is required
if ( ! $title ) {
	return;
}

?>

<div class="overlay-title-bottom theme-overlay wpex-absolute wpex-bottom-0 wpex-inset-x-0 wpex-bg-black wpex-py-10 wpex-px-20 wpex-text-white wpex-text-md wpex-text-center">
	<?php echo apply_filters( 'wpex_overlay_content_title-bottom', esc_html( $title ) ); ?>
</div>