PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
shortcodes
/
custom-font
/
widget
<?php if ( ! function_exists( 'webon_core_add_custom_font_widget' ) ) { /** * Function that add widget into widgets list for registration * * @param array $widgets * * @return array */ function webon_core_add_custom_font_widget( $widgets ) { $widgets[] = 'WebOnCoreCustomFontWidget'; return $widgets; } add_filter( 'webon_core_filter_register_widgets', 'webon_core_add_custom_font_widget' ); } if ( class_exists( 'QodeFrameworkWidget' ) ) { class WebOnCoreCustomFontWidget extends QodeFrameworkWidget { public function map_widget() { $widget_mapped = $this->import_shortcode_options( array( 'shortcode_base' => 'webon_core_custom_font' ) ); if( $widget_mapped ) { $this->set_base( 'webon_core_custom_font' ); $this->set_name( esc_html__( 'WebOn Custom Font', 'webon-core' ) ); $this->set_description( esc_html__( 'Add a custom font element into widget areas', 'webon-core' ) ); } } public function render( $atts ) { $params = $this->generate_string_params( $atts ); echo do_shortcode( "[webon_core_custom_font $params]" ); // XSS OK } } }
[+]
..
[-] custom-font.php
[edit]
[-] include.php
[edit]