Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
shortcodes
/
icon
/
widget
/
File Content:
class-halsteincore-icon-widget.php
<?php if ( ! function_exists( 'halstein_core_add_icon_widget' ) ) { /** * Function that add widget into widgets list for registration * * @param array $widgets * * @return array */ function halstein_core_add_icon_widget( $widgets ) { $widgets[] = 'HalsteinCore_Icon_Widget'; return $widgets; } add_filter( 'halstein_core_filter_register_widgets', 'halstein_core_add_icon_widget' ); } if ( class_exists( 'QodeFrameworkWidget' ) ) { class HalsteinCore_Icon_Widget extends QodeFrameworkWidget { public function map_widget() { $widget_mapped = $this->import_shortcode_options( array( 'shortcode_base' => 'halstein_core_icon', ) ); if ( $widget_mapped ) { $this->set_base( 'halstein_core_icon' ); $this->set_name( esc_html__( 'Halstein Icon', 'halstein-core' ) ); $this->set_description( esc_html__( 'Add a icon element into widget areas', 'halstein-core' ) ); } } public function render( $atts ) { echo HalsteinCore_Icon_Shortcode::call_shortcode( $atts ); // XSS OK } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
class-halsteincore-icon-widget.php
1046 bytes
0644
include.php
103 bytes
0644
N4ST4R_ID | Naxtarrr