XylotrechusZ
XylotrechusZ Shell
: /home/mjbynoyq/maspvtltd.com/wp-content/plugins/dustrial-master/framework/fields/backup/ [ drwxr-xr-x ]
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
*
* Field: Backup
*
* @since 1.0.0
* @version 1.0.0
*
*/
class DUSTRIALFramework_Option_backup extends DUSTRIALFramework_Options {
public function __construct( $field, $value = '', $unique = '' ) {
parent::__construct( $field, $value, $unique );
}
public function output() {
echo $this->element_before();
echo '<textarea name="'. $this->unique .'[import]"'. $this->element_class() . $this->element_attributes() .'></textarea>';
submit_button( esc_html__( 'Import a Backup', 'dustrial-framework' ), 'primary dustrial-import-backup', 'backup', false );
echo '<small>( '. esc_html__( 'copy-paste your backup string here', 'dustrial-framework' ).' )</small>';
echo '<hr />';
echo '<textarea name="_nonce"'. $this->element_class() . $this->element_attributes() .' disabled="disabled">'. dustrial_encode_string( get_option( $this->unique ) ) .'</textarea>';
echo '<a href="'. admin_url( 'admin-ajax.php?action=dustrial-export-options' ) .'" class="button button-primary" target="_blank">'. esc_html__( 'Export and Download Backup', 'dustrial-framework' ) .'</a>';
echo '<small>-( '. esc_html__( 'or', 'dustrial-framework' ) .' )-</small>';
submit_button( esc_html__( 'Reset All Options', 'dustrial-framework' ), 'dustrial-warning-primary dustrial-reset-confirm', $this->unique . '[resetall]', false );
echo '<small class="dustrial-text-warning">'. esc_html__( 'Please be sure for reset all of framework options.', 'dustrial-framework' ) .'</small>';
echo $this->element_after();
}
}