HEX
Server: Apache/2
System: Linux server1c 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64
User: swtinter (1023)
PHP: 8.2.23
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/swtinter/public_html/wp-content/plugins/forminator/admin/views/addons/action-button.php
<?php
/**
 * Template admin/views/addons/action-button.php
 *
 * @package Forminator
 */

$uniqid = ( isset( $id ) && '' !== trim( $id ) ) ? $id : '';

$class  = ( isset( $class ) && '' !== trim( $class ) ) ? $class . ' ' : '';
$class .= 'sui-button';
$class .= isset( $color ) ? ' sui-button-' . $color : '';
$class .= ( isset( $ghost ) && true === is_bool( $ghost ) ) ? ' sui-button-ghost' : '';
?>

<?php
if ( isset( $compound ) && true === is_bool( $compound ) ) {
	$class .= ' sui-button-compound';
	?>

	<button
		<?php
		if ( '' !== $uniqid ) {
			echo 'id="' . esc_attr( $uniqid ) . '"';
		}
		?>
		class="<?php echo esc_attr( $class ); ?>"
		<?php
		if ( isset( $attrs ) ) {
			foreach ( $attrs as $data => $val ) {
				echo esc_attr( $data ) . '="' . esc_attr( $val ) . '"';
			}
		}
		echo isset( $disabled ) && $disabled ? 'disabled' : '';
		?>
	>

		<span class="sui-loading-text" aria-hidden="true">

			<span class="sui-compound-desktop">
				<i class="sui-icon-<?php echo esc_attr( $icon ); ?>"></i>
				<?php echo esc_html( $label ); ?>
			</span>

			<span class="sui-compound-mobile">
			<span class="sui-icon-<?php echo esc_attr( $icon ); ?>"></span>
			</span>

		</span>

		<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>

		<span class="sui-screen-reader-text"><?php echo esc_html( $label ); ?></span>

	</button>

<?php } else { ?>

	<button
		class="<?php echo esc_attr( $class ); ?>"
		<?php
		if ( isset( $attrs ) ) {
			foreach ( $attrs as $data => $val ) {
				echo esc_attr( $data ) . '="' . esc_attr( $val ) . '"';
			}
		}
		?>
	>

		<span class="sui-loading-text">
			<?php
			if ( isset( $icon ) && '' !== trim( $icon ) ) {
				echo '<i class="sui-icon-' . esc_attr( $icon ) . '" aria-hidden="true"></i> ' . esc_html( $label );
			} else {
				echo esc_html( $label );
			}
			?>
		</span>

		<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>

	</button>

<?php } ?>