| 1 |
<?php |
| 2 |
/** |
| 3 |
* Frontend view |
| 4 |
* |
| 5 |
* @package next-step-button |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<div class="<?php echo esc_attr( $module->get_classname() ); ?>"> |
| 10 |
|
| 11 |
<?php |
| 12 |
if ( isset( $settings->threed_button_options ) && ( 'animate_top' == $settings->threed_button_options || 'animate_bottom' == $settings->threed_button_options || 'animate_left' == $settings->threed_button_options || 'animate_right' == $settings->threed_button_options ) ) { |
| 13 |
?> |
| 14 |
<p class="perspective"> |
| 15 |
<?php |
| 16 |
} |
| 17 |
?> |
| 18 |
|
| 19 |
<a href="?class=wcf-next-step" class="cartflows-bb__next-step-button cartflows-bb__next-step-button cartflows-bb__next-step-creative-button <?php echo esc_attr( 'cartflows-bb__next-step-creative-' . $settings->style . '-btn' ); ?> <?php echo esc_attr( $module->get_button_style() ); ?>" role="button" > |
| 20 |
<?php |
| 21 |
if ( ! empty( $settings->icon ) && ( 'before' == $settings->icon_position || ! isset( $settings->icon_position ) ) ) : |
| 22 |
|
| 23 |
if ( 'flat' == $settings->style && isset( $settings->flat_button_options ) && ( 'animate_to_right' == $settings->flat_button_options || 'animate_to_left' == $settings->flat_button_options || 'animate_from_top' == $settings->flat_button_options || 'animate_from_bottom' == $settings->flat_button_options ) ) { |
| 24 |
$add_class_to_icon = ''; |
| 25 |
} else { |
| 26 |
$add_class_to_icon = 'cartflows-bb__next-step-creative-button-icon cartflows-bb__next-step-button-icon-before cartflows-bb__next-step-creative-button-icon-before'; |
| 27 |
} |
| 28 |
?> |
| 29 |
|
| 30 |
<i class="<?php echo esc_attr( $add_class_to_icon ); ?> fa <?php echo esc_attr( $settings->icon ); ?>" aria-hidden="true"></i> |
| 31 |
|
| 32 |
<?php endif; ?> |
| 33 |
<?php if ( ! empty( $settings->text ) ) : ?> |
| 34 |
<span class="cartflows-bb__next-step-button-text cartflows-bb__next-step-creative-button-text"><?php echo esc_html( $settings->text ); ?></span> |
| 35 |
<?php endif; ?> |
| 36 |
<?php |
| 37 |
if ( ! empty( $settings->icon ) && 'after' == $settings->icon_position ) : |
| 38 |
if ( 'flat' == $settings->style && isset( $settings->flat_button_options ) && ( 'animate_to_right' == $settings->flat_button_options || 'animate_to_left' == $settings->flat_button_options || 'animate_from_top' == $settings->flat_button_options || 'animate_from_bottom' == $settings->flat_button_options ) ) { |
| 39 |
$add_class_to_icon = ''; |
| 40 |
} else { |
| 41 |
$add_class_to_icon = 'cartflows-bb__next-step-button-icon-after cartflows-bb__next-step-creative-button-icon-after'; |
| 42 |
} |
| 43 |
?> |
| 44 |
<i class="cartflows-bb__next-step-button-icon cartflows-bb__next-step-creative-button-icon <?php echo esc_attr( $add_class_to_icon ); ?> fa <?php echo esc_attr( $settings->icon ); ?>"></i> |
| 45 |
<?php endif; ?> |
| 46 |
</a> |
| 47 |
|
| 48 |
<?php |
| 49 |
if ( isset( $settings->threed_button_options ) && ( 'animate_top' == $settings->threed_button_options || 'animate_bottom' == $settings->threed_button_options || 'animate_left' == $settings->threed_button_options || 'animate_right' == $settings->threed_button_options ) ) { |
| 50 |
?> |
| 51 |
</p> |
| 52 |
<?php |
| 53 |
} |
| 54 |
?> |
| 55 |
</div> |
| 56 |
|