first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
/**
* Dropbar button template
*/
$settings = $this->get_settings_for_display();
$this->add_render_attribute( 'button', 'class', 'jet-dropbar__button' );
if ( isset( $settings['button_hover_animation'] ) && $settings['button_hover_animation'] ) {
$this->add_render_attribute( 'button', 'class', 'elementor-animation-' . esc_attr( $settings['button_hover_animation'] ) );
}
?>
<button <?php $this->print_render_attribute_string( 'button' ); ?>><?php
$this->__icon( 'button_before_icon', '<span class="jet-elements-icon jet-dropbar__button-icon jet-dropbar__button-icon--before">%s</span>' );
$this->__html( 'button_text', '<span class="jet-dropbar__button-text">%s</span>' );
$this->__icon( 'button_after_icon', '<span class="jet-elements-icon jet-dropbar__button-icon jet-dropbar__button-icon--after">%s</span>' );
?></button>

View File

@@ -0,0 +1,10 @@
<?php
/**
* Dropbar content template
*/
?>
<div class="jet-dropbar__content-wrapper">
<div class="jet-dropbar__content"><?php
echo $this->get_dropbar_content();
?></div>
</div>

View File

@@ -0,0 +1,37 @@
<?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>