lightbox_embed ); $button_class = array( 'vamtam-button', $settings->color, 'hover-' . $settings->hover_color, 'button-' . $settings->layout_type, 'icon-animation-' . $settings->icon_animation, ); $button_attrs = ''; if ( $has_lightbox ) { global $wp_embed, $content_width; $lightbox_content = do_shortcode( $wp_embed->run_shortcode( '[embed width="' . esc_attr( $content_width ) . '"]' . $settings->link . '[/embed]' ) ); $button_attrs .= ' data-vamtam-lightbox="' . esc_attr( $lightbox_content ) . '"'; $settings->link_target = '_blank'; Vamtam_Elements_B::enqueue_lightbox_template(); } $style = 'font-size:' . (int) $settings->font_size . 'px;line-height:' . ((int) $settings->font_size + 2 ) . 'px;'; if ( 'custom' == $settings->width ) { $style .= 'width:' . (int) $settings->custom_width . 'px;'; } if ( ! empty( $settings->padding ) ) { if ( 'underline' === $settings->layout_type ) { $style .= 'padding:' . (int) $settings->padding . 'px 0px;'; } else { $style .= 'padding:' . (int) $settings->padding . 'px ' . (int) $settings->padding * 2 . 'px;'; } } $button_attrs .= 'style="' . esc_attr( $style ) . '"'; ?>
> icon ) && ( 'before' == $settings->icon_position || ! isset( $settings->icon_position ) ) ) : ?> text ) ) : ?>style="margin-right:0"> text ) ) : ?> text; // xss ok ?> icon ) && 'after' == $settings->icon_position ) : ?> text ) ) : ?>style="margin-left:0">