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