HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/vc_templates/stm_call_to_action.php
<?php
$text_color = $call_to_action_label = $button_type = $button_size = $button_color_style = '';
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );

$link = vc_build_link( $link );

if(!empty($text_color)) {
	$text_color = 'style="color:'.$text_color.'"';
}

?>

<?php if(!empty($call_to_action_label)): ?>
	<div class="stm-call-to-action clearfix">
		<?php if(!empty($link['url']) and !empty($link['title'])): ?>
			<a
				class="button btn-<?php echo esc_attr($button_type); ?> <?php echo sanitize_text_field($button_size); ?> btn-<?php echo esc_attr($button_color_style); ?>"
				href="<?php echo esc_url($link['url']) ?>"
				title="<?php echo esc_attr($link['title']); ?>"
				<?php if(!empty($link['target'])): ?>target="_blank" <?php endif; ?>
			><?php echo esc_attr($link['title']); ?></a>
		<?php endif; ?>
		<div class="stm-call-to-action-inner">
			<h4 <?php echo sanitize_text_field($text_color); ?>><?php echo esc_attr($call_to_action_label); ?></h4>
		</div>
	</div>

<?php endif; ?>