Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.48.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : arise.php
<?php

/* Arise Theme */

function arise_import_files() {
  return array(
    array(
      'import_file_name'             => 'Arise Free',
      'categories'                   => array( 'Arise Free' ),
      'local_import_file'            => trailingslashit( plugin_dir_path( __FILE__ ) ).'dummy/arise/arise.xml',
      'local_import_widget_file'     => trailingslashit( plugin_dir_path( __FILE__ ) ).'dummy/arise/arise-widgets.wie',
      'local_import_customizer_file' => trailingslashit( plugin_dir_path( __FILE__ ) ).'dummy/arise/arise-export.dat',
      'import_preview_image_url'     => 'https://themefreesia.com/wp-content/uploads/2015/09/screenshot.png',
      'import_notice'                => __( 'After you import this demo, you will have to setup the slider separately.', 'theme-freesia-demo-import' ),
      'preview_url'                  => 'https://demo.themefreesia.com/arise/',
    ),

    array(
      'import_file_name'             => 'Arise Plus',
       'categories'                   => array('Arise Plus' ),
      'import_preview_image_url'     => 'https://themefreesia.com/wp-content/uploads/2017/07/arise-Plus-1200x900.jpg',
      'preview_url'                  => 'https://demo.themefreesia.com/arise-plus/',
      'isPlus'                      => true,
      'buy_url'                    => 'https://themefreesia.com/plugins/arise-plus/'
    ),
  );
}
add_filter( 'ocdi/import_files', 'arise_import_files' );

function arise_after_import_setup() {
	// Assign menus to their locations.
	$top_menu = get_term_by( 'name', 'Multilangual Menu', 'nav_menu' );
	$main_menu = get_term_by( 'name', 'main menu', 'nav_menu' );
	$social_menu = get_term_by( 'name', 'Social Icons', 'nav_menu' );

	set_theme_mod( 'nav_menu_locations', array(
			'topmenu' => $top_menu->term_id,
			'primary' => $main_menu->term_id,
			'social-link' => $social_menu->term_id,
		)
	);

	// Assign front page and posts page (blog page).
	$front_page_id = get_page_by_title( 'Home' );
	$blog_page_id  = get_page_by_title( 'Blog' );

	update_option( 'show_on_front', 'page' );
	update_option( 'page_on_front', $front_page_id->ID );
	update_option( 'page_for_posts', $blog_page_id->ID );

}
add_action( 'ocdi/after_import', 'arise_after_import_setup' );
© 2025 XylotrechusZ