'; build_heading( $item, false ); build_description( $item ); echo '
'; echo ''; echo '
'; printf( ' %2$s', esc_attr( 'Import Options', 'spyropress' ), __( 'WARNING! This will overwrite any existing options, please proceed with caution!', 'spyropress' ) ); echo ''; } function spyropress_ui_export( $option_name ) { global $spyropress; $data = ''; if( isset( $spyropress->options[$option_name . $spyropress->lang] ) ) { $data = $spyropress->options[$option_name . $spyropress->lang]; $data = spyropress_encode( $data ); } $item['label'] = __( 'Export Options', 'spyropress' ); $item['desc'] = __( 'Here you can download or copy/paste into a blank file your theme current option settings. Keep this safe as you can use it as backup should anything go wrong. Or you can use it to restore your settings on this site (or any other site).', 'spyropress' ); echo '
'; build_heading( $item, false ); build_description( $item ); echo '
'; echo ''; echo '
'; echo ''; wp_nonce_field( 'export_settings_file_form', 'export_settings_file_nonce' ); printf( '', __( 'Download Options', 'spyropress' ) ); echo '
'; } function spyropress_ui_import_dummy( $option_name ) { $item['label'] = __( 'Import Dummy Content: Posts, Pages, Categories', 'spyropress' ); $item['desc'] = __( 'If you are new to wordpress or have problems creating posts or pages that look like the Theme Demo you can import dummy posts and pages here that will definitely help to understand how those tasks are done.', 'spyropress' ); echo '
'; build_heading( $item, false ); echo '
'; printf( ' %2$s', esc_attr( 'Import Demo Data', 'spyropress' ), __( 'WARNING! This will overwrite any existing options, please proceed with caution!', 'spyropress' ) ); echo '
'; build_description( $item ); echo '
'; } ?>