PATH:
home
/
centosnipponia
/
public_html
/
BAK_doohannl
/
wp-content
/
themes
/
sydney-pro-ii
/
demo-content
<?php /** * Functions to provide support for the One Click Demo Import plugin (wordpress.org/plugins/one-click-demo-import) * * @package Sydney */ if ( !defined('ELEMENTOR_PATH') ) { return; } /** * Set import files */ function sydney_set_import_files() { $theme = 'sydney'; $demos = array( 'Original' => 'https://demo.athemes.com/sydney-pro', 'Finance' => 'https://demo.athemes.com/sp-finance', 'Band' => 'https://demo.athemes.com/sp-band', 'Restaurant' => 'https://demo.athemes.com/sp-restaurant', 'Yoga' => 'https://demo.athemes.com/sp-yoga', 'Business' => 'https://demo.athemes.com/sp-business', 'Coworking' => 'https://demo.athemes.com/sp-coworking', 'App' => 'https://demo.athemes.com/sp-app', 'Wedding' => 'https://demo.athemes.com/sp-wedding', 'Resume' => 'https://demo.athemes.com/sp-resume', 'Shop' => 'https://demo.athemes.com/sydney-shop', 'SaaS' => 'https://demo.athemes.com/sp-saas', ); foreach( $demos as $name => $demo ) { $sets[] = array( 'import_file_name' => $name, 'import_file_url' => 'https://athemes.com/themes-demo-content/' . $theme . '/' . strtolower( str_replace( ' ', '-', $name ) ) . '/' . 'content.xml', 'import_widget_file_url' => 'https://athemes.com/themes-demo-content/' . $theme . '/' . strtolower( str_replace( ' ', '-', $name ) ) . '/' . 'widgets.wie', 'import_customizer_file_url' => 'https://athemes.com/themes-demo-content/' . $theme . '/' . strtolower( str_replace( ' ', '-', $name ) ) . '/' . 'customizer.dat', 'import_preview_image_url' => 'https://athemes.com/themes-demo-content/' . $theme . '/' . strtolower( str_replace( ' ', '-', $name ) ) . '/' . 'thumb.jpg', 'preview_url' => $demo ); } return $sets; } add_filter( 'pt-ocdi/import_files', 'sydney_set_import_files' ); /** * Define actions that happen after import */ function sydney_set_after_import_mods() { //Assign the menu $main_menu = get_term_by( 'name', 'Menu 1', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', array( 'primary' => $main_menu->term_id, ) ); //Asign the static front page and the blog page $front_page = get_page_by_title( 'My front page' ); $blog_page = get_page_by_title( 'My blog page' ); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page -> ID ); update_option( 'page_for_posts', $blog_page -> ID ); //Assign the Front Page template update_post_meta( $front_page -> ID, '_wp_page_template', 'page-templates/page_front-page.php' ); if ( class_exists('SmartSlider3', false) ){ SmartSlider3::import(dirname(__FILE__) . '/demo-slider.ss3'); } } add_action( 'pt-ocdi/after_import', 'sydney_set_after_import_mods' ); /** * Remove branding */ add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );
[+]
..
[-] demo-content.xml
[edit]
[-] demo-customizer.dat
[edit]
[-] demo-slider.ss3
[edit]
[-] demo-widgets.wie
[edit]
[-] setup.php
[edit]
[-] .htaccess.disabled
[edit]