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