'', 'id' => '', 'animation' => false, 'delay' => 0, 'placement' => 'top', 'title' => 'none', 'trigger' => 'hover', ), $args ); extract( $defaults ); self::$args = $defaults; $html = sprintf( '%s', FusionCore_Plugin::attributes( 'tooltip-shortcode' ), do_shortcode( $content ) ); return $html; } function attr() { $attr['class'] = 'fusion-tooltip tooltip-shortcode'; if( self::$args['class'] ) { $attr['class'] .= ' ' . self::$args['class']; } if( self::$args['id'] ) { $attr['id'] = self::$args['id']; } $attr['data-animation'] = self::$args['animation']; $attr['data-delay'] = self::$args['delay']; $attr['data-placement'] = self::$args['placement']; $attr['data-title'] = self::$args['title']; $attr['data-toggle'] = 'tooltip'; $attr['data-trigger'] = self::$args['trigger']; return $attr; } } new FusionSC_Tooltip();