芝麻web文件管理V1.00
编辑当前文件:/home/disqkgca/aqanet.org/wp-content/plugins/js_composer/include/classes/shortcodes/vc-hoverbox.php
getShortCode( 'vc_custom_heading' ); $data = vc_map_integrate_parse_atts( $this->shortcode, 'vc_custom_heading', $atts, $tag . '_' ); $data['font_container'] = implode( '|', array_filter( array( 'tag:h2', 'text_align:' . esc_attr( $align ), $data['font_container'], ) ) ); $data['text'] = $atts[ $tag ]; // provide text to shortcode return $custom_heading->render( array_filter( $data ) ); } else { $inline_css = array(); $inline_css_string = ''; if ( isset( $atts['style'] ) && 'custom' === $atts['style'] ) { if ( ! empty( $atts['custom_text'] ) ) { $inline_css[] = vc_get_css_color( 'color', $atts['custom_text'] ); } } if ( $align ) { $inline_css[] = 'text-align:' . esc_attr( $align ); } if ( ! empty( $inline_css ) ) { $inline_css_string = ' style="' . implode( '', $inline_css ) . '"'; } return '
' . $atts[ $tag ] . '
'; } } return ''; } /** * @param $atts * @return string * @throws \Exception */ public function renderButton( $atts ) { $button_atts = vc_map_integrate_parse_atts( $this->shortcode, 'vc_btn', $atts, 'hover_btn_' ); $button = wpbakery()->getShortCode( 'vc_btn' ); return $button->render( array_filter( $button_atts ) ); } }