HEX
Server: LiteSpeed
System: Linux sv4.hami.host 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: armgroup (1008)
PHP: 8.2.32
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, mail, socket_create, socket_create_listen, socket_create_pair, link, dl, openlog, syslog, stream_socket_server, curl_multi_init
Upload Files
File: /home/armgroup/www/wp-content/plugins/jet-elements/templates/jet-pricing-table/global/button.php
<?php
/**
 * Pricing table action button
 */

$settings = $this->get_settings_for_display();

$button_size = ! empty( $settings['button_size'] ) ? $settings['button_size'] : 'auto';

$this->add_render_attribute( 'button', array(
	'class' => array(
		'elementor-button',
		'elementor-size-md',
		'pricing-table-button',
		'button-' . $button_size . '-size',
	),
	'href' => $settings['button_url'],
) );

if ( isset( $settings['button_is_external'] ) && filter_var( $settings['button_is_external'], FILTER_VALIDATE_BOOLEAN ) ) {
	$this->add_render_attribute( 'button', 'target', '_blank' );
}

if ( isset( $settings['button_nofollow'] ) && filter_var( $settings['button_nofollow'], FILTER_VALIDATE_BOOLEAN ) ) {
	$this->add_render_attribute( 'button', 'rel', 'nofollow' );
}

?>
<a <?php echo $this->get_render_attribute_string( 'button' ); ?>><?php

	$position = $settings['button_icon_position'];
	$icon     = $settings['add_button_icon'];

	if ( $icon && 'left' === $position ) {
		echo $this->_icon( 'button_icon', '<span class="jet-elements-icon button-icon">%s</span>' );
	}

	echo $this->_html( 'button_text' );

	if ( $icon && 'right' === $position ) {
		echo $this->_icon( 'button_icon', '<span class="jet-elements-icon button-icon">%s</span>' );
	}

?></a>