X7ROOT File Manager
Current Path:
/home/magneti1/public_html/wp-content/themes/spacious/inc
home
/
magneti1
/
public_html
/
wp-content
/
themes
/
spacious
/
inc
/
ðŸ“
..
ðŸ“
admin
📄
class-spacious-dynamic-css.php
(5.69 KB)
📄
custom-header.php
(3.46 KB)
ðŸ“
customizer
📄
demo-import-migration.php
(2.81 KB)
ðŸ“
deprecated
ðŸ“
elementor
📄
enqueue-scripts.php
(14.8 KB)
📄
error_log
(8.13 KB)
ðŸ“
extend-customizer
📄
functions.php
(35.73 KB)
📄
header-functions.php
(15.61 KB)
📄
jetpack.php
(469 B)
📄
migration.php
(3.63 KB)
📄
related-posts.php
(2.75 KB)
📄
spacious-toolkit.php
(2.33 KB)
ðŸ“
widgets
Editing: demo-import-migration.php
<?php /** * Demo import migration. * * @package ThemeGrill * @subpackage Spacious * @since Spacious 1.9.0 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Display the admin notice for demo import customize migration. */ function spacious_demo_import_migration_notice() { $demo_imported = get_option( 'themegrill_demo_importer_activated_id' ); $notice_dismiss = get_option( 'spacious_demo_import_migration_notice_dismiss' ); if ( ! $notice_dismiss ) : if ( $demo_imported && ( strpos( $demo_imported, 'spacious' ) !== false ) ) : ?> <div class="notice notice-success spacious-notice demo-import-migrate-notice" style="position:relative;"> <p> <?php esc_html_e( 'It looks like you have imported one of the demos recently. Please check your site, if fonts and background are not the same as in the demo. Please click the \'Fix Imported Demo\' button below.', 'spacious' ); ?> </p> <p> <a href="<?php echo wp_nonce_url( add_query_arg( 'demo-import-migration', 'true' ), 'demo_import_migration', '_demo_import_migration_nonce' ); ?>" class="btn button-primary" > <span><?php esc_html_e( 'Fix Imported Demo', 'spacious' ); ?></span> </a> <a href="<?php echo esc_url( 'https://themegrill.com/contact/' ); ?>" class="btn button-secondary" target="_blank"> <span><?php esc_html_e( 'Any confusion?', 'spacious' ); ?></span> </a> </p> <a class="notice-dismiss" href="<?php echo wp_nonce_url( add_query_arg( 'demo-import-migration-notice-dismiss', 'true' ), 'demo_import_migration_notice_dismiss', '_demo_import_migration_notice_dismiss_nonce' ); ?>"></a> </div> <?php endif; endif; } add_action( 'admin_notices', 'spacious_demo_import_migration_notice' ); /** * Option to dismiss the notice. */ function spacious_demo_import_migration_notice_dismiss() { if ( isset( $_GET['demo-import-migration-notice-dismiss'] ) && isset( $_GET['_demo_import_migration_notice_dismiss_nonce'] ) ) { if ( ! wp_verify_nonce( $_GET['_demo_import_migration_notice_dismiss_nonce'], 'demo_import_migration_notice_dismiss' ) ) { wp_die( __( 'Action failed. Please refresh the page and retry.', 'spacious' ) ); } update_option( 'spacious_demo_import_migration_notice_dismiss', true ); } } add_action( 'admin_init', 'spacious_demo_import_migration_notice_dismiss' ); /** * Return the value for customize migration on demo import. * * @return bool */ function spacious_demo_import_migration() { if ( isset( $_GET['demo-import-migration'] ) && isset( $_GET['_demo_import_migration_nonce'] ) ) { if ( ! wp_verify_nonce( $_GET['_demo_import_migration_nonce'], 'demo_import_migration' ) ) { wp_die( __( 'Action failed. Please refresh the page and retry.', 'spacious' ) ); } return true; } return false; }
Upload File
Create Folder