37 $this->preferences = $preferences;
39 parent::__construct( $preferences->name,
$title,
$view );
42 add_action(
'wpdk_header_view_' . $this->
id .
'-header-view_after_title', array( $this,
'display_toolbar' ) );
65 $confirm = __(
"Are you sure to reset All preferences to default value?\n\nThis operation is not reversible!", WPDK_TEXTDOMAIN );
66 $confirm = apply_filters(
'wpdk_preferences_reset_all_confirm_message', $confirm );
68 <div
class=
"tablenav top">
69 <form
id=
"wpdk-preferences"
70 enctype=
"multipart/form-data"
74 name=
"wpdk_preferences_class"
75 value=
"<?php echo get_class( $this->preferences ) ?>" />
76 <input type=
"file" name=
"file" />
78 name=
"wpdk_preferences_import"
79 class=
"button button-primary"
80 value=
"<?php _e( 'Import', WPDK_TEXTDOMAIN ) ?>" />
83 name=
"wpdk_preferences_export"
84 class=
"button button-secondary"
85 value=
"<?php _e( 'Export', WPDK_TEXTDOMAIN ) ?>" />
88 name=
"wpdk_preferences_reset_all"
89 class=
"button button-primary right"
90 data-confirm=
"<?php echo $confirm ?>"
91 value=
"<?php _e( 'Reset All', WPDK_TEXTDOMAIN ) ?>" />
93 <?php do_action(
'wpdk_preferences_view_controller-' . $this->
id .
'-tablenav-top', $this ) ?>