function tallybuilder_SContent_HTML__button($meta_data, $meta_id, $post_id, $prefix)
{
    $class = tallybuilder_meta($meta_id, $prefix . 'class', $post_id);
    $id = tallybuilder_meta($meta_id, $prefix . 'id', $post_id);
    $button_1_text = tallybuilder_meta($meta_id, $prefix . 'button_1_text', $post_id);
    $button_1_link = tallybuilder_meta($meta_id, $prefix . 'button_1_link', $post_id);
    $button_1_type = tallybuilder_meta($meta_id, $prefix . 'button_1_type', $post_id);
    $button_1_target = tallybuilder_meta($meta_id, $prefix . 'button_1_target', $post_id);
    $button_1_size = tallybuilder_meta($meta_id, $prefix . 'button_1_size', $post_id);
    $button_2_text = tallybuilder_meta($meta_id, $prefix . 'button_2_text', $post_id);
    $button_2_link = tallybuilder_meta($meta_id, $prefix . 'button_2_link', $post_id);
    $button_2_type = tallybuilder_meta($meta_id, $prefix . 'button_2_type', $post_id);
    $button_2_target = tallybuilder_meta($meta_id, $prefix . 'button_2_target', $post_id);
    $button_2_size = tallybuilder_meta($meta_id, $prefix . 'button_2_size', $post_id);
    $animation_class = tallybuilder_meta_animation_content($meta_id, $prefix . 'animation', true, $post_id);
    $animation_content = tallybuilder_meta_animation_content($meta_id, $prefix . 'animation', false, $post_id);
    $unique_class = $prefix . 'button' . $post_id;
    echo '<div class="tbhtml_button ' . $class . ' ' . $unique_class . ' ' . $animation_class . '" ' . $id . ' ' . $animation_content . '>';
    if ($button_1_link != '') {
        echo '<a href="' . $button_1_link . '" class="btn btn-' . $button_1_type . ' btn-' . $button_1_size . ' target="' . $button_1_target . '">' . $button_1_text . '</a>';
    }
    if ($button_2_link != '') {
        echo '<a href="' . $button_2_link . '" class="btn btn-' . $button_2_type . ' btn-' . $button_2_size . ' target="' . $button_2_target . '">' . $button_2_text . '</a>';
    }
    echo '</div>';
}
function tallybuilder_SContent_HTML__text($meta_data, $meta_id, $post_id, $prefix)
{
    $content = isset($meta_data[$prefix . 'content']) ? $meta_data[$prefix . 'content'] : '';
    $class = isset($meta_data[$prefix . 'class']) ? $meta_data[$prefix . 'class'] : '';
    $id = isset($meta_data[$prefix . 'id']) ? $meta_data[$prefix . 'id'] : '';
    $id = $id == '' ? '' : 'id="' . $id . '"';
    $animation_class = tallybuilder_meta_animation_content($meta_id, $prefix . 'h1_animation', true, $post_id);
    $animation_content = tallybuilder_meta_animation_content($meta_id, $prefix . 'h1_animation', false, $post_id);
    $unique_class = $prefix . 'text' . $post_id;
    echo '<div class="tbhtml_text ' . $class . ' ' . $unique_class . ' ' . $animation_class . '" ' . $id . ' ' . $animation_content . '>';
    echo do_shortcode($content);
    echo '</div>';
}
function tallybuilder_SContent_HTML__grid($meta_data, $meta_id, $post_id, $prefix)
{
    $class = tallybuilder_meta($meta_id, $prefix . 'class', $post_id);
    $id = tallybuilder_meta($meta_id, $prefix . 'id', $post_id);
    $grid = tallybuilder_meta($meta_id, $prefix . 'grid', $post_id);
    $unique_class = $prefix . 'grid' . $post_id;
    $animation_class = tallybuilder_meta_animation_content($meta_id, $prefix . 'animation', true, $post_id);
    $animation_content = tallybuilder_meta_animation_content($meta_id, $prefix . 'animation', false, $post_id);
    if ($grid != '') {
        if (function_exists('tallybuilder_raw_grid')) {
            echo '<div class="tbhtml_button ' . $class . ' ' . $unique_class . ' ' . $animation_class . '" ' . $id . ' ' . $animation_content . '>';
            echo tallybuilder_raw_grid(array('slug' => $grid));
            echo '</div>';
        }
    }
}
function tallybuilder_SContent_HTML__title($meta_data, $meta_id, $post_id, $prefix)
{
    $h1 = isset($meta_data[$prefix . 'h1']) ? $meta_data[$prefix . 'h1'] : '';
    $h2 = isset($meta_data[$prefix . 'h2']) ? $meta_data[$prefix . 'h2'] : '';
    $class = isset($meta_data[$prefix . 'class']) ? $meta_data[$prefix . 'class'] : '';
    $id = isset($meta_data[$prefix . 'id']) ? $meta_data[$prefix . 'id'] : '';
    $id = $id == '' ? '' : 'id="' . $id . '"';
    $alignment = isset($meta_data[$prefix . 'alignment']) ? $meta_data[$prefix . 'alignment'] : '';
    $alignment = $alignment == '' ? '' : 'text-' . $alignment;
    $unique_class = $prefix . 'title' . $post_id;
    $animation1_class = tallybuilder_meta_animation_content($meta_id, $prefix . 'h1_animation', true, $post_id);
    $animation1_content = tallybuilder_meta_animation_content($meta_id, $prefix . 'h1_animation', false, $post_id);
    $animation2_class = tallybuilder_meta_animation_content($meta_id, $prefix . 'h2_animation', true, $post_id);
    $animation2_content = tallybuilder_meta_animation_content($meta_id, $prefix . 'h2_animation', false, $post_id);
    echo '<div class="tbhtml_title ' . $class . ' ' . $alignment . ' ' . $unique_class . '" ' . $id . '>';
    echo $h1 == '' ? '' : '<h2 class="' . $animation1_class . '" ' . $animation1_content . '>' . $h1 . '</h2>';
    echo $h2 == '' ? '' : '<h4 class="' . $animation2_class . '" ' . $animation2_content . '>' . $h2 . '</h4>';
    echo '</div>';
}