File manager - Edit - /home/theblueo/www/wp-content/plugins/nimbus/vc_templates/nb_icon.php
Back
<?php extract( shortcode_atts( array( 'size' => 'normal-size', 'link' => '', 'border_style' => '', 'icon_color' => '', 'icon_style' => 'icon', 'svg' => '', 'icon' => '', 'type' => 'fontawesome', 'icon_fontawesome' => '', 'icon_openiconic' => '', 'icon_typicons' => '', 'icon_entypo' => '', 'icon_linecons' => '', 'icon_monosocial' => '', 'icon_material' => '', 'icon_dripicons' => '', 'icon_elegantlcons' => '', 'icon_pe7icons' => '', 'icon_position' => '', 'icon_color' => '', 'style' => 'normal', 'css' => '', 'class' => '', ), $atts ) ); wp_enqueue_script( 'nimbus-icon' ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); $classess = ''; $classess[] = $this->getExtraClass( $class ); $classess[] = $css_class; $link_a = $link_b = ''; if ( $link ) { $link_a = '<a href="'.esc_url( $link ).'">'; $link_b = '</a>'; } if ( $size ) $classess[] = $size; if ( $border_style ) $classess[] = $border_style; if ( $style ) $classess[] = $style; if ( $icon_style == 'icon' ) { vc_icon_element_fonts_enqueue( $type ); $icon_color = ($icon_color) ? 'style="color:'.$icon_color.'"' : ''; $iconClass = isset( ${'icon_' . $type} ) ? esc_attr( ${'icon_' . $type} ) : 'fa fa-adjust'; $icon_out = '<i '.$icon_color.' class="'.$iconClass.'"></i>'; } elseif ( $icon_style == 'svg' ) { $icon_out = '<div class="svg-icon" data-color="'.$icon_color.'"> <object class="svg-icon-content" data="'.esc_url( $svg ).'" type="image/svg+xml"></object> </div>'; } echo '<div class="nb-icon-item '.implode(' ',$classess).'">'.$link_a.$icon_out.$link_b.'</div>';
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings