diff -r 372f2766ea20 -r bf1778c34b9a wp/wp-content/plugins/option-tree/includes/ot-functions-settings-page.php --- a/wp/wp-content/plugins/option-tree/includes/ot-functions-settings-page.php Mon Oct 14 18:30:03 2019 +0200 +++ b/wp/wp-content/plugins/option-tree/includes/ot-functions-settings-page.php Mon Oct 14 18:35:50 2019 +0200 @@ -1,572 +1,487 @@ - - * @copyright Copyright (c) 2013, Derek Herman - * @since 2.0 + * @package OptionTree */ -/** - * Create option type. - * - * @return string - * - * @access public - * @since 2.0 - */ -if ( ! function_exists( 'ot_type_theme_options_ui' ) ) { - - function ot_type_theme_options_ui() { - global $blog_id; - - echo '
'; - - } - +if ( ! defined( 'OT_VERSION' ) ) { + exit( 'No direct script access allowed' ); } -/** - * Import XML option type. - * - * @return string - * - * @access public - * @since 2.0 - */ -if ( ! function_exists( 'ot_type_import_xml' ) ) { - - function ot_type_import_xml() { - - echo ''; - - } - +if ( ! function_exists( 'ot_type_theme_options_ui' ) ) { + + /** + * Create option type. + * + * @access public + * @since 2.0 + */ + function ot_type_theme_options_ui() { + global $blog_id; + + echo ''; + } } -/** - * Import Settings option type. - * - * @return string - * - * @access public - * @since 2.0 - */ if ( ! function_exists( 'ot_type_import_settings' ) ) { - - function ot_type_import_settings() { - - echo ''; - - } - +if ( ! function_exists( 'ot_type_import_data' ) ) { + + /** + * Import Data option type. + * + * @access public + * @since 2.0 + */ + function ot_type_import_data() { + + echo '' . esc_html__( 'Only after you\'ve imported the Settings should you try and update your Theme Options.', 'option-tree' ) . '
'; + } + + echo '' . esc_html__( 'To import your Theme Options copy and paste what appears to be a random string of alpha numeric characters into this textarea and press the "Import Theme Options" button.', 'option-tree' ) . '
'; + + echo ''; + + echo '' . __( 'Only after you\'ve imported the Settings should you try and update your Theme Options.', 'option-tree' ) . '
'; - - echo '' . __( 'To import your Theme Options copy and paste what appears to be a random string of alpha numeric characters into this textarea and press the "Import Theme Options" button.', 'option-tree' ) . '
'; - - /* button */ - echo ''; - - echo '' . esc_html__( 'Only after you\'ve imported the Settings should you try and update your Layouts.', 'option-tree' ) . '
'; + } + + echo '' . esc_html__( 'To import your Layouts copy and paste what appears to be a random string of alpha numeric characters into this textarea and press the "Import Layouts" button. Keep in mind that when you import your layouts, the active layout\'s saved data will write over the current data set for your Theme Options.', 'option-tree' ) . '
'; + + echo ''; + + echo '' . __( 'Only after you\'ve imported the Settings should you try and update your Layouts.', 'option-tree' ) . '
'; - - echo '' . __( 'To import your Layouts copy and paste what appears to be a random string of alpha numeric characters into this textarea and press the "Import Layouts" button. Keep in mind that when you import your layouts, the active layout\'s saved data will write over the current data set for your Theme Options.', 'option-tree' ) . '
'; - - /* button */ - echo ''; - - echo '' . sprintf( $string, 'theme-options.php
', 'I18n', '' . esc_html__( 'Theme Mode', 'option-tree' ) . '' ) . '
' . sprintf( __( 'Export your Settings into a fully functional %s file. If you want to add your own custom %s text domain to the file, enter it into the text field before exporting. For more information on how to use this file read the documentation on %s. Remember, you should always check the file for errors before including it in your theme.', 'option-tree' ), 'theme-options.php
', 'I18n', '' . __( 'Theme Mode', 'option-tree' ) . '' ) . '
' . sprintf( $string, '' . esc_html__( 'OptionTree->Settings->Import', 'option-tree' ) . '
', '' . esc_html__( 'Settings', 'option-tree' ) . '
' ) . '
' . __( 'Export your Settings by highlighting this text and doing a copy/paste into a blank .txt file. Then save the file for importing into another install of WordPress later. Alternatively, you could just paste it into the OptionTree->Settings->Import
Settings textarea on another web site.', 'option-tree' ) . '
' . sprintf( $string, '' . esc_html__( 'OptionTree->Settings->Import', 'option-tree' ) . '
', '' . esc_html__( 'Theme Options', 'option-tree' ) . '
' ) . '
' . __( 'Export your Theme Options data by highlighting this text and doing a copy/paste into a blank .txt file. Then save the file for importing into another install of WordPress later. Alternatively, you could just paste it into the OptionTree->Settings->Import
Theme Options textarea on another web site.', 'option-tree' ) . '
' . sprintf( $string, '' . esc_html__( 'OptionTree->Settings->Import', 'option-tree' ) . '
', '' . esc_html__( 'Layouts', 'option-tree' ) . '
' ) . '
' . __( 'Export your Layouts by highlighting this text and doing a copy/paste into a blank .txt file. Then save the file for importing into another install of WordPress later. Alternatively, you could just paste it into the OptionTree->Settings->Import
Layouts textarea on another web site.', 'option-tree' ) . '
' . esc_html__( 'To add a new layout enter a unique lower case alphanumeric string (dashes allowed) in the text field and click "Save Layouts".', 'option-tree' ) . '
'; + echo '' . esc_html__( 'As well, you can activate, remove, and drag & drop the order; all situations require you to click "Save Layouts" for the changes to be applied.', 'option-tree' ) . '
'; + echo '' . esc_html__( 'When you create a new layout it will become active and any changes made to the Theme Options will be applied to it. If you switch back to a different layout immediately after creating a new layout that new layout will have a snapshot of the current Theme Options data attached to it.', 'option-tree' ) . '
'; + + if ( OT_SHOW_DOCS ) { + /* translators: %s: visual path to layouts overview */ + $string = esc_html__( 'Visit %s to see a more in-depth description of what layouts are and how to use them.', 'option-tree' ); + echo '' . sprintf( $string, '' . esc_html__( 'OptionTree->Documentation->Layouts Overview', 'option-tree' ) . '
' ) . '
' . __( 'To add a new layout enter a unique lower case alphanumeric string (dashes allowed) in the text field and click "Save Layouts".', 'option-tree' ) . '
'; - echo '' . __( 'As well, you can activate, remove, and drag & drop the order; all situations require you to click "Save Layouts" for the changes to be applied.', 'option-tree' ) . '
'; - echo '' . __( 'When you create a new layout it will become active and any changes made to the Theme Options will be applied to it. If you switch back to a different layout immediately after creating a new layout that new layout will have a snapshot of the current Theme Options data attached to it.', 'option-tree' ) . '
'; - if ( OT_SHOW_DOCS ) echo '' . __( 'Visit OptionTree->Documentation->Layouts Overview
to see a more in-depth description of what layouts are and how to use them.', 'option-tree' ) . '