'', 'name' => '', 'caption' => '', 'align' => 'left', 'width' => '', 'force_circle' => 'off', 'revealfx' => '', 'link' => '', ); // let this be used multiple times static $instance = 0; $instance++; $unique = sprintf( '%s-%s', get_the_ID(), $instance ); $atts = apply_filters( 'aesop_character_defaults', shortcode_atts( $defaults, $atts ) ); // custom classes $classes = function_exists( 'aesop_component_classes' ) ? aesop_component_classes( 'character', '' ) : null; // width styles $styles = $atts['width'] ? sprintf( 'style="width:%s;"', esc_attr( $atts['width'] ) ) : null; // wrapper float class $float = $atts['align'] ? sprintf( 'aesop-component-align-%s', esc_attr( $atts['align'] ) ) : null; // automatic alt tag $auto_alt = $atts['img'] ? basename( $atts['img'] ) : null; $alt = $auto_alt ? preg_replace( '/\\.[^.\\s]{3,4}$/', '', $auto_alt ) : null; // character wrap ob_start(); do_action( 'aesop_character_before', $atts, $unique ); // action ?>