File manager - Edit - /home/theblueo/www/wp-content/plugins/nimbus/vc_templates/nb_button.php
Back
<?php extract( shortcode_atts( array( 'icon_use' => '', 'icon' => '', 'type' => 'fontawesome', 'icon_fontawesome' => '', 'icon_openiconic' => '', 'icon_typicons' => '', 'icon_entypo' => '', 'icon_linecons' => '', 'icon_monosocial' => '', 'icon_material' => '', 'icon_dripicons' => '', 'icon_elegantlcons' => '', 'icon_pe7icons' => '', 'link' => '', 'style' => '', 'bg_color' => '', 'bghover_color' => '', 'color' => 'default', 'size' => '', 'effect' => '', 'border' => '', 'class' => '', ), $atts ) ); $classess = $iconClass = ''; $classess[] = $this->getExtraClass( $class ); $classess[] = 'nb-button'; $link = ( '||' === $link ) ? '' : $link; $link = vc_build_link( $link ); $use_link = false; $attributes = ''; if ( strlen( $link['url'] ) > 0 ) { $use_link = true; $a_href = $link['url']; $a_title = $link['title']; $a_target = $link['target']; $a_rel = $link['rel']; } if ( $bg_color ) { $bghover_color = $bghover_color ? $bghover_color : $bg_color; $attributes[] = 'data-bgcolor="' . $bg_color . '"'; $attributes[] = 'data-bghovercolor="' .$bghover_color. '"'; $classess[] = 'custom-bg'; } if ( $use_link ) { $attributes[] = 'href="' . trim( $a_href ) . '"'; $attributes[] = 'title="' . esc_attr( trim( $a_title ) ) . '"'; if ( ! empty( $a_target ) ) { $attributes[] = 'target="' . esc_attr( trim( $a_target ) ) . '"'; } if ( ! empty( $a_rel ) ) { $attributes[] = 'rel="' . esc_attr( trim( $a_rel ) ) . '"'; } } if ( $icon_use ) { vc_icon_element_fonts_enqueue( $type ); $iconClass = isset( ${'icon_' . $type} ) ? esc_attr( ${'icon_' . $type} ) : 'fa fa-adjust'; } if ( $style ) $classess[] = $style; if ( $color ) $classess[] = $color; if ( $effect ) $classess[] = $effect; if ( $border ) $classess[] = $border; if ( $border ) $classess[] = $size; $classess = implode(' ',$classess); $attributes = implode(' ',$attributes); echo '<a '.$attributes.' class="'.$classess.'"><span>'.esc_attr( $a_title ).$iconClass.'</span></a>'; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings