'', 'animation_direction' => 'left', 'animation_offset' => $fusion_settings->get( 'animation_offset' ), 'animation_speed' => '', 'animation_type' => '', 'background_color' => '', 'border_size' => $fusion_settings->get( 'alert_border_size' ), 'box_shadow' => ( '' !== $fusion_settings->get( 'alert_box_shadow' ) ) ? strtolower( $fusion_settings->get( 'alert_box_shadow' ) ) : 'no', 'class' => '', 'dismissable' => $fusion_settings->get( 'alert_box_dismissable' ), 'hide_on_mobile' => fusion_builder_default_visibility( 'string' ), 'icon' => '', 'id' => '', 'text_align' => $fusion_settings->get( 'alert_box_text_align' ), 'text_transform' => $fusion_settings->get( 'alert_box_text_transform' ), 'type' => 'general', ), $args ); $defaults['border_size'] = FusionBuilder::validate_shortcode_attr_value( $defaults['border_size'], 'px' ); extract( $defaults ); $this->args = $defaults; switch ( $this->args['type'] ) { case 'general': $this->alert_class = 'info'; if ( ! $icon || 'none' !== $icon ) { $this->args['icon'] = $icon = 'fa-info-circle'; } break; case 'error': $this->alert_class = 'danger'; if ( ! $icon || 'none' !== $icon ) { $this->args['icon'] = $icon = 'fa-exclamation-triangle'; } break; case 'success': $this->alert_class = 'success'; if ( ! $icon || 'none' !== $icon ) { $this->args['icon'] = $icon = 'fa-check-circle'; } break; case 'notice': $this->alert_class = 'warning'; if ( ! $icon || 'none' !== $icon ) { $this->args['icon'] = $icon = 'fa-lg fa-cog fa'; } break; case 'blank': $this->alert_class = 'blank'; break; case 'custom': $this->alert_class = 'custom'; break; } $html = '
(.*?)
$!i', '$1', trim( $content ) ); $html .= '' . do_shortcode( $content ) . ''; $html .= '