<?php
/**
 * Fancy Text Box Template Style Two
 *
 * @package Radiantthemes
 */

$output .= '<div class="holder matchHeight ' . esc_attr( $fancy_css ) . '">';
$output .= '<div class="heading">';
if ( $shortcode['fancy_textbox_image'] !== '' ) {
    $output .= '<div class="icon">';
    $output .= wp_get_attachment_image( $shortcode['fancy_textbox_image'], 'full' );
    $output .= '</div>';
}
$output .= '<div class="data">';
if ( $shortcode['fancy_textbox_title'] !== '' ) {
    $output .= '<p class="title">' . esc_attr( $shortcode['fancy_textbox_title'] ). '</p>';
}
if ( $shortcode['fancy_textbox_subtitle'] !== '' ) {
    $output .= '<p class="subtitle">' . esc_attr( $shortcode['fancy_textbox_subtitle'] ). '</p>';
}
$output .= '</div>';
$output .= '</div>';
if ( $shortcode['fancy_textbox_content'] !== '' ) {
    $output .= '<div class="content">';
    $output .= '<p>' . esc_attr( $shortcode['fancy_textbox_content'] ) . '</p>';
    $output .= '</div>';
}
$output .= '</div>';
