HEX
Server: Apache/2.4.65 (Debian)
System: Linux wordpress-7cb4c6b6f6-qgbk2 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/jet-elements/templates/jet-dropbar/global/index.php
<?php
/**
 * Main Dropbar template
 */

$settings = $this->get_settings_for_display();

$this->add_render_attribute( 'wrapper', 'class', 'jet-dropbar' );
$this->add_render_attribute( 'wrapper', 'data-settings', esc_attr( $this->get_dropbar_export_settings() ) );

if ( isset( $settings['show_effect'] ) && $settings['show_effect'] ) {
	$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar--%s-effect', esc_attr( $settings['show_effect'] ) ) );
}

if ( isset( $settings['fixed'] ) && filter_var( $settings['fixed'], FILTER_VALIDATE_BOOLEAN  ) ) {
	$this->add_render_attribute( 'wrapper', 'class', 'jet-dropbar-fixed' );

	if ( isset( $settings['fixed_position'] ) && $settings['fixed_position'] ) {
		$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar-fixed--%s-position', esc_attr( $settings['fixed_position'] ) ) );
	}

	if ( isset( $settings['fixed_position_tablet'] ) && $settings['fixed_position_tablet'] ) {
		$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar-fixed--%s-tablet-position', esc_attr( $settings['fixed_position_tablet'] ) ) );
	}

	if ( isset( $settings['fixed_position_mobile'] ) && $settings['fixed_position_mobile'] ) {
		$this->add_render_attribute( 'wrapper', 'class', sprintf( 'jet-dropbar-fixed--%s-mobile-position', esc_attr( $settings['fixed_position_mobile'] ) ) );
	}
}
?>

<div <?php $this->print_render_attribute_string( 'wrapper' ); ?>>
	<div class="jet-dropbar__inner"><?php
		include $this->_get_global_template( 'button' );
		include $this->_get_global_template( 'content' );
	?></div>
</div>