'',
'bg_color' => '',
'loop' => 1,
), $atts ) );
//format text for type effect
$typed_style = '';
//colors
if( $color != ''){
$typed_style .= 'color:'.$color.';';
}
if( $bg_color != ''){
$typed_style .= 'background-color:'.$bg_color.';';
}
//get style together
if( $typed_style != ''){
$typed_style = 'style="'.$typed_style.'"';
}
//what to write
$sentences = explode('|', $content);
$sentences_html = '';
foreach( $sentences as $sentence ){
$sentences_html .= ''.$sentence.'';
}
echo ''.$sentences_html.'';
//we need waypoints script, lets check for:
//elementor version
if (wp_script_is( 'elementor-waypoints', 'registered' )) {
wp_enqueue_script('elementor-waypoints');
}
//from theme
else {
wp_enqueue_script('noframework-waypoints');
}
$output = ob_get_clean();
return $output;
}