'', 'target' => '', 'rel' => '', 'icons' => get_theme_mod( 'payment_icons', array( 'visa', 'paypal', 'stripe', 'mastercard', 'cashondelivery' ) ), 'custom' => get_theme_mod( 'payment_icons_custom' ), 'class' => '', 'visibility' => '', ), $atts ) ); $classes = array( 'payment-icons', 'inline-block' ); $is_custom = ! empty( $custom ); if ( $class ) $classes[] = $class; if ( $visibility ) $classes[] = $visibility; $classes = implode( ' ', $classes ); $element_atts = array( 'class' => $classes, 'role' => $is_custom ? null : 'group', 'aria-label' => $is_custom || $link ? null : esc_attr__( 'Payment icons', 'flatsome' ), ); $link_atts = array( 'href' => esc_url( $link ), 'target' => esc_attr( $target ), 'rel' => esc_attr( $rel ), 'aria-label' => $is_custom ? null : esc_attr__( 'Payment icons', 'flatsome' ), // Use image alt on custom. ); $link_start = $link ? '' : ''; $link_end = $link ? '' : ''; // Get custom icons if set. if ( $is_custom ) { return do_shortcode( '