Premium Addons Pro.', 'premium-addons-for-elementor' );
echo wp_kses_post( $message );
?>
add_render_attribute( 'wrapper', 'class', 'premium-atext__wrapper' );
if ( 'switch' === $settings['style'] ) {
$this->add_render_attribute( 'wrapper', 'data-start-effect', $settings['trigger'] );
$loading_bar = 'yes' === $settings['loading_bar'];
$pause = '';
if ( 'typing' === $effect ) {
$show_cursor = ( ! empty( $settings['premium_fancy_text_show_cursor'] ) ) ? true : false;
// $cursor_text = addslashes( $settings['premium_fancy_text_cursor_text'] );
$loop = ! empty( $settings['premium_fancy_text_type_loop'] ) ? true : false;
$strings = array();
foreach ( $settings['premium_fancy_text_strings'] as $item ) {
if ( ! empty( $item['premium_text_strings_text_field'] ) ) {
array_push( $strings, str_replace( '\'', ''', $item['premium_text_strings_text_field'] ) );
}
}
// $cursor_text = html_entity_decode( $cursor_text );
$atext_settings = array(
'effect' => $effect,
'strings' => $strings,
'typeSpeed' => $settings['premium_fancy_text_type_speed'],
'backSpeed' => $settings['premium_fancy_text_back_speed'],
'startDelay' => $settings['premium_fancy_text_start_delay'],
'backDelay' => $settings['premium_fancy_text_back_delay'],
'showCursor' => $show_cursor,
'loop' => $loop,
);
} elseif ( 'slide' === $effect ) {
$this->add_render_attribute( 'prefix', 'class', 'premium-atext__span-align' );
$this->add_render_attribute( 'suffix', 'class', 'premium-atext__span-align' );
$mouse_pause = 'yes' === $settings['premium_slide_up_hover_pause'] ? true : false;
$pause = $mouse_pause ? 'pause' : '';
$atext_settings = array(
'effect' => $effect,
'speed' => $settings['premium_slide_up_speed'],
'showItems' => $settings['premium_slide_up_shown_items'],
'pause' => $settings['premium_slide_up_pause_time'],
'mousePause' => $mouse_pause,
);
} else {
$atext_settings = array(
'effect' => $effect,
'delay' => $settings['premium_fancy_text_zoom_delay'],
'count' => $settings['loop_count'],
);
if ( 'custom' === $effect ) {
$atext_settings['animation'] = $settings['custom_animation'];
} elseif ( 'clip' === $effect ) {
$atext_settings['speed'] = $settings['premium_fancy_text_zoom_speed'];
}
}
$atext_settings['loading'] = $loading_bar;
$atext_settings['style'] = $settings['style'];
$this->add_render_attribute(
'wrapper',
array(
'class' => array(
'premium-atext__' . $effect,
$pause,
),
'data-settings' => wp_json_encode( $atext_settings ),
)
);
} else {
$this->add_render_attribute( 'wrapper', 'class', 'premium-atext' );
$effect = $settings['highlight_effect'];
$atext_settings = array(
'effect' => $effect,
'style' => $settings['style'],
);
if ( 'shape' === $effect ) {
$atext_settings['delay'] = $settings['animation_delay']['size'];
$atext_settings['duration'] = $settings['animation_speed']['size'];
}
$this->add_render_attribute(
'wrapper',
array(
'class' => array(
'premium-atext__' . $effect,
),
'data-settings' => wp_json_encode( $atext_settings ),
)
);
}
if ( ! empty( $settings['link']['url'] ) ) {
$this->add_link_attributes( 'url', $settings['link'] );
}
?>
get_render_attribute_string( 'wrapper' ) ); ?>>
< class="premium-atext__headline">
get_render_attribute_string( 'prefix' ) ); ?>>
render_highlight_text();
else :
$this->render_switch_text();
endif;
?>
get_render_attribute_string( 'suffix' ) ); ?>>
print_render_attribute_string( 'url' ); ?>>
>
get_settings_for_display();
$effect = $settings['premium_fancy_text_effect'];
if ( 'typing' === $effect ) :
?>