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_button.php
<?php
$button_type = $button_size = $button_color_style = '';
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );

$link = vc_build_link( $link );

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; ?>