/home/vianto5/cititower.mx/wp-content/plugins/siteorigin-panels/inc
NameSizeModeActions
data/-0755rm
installer/-0755rm
widgets/-0755rm
admin-dashboard.php39540644editdlrm
admin-layouts.php242800644editdlrm
admin-widget-dialog.php63220644editdlrm
admin-widgets-bundle.php49830644editdlrm
admin.php749500644editdlrm
compatibility.php40480644editdlrm
css-builder.php84740644editdlrm
functions.php26410644editdlrm
home.php12880644editdlrm
live-editor.php25440644editdlrm
post-content-filters.php26050644editdlrm
renderer-legacy.php59350644editdlrm
renderer.php464350644editdlrm
revisions.php26970644editdlrm
settings.php283090644editdlrm
sidebars-emulator.php77680644editdlrm
styles-admin.php285200644editdlrm
styles.php474820644editdlrm
widget-shortcode.php39710644editdlrm
Edit: /home/vianto5/cititower.mx/wp-content/plugins/siteorigin-panels/inc/widget-shortcode.php (3971B)
false, 'id' => '', ), $attr, 'siteorigin_widget' ); $attr['class'] = html_entity_decode( $attr['class'] ); $attr['class'] = apply_filters( 'siteorigin_panels_widget_class', $attr['class'] ); $the_widget = ! empty( $attr['class'] ) ? SiteOrigin_Panels::get_widget_instance( $attr['class'] ) : null; if ( ! empty( $the_widget ) ) { $data = self::decode_data( $content ); $widget_args = ! empty( $data['args'] ) ? $data['args'] : array(); $widget_instance = ! empty( $data['instance'] ) ? $data['instance'] : array(); $widget_args = self::escape_widget_data( $widget_args ); $widget_instance = self::escape_widget_data( $widget_instance ); $widget_args = wp_parse_args( array( 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', ), $widget_args ); ob_start(); $the_widget->widget( $widget_args, $widget_instance ); return ob_get_clean(); } } public static function escape_widget_data( $data ) { try { $escaped_data = array(); foreach ( $data as $key => $value ) { if ( is_array( $value ) ) { $escaped_data[ $key ] = self::escape_widget_data( $value ); } else { $escaped_data[ $key ] = esc_html( $value ); } } return $escaped_data; } catch (Exception $e) { // There was an error, return empty array. return array(); } } /** * Get the shortcode for a specific widget * * @return string */ public static function get_shortcode( $widget, $args, $instance ) { unset( $instance['panels_info'] ); $data = array( 'instance' => $instance, 'args' => $args, ); // This allows other plugins to implement their own shortcode. For example, to work when Page Builder isn't active $shortcode_name = apply_filters( 'siteorigin_panels_cache_shortcode', 'siteorigin_widget', $widget, $instance, $args ); $shortcode = '[' . $shortcode_name . ' '; $shortcode .= 'class="' . htmlentities( preg_replace( '/\\\\+/', '\\\\\\\\', get_class( $widget ) ) ) . '"]'; $shortcode .= self::encode_data( $data ); $shortcode .= '[/' . $shortcode_name . ']'; return $shortcode; } /** * A filter to replace widgets with */ public static function widget_html( $html, $widget, $args, $instance ) { if ( empty( $GLOBALS['SITEORIGIN_PANELS_POST_CONTENT_RENDER'] ) || // Don't try create HTML if there already is some ! empty( $html ) || ! is_object( $widget ) || // Skip for known text based widgets in_array( get_class( $widget ), self::$text_widgets ) ) { return $html; } return self::get_shortcode( $widget, $args, $instance ); } public static function encode_data( $data ) { return ''; } public static function decode_data( $string ) { preg_match( '/value="([^"]*)"/', trim( $string ), $matches ); if ( ! empty( $matches[1] ) ) { $data = json_decode( html_entity_decode( $matches[1], ENT_QUOTES ), true ); return $data; } else { return array(); } } }