| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * Class for managing tooltips |
| 5 | 5 | * |
| 6 | 6 | * @package Give |
| 7 | 7 | * @subpackage Classes/Give_Tooltips |
| 8 | - * @copyright Copyright (c) 2017, WordImpress | |
| 8 | + * @copyright Copyright (c) 2017, GiveWP | |
| 9 | 9 | * @license https://opensource.org/licenses/gpl-license GNU Public License |
| 10 | 10 | * @since 2.0 |
| 11 | 11 | */ |
| 12 | 12 | class Give_Tooltips { |
| @@ -117,9 +117,9 @@ | ||
| 117 | 117 | // Set label. |
| 118 | 118 | $args['attributes']['aria-label'] = $args['label']; |
| 119 | 119 | |
| 120 | 120 | // Set classes. |
| 121 | - $args['attributes']['class'] = ! empty( $args['attributes']['class'] ) ? $args['attributes']['class'] : ''; | |
| 121 | + $args['attributes']['class'] = ! empty( $args['attributes']['class'] ) ? $args['attributes']['class'] : ''; | |
| 122 | 122 | $args['attributes']['class'] .= " {$tooltip_pos[ $args['position'] ]}"; |
| 123 | 123 | $args['attributes']['class'] .= ! empty( $args['status'] ) ? " {$tooltip_status[ $args['status'] ]}" : ''; |
| 124 | 124 | $args['attributes']['class'] .= ! empty( $args['size'] ) ? " {$tooltip_size[ $args['size'] ]}" : ''; |
| 125 | 125 | $args['attributes']['class'] .= $args['show_always'] ? ' hint--always' : ''; |
| @@ -124,9 +124,9 @@ | ||
| 124 | 124 | $args['attributes']['class'] .= ! empty( $args['size'] ) ? " {$tooltip_size[ $args['size'] ]}" : ''; |
| 125 | 125 | $args['attributes']['class'] .= $args['show_always'] ? ' hint--always' : ''; |
| 126 | 126 | $args['attributes']['class'] .= $args['round_edges'] ? ' hint--rounded' : ''; |
| 127 | 127 | $args['attributes']['class'] .= $args['animate'] ? ' hint--bounce' : ' hint--no-animate'; |
| 128 | - $args['attributes']['class'] = trim( $args['attributes']['class'] ); | |
| 128 | + $args['attributes']['class'] = trim( $args['attributes']['class'] ); | |
| 129 | 129 | |
| 130 | 130 | // Set link attribute in tooltip has anchor tag. |
| 131 | 131 | if ( 'a' === $args['tag'] && ! empty( $args['link'] ) ) { |
| 132 | 132 | $args['attributes']['href'] = esc_url( $args['link'] ); |
| @@ -196,5 +196,5 @@ | ||
| 196 | 196 | $tooltip_markup = $this->render_span( $args ); |
| 197 | 197 | |
| 198 | 198 | return $tooltip_markup; |
| 199 | 199 | } |
| 200 | -} | |
| 200 | +} | |