'', 'src' => '', 'viewstart' => 'off', 'viewend' => 'off', 'loop' => 'off', 'hidden' => '' ); $atts = apply_filters( 'aesop_audio_defaults', shortcode_atts( $defaults, $atts ) ); // let this be used multiple times static $instance = 0; $instance++; $unique = sprintf( '%s-%s', get_the_ID(), $instance ); // custom classes $classes = function_exists( 'aesop_component_classes' ) ? aesop_component_classes( 'audio', '' ) : null; // hidden $hidden = (('on' == $atts['hidden']) && !wp_is_mobile())? 'style=height:0;z-index:-1;position:absolute;opacity:0;' : null; // optional title $title = $atts['title'] ? apply_filters( 'aesop_audio_component_title', sprintf( '
%s
', $atts['title'] ) ) : null; // loop $loop = 'on' == $atts['loop'] ? 'true' : false; // waypoint filter $point = 'bottom-in-view'; $waypoint = apply_filters( 'aesop_audio_component_waypoint', $point, $unique ); ob_start(); do_action( 'aesop_audio_before', $atts, $unique ); // action ?>