Upload:

Command:

logicielcomptabilite@18.222.20.236: ~ $
<?php

class SiteOrigin_Panels_Home {
	public function __construct() {
		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
	}

	public static function single() {
		static $single;

		return empty( $single ) ? $single = new self() : $single;
	}

	/**
	 * Add items to the admin menu
	 *
	 * @action admin_menu
	 */
	public function admin_menu() {
		if ( ! siteorigin_panels_setting( 'home-page' ) ) {
			return;
		}

		add_theme_page(
			__( 'Custom Home Page Builder', 'siteorigin-panels' ),
			__( 'Home Page', 'siteorigin-panels' ),
			'edit_theme_options',
			'so_panels_home_page',
			array( $this, 'render_home' )
		);
	}

	/**
	 * Render the home page interface.
	 */
	public function render_home() {
		// We need a global post for some features in Page Builder (eg history)
		global $post;

		$home_page_id = get_option( 'page_on_front' );

		if ( empty( $home_page_id ) ) {
			$home_page_id = get_option( 'siteorigin_panels_home_page_id' );
		}

		$home_page = get_post( $home_page_id );

		if ( ! empty( $home_page ) && get_post_meta( $home_page->ID, 'panels_data', true ) != '' ) {
			$post = $home_page;
		}

		$panels_data = SiteOrigin_Panels_Admin::single()->get_current_admin_panels_data();
		include plugin_dir_path( __FILE__ ) . '../tpl/admin-home-page.php';
	}
}

Filemanager

Name Type Size Permission Actions
data Folder 0755
installer Folder 0755
widgets Folder 0755
admin-dashboard.php File 3.86 KB 0644
admin-layouts.php File 20.19 KB 0644
admin-widget-dialog.php File 6.17 KB 0644
admin-widgets-bundle.php File 4.78 KB 0644
admin.php File 71.73 KB 0644
compatibility.php File 3.81 KB 0644
css-builder.php File 8.28 KB 0644
functions.php File 2.58 KB 0644
home.php File 1.26 KB 0644
live-editor.php File 2.48 KB 0644
post-content-filters.php File 2.54 KB 0644
renderer-legacy.php File 5.6 KB 0644
renderer.php File 43.73 KB 0644
revisions.php File 2.63 KB 0644
settings.php File 27.27 KB 0644
sidebars-emulator.php File 7.59 KB 0644
styles-admin.php File 27.76 KB 0644
styles.php File 43.8 KB 0644
widget-shortcode.php File 3.88 KB 0644