<?php
/**
 * Call to action shortcode template
 */
?>
<?php if ($full_width == "no") { ?>
	<div class="edgtf-container-inner">
<?php } ?>
	<div class="edgtf-call-to-action <?php echo esc_attr($type) ?>" <?php echo blaze_edge_get_inline_style($cta_bg_color) ?>>

		<?php if ($content_in_grid == 'yes' && $full_width == 'yes') { ?>
		<div class="edgtf-container-inner">
		<?php }

		if ($grid_size == "75") { ?>
			<div class="edgtf-call-to-action-row-75-25 clearfix" <?php echo blaze_edge_get_inline_style($call_to_action_styles) ?>>
		<?php } elseif ($grid_size == "66") { ?>
			<div class="edgtf-call-to-action-row-66-33 clearfix" <?php echo blaze_edge_get_inline_style($call_to_action_styles) ?>>
		<?php } else { ?>
			<div class="edgtf-call-to-action-row-50-50 clearfix" <?php echo blaze_edge_get_inline_style($call_to_action_styles) ?>>
		<?php } ?>
				<div class="edgtf-text-wrapper <?php echo esc_attr($text_wrapper_classes) ?>">
				<?php if ($type == "with-icon") { ?>
					<div class="edgtf-call-to-action-icon-holder">
						<div class="edgtf-call-to-action-icon">
							<div class="edgtf-call-to-action-icon-inner"><?php echo blaze_edge_get_module_part($icon); ?></div>
						</div>
					</div>
				<?php } ?>
					<div class="edgtf-call-to-action-text" <?php echo blaze_edge_get_inline_style($content_styles) ?>><?php echo do_shortcode($content); ?></div>
				</div>

				<?php if ($show_button == 'yes') { ?>
					<div class="edgtf-button-wrapper edgtf-call-to-action-column2 edgtf-call-to-action-cell <?php if($button_dark_hover == 'yes'){ echo 'edgtf-dark-button-hover'; }?>" style ="text-align: <?php echo esc_attr($button_position) ?> ;">
						<?php echo blaze_edge_get_button_html($button_parameters); ?>
					</div>
				<?php } ?>
			</div>
		<?php if ($content_in_grid == 'yes' && $full_width == 'yes') { ?>
		</div>
		<?php } ?>
	</div>
<?php if ($full_width == 'no') { ?>
	</div>
<?php } ?>