options.php
7.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
if(!defined('ABSPATH')) {
die();
}
$l10n = array(
'confirm_and_run' => __('Confirm & Run Export', 'wp_all_export_plugin'),
'save_configuration' => __('Save Export Configuration', 'wp_all_export_plugin')
);
?>
<script type="text/javascript">
var wp_all_export_L10n = <?php echo json_encode($l10n); ?>;
</script>
<div class="wpallexport-step-4 wpallexport-export-options">
<h2 class="wpallexport-wp-notices"></h2>
<div class="wpallexport-wrapper">
<h2 class="wpallexport-wp-notices"></h2>
<div class="wpallexport-header">
<div class="wpallexport-logo"></div>
<div class="wpallexport-title">
<h2><?php esc_html_e('Export Settings', 'wp_all_export_plugin'); ?></h2>
</div>
<div class="wpallexport-links">
<a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php esc_html_e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs" target="_blank"><?php esc_html_e('Documentation', 'wp_all_export_plugin'); ?></a>
</div>
</div>
<div class="clear"></div>
</div>
<table class="wpallexport-layout">
<tr>
<td class="left" style="width: 100%;">
<?php do_action('pmxe_options_header', $this->isWizard, $post); ?>
<div class="ajax-console">
<?php if ($this->errors->get_error_codes()): ?>
<?php $this->error() ?>
<?php endif ?>
</div>
<div class="wpallexport-content-section" style="padding: 0 30px 0 0; overflow: hidden; margin-bottom: 0;">
<div id="filtering_result" class="wpallexport-ready-to-go">
<h3> </h3>
<div class="wp_all_export_preloader"></div>
</div>
<?php if ($this->isWizard): ?>
<form class="confirm <?php echo ! $this->isWizard ? 'edit' : '' ?>" method="post" style="float:right;">
<div style="position: relative;" class="wpae-scheduling-status">
<div class="easing-spinner" style="position: absolute; top: 7px; left: 35px; display: none;">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
<svg width="30" height="30" viewBox="0 0 1792 1792"
xmlns="http://www.w3.org/2000/svg"
style="fill: white; position: absolute; top: 14px; left: 15px; display: none;">
<path
d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"
fill="white"/>
</svg>
</div>
<?php wp_nonce_field('options', '_wpnonce_options') ?>
<input type="hidden" name="is_submitted" value="1" />
<input type="hidden" name="record-count" class="wpae-record-count" value="0" />
<input style="padding:20px 50px 20px 50px;" type="submit" class="rad10 wp_all_export_confirm_and_run" value="<?php esc_html_e('Confirm & Run Export', 'wp_all_export_plugin') ?>" />
</form>
<?php endif; ?>
</div>
<div class="clear"></div>
<form class="<?php echo ! $this->isWizard ? 'edit' : 'options' ?> choose-export-options" method="post" enctype="multipart/form-data" autocomplete="off" <?php echo ! $this->isWizard ? 'style="overflow:visible;"' : '' ?> id="wpae-options-form">
<input type="hidden" class="hierarhy-output" name="filter_rules_hierarhy" value="<?php echo esc_attr($post['filter_rules_hierarhy']);?>"/>
<?php
$addons = new \Wpae\App\Service\Addons\AddonService();
$selected_post_type = '';
if ($addons->isUserAddonActive() && XmlExportUser::$is_active):
$selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0];
endif;
if (XmlExportComment::$is_active):
$selected_post_type = 'comments';
endif;
if (empty($selected_post_type) and ! empty($post['cpt'][0]))
{
$selected_post_type = $post['cpt'][0];
}
?>
<input type="hidden" name="selected_post_type" value="<?php echo esc_attr($selected_post_type); ?>"/>
<input type="hidden" name="export_type" value="<?php echo esc_attr($post['export_type']); ?>"/>
<input type="hidden" name="taxonomy_to_export" value="<?php echo esc_attr($post['taxonomy_to_export']);?>">
<input type="hidden" name="wpml_lang" value="<?php echo empty(PMXE_Plugin::$session->wpml_lang) ? esc_attr($post['wpml_lang']) : esc_attr(PMXE_Plugin::$session->wpml_lang);?>" />
<input type="hidden" id="export_variations" name="export_variations" value="<?php echo esc_attr(XmlExportEngine::getProductVariationMode());?>" />
<input type="hidden" name="record-count" class="wpae-record-count" value="0" />
<?php //\Wpae\Pro\Filtering\FilteringFactory::render_filtering_block( $engine, $this->isWizard, $post ); ?>
<?php include(__DIR__ . "/../../../src/Scheduling/views/SchedulingOptions.php"); ?>
<?php include_once 'options/settings.php'; ?>
<?php wp_nonce_field('options', '_wpnonce_options') ?>
<input type="hidden" name="is_submitted" value="1" />
<div style="color: #425F9A; font-size: 14px; font-weight: bold; margin: 0 0 15px; line-height: 25px; text-align: center;">
<div id="no-subscription" style="display: none;">
<?php esc_html_e("Looks like you're trying out Automatic Scheduling!");?><br/>
<?php esc_html_e("Your Automatic Scheduling settings won't be saved without a subscription.");?>
</div>
</div>
<div class="wpallexport-submit-buttons" style="text-align: center; <?php if ($this->isWizard) { ?> height: 60px; <?php } ?> ">
<?php if ($this->isWizard): ?>
<a href="<?php echo esc_url(apply_filters('pmxi_options_back_link', add_query_arg('action', 'template', $this->baseUrl), $this->isWizard)); ?>" class="back rad3"><?php esc_html_e('Back', 'wp_all_export_plugin') ?></a>
<?php include(__DIR__ . "/../../../src/Scheduling/views/SaveSchedulingButton.php"); ?>
<?php else: ?>
<a href="<?php echo esc_url(apply_filters('pmxi_options_back_link', remove_query_arg('id', remove_query_arg('action', $this->baseUrl)), $this->isWizard)); ?>" class="back rad3"><?php esc_html_e('Back to Manage Exports', 'wp_all_export_plugin') ?></a>
<?php include(__DIR__ . "/../../../src/Scheduling/views/SaveSchedulingButton.php"); ?>
<?php endif ?>
</div>
</form>
<div class="wpallexport-display-columns wpallexport-margin-top-forty">
<?php echo apply_filters('wpallexport_footer', ''); ?>
</div>
</td>
</tr>
</table>
</div>
<div class="wpallexport-overlay"></div>