bulk.php
10 years ago
delete.php
4 years ago
index.php
4 years ago
scheduling.php
5 years ago
templates.php
4 years ago
update.php
4 years ago
index.php
468 lines
| 1 | <?php |
| 2 | $addons = new \Wpae\App\Service\Addons\AddonService(); |
| 3 | ?> |
| 4 | |
| 5 | <div class="wpallexport-header" style="overflow:hidden; height: 70px; padding-top: 10px; margin-bottom: -15px;"> |
| 6 | <div class="wpallexport-logo"></div> |
| 7 | <div class="wpallexport-title"> |
| 8 | <h3><?php _e('Manage Exports', 'wp_all_export_plugin'); ?></h3> |
| 9 | </div> |
| 10 | </div> |
| 11 | <!-- TO DO: REMOVE THIS SNIPPET --> |
| 12 | <script type="text/javascript"> |
| 13 | (function ($, ajaxurl, wp_all_export_security) { |
| 14 | |
| 15 | $(document).ready(function () { |
| 16 | $('.test').on('click', function () { |
| 17 | |
| 18 | var addon = 'wooco'; |
| 19 | openUpgradeNotice(addon, $(this), '<?php echo PMXE_ROOT_URL; ?>/static/img/preloader.gif'); |
| 20 | }); |
| 21 | }); |
| 22 | })(jQuery, ajaxurl, wp_all_export_security); |
| 23 | </script> |
| 24 | <!-- END TO DO --> |
| 25 | <h2></h2> <!-- Do not remove --> |
| 26 | |
| 27 | <script type="text/javascript"> |
| 28 | (function ($, ajaxurl, wp_all_export_security) { |
| 29 | |
| 30 | $(document).ready(function () { |
| 31 | $('.open_cron_scheduling').click(function () { |
| 32 | |
| 33 | var itemId = $(this).data('itemid'); |
| 34 | openSchedulingDialog(itemId, $(this), '<?php echo PMXE_ROOT_URL; ?>/static/img/preloader.gif'); |
| 35 | }); |
| 36 | }); |
| 37 | })(jQuery, ajaxurl, wp_all_export_security); |
| 38 | |
| 39 | window.pmxeHasSchedulingSubscription = <?php echo PMXE_Plugin::hasActiveSchedulingLicense() ? 'true' : 'false'; ?>; |
| 40 | </script> |
| 41 | <?php if ($this->errors->get_error_codes()): ?> |
| 42 | <?php $this->error() ?> |
| 43 | <?php endif ?> |
| 44 | |
| 45 | <form method="get"> |
| 46 | <input type="hidden" name="page" value="<?php echo esc_attr($this->input->get('page')) ?>"/> |
| 47 | <p class="search-box"> |
| 48 | <label for="search-input" class="screen-reader-text"><?php _e('Search Exports', 'wp_all_export_plugin') ?> |
| 49 | :</label> |
| 50 | <input id="search-input" type="text" name="s" value="<?php echo esc_attr($s) ?>"/> |
| 51 | <input type="submit" class="button" value="<?php _e('Search Exports', 'wp_all_export_plugin') ?>"> |
| 52 | </p> |
| 53 | </form> |
| 54 | |
| 55 | <?php |
| 56 | // define the columns to display, the syntax is 'internal name' => 'display name' |
| 57 | $columns = array( |
| 58 | 'id' => __('ID', 'wp_all_export_plugin'), |
| 59 | 'name' => __('Name', 'wp_all_export_plugin'), |
| 60 | 'actions' => '', |
| 61 | 'data' => __('Query', 'wp_all_export_plugin'), |
| 62 | //'format' => __('Format', 'wp_all_export_plugin'), |
| 63 | 'summary' => __('Summary', 'wp_all_export_plugin'), |
| 64 | //'registered_on' => __('Last Export', 'wp_all_export_plugin'), |
| 65 | 'info' => __('Info & Options', 'wp_all_export_plugin'), |
| 66 | ); |
| 67 | |
| 68 | //if ( ! wp_all_export_is_compatible()) unset($columns['info']); |
| 69 | |
| 70 | $columns = apply_filters('pmxe_manage_imports_columns', $columns); |
| 71 | |
| 72 | ?> |
| 73 | |
| 74 | <form method="post" id="import-list" action="<?php echo remove_query_arg('pmxe_nt') ?>"> |
| 75 | |
| 76 | <input type="hidden" name="action" value="bulk"/> |
| 77 | <?php wp_nonce_field('bulk-exports', '_wpnonce_bulk-exports') ?> |
| 78 | |
| 79 | <div class="tablenav"> |
| 80 | <div class="alignleft actions"> |
| 81 | <select name="bulk-action"> |
| 82 | <option value="" selected="selected"><?php _e('Bulk Actions', 'wp_all_export_plugin') ?></option> |
| 83 | <option value="delete"><?php _e('Delete', 'wp_all_export_plugin') ?></option> |
| 84 | </select> |
| 85 | <input type="submit" value="<?php esc_attr_e('Apply', 'wp_all_export_plugin') ?>" name="doaction" |
| 86 | id="doaction" class="button-secondary action"/> |
| 87 | </div> |
| 88 | |
| 89 | <?php if ($page_links): ?> |
| 90 | <div class="tablenav-pages"> |
| 91 | <?php echo $page_links_html = sprintf( |
| 92 | '<span class="displaying-num">' . __('Displaying %s–%s of %s', 'wp_all_export_plugin') . '</span>%s', |
| 93 | number_format_i18n(($pagenum - 1) * $perPage + 1), |
| 94 | number_format_i18n(min($pagenum * $perPage, $list->total())), |
| 95 | number_format_i18n($list->total()), |
| 96 | $page_links |
| 97 | ) ?> |
| 98 | </div> |
| 99 | <?php endif ?> |
| 100 | </div> |
| 101 | <div class="clear"></div> |
| 102 | |
| 103 | <table class="widefat pmxe-admin-exports"> |
| 104 | <thead> |
| 105 | <tr> |
| 106 | <th class="manage-column column-cb check-column" scope="col"> |
| 107 | <input type="checkbox" /> |
| 108 | </th> |
| 109 | <?php |
| 110 | $col_html = ''; |
| 111 | foreach ($columns as $column_id => $column_display_name) { |
| 112 | $column_link = "<a href='"; |
| 113 | $order2 = 'ASC'; |
| 114 | if ($order_by == $column_id) |
| 115 | $order2 = ($order == 'DESC') ? 'ASC' : 'DESC'; |
| 116 | |
| 117 | $column_link .= esc_url(add_query_arg(array('order' => $order2, 'order_by' => $column_id), $this->baseUrl)); |
| 118 | $column_link .= "'>{$column_display_name}</a>"; |
| 119 | $col_html .= '<th scope="col" class="column-' . $column_id . ' ' . ($order_by == $column_id ? $order : '') . '">' . $column_link . '</th>'; |
| 120 | } |
| 121 | echo $col_html; |
| 122 | ?> |
| 123 | </tr> |
| 124 | </thead> |
| 125 | <tfoot> |
| 126 | <tr> |
| 127 | <th class="manage-column column-cb check-column" scope="col"> |
| 128 | <input type="checkbox" /> |
| 129 | </th> |
| 130 | <?php echo $col_html; ?> |
| 131 | </tr> |
| 132 | </tfoot> |
| 133 | <tbody id="the-pmxi-admin-import-list" class="list:pmxe-admin-exports"> |
| 134 | <?php if ($list->isEmpty()): ?> |
| 135 | <tr> |
| 136 | <td colspan="<?php echo count($columns) + 1 ?>"><?php _e('No previous exports found.', 'wp_all_export_plugin') ?></td> |
| 137 | </tr> |
| 138 | <?php else: ?> |
| 139 | <?php |
| 140 | |
| 141 | $is_secure_import = PMXE_Plugin::getInstance()->getOption('secure'); |
| 142 | |
| 143 | $class = ''; |
| 144 | ?> |
| 145 | <?php foreach ($list as $item):?> |
| 146 | <?php $class = ('alternate' == $class) ? '' : 'alternate'; ?> |
| 147 | <tr class="<?php echo $class; ?>" valign="middle"> |
| 148 | <th scope="row" class="check-column"> |
| 149 | <input type="checkbox" id="item_<?php echo $item['id'] ?>" name="items[]" value="<?php echo esc_attr($item['id']) ?>" /> |
| 150 | </th> |
| 151 | <?php foreach ($columns as $column_id => $column_display_name): ?> |
| 152 | <?php |
| 153 | switch ($column_id): |
| 154 | case 'id': |
| 155 | ?> |
| 156 | <th valign="top" scope="row"> |
| 157 | <?php echo $item['id'] ?> |
| 158 | </th> |
| 159 | <?php |
| 160 | break; |
| 161 | case 'name': |
| 162 | ?> |
| 163 | <td style="min-width: 325px;"> |
| 164 | <strong><?php echo wp_all_export_clear_xss($item['friendly_name']); ?></strong> <br> |
| 165 | <div class="row-actions"> |
| 166 | <span class="edit"><a class="edit" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'template'), $this->baseUrl)) ?>"><?php _e('Edit Export', 'wp_all_export_plugin') ?></a></span> | |
| 167 | <span class="edit"><a class="edit" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>"><?php _e('Export Settings', 'wp_all_export_plugin') ?></a></span> | |
| 168 | |
| 169 | <?php if ( ! $is_secure_import and $item['attch_id']): ?> |
| 170 | <span class="update"><a class="update" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'get_file', '_wpnonce' => wp_create_nonce( '_wpnonce-download_feed' )), $this->baseUrl)) ?>"><?php echo strtoupper(wp_all_export_get_export_format($item['options'])); ?></a></span> | |
| 171 | <?php if (! empty($item['options']['bundlepath']) and PMXE_Export_Record::is_bundle_supported($item['options'])):?> |
| 172 | <span class="update"><a class="update" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'bundle', '_wpnonce' => wp_create_nonce( '_wpnonce-download_bundle' )), $this->baseUrl)) ?>"><?php _e('Bundle', 'wp_all_export_plugin'); ?></a></span> | |
| 173 | <?php endif; ?> |
| 174 | <?php endif; ?> |
| 175 | |
| 176 | <?php if ($is_secure_import and ! empty($item['options']['filepath'])): ?> |
| 177 | <span class="update"><a class="update" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'get_file', '_wpnonce' => wp_create_nonce( '_wpnonce-download_feed' )), $this->baseUrl)) ?>"><?php echo strtoupper(wp_all_export_get_export_format($item['options'])); ?></a></span> | |
| 178 | <?php if (! empty($item['options']['bundlepath']) and PMXE_Export_Record::is_bundle_supported($item['options'])):?> |
| 179 | <span class="update"><a class="update" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'bundle', '_wpnonce' => wp_create_nonce( '_wpnonce-download_bundle' )), $this->baseUrl)) ?>"><?php _e('Bundle', 'wp_all_export_plugin'); ?></a></span> | |
| 180 | <?php endif; ?> |
| 181 | <?php endif; ?> |
| 182 | |
| 183 | <?php if ( ! empty($item['options']['split_large_exports']) and ! empty($item['options']['split_files_list']) ): ?> |
| 184 | <span class="update"><a class="update" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'split_bundle', '_wpnonce' => wp_create_nonce( '_wpnonce-download_split_bundle' )), $this->baseUrl)) ?>"><?php printf(__('Split %ss', 'wp_all_export_plugin'), strtoupper(wp_all_export_get_export_format($item['options']))); ?></a></span> | |
| 185 | <?php endif; ?> |
| 186 | |
| 187 | <span class="delete"><a class="delete" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'delete'), $this->baseUrl)) ?>"><?php _e('Delete', 'wp_all_export_plugin') ?></a></span> |
| 188 | </div> |
| 189 | </td> |
| 190 | <?php |
| 191 | break; |
| 192 | case 'info': |
| 193 | ?> |
| 194 | <td style="min-width: 180px;"> |
| 195 | <?php if (current_user_can(PMXE_Plugin::$capabilities)) { ?> |
| 196 | <a |
| 197 | <?php |
| 198 | if (!is_array($item['options']['cpt'])) { |
| 199 | $item['options']['cpt'] = array($item['options']['cpt']); |
| 200 | } |
| 201 | // Disable scheduling options for User exports if User Export Add-On isn't enabled |
| 202 | if ( |
| 203 | ((in_array('users', $item['options']['cpt']) || in_array('shop_customer', $item['options']['cpt'])) && !$addons->isUserAddonActive()) || |
| 204 | ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] == 'wp_user_query' && !$addons->isUserAddonActive()) |
| 205 | ) { |
| 206 | ?> |
| 207 | href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>" |
| 208 | <?php |
| 209 | // Disable scheduling options for WooCo exports if WooCo Export Add-On isn't enabled |
| 210 | } else if ( |
| 211 | (( (in_array('product', $item['options']['cpt']) && in_array('product_variation', $item['options']['cpt'])) || in_array('shop_order', $item['options']['cpt']) || in_array('shop_coupon', $item['options']['cpt']) || in_array('shop_review', $item['options']['cpt']) ) && !$addons->isWooCommerceAddonActive()) |
| 212 | || |
| 213 | ($item['options']['export_type'] == 'advanced' && in_array($item['options']['exportquery']->query['post_type'], array(array('product', 'product_variation'), 'shop_order', 'shop_coupon')) && !$addons->isWooCommerceAddonActive()) |
| 214 | ) { |
| 215 | ?> |
| 216 | href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>" |
| 217 | <?php |
| 218 | // Disable scheduling options for ACF exports if ACF Export Add-On isn't enabled |
| 219 | } else if ( |
| 220 | ((!in_array('comments', $item['options']['cpt']) || !in_array('shop_review', $item['options']['cpt'])) && in_array('acf', $item['options']['cc_type']) && !$addons->isAcfAddonActive()) || |
| 221 | ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] != 'wp_comment_query' && in_array('acf', $item['options']['cc_type']) && !$addons->isAcfAddonActive()) |
| 222 | ) { |
| 223 | ?> |
| 224 | href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>" |
| 225 | <?php |
| 226 | } else { |
| 227 | |
| 228 | ?> |
| 229 | href="javascript:void(0);" class="open_cron_scheduling" |
| 230 | |
| 231 | <?php } ?> |
| 232 | data-itemid="<?php echo $item['id']; ?>"><?php _e('Scheduling Options', 'wp_all_export_plugin'); ?></a> |
| 233 | <br> |
| 234 | <?php } ?> |
| 235 | <?php |
| 236 | $is_re_import_allowed = true; |
| 237 | if ( ! empty($item['options']['ids']) ) |
| 238 | { |
| 239 | if (in_array('shop_order', $item['options']['cpt']) and class_exists('WooCommerce')) { |
| 240 | $required_fields = array('woo_order' => 'id'); |
| 241 | } |
| 242 | else { |
| 243 | $required_fields = array('id' => 'id'); |
| 244 | } |
| 245 | // re-import products |
| 246 | if ((in_array('product', $item['options']['cpt']) or $item['options']['export_type'] == 'advanced') and class_exists('WooCommerce') and (empty($item['options']['wp_query_selector']) or $item['options']['wp_query_selector'] == 'wp_query')) { |
| 247 | $required_fields['woo'] = '_sku'; |
| 248 | $required_fields['cats'] = 'product_type'; |
| 249 | $required_fields['parent'] = 'parent'; |
| 250 | } |
| 251 | if ((in_array('users', $item['options']['cpt']) or $item['options']['export_type'] == 'advanced') and (!empty($item['options']['wp_query_selector']) and $item['options']['wp_query_selector'] == 'wp_user_query')) { |
| 252 | $required_fields['user_email'] = 'user_email'; |
| 253 | $required_fields['user_login'] = 'user_login'; |
| 254 | } |
| 255 | if ($item['options']['export_type'] == 'advanced' and (empty($item['options']['wp_query_selector']) or $item['options']['wp_query_selector'] == 'wp_query')){ |
| 256 | $required_fields['post_type'] = 'post_type'; |
| 257 | } |
| 258 | $defined_fields = array(); |
| 259 | foreach ($item['options']['ids'] as $ID => $value) |
| 260 | { |
| 261 | foreach ($required_fields as $type => $field) |
| 262 | { |
| 263 | if (strtolower($item['options']['cc_type'][$ID]) == $type && strtolower($item['options']['cc_label'][$ID]) == strtolower($field)){ |
| 264 | $defined_fields[] = $field; |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | foreach ($required_fields as $type => $field) { |
| 270 | if ( ! in_array($field, $defined_fields) ){ |
| 271 | $is_re_import_allowed = false; |
| 272 | break; |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | // if ($is_re_import_allowed and wp_all_export_is_compatible() and ! empty($item['options']['import_id'])){ |
| 277 | // $import = new PMXI_Import_Record(); |
| 278 | // $import->getById($item['options']['import_id']); |
| 279 | // if ($import->isEmpty() or $import->parent_import_id == 0){ |
| 280 | // $item['options']['import_id'] = 0; |
| 281 | // } |
| 282 | // } |
| 283 | } |
| 284 | |
| 285 | ?> |
| 286 | <?php if ( $item['options']['export_to'] == 'csv' || ( empty($item['options']['xml_template_type']) || ! in_array($item['options']['xml_template_type'], array('custom', 'XmlGoogleMerchants'))) ): ?> |
| 287 | <?php if ( wp_all_export_is_compatible() and !empty($item['options']['import_id']) and $is_re_import_allowed): ?> |
| 288 | <a href="<?php echo add_query_arg(array('page' => 'pmxi-admin-import', 'id' => $item['options']['import_id'], 'deligate' => 'wpallexport'), remove_query_arg('page', $this->baseUrl)); ?>"><?php _e("Import with WP All Import", "wp_all_export_plugin"); ?></a><br/> |
| 289 | <?php endif;?> |
| 290 | <?php |
| 291 | if ( !in_array($item['options']['wp_query_selector'], array('wp_comment_query')) and (empty($item['options']['cpt']) or ! in_array('comments', $item['options']['cpt']))) { |
| 292 | if ( ! empty($item['options']['tpl_data'])) { |
| 293 | //$template->getByName($item['options']['template_name']); |
| 294 | //if ( ! $template->isEmpty() ){ |
| 295 | ?> |
| 296 | <a href="<?php echo add_query_arg(array('id' => $item['id'], 'action' => 'templates'), $this->baseUrl)?>"><?php _e('Download Import Templates', 'wp_all_export_plugin'); ?></a> |
| 297 | <?php |
| 298 | //} |
| 299 | } |
| 300 | } |
| 301 | ?> |
| 302 | <?php endif; ?> |
| 303 | </td> |
| 304 | <?php |
| 305 | break; |
| 306 | case 'data': |
| 307 | ?> |
| 308 | <td> |
| 309 | <?php echo (!empty($item['options']['cpt'])) ? '<strong>' . __('Post Types: ') . '</strong> ' . implode(', ', $item['options']['cpt']) : $item['options']['wp_query']; ?> |
| 310 | </td> |
| 311 | <?php |
| 312 | break; |
| 313 | case 'format': |
| 314 | ?> |
| 315 | <td> |
| 316 | <strong><?php echo ($item['options']['export_to'] == 'csv' && ! empty($item['options']['export_to_sheet'])) ? $item['options']['export_to_sheet'] : $item['options']['export_to']; ?></strong> |
| 317 | </td> |
| 318 | <?php |
| 319 | break; |
| 320 | case 'registered_on': |
| 321 | ?> |
| 322 | <td> |
| 323 | <?php if ('0000-00-00 00:00:00' == $item['registered_on']): ?> |
| 324 | <em>never</em> |
| 325 | <?php else: ?> |
| 326 | <?php echo mysql2date(__('Y/m/d g:i a', 'wp_all_export_plugin'), $item['registered_on']) ?> |
| 327 | <?php endif ?> |
| 328 | </td> |
| 329 | <?php |
| 330 | break; |
| 331 | case 'summary': |
| 332 | ?> |
| 333 | <td> |
| 334 | <?php |
| 335 | if ($item['triggered'] and ! $item['processing']){ |
| 336 | _e('triggered with cron', 'wp_all_export_plugin'); |
| 337 | if ($item['last_activity'] != '0000-00-00 00:00:00'){ |
| 338 | $diff = ceil((time() - strtotime($item['last_activity']))/60); |
| 339 | ?> |
| 340 | <br> |
| 341 | <span <?php if ($diff >= 10) echo 'style="color:red;"';?>> |
| 342 | <?php |
| 343 | printf(__('last activity %s ago', 'wp_all_export_plugin'), human_time_diff(strtotime($item['last_activity']), time())); |
| 344 | ?> |
| 345 | </span> |
| 346 | <?php |
| 347 | } |
| 348 | } |
| 349 | elseif ($item['processing']){ |
| 350 | _e('currently processing with cron', 'wp_all_export_plugin'); echo '<br/>'; |
| 351 | printf('Records Processed %s', $item['exported']); |
| 352 | if ($item['last_activity'] != '0000-00-00 00:00:00'){ |
| 353 | $diff = ceil((time() - strtotime($item['last_activity']))/60); |
| 354 | ?> |
| 355 | <br> |
| 356 | <span <?php if ($diff >= 10) echo 'style="color:red;"';?>> |
| 357 | <?php |
| 358 | printf(__('last activity %s ago', 'wp_all_export_plugin'), human_time_diff(strtotime($item['last_activity']), time())); |
| 359 | ?> |
| 360 | </span> |
| 361 | <?php |
| 362 | } |
| 363 | } |
| 364 | elseif($item['executing']){ |
| 365 | _e('Export currently in progress', 'wp_all_export_plugin'); |
| 366 | if ($item['last_activity'] != '0000-00-00 00:00:00'){ |
| 367 | $diff = ceil((time() - strtotime($item['last_activity']))/60); |
| 368 | ?> |
| 369 | <br> |
| 370 | <span <?php if ($diff >= 10) echo 'style="color:red;"';?>> |
| 371 | <?php |
| 372 | printf(__('last activity %s ago', 'wp_all_export_plugin'), human_time_diff(strtotime($item['last_activity']), time())); |
| 373 | ?> |
| 374 | </span> |
| 375 | <?php |
| 376 | } |
| 377 | } |
| 378 | elseif($item['canceled'] and $item['canceled_on'] != '0000-00-00 00:00:00'){ |
| 379 | printf(__('Export Attempt at %s', 'wp_all_export_plugin'), get_date_from_gmt($item['canceled_on'], "m/d/Y g:i a")); echo '<br/>'; |
| 380 | _e('Export canceled', 'wp_all_export_plugin'); |
| 381 | } |
| 382 | else{ |
| 383 | printf(__('Last run: %s', 'wp_all_export_plugin'), ($item['registered_on'] == '0000-00-00 00:00:00') ? __('never', 'wp_all_export_plugin') : get_date_from_gmt($item['registered_on'], "m/d/Y g:i a")); echo '<br/>'; |
| 384 | printf(__('%d Records Exported', 'wp_all_export_plugin'), $item['exported']); echo '<br/>'; |
| 385 | $export_to = ($item['options']['export_to'] == 'csv' && ! empty($item['options']['export_to_sheet'])) ? $item['options']['export_to_sheet'] : $item['options']['export_to']; |
| 386 | printf(__('Format: %s', 'wp_all_export_plugin'), $export_to); echo '<br/>'; |
| 387 | //printf(__('%d records', 'wp_all_export_plugin'), $item['post_count']); |
| 388 | } |
| 389 | |
| 390 | if ($item['settings_update_on'] != '0000-00-00 00:00:00' and $item['last_activity'] != '0000-00-00 00:00:00' and strtotime($item['settings_update_on']) > strtotime($item['last_activity'])){ |
| 391 | ?> |
| 392 | <strong><?php _e('settings edited since last run', 'wp_all_export_plugin'); ?></strong> |
| 393 | <?php |
| 394 | } |
| 395 | |
| 396 | ?> |
| 397 | </td> |
| 398 | <?php |
| 399 | break; |
| 400 | case 'actions': |
| 401 | ?> |
| 402 | <td style="min-width: 130px;"> |
| 403 | <?php if ( ! $item['processing'] and ! $item['executing'] ): ?> |
| 404 | <!--h2 style="float:left;"><a class="add-new-h2" href="<?php echo add_query_arg(array('id' => $item['id'], 'action' => 'edit'), $this->baseUrl); ?>"><?php _e('Edit', 'wp_all_export_plugin'); ?></a></h2--> |
| 405 | <h2 style="float:left;"><a class="add-new-h2" href="<?php echo add_query_arg(array('id' => $item['id'], 'action' => 'update'), $this->baseUrl); ?>"><?php _e('Run Export', 'wp_all_export_plugin'); ?></a></h2> |
| 406 | <?php elseif ($item['processing']) : ?> |
| 407 | <h2 style="float:left;"><a class="add-new-h2" href="<?php echo add_query_arg(array('id' => $item['id'], 'action' => 'cancel'), $this->baseUrl); ?>"><?php _e('Cancel Cron', 'wp_all_export_plugin'); ?></a></h2> |
| 408 | <?php elseif ($item['executing']) : ?> |
| 409 | <h2 style="float:left;"><a class="add-new-h2" href="<?php echo add_query_arg(array('id' => $item['id'], 'action' => 'cancel'), $this->baseUrl); ?>"><?php _e('Cancel', 'wp_all_export_plugin'); ?></a></h2> |
| 410 | <?php endif; ?> |
| 411 | </td> |
| 412 | <?php |
| 413 | break; |
| 414 | default: |
| 415 | ?> |
| 416 | <td> |
| 417 | <?php do_action('pmxe_manage_imports_column', $column_id, $item); ?> |
| 418 | </td> |
| 419 | <?php |
| 420 | break; |
| 421 | endswitch; |
| 422 | ?> |
| 423 | <?php endforeach; ?> |
| 424 | </tr> |
| 425 | <?php endforeach; ?> |
| 426 | <?php endif ?> |
| 427 | </tbody> |
| 428 | </table> |
| 429 | |
| 430 | <div class="tablenav"> |
| 431 | <?php if ($page_links): ?><div class="tablenav-pages"><?php echo $page_links_html ?></div><?php endif ?> |
| 432 | |
| 433 | <div class="alignleft actions"> |
| 434 | <select name="bulk-action2"> |
| 435 | <option value="" selected="selected"><?php _e('Bulk Actions', 'wp_all_export_plugin') ?></option> |
| 436 | <?php if ( empty($type) or 'trash' != $type): ?> |
| 437 | <option value="delete"><?php _e('Delete', 'wp_all_export_plugin') ?></option> |
| 438 | <?php else: ?> |
| 439 | <option value="restore"><?php _e('Restore', 'wp_all_export_plugin')?></option> |
| 440 | <option value="delete"><?php _e('Delete Permanently', 'wp_all_export_plugin')?></option> |
| 441 | <?php endif ?> |
| 442 | </select> |
| 443 | <input type="submit" value="<?php esc_attr_e('Apply', 'wp_all_export_plugin') ?>" name="doaction2" id="doaction2" class="button-secondary action" /> |
| 444 | </div> |
| 445 | </div> |
| 446 | <div class="clear"></div> |
| 447 | |
| 448 | <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> |
| 449 | |
| 450 | </form> |
| 451 | <div class="wpallexport-overlay"></div> |
| 452 | <div class="wpallexport-loader" style="border-radius: 5px; z-index: 999999; display:none; position: fixed;top: 200px; left: 50%; width: 100px;height: 100px;background-color: #fff; text-align: center;"> |
| 453 | <img style="margin-top: 45%;" src="<?php echo PMXE_ROOT_URL; ?>/static/img/preloader.gif" /> |
| 454 | </div> |
| 455 | |
| 456 | |
| 457 | <div class="wpallexport-super-overlay"></div> |
| 458 | |
| 459 | <fieldset class="optionsset column rad4 wp-all-export-scheduling-help"> |
| 460 | |
| 461 | <div class="title"> |
| 462 | <span style="font-size:1.5em;" class="wpallexport-add-row-title"><?php _e('Automatic Scheduling', 'wp_all_export_plugin'); ?></span> |
| 463 | </div> |
| 464 | |
| 465 | <?php |
| 466 | include_once __DIR__.'/../../../src/Scheduling/views/SchedulingHelp.php'; |
| 467 | ?> |
| 468 | </fieldset> |