%PDF- %PDF-
| Direktori : /home/gachan/www/wp-content/plugins/jekas_extensions/vc_extended/template/ |
| Current File : /home/gachan/www/wp-content/plugins/jekas_extensions/vc_extended/template/vc_icon.php |
<?php
/** @var $this WPBakeryShortCode_VC_Icon_Element */
$icon = $color = $size = $align = $el_class = $custom_color = $link = $background_style = $background_color =
$type = $icon_fontawesome = $icon_openiconic = $icon_typicons = $icon_entypoicons = $icon_linecons = '';
$defaults = array(
'type' => 'fontawesome',
'icon_fontawesome' => 'fa fa-adjust',
'icon_openiconic' => '',
'icon_typicons' => '',
'icon_entypoicons' => '',
'icon_linecons' => '',
'icon_entypo' => '',
'color' => '',
'custom_color' => '',
'background_style' => '',
'background_color' => '',
'size' => 'md',
'align' => 'center',
'el_class' => '',
'link' => '',
'css_animation' => '',
);
/** @var array $atts - shortcode attributes */
$atts = vc_shortcode_attribute_parse( $defaults, $atts );
extract( $atts );
$class = $this->getExtraClass( $el_class );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class, $this->settings['base'], $atts );
$css_class .= $this->getCSSAnimation( $css_animation );
// 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 ( strpos( $background_style, 'outline' ) !== false ) {
$background_style .= ' vc_icon_element-outline'; // if we use outline style it is border in css
} else {
$background_style .= ' vc_icon_element-background';
}
}
?><i
class="<?php echo esc_attr( ${"icon_" . $type} ); ?>" <?php echo( $color === 'custom' ? 'style="color:' . esc_attr( $custom_color ) . ' !important"' : '' ); ?>></i><?php
if ( strlen( $link ) > 0 && strlen( $url['url'] ) > 0 ) {
echo '<a class="vc_icon_element-link" href="' . esc_attr( $url['url'] ) . '" title="' . esc_attr( $url['title'] ) . '" target="' . ( strlen( $url['target'] ) > 0 ? esc_attr( $url['target'] ) : '_self' ) . '"></a>';
}
?>