get_admin_screens_header( 'demos' ); ?> registration->is_registered() ) : ?>

IMPORTANT: Demo imports can vary in time. The included plugins need to be installed and activated before you install a demo. Please check the %1\$s tab to ensure your server meets all requirements for a successful import. Settings that need attention will be listed in red. %2\$s.", 'Avada' ) ), '' . esc_attr__( 'System Status', 'Avada' ) . '', '' . esc_attr__( 'View more info here', 'Avada' ) . '' ); ?>

theme_version ); $demos = Avada_Importer_Data::get_data(); $all_tags = array( 'all' => esc_attr__( 'All Demos', 'Avada' ), ); foreach ( $demos as $demo => $demo_details ) { if ( ! isset( $demo_details['tags'] ) ) { $demo_details['tags'] = array(); } $all_tags = array_replace_recursive( $all_tags, $demo_details['tags'] ); } // Check which recommended plugins are installed and activated. $plugin_dependencies = Avada_TGM_Plugin_Activation::$instance->plugins; foreach ( $plugin_dependencies as $key => $plugin ) { $plugin_dependencies[ $key ]['active'] = is_plugin_active( $plugin['file_path'] ); $plugin_dependencies[ $key ]['installed'] = file_exists( WP_PLUGIN_DIR . '/' . $plugin['file_path'] ); } // Import / Remove demo. $imported_data = get_option( 'fusion_import_data', array() ); $import_stages = array( array( 'value' => 'post', 'label' => esc_html__( 'Posts', 'Avada' ), 'data' => 'content', 'feature_dependency' => 'post', ), array( 'value' => 'page', 'label' => esc_html__( 'Pages', 'Avada' ), 'data' => 'content', 'feature_dependency' => 'page', ), array( 'value' => 'avada_portfolio', 'label' => esc_html__( 'Portfolios', 'Avada' ), 'data' => 'content', 'feature_dependency' => 'avada_portfolio', ), array( 'value' => 'avada_faq', 'label' => esc_html__( 'FAQs', 'Avada' ), 'data' => 'content', 'feature_dependency' => 'avada_faq', ), array( 'value' => 'product', 'label' => esc_html__( 'Products', 'Avada' ), 'data' => 'content', 'plugin_dependency' => 'woocommerce', ), array( 'value' => 'event', 'label' => esc_html__( 'Events', 'Avada' ), 'data' => 'content', 'plugin_dependency' => 'the-events-calendar', ), array( 'value' => 'forum', 'label' => esc_html__( 'Forum', 'Avada' ), 'data' => 'content', 'plugin_dependency' => 'bbpress', ), array( 'value' => 'attachment', 'label' => esc_html__( 'Images', 'Avada' ), 'data' => 'content', ), array( 'value' => 'sliders', 'label' => esc_html__( 'Sliders', 'Avada' ), ), array( 'value' => 'theme_options', 'label' => esc_html__( 'Theme Options', 'Avada' ), ), array( 'value' => 'widgets', 'label' => esc_html__( 'Widgets', 'Avada' ), ), ); ?>
$label ) : ?>
$demo_details ) : // Loop through all demos. ?> '; $import_form .= '

'; $remove_form = '
'; foreach ( $import_stages as $import_stage ) { $import_checked = ''; $remove_disabled = 'disabled'; $data = ''; if ( ! empty( $import_stage['plugin_dependency'] ) && empty( $demo_details['plugin_dependencies'][ $import_stage['plugin_dependency'] ] ) ) { continue; } if ( ! empty( $import_stage['feature_dependency'] ) && ! in_array( $import_stage['feature_dependency'], $demo_details['features'] ) ) { continue; } if ( ! empty( $imported_data[ $import_stage['value'] ] ) ) { if ( in_array( strtolower( $demo ), $imported_data[ $import_stage['value'] ] ) ) { $import_checked = 'checked="checked" disabled'; $remove_disabled = 'checked="checked"'; $demo_imported = true; } } if ( ! empty( $import_stage['data'] ) ) { $data = 'data-type="' . esc_attr( $import_stage['data'] ) . '"'; } $import_form .= '

'; $remove_form .= '

'; } $import_form .= '
'; $remove_form .= ''; $install_button_label = ! $demo_imported ? __( 'Import', 'Avada' ) : __( 'Modify', 'Avada' ); if ( ! empty( $imported_data['all'] ) && in_array( strtolower( $demo ), $imported_data['all'] ) ) { $demo_import_badge = __( 'Full Import', 'Avada' ); } else { $demo_import_badge = __( 'Partial Import', 'Avada' ); } $new_imported = ''; ?>
>

theme_url : $this->theme_url . str_replace( '_', '-', $demo ); ?>

' . esc_attr__( 'Product Registration', 'Avada' ) . '' ); ?>