'error', ); $args = wp_parse_args( $args, $defaults); $map_attributes = generate_attributes($args); $attributes = join(' ', $map_attributes); $output = '' : '

Powered by Juicer

'; $output = $output . $closing; return $output; } } function generate_attributes( $array ) { $attrs = array(); foreach ( $array as $key => $val ) { if ( !empty($val) ) { if (strpos($val, 'data-') !== false) { array_push($attrs, $val); } else { array_push($attrs, 'data-' . $key . '="' . $val . '"'); } } } return $attrs; } function juicer_feed( $args ) { $feed = new Juicer_Feed(); echo $feed->render( $args ); } function juicer_shortcode( $args ) { extract( shortcode_atts( array( 'name' => 'error', ), $args ) ); $feed = new Juicer_Feed(); return $feed->render( $args ); } add_shortcode( 'juicer', 'juicer_shortcode' ); ?>