defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Output text element * * @var $text string * @var $size int Text size * @var $size_tablets int Text size for tablets * @var $size_mobiles int Text size for mobiles * @var $link string Link * @var $icon string Font Awesome or Material Design icon * @var $color string Custom text color * @var $design_options array * @var $id string */ $classes = ''; if ( isset( $design_options ) AND isset( $design_options['hide_for_sticky'] ) AND $design_options['hide_for_sticky'] ) { $classes .= ' hide-for-sticky'; } if ( isset( $id ) AND ! empty( $id ) ) { $classes .= ' ush_' . str_replace( ':', '_', $id ); } $output = '
'; if ( ! empty( $icon ) ) { $output .= '
'; } $link_atts = usof_get_link_atts( $link ); if ( ! empty( $link_atts['href'] ) ) { $output .= '
' . ( empty( $link ) ? '
' : '' ) ); if ( ! empty( $link_atts['href'] ) ) { $output .= '
'; } else { $output .= ''; } $output .= '
'; echo $output;