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__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 row_css($meta_data, $meta_id, $post_id, $row, $row_i)
 {
     $unique_class = '.tb_row_' . $post_id . $row_i;
     $row_layout = isset($meta_data['row' . $row_i . '_layout']) ? $meta_data['row' . $row_i . '_layout'] : '';
     $prefix = 'row' . $row_i . '_';
     if ($row_layout != '0,0,0,0') {
         echo '' . "\n";
         echo tallybuilder_meta_padding_css($unique_class, $meta_id, $prefix . 'padding', $post_id);
         echo tallybuilder_meta_margin_css($unique_class, $meta_id, $prefix . 'margin', $post_id);
         echo tallybuilder_meta_background_css($unique_class, $meta_id, $prefix . 'bg', $post_id);
         $video_bg = tallybuilder_meta_bgVideo_content($meta_id, $prefix . 'video_bg', $post_id);
         if ($video_bg != '') {
             echo $unique_class . '{ background:none; }';
         }
         tallybuilder_css_style($unique_class . ' .tallybuilder_row_inner', tallybuilder_meta($meta_id, $prefix . 'width', $post_id), 'width:%s%;');
         tallybuilder_css_style($unique_class . ' .tallybuilder_row_inner', tallybuilder_meta($meta_id, $prefix . 'max_width', $post_id), 'max-width:%s%;');
         echo '' . "\n";
         if (is_array($row['columns'])) {
             $column_i = 1;
             foreach ($row['columns'] as $column) {
                 $this->column_css($meta_data, $meta_id, $post_id, $row, $row_i, $column, $column_i);
                 $column_i++;
             }
         }
     }
 }
{
            <?php 
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'padding_top'), 'padding-top', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'padding_bottom'), 'padding-bottom', '/', 2);
    ?>
        }
        <?php 
    echo $base;
    ?>
 .tb_content_warp_inner{
			<?php 
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'content_padding_top'), 'padding-top', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'content_padding_bottom'), 'padding-bottom', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'content_margin_top'), 'margin-top', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'content_margin_bottom'), 'margin-bottom', '/', 2);
    ?>
        }
        <?php 
    echo $base;
    ?>
 .tb_image_warp_inner{
            <?php 
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'image_padding_top'), 'padding-top', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'image_padding_bottom'), 'padding-bottom', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'image_margin_top'), 'margin-top', '/', 2);
    echo tallybuilder_css_margin_padding(tallybuilder_meta($meta_id, 'image_margin_bottom'), 'margin-bottom', '/', 2);
    ?>
        }
	}
<?php 
}
 $image_ani_delay = tallybuilder_meta($meta_id, 'image_ani_delay') == '' ? '' : 'data-wow-delay="' . tallybuilder_meta($meta_id, 'image_ani_delay') . '"';
 $text_ani_delay = tallybuilder_meta($meta_id, 'text_ani_delay') == '' ? '' : 'data-wow-delay="' . tallybuilder_meta($meta_id, 'text_ani_delay') . '"';
 $button1_ani_delay = tallybuilder_meta($meta_id, 'button1_ani_delay') == '' ? '2s' : 'data-wow-delay="' . tallybuilder_meta($meta_id, 'button1_ani_delay') . '"';
 $button2_ani_delay = tallybuilder_meta($meta_id, 'button2_ani_delay') == '' ? '2s' : 'data-wow-delay="' . tallybuilder_meta($meta_id, 'button2_ani_delay') . '"';
 $predefined_class = tallybuilder_meta($meta_id, 'predefined_class') == '' ? NULL : ' tb_text_' . tallybuilder_meta($meta_id, 'predefined_class');
 if ($image != '' && $image_position != 'none') {
     $image = '<div class="col-md-' . $image_column . ' tb_image_warp"><div class="tb_image_warp_inner"><img src="' . $image . '" alt="' . $title . '" class="tb_image ' . $ani_image . '" ' . $image_ani_duration . ' ' . $image_ani_delay . '></div></div>';
 } else {
     $image = '';
     $content_column = '12';
 }
 $video_bg = tallybuilder_meta($meta_id, 'video_bg');
 $video_bg_mp4 = tallybuilder_meta($meta_id, 'video_bg_mp4') == '' ? NULL : 'mp4:' . tallybuilder_meta($meta_id, 'video_bg_mp4') . ', ';
 $video_bg_webm = tallybuilder_meta($meta_id, 'video_bg_webm') == '' ? NULL : 'webm:' . tallybuilder_meta($meta_id, 'video_bg_webm') . ', ';
 $video_bg_ogv = tallybuilder_meta($meta_id, 'video_bg_ogv') == '' ? NULL : 'ogv:' . tallybuilder_meta($meta_id, 'video_bg_ogv') . ', ';
 $video_bg_poster = tallybuilder_meta($meta_id, 'video_bg_poster') == '' ? NULL : 'poster:' . tallybuilder_meta($meta_id, 'video_bg_poster') . ', ';
 if ($video_bg == 'yes' && $video_bg_mp4 != '') {
     $video_bg = 'data-vide-bg="' . $video_bg_mp4 . $video_bg_webm . $video_bg_ogv . $video_bg_poster . '" ';
     $video_bg .= 'data-vide-options="posterType: jpg, loop: false, muted: false, position: 0% 0%, autoplay: true,  loop: true"';
 } else {
     $video_bg = '';
 }
 $css_classes = 'tallybuilder_section tbs_text ';
 $css_classes .= ' tb_align_' . $align;
 $css_classes .= ' tbs_text_' . get_the_ID();
 $css_classes .= ' tb_image_position_' . $image_position;
 $css_classes .= ' tb_image_float_' . $image_float;
 $css_classes .= ' tb_content_align_' . $content_align;
 $css_classes .= ' ' . $predefined_class;
 if ($video_bg != '') {
     $css_classes .= ' no-bg';