getShortcode(), $atts ); extract( $atts ); $class_to_filter = ''; $class_to_filter .= vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts ); // Enqueue needed icon font. vc_icon_element_fonts_enqueue( $type ); $url = vc_build_link( $link ); $has_style = false; if ( strlen( $background_style ) > 0 ) { $has_style = true; if ( false !== strpos( $background_style, 'outline' ) ) { $background_style .= ' vc_icon_element-outline'; // if we use outline style it is border in css } else { $background_style .= ' vc_icon_element-background'; } } $iconClass = isset( ${'icon_' . $type} ) ? esc_attr( ${'icon_' . $type} ) : 'fa fa-adjust'; $style = ''; if ( 'custom' === $background_color ) { if ( false !== strpos( $background_style, 'outline' ) ) { $style = 'border-color:' . $custom_background_color; } else { $style = 'background-color:' . $custom_background_color; } } $style = $style ? ' style="' . esc_attr( $style ) . '"' : ''; $rel = ''; if ( ! empty( $url['rel'] ) ) { $rel = ' rel="' . esc_attr( $url['rel'] ) . '"'; } ?>
>> 0 && strlen( $url['url'] ) > 0 ) { echo ''; } ?>