PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wp-all-export2
/
views
/
admin
/
manage
<?php $addons = new \Wpae\App\Service\Addons\AddonService(); ?> <div class="wpallexport-header" style="overflow:hidden; height: 70px; padding-top: 10px; margin-bottom: -15px;"> <div class="wpallexport-logo"></div> <div class="wpallexport-title"> <h3><?php _e('Manage Exports', 'wp_all_export_plugin'); ?></h3> </div> </div> <!-- TO DO: REMOVE THIS SNIPPET --> <script type="text/javascript"> (function ($, ajaxurl, wp_all_export_security) { $(document).ready(function () { $('.test').on('click', function () { var addon = 'wooco'; openUpgradeNotice(addon, $(this), '<?php echo PMXE_ROOT_URL; ?>/static/img/preloader.gif'); }); }); })(jQuery, ajaxurl, wp_all_export_security); </script> <!-- END TO DO --> <h2></h2> <!-- Do not remove --> <script type="text/javascript"> (function ($, ajaxurl, wp_all_export_security) { $(document).ready(function () { $('.open_cron_scheduling').click(function () { var itemId = $(this).data('itemid'); openSchedulingDialog(itemId, $(this), '<?php echo PMXE_ROOT_URL; ?>/static/img/preloader.gif'); }); }); })(jQuery, ajaxurl, wp_all_export_security); window.pmxeHasSchedulingSubscription = <?php echo PMXE_Plugin::hasActiveSchedulingLicense() ? 'true' : 'false'; ?>; </script> <?php if ($this->errors->get_error_codes()): ?> <?php $this->error() ?> <?php endif ?> <form method="get"> <input type="hidden" name="page" value="<?php echo esc_attr($this->input->get('page')) ?>"/> <p class="search-box"> <label for="search-input" class="screen-reader-text"><?php _e('Search Exports', 'wp_all_export_plugin') ?> :</label> <input id="search-input" type="text" name="s" value="<?php echo esc_attr($s) ?>"/> <input type="submit" class="button" value="<?php _e('Search Exports', 'wp_all_export_plugin') ?>"> </p> </form> <?php // define the columns to display, the syntax is 'internal name' => 'display name' $columns = array( 'id' => __('ID', 'wp_all_export_plugin'), 'name' => __('Name', 'wp_all_export_plugin'), 'actions' => '', 'data' => __('Query', 'wp_all_export_plugin'), //'format' => __('Format', 'wp_all_export_plugin'), 'summary' => __('Summary', 'wp_all_export_plugin'), //'registered_on' => __('Last Export', 'wp_all_export_plugin'), 'info' => __('Info & Options', 'wp_all_export_plugin'), ); //if ( ! wp_all_export_is_compatible()) unset($columns['info']); $columns = apply_filters('pmxe_manage_imports_columns', $columns); ?> <form method="post" id="import-list" action="<?php echo remove_query_arg('pmxe_nt') ?>"> <input type="hidden" name="action" value="bulk"/> <?php wp_nonce_field('bulk-exports', '_wpnonce_bulk-exports') ?> <div class="tablenav"> <div class="alignleft actions"> <select name="bulk-action"> <option value="" selected="selected"><?php _e('Bulk Actions', 'wp_all_export_plugin') ?></option> <option value="delete"><?php _e('Delete', 'wp_all_export_plugin') ?></option> </select> <input type="submit" value="<?php esc_attr_e('Apply', 'wp_all_export_plugin') ?>" name="doaction" id="doaction" class="button-secondary action"/> </div> <?php if ($page_links): ?> <div class="tablenav-pages"> <?php echo $page_links_html = sprintf( '<span class="displaying-num">' . __('Displaying %s–%s of %s', 'wp_all_export_plugin') . '</span>%s', number_format_i18n(($pagenum - 1) * $perPage + 1), number_format_i18n(min($pagenum * $perPage, $list->total())), number_format_i18n($list->total()), $page_links ) ?> </div> <?php endif ?> </div> <div class="clear"></div> <table class="widefat pmxe-admin-exports"> <thead> <tr> <th class="manage-column column-cb check-column" scope="col"> <input type="checkbox" /> </th> <?php $col_html = ''; foreach ($columns as $column_id => $column_display_name) { $column_link = "<a href='"; $order2 = 'ASC'; if ($order_by == $column_id) $order2 = ($order == 'DESC') ? 'ASC' : 'DESC'; $column_link .= esc_url(add_query_arg(array('order' => $order2, 'order_by' => $column_id), $this->baseUrl)); $column_link .= "'>{$column_display_name}</a>"; $col_html .= '<th scope="col" class="column-' . $column_id . ' ' . ($order_by == $column_id ? $order : '') . '">' . $column_link . '</th>'; } echo $col_html; ?> </tr> </thead> <tfoot> <tr> <th class="manage-column column-cb check-column" scope="col"> <input type="checkbox" /> </th> <?php echo $col_html; ?> </tr> </tfoot> <tbody id="the-pmxi-admin-import-list" class="list:pmxe-admin-exports"> <?php if ($list->isEmpty()): ?> <tr> <td colspan="<?php echo count($columns) + 1 ?>"><?php _e('No previous exports found.', 'wp_all_export_plugin') ?></td> </tr> <?php else: ?> <?php $is_secure_import = PMXE_Plugin::getInstance()->getOption('secure'); $class = ''; ?> <?php foreach ($list as $item):?> <?php $class = ('alternate' == $class) ? '' : 'alternate'; ?> <tr class="<?php echo $class; ?>" valign="middle"> <th scope="row" class="check-column"> <input type="checkbox" id="item_<?php echo $item['id'] ?>" name="items[]" value="<?php echo esc_attr($item['id']) ?>" /> </th> <?php foreach ($columns as $column_id => $column_display_name): ?> <?php switch ($column_id): case 'id': ?> <th valign="top" scope="row"> <?php echo $item['id'] ?> </th> <?php break; case 'name': ?> <td style="min-width: 325px;"> <strong><?php echo $item['friendly_name']; ?></strong> <br> <div class="row-actions"> <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> | <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> | <?php if ( ! $is_secure_import and $item['attch_id']): ?> <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> | <?php if (! empty($item['options']['bundlepath']) and PMXE_Export_Record::is_bundle_supported($item['options'])):?> <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> | <?php endif; ?> <?php endif; ?> <?php if ($is_secure_import and ! empty($item['options']['filepath'])): ?> <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> | <?php if (! empty($item['options']['bundlepath']) and PMXE_Export_Record::is_bundle_supported($item['options'])):?> <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> | <?php endif; ?> <?php endif; ?> <?php if ( ! empty($item['options']['split_large_exports']) and ! empty($item['options']['split_files_list']) ): ?> <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> | <?php endif; ?> <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> </div> </td> <?php break; case 'info': ?> <td style="min-width: 180px;"> <?php if (current_user_can(PMXE_Plugin::$capabilities)) { ?> <a <?php if (!is_array($item['options']['cpt'])) { $item['options']['cpt'] = array($item['options']['cpt']); } // Disable scheduling options for User exports if User Export Add-On isn't enabled if ( ((in_array('users', $item['options']['cpt']) || in_array('shop_customer', $item['options']['cpt'])) && !$addons->isUserAddonActive()) || ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] == 'wp_user_query' && !$addons->isUserAddonActive()) ) { ?> href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>" <?php // Disable scheduling options for WooCo exports if WooCo Export Add-On isn't enabled } else if ( (( (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()) || ($item['options']['export_type'] == 'advanced' && in_array($item['options']['exportquery']->query['post_type'], array(array('product', 'product_variation'), 'shop_order', 'shop_coupon')) && !$addons->isWooCommerceAddonActive()) ) { ?> href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>" <?php // Disable scheduling options for ACF exports if ACF Export Add-On isn't enabled } else if ( ((!in_array('comments', $item['options']['cpt']) || !in_array('shop_review', $item['options']['cpt'])) && in_array('acf', $item['options']['cc_type']) && !$addons->isAcfAddonActive()) || ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] != 'wp_comment_query' && in_array('acf', $item['options']['cc_type']) && !$addons->isAcfAddonActive()) ) { ?> href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'options'), $this->baseUrl)) ?>" <?php } else { ?> href="javascript:void(0);" class="open_cron_scheduling" <?php } ?> data-itemid="<?php echo $item['id']; ?>"><?php _e('Scheduling Options', 'wp_all_export_plugin'); ?></a> <br> <?php } ?> <?php $is_re_import_allowed = true; if ( ! empty($item['options']['ids']) ) { if (in_array('shop_order', $item['options']['cpt']) and class_exists('WooCommerce')) { $required_fields = array('woo_order' => 'id'); } else { $required_fields = array('id' => 'id'); } // re-import products 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')) { $required_fields['woo'] = '_sku'; $required_fields['cats'] = 'product_type'; $required_fields['parent'] = 'parent'; } 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')) { $required_fields['user_email'] = 'user_email'; $required_fields['user_login'] = 'user_login'; } if ($item['options']['export_type'] == 'advanced' and (empty($item['options']['wp_query_selector']) or $item['options']['wp_query_selector'] == 'wp_query')){ $required_fields['post_type'] = 'post_type'; } $defined_fields = array(); foreach ($item['options']['ids'] as $ID => $value) { foreach ($required_fields as $type => $field) { if (strtolower($item['options']['cc_type'][$ID]) == $type && strtolower($item['options']['cc_label'][$ID]) == strtolower($field)){ $defined_fields[] = $field; } } } foreach ($required_fields as $type => $field) { if ( ! in_array($field, $defined_fields) ){ $is_re_import_allowed = false; break; } } // if ($is_re_import_allowed and wp_all_export_is_compatible() and ! empty($item['options']['import_id'])){ // $import = new PMXI_Import_Record(); // $import->getById($item['options']['import_id']); // if ($import->isEmpty() or $import->parent_import_id == 0){ // $item['options']['import_id'] = 0; // } // } } ?> <?php if ( $item['options']['export_to'] == 'csv' || ( empty($item['options']['xml_template_type']) || ! in_array($item['options']['xml_template_type'], array('custom', 'XmlGoogleMerchants'))) ): ?> <?php if ( wp_all_export_is_compatible() and !empty($item['options']['import_id']) and $is_re_import_allowed): ?> <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/> <?php endif;?> <?php if ( !in_array($item['options']['wp_query_selector'], array('wp_comment_query')) and (empty($item['options']['cpt']) or ! in_array('comments', $item['options']['cpt']))) { if ( ! empty($item['options']['tpl_data'])) { //$template->getByName($item['options']['template_name']); //if ( ! $template->isEmpty() ){ ?> <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> <?php //} } } ?> <?php endif; ?> </td> <?php break; case 'data': ?> <td> <?php echo (!empty($item['options']['cpt'])) ? '<strong>' . __('Post Types: ') . '</strong> ' . implode(', ', $item['options']['cpt']) : $item['options']['wp_query']; ?> </td> <?php break; case 'format': ?> <td> <strong><?php echo ($item['options']['export_to'] == 'csv' && ! empty($item['options']['export_to_sheet'])) ? $item['options']['export_to_sheet'] : $item['options']['export_to']; ?></strong> </td> <?php break; case 'registered_on': ?> <td> <?php if ('0000-00-00 00:00:00' == $item['registered_on']): ?> <em>never</em> <?php else: ?> <?php echo mysql2date(__('Y/m/d g:i a', 'wp_all_export_plugin'), $item['registered_on']) ?> <?php endif ?> </td> <?php break; case 'summary': ?> <td> <?php if ($item['triggered'] and ! $item['processing']){ _e('triggered with cron', 'wp_all_export_plugin'); if ($item['last_activity'] != '0000-00-00 00:00:00'){ $diff = ceil((time() - strtotime($item['last_activity']))/60); ?> <br> <span <?php if ($diff >= 10) echo 'style="color:red;"';?>> <?php printf(__('last activity %s ago', 'wp_all_export_plugin'), human_time_diff(strtotime($item['last_activity']), time())); ?> </span> <?php } } elseif ($item['processing']){ _e('currently processing with cron', 'wp_all_export_plugin'); echo '<br/>'; printf('Records Processed %s', $item['exported']); if ($item['last_activity'] != '0000-00-00 00:00:00'){ $diff = ceil((time() - strtotime($item['last_activity']))/60); ?> <br> <span <?php if ($diff >= 10) echo 'style="color:red;"';?>> <?php printf(__('last activity %s ago', 'wp_all_export_plugin'), human_time_diff(strtotime($item['last_activity']), time())); ?> </span> <?php } } elseif($item['executing']){ _e('Export currently in progress', 'wp_all_export_plugin'); if ($item['last_activity'] != '0000-00-00 00:00:00'){ $diff = ceil((time() - strtotime($item['last_activity']))/60); ?> <br> <span <?php if ($diff >= 10) echo 'style="color:red;"';?>> <?php printf(__('last activity %s ago', 'wp_all_export_plugin'), human_time_diff(strtotime($item['last_activity']), time())); ?> </span> <?php } } elseif($item['canceled'] and $item['canceled_on'] != '0000-00-00 00:00:00'){ printf(__('Export Attempt at %s', 'wp_all_export_plugin'), get_date_from_gmt($item['canceled_on'], "m/d/Y g:i a")); echo '<br/>'; _e('Export canceled', 'wp_all_export_plugin'); } else{ 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/>'; printf(__('%d Records Exported', 'wp_all_export_plugin'), $item['exported']); echo '<br/>'; $export_to = ($item['options']['export_to'] == 'csv' && ! empty($item['options']['export_to_sheet'])) ? $item['options']['export_to_sheet'] : $item['options']['export_to']; printf(__('Format: %s', 'wp_all_export_plugin'), $export_to); echo '<br/>'; //printf(__('%d records', 'wp_all_export_plugin'), $item['post_count']); } 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'])){ ?> <strong><?php _e('settings edited since last run', 'wp_all_export_plugin'); ?></strong> <?php } ?> </td> <?php break; case 'actions': ?> <td style="min-width: 130px;"> <?php if ( ! $item['processing'] and ! $item['executing'] ): ?> <!--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--> <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> <?php elseif ($item['processing']) : ?> <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> <?php elseif ($item['executing']) : ?> <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> <?php endif; ?> </td> <?php break; default: ?> <td> <?php do_action('pmxe_manage_imports_column', $column_id, $item); ?> </td> <?php break; endswitch; ?> <?php endforeach; ?> </tr> <?php endforeach; ?> <?php endif ?> </tbody> </table> <div class="tablenav"> <?php if ($page_links): ?><div class="tablenav-pages"><?php echo $page_links_html ?></div><?php endif ?> <div class="alignleft actions"> <select name="bulk-action2"> <option value="" selected="selected"><?php _e('Bulk Actions', 'wp_all_export_plugin') ?></option> <?php if ( empty($type) or 'trash' != $type): ?> <option value="delete"><?php _e('Delete', 'wp_all_export_plugin') ?></option> <?php else: ?> <option value="restore"><?php _e('Restore', 'wp_all_export_plugin')?></option> <option value="delete"><?php _e('Delete Permanently', 'wp_all_export_plugin')?></option> <?php endif ?> </select> <input type="submit" value="<?php esc_attr_e('Apply', 'wp_all_export_plugin') ?>" name="doaction2" id="doaction2" class="button-secondary action" /> </div> </div> <div class="clear"></div> <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> </form> <div class="wpallexport-overlay"></div> <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;"> <img style="margin-top: 45%;" src="<?php echo PMXE_ROOT_URL; ?>/static/img/preloader.gif" /> </div> <div class="wpallexport-super-overlay"></div> <fieldset class="optionsset column rad4 wp-all-export-scheduling-help"> <div class="title"> <span style="font-size:1.5em;" class="wpallexport-add-row-title"><?php _e('Automatic Scheduling', 'wp_all_export_plugin'); ?></span> </div> <?php include_once __DIR__.'/../../../src/Scheduling/views/SchedulingHelp.php'; ?> </fieldset>
[+]
..
[-] update.php
[edit]
[-] templates.php
[edit]
[-] index.php
[edit]
[-] delete.php
[edit]
[-] scheduling.php
[edit]
[-] bulk.php
[edit]