$font, 'font-weight' => $font_weight, 'text-transform' => $text_transform, 'font-style' => $font_style, 'font-size' => $font_size, 'line-height' => $line_height, ) ); } // Link if ( $link === 'post' ) { $link_atts = ' href="' . apply_filters( 'the_permalink', get_permalink() ) . '"'; } elseif ( $link === 'custom' ) { $link_atts = us_generate_link_atts( $custom_link ); } else { $link_atts = ''; } $text_before = ( trim( $text_before ) != '' ) ? '' . trim( $text_before ) . ' ' : ''; // Set Button Style class $btn_classes = ''; if ( $style == 'badge' ) { $btn_classes = ' class="w-btn us-btn-style_' . $btn_style . '"'; } // Output the element $output = '