$shortcode ) { $return = ''; // Shortcode has atts if ( count( $shortcode['atts'] ) && $shortcode['atts'] ) { foreach ( $shortcode['atts'] as $attr_name => $attr_info ) { $prefix = isset( $attr_info['prefix'] ) ? sprintf( '%s', $attr_info['prefix'] ) : null; $return .= '
'; $return .= ''; $return .= ''.$attr_info['tip'].''; // Select if ( isset( $attr_info['values'] ) ) { // Select multiple if ('select_multiple' == $attr_info['type']) { $return .= '
'; }//end foreach }//end if // Single shortcode (not closed) if ( 'single' == $shortcode['type'] ) { $return .= ''; } else { $return .= ''; } $return .= ' '; $return .= ''; // extra JS codes if ( isset( $shortcode['codes'] ) ) : $return .= $shortcode['codes']; endif; $blob[$slug] = $return; }//end foreach return $blob; }