Changeset 2868132
- Timestamp:
- 02/20/2023 11:24:26 AM (2 years ago)
- Location:
- wp-all-export
- Files:
-
- 426 added
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-all-export/trunk/actions/wp_ajax_scheduling_dialog_content.php
r2830466 r2868132 288 288 updateSaveButtonState(); 289 289 290 $('input[name="scheduling_enable"]'). change(function(){290 $('input[name="scheduling_enable"]').on('change', function(){ 291 291 updateSaveButtonState(); 292 292 }); … … 365 365 }; 366 366 367 $('#weekly li'). click(function () {367 $('#weekly li').on('click', function () { 368 368 369 369 $('#weekly li').removeClass('error'); … … 386 386 }); 387 387 388 $('#monthly li'). click(function () {388 $('#monthly li').on('click', function () { 389 389 390 390 $('#monthly li').removeClass('error'); … … 395 395 }); 396 396 397 $('input[name="scheduling_run_on"]'). change(function () {397 $('input[name="scheduling_run_on"]').on('change', function () { 398 398 var val = $('input[name="scheduling_run_on"]:checked').val(); 399 399 if (val == "weekly") { … … 440 440 $('#timezone').chosen({width: '284px'}); 441 441 442 $('.wpae-save-button'). click(function (e) {442 $('.wpae-save-button').on('click', function (e) { 443 443 444 444 var initialValue = $(this).find('.save-text').html(); … … 536 536 var saveSubscription = false; 537 537 538 $('#add-subscription'). click(function () {538 $('#add-subscription').on('click', function () { 539 539 540 540 $('#add-subscription-field').show(); … … 553 553 }); 554 554 555 $('#subscribe-button'). click(function () {555 $('#subscribe-button').on('click', function () { 556 556 557 557 if (saveSubscription) { … … 619 619 }); 620 620 // help scheduling template 621 $('.help_scheduling'). click(function () {621 $('.help_scheduling').on('click', function () { 622 622 623 623 $('.wp-all-export-scheduling-help').css('left', ($(document).width() / 2) - 255).show(); … … 629 629 }); 630 630 631 $('.wp_all_export_scheduling_help').find('h3'). unbind('click').click(function () {631 $('.wp_all_export_scheduling_help').find('h3').off('click').on('click', function () { 632 632 var $action = $(this).find('span').html(); 633 633 $('.wp_all_export_scheduling_help').find('h3').each(function () { … … 645 645 }); 646 646 647 $('.wpallexport-super-overlay'). click(function () {647 $('.wpallexport-super-overlay').on('click', function () { 648 648 $('.wp-all-export-scheduling-help, .wp-all-export-scheduling-help-inner').hide(); 649 649 $('.wp-pointer').show(); -
wp-all-export/trunk/actions/wp_ajax_wpae_filtering.php
r2654009 r2868132 47 47 $response['html'] = ob_get_clean(); 48 48 49 if ( (XmlExportEngine::$is_user_export && $post['cpt'] != 'shop_customer' && !$addons->isUserAddonActive()) || XmlExportEngine::$is_comment_export || XmlExportEngine::$is_taxonomy_export || ($post['cpt'] == 'shop_customer' && (!$addons->isUserAddonActive() || PMUE_EDITION != 'paid')) )49 if ( (XmlExportEngine::$is_user_export && (isset($post['cpt']) && $post['cpt'] != 'shop_customer') && !$addons->isUserAddonActive()) || XmlExportEngine::$is_comment_export || XmlExportEngine::$is_taxonomy_export || (isset($post['cpt']) && $post['cpt'] == 'shop_customer' && (!$addons->isUserAddonActive() || PMUE_EDITION != 'paid')) ) 50 50 { 51 51 $response['btns'] = ''; … … 53 53 } 54 54 55 $cpt = $post['cpt'] ;55 $cpt = $post['cpt'] ?? ''; 56 56 57 57 if(!is_array($cpt)) { -
wp-all-export/trunk/classes/config.php
r1933403 r2868132 89 89 * @return array 90 90 */ 91 public function toArray($section = NULL) { 91 public function toArray($section = NULL): array 92 { 92 93 return ! is_null($section) ? $this->config[$section]->toArray() : $this->config; 93 94 } 94 95 95 public function getIterator() {96 public function getIterator(): \Traversable { 96 97 return new ArrayIterator($this->config); 97 98 } -
wp-all-export/trunk/helpers/pmxe_functions.php
r2726809 r2868132 163 163 } 164 164 } 165 166 167 if ( ! function_exists( 'wpae_wp_enqueue_code_editor' ) ) { 168 function wpae_wp_enqueue_code_editor( $args ) { 169 170 // We need syntax highlighting to work in the plugin regardless of user setting. 171 // Function matches https://developer.wordpress.org/reference/functions/wp_enqueue_code_editor/ otherwise. 172 /*if ( is_user_logged_in() && 'false' === wp_get_current_user()->syntax_highlighting ) { 173 return false; 174 }*/ 175 176 $settings = wp_get_code_editor_settings( $args ); 177 178 if ( empty( $settings ) || empty( $settings['codemirror'] ) ) { 179 return false; 180 } 181 182 wp_enqueue_script( 'code-editor' ); 183 wp_enqueue_style( 'code-editor' ); 184 185 if ( isset( $settings['codemirror']['mode'] ) ) { 186 $mode = $settings['codemirror']['mode']; 187 if ( is_string( $mode ) ) { 188 $mode = array( 189 'name' => $mode, 190 ); 191 } 192 193 if ( ! empty( $settings['codemirror']['lint'] ) ) { 194 switch ( $mode['name'] ) { 195 case 'css': 196 case 'text/css': 197 case 'text/x-scss': 198 case 'text/x-less': 199 wp_enqueue_script( 'csslint' ); 200 break; 201 case 'htmlmixed': 202 case 'text/html': 203 case 'php': 204 case 'application/x-httpd-php': 205 case 'text/x-php': 206 wp_enqueue_script( 'htmlhint' ); 207 wp_enqueue_script( 'csslint' ); 208 wp_enqueue_script( 'jshint' ); 209 if ( ! current_user_can( 'unfiltered_html' ) ) { 210 wp_enqueue_script( 'htmlhint-kses' ); 211 } 212 break; 213 case 'javascript': 214 case 'application/ecmascript': 215 case 'application/json': 216 case 'application/javascript': 217 case 'application/ld+json': 218 case 'text/typescript': 219 case 'application/typescript': 220 wp_enqueue_script( 'jshint' ); 221 wp_enqueue_script( 'jsonlint' ); 222 break; 223 } 224 } 225 } 226 227 wp_add_inline_script( 'code-editor', sprintf( 'jQuery.extend( wp.codeEditor.defaultSettings, %s );', wp_json_encode( $settings ) ) ); 228 229 /** 230 * Fires when scripts and styles are enqueued for the code editor. 231 * 232 * @param array $settings Settings for the enqueued code editor. 233 * 234 * @since 4.9.0 235 * 236 */ 237 do_action( 'wp_enqueue_code_editor', $settings ); 238 239 return $settings; 240 } 241 } 242 -
wp-all-export/trunk/readme.txt
r2861447 r2868132 3 3 Requires at least: 5.0 4 4 Tested up to: 6.1 5 Stable tag: 1.3. 85 Stable tag: 1.3.9 6 6 Tags: export, wordpress csv export, wordpress xml export, export woocommerce, migrate, export csv from wordpress, export xml from wordpress, advanced xml export, advanced csv export, export data, bulk csv export, export custom post type, export woocommerce products, export woocommerce orders, migrate woocommerce, csv export, export csv, xml export, export xml, csv exporter, datafeed 7 7 … … 111 111 112 112 == Changelog == 113 114 = 1.3.9 = 115 * improvement: remove deprecated jQuery functions 116 * bug fix: resolve various PHP notices and warnings 117 * bug fix: error on Step 1 when 'Disable syntax highlighting when editing code' User option is enabled 113 118 114 119 = 1.3.8 = -
wp-all-export/trunk/src/Reviews/ReviewsUI.php
r2698910 r2868132 125 125 <script type="text/javascript"> 126 126 jQuery(document).ready(function () { 127 jQuery('.wpae-review-buttons button'). click(function (e) {127 jQuery('.wpae-review-buttons button').on('click', function (e) { 128 128 129 129 e.preventDefault(); … … 143 143 }); 144 144 145 jQuery('.wpae-reviews-notice .notice-dismiss'). click(function(e){145 jQuery('.wpae-reviews-notice .notice-dismiss').on('click', function(e){ 146 146 147 147 e.preventDefault(); … … 164 164 }); 165 165 166 jQuery('.review-link'). click(function(){166 jQuery('.review-link').on('click', function(){ 167 167 168 168 var request = { … … 184 184 }); 185 185 186 jQuery('.wpae-submit-feedback button'). click(function(){186 jQuery('.wpae-submit-feedback button').on('click', function(){ 187 187 188 188 jQuery(this).prop("disabled", true); -
wp-all-export/trunk/src/Scheduling/views/CommonJs.php
r2830466 r2868132 9 9 10 10 // Main accordion logic 11 $('input[name="scheduling_enable"]'). change(function () {11 $('input[name="scheduling_enable"]').on('change', function () { 12 12 if ($('input[name="scheduling_enable"]:checked').val() == 1) { 13 13 $('#automatic-scheduling').slideDown(); -
wp-all-export/trunk/src/Scheduling/views/SchedulingOptions.php
r2830466 r2868132 298 298 299 299 300 $('#weekly li'). click(function () {300 $('#weekly li').on('click', function () { 301 301 302 302 $('#weekly li').removeClass('error'); … … 319 319 }); 320 320 321 $('#monthly li'). click(function () {321 $('#monthly li').on('click', function () { 322 322 323 323 $('#monthly li').removeClass('error'); … … 328 328 }); 329 329 330 $('input[name="scheduling_run_on"]'). change(function () {330 $('input[name="scheduling_run_on"]').on('change', function () { 331 331 var val = $('input[name="scheduling_run_on"]:checked').val(); 332 332 if (val == "weekly") { … … 374 374 375 375 376 $('.wpae-save-button'). click(function (e) {376 $('.wpae-save-button').on('click', function (e) { 377 377 378 378 var initialValue = $(this).find('.save-text').html(); … … 439 439 }); 440 440 441 $('.wp_all_export_confirm_and_run'). click(function(e){441 $('.wp_all_export_confirm_and_run').on('click', function(e){ 442 442 443 443 e.preventDefault(); … … 513 513 return false; 514 514 } else { 515 $('form.choose-export-options'). submit();515 $('form.choose-export-options').trigger('submit'); 516 516 517 517 } … … 543 543 var saveSubscription = false; 544 544 545 $('#add-subscription'). click(function(){545 $('#add-subscription').on('click', function(){ 546 546 547 547 $('#add-subscription-field').show(); … … 561 561 }); 562 562 563 $('#subscribe-button'). click(function(){563 $('#subscribe-button').on('click', function(){ 564 564 565 565 if(saveSubscription) { … … 621 621 }); 622 622 // help scheduling template 623 $('.help_scheduling'). click(function(){623 $('.help_scheduling').on('click', function(){ 624 624 625 625 $('.wp-all-export-scheduling-help').css('left', ($( document ).width()/2) - 255 ).show(); … … 629 629 }); 630 630 631 $('.wp_all_export_scheduling_help').find('h3'). click(function(){631 $('.wp_all_export_scheduling_help').find('h3').on('click', function(){ 632 632 var $action = $(this).find('span').html(); 633 633 $('.wp_all_export_scheduling_help').find('h3').each(function(){ -
wp-all-export/trunk/src/Scheduling/views/SchedulingUI.php
r2830466 r2868132 301 301 }; 302 302 303 $('#weekly li'). click(function () {303 $('#weekly li').on('click', function () { 304 304 305 305 $('#weekly li').removeClass('error'); … … 322 322 }); 323 323 324 $('#monthly li'). click(function () {324 $('#monthly li').on('click', function () { 325 325 326 326 $('#monthly li').removeClass('error'); … … 331 331 }); 332 332 333 $('input[name="scheduling_run_on"]'). change(function () {333 $('input[name="scheduling_run_on"]').on('change', function () { 334 334 var val = $('input[name="scheduling_run_on"]:checked').val(); 335 335 if (val == "weekly") { … … 376 376 $('#timezone').chosen({width: '320px'}); 377 377 378 $('.wpae-export-complete-save-button'). click(function (e) {378 $('.wpae-export-complete-save-button').on('click', function (e) { 379 379 380 380 if($('.wpae-save-button').hasClass('disabled')) { … … 445 445 var saveSubscription = false; 446 446 447 $('#add-subscription'). click(function(){447 $('#add-subscription').on('click', function(){ 448 448 449 449 $('#add-subscription-field').show(); … … 462 462 }); 463 463 464 $('#subscribe-button'). click(function(){464 $('#subscribe-button').on('click', function(){ 465 465 466 466 if(saveSubscription) { … … 521 521 }); 522 522 // help scheduling template 523 $('.help_scheduling'). click(function(){523 $('.help_scheduling').on('click', function(){ 524 524 525 525 $('.wp-all-export-scheduling-help').css('left', ($( document ).width()/2) - 255 ).show(); … … 529 529 }); 530 530 531 $('.wp_all_export_scheduling_help').find('h3'). click(function(){531 $('.wp_all_export_scheduling_help').find('h3').on('click', function(){ 532 532 var $action = $(this).find('span').html(); 533 533 $('.wp_all_export_scheduling_help').find('h3').each(function(){ -
wp-all-export/trunk/src/WordPress/SitewideAdminDismissibleNotice.php
r2654009 r2868132 19 19 <script type="text/javascript"> 20 20 jQuery(document).ready(function(){ 21 jQuery('.wpae-general-notice-dismiss'). click(function(){21 jQuery('.wpae-general-notice-dismiss').on('click', function(){ 22 22 23 23 var $parent = jQuery(this).parent(); -
wp-all-export/trunk/static/css/admin.css
r2830466 r2868132 4570 4570 100% { -o-origin-transform: translate(0px); } 4571 4571 } 4572 4573 /* 4574 New footer styles. 4575 */ 4576 .wpallexport-plugin .wpallexport-cta-text-link { 4577 display: flex; 4578 justify-content: right; 4579 align-content: center; 4580 flex-wrap: wrap; 4581 flex-direction: row; 4582 font-size: 13px; 4583 } 4584 4585 .wpallexport-plugin .wpallexport-negative-margin .wpallexport-cta-text-link { 4586 margin-top: -45px; 4587 } 4588 4589 .wpallexport-plugin .wpallexport-negative-margin.sixty .wpallexport-cta-text-link { 4590 margin-top: -60px; 4591 } 4592 4593 .wpallexport-plugin .wpallexport-cta-text-link img { 4594 padding-top: 14px; 4595 padding-bottom: 10px; 4596 padding-right: 5px; 4597 height: 15px; 4598 } 4599 4600 .wpallexport-plugin .wpallexport-footer { 4601 display: flex; 4602 justify-content: center; 4603 flex-direction: column-reverse; 4604 } 4605 4606 .wpallexport-plugin .wpallexport-negative-margin.sixty .wpallexport-footer { 4607 margin-top: -60px; 4608 } 4609 4610 .wpallexport-plugin .wpallexport-negative-margin.fifteen .wpallexport-footer { 4611 margin-top: -15px; 4612 } 4613 4614 .wpallexport-plugin .wpallexport-display-columns .wpallexport-footer div { 4615 width: 33%; 4616 } 4617 4618 .wpallexport-plugin .wpallexport-display-columns .wpallexport-footer{ 4619 flex-direction: row; 4620 } 4621 4622 .wpallexport-plugin .wpallexport-display-columns .wpallexport-footer .wpallexport-soflyy { 4623 margin-bottom: 15px; 4624 } 4625 4626 .wpallexport-plugin .wpallexport-margin-top-forty .wpallexport-footer { 4627 margin-top: 40px; 4628 } -
wp-all-export/trunk/static/js/admin.js
r2830466 r2868132 137 137 $('.wpallexport-xml-options').show(); 138 138 $('input[name=export_to]').val('xml'); 139 $('.xml_template_type'). change();139 $('.xml_template_type').trigger('change'); 140 140 141 141 $('.wpallexport-csv-advanced-options').css('display', 'none'); … … 264 264 initDraggable(); 265 265 266 $('.export_variations'). change(function(){266 $('.export_variations').on('change', function(){ 267 267 setTimeout(liveFiltering, 200); 268 268 $('.wp-all-export-product-bundle-warning').hide(); … … 313 313 html: true, 314 314 opacity: 1 315 }). click(function () {315 }).on('click', function () { 316 316 return false; 317 317 }).each(function () { // fix tipsy title for IE … … 366 366 367 367 // swither show/hide logic 368 $('input.switcher'). change(function (e) {368 $('input.switcher').on('change', function (e) { 369 369 370 370 if ($(this).is(':radio:checked')) { 371 $(this).parents('form').find('input.switcher:radio[name="' + $(this).attr('name') + '"]').not(this). change();371 $(this).parents('form').find('input.switcher:radio[name="' + $(this).attr('name') + '"]').not(this).trigger('change'); 372 372 } 373 373 var $switcherID = $(this).attr('id'); … … 382 382 $targets.hide().find('.clear-on-switch').add($targets.filter('.clear-on-switch')).val(''); 383 383 } 384 }). change();385 386 387 $('input#enable_real_time_exports'). click(function(e){384 }).trigger('change'); 385 386 387 $('input#enable_real_time_exports').on('click', function(e){ 388 388 $('.wpallexport-free-edition-notice.php-rte-upgrade').slideDown(); 389 389 … … 402 402 }); 403 403 404 $('input#export_only_new_stuff'). click(function(e){404 $('input#export_only_new_stuff').on('click', function(e){ 405 405 $('.wpallexport-free-edition-notice.only-export-posts-once').slideDown(); 406 406 … … 418 418 }); 419 419 420 $('input#export_only_modified_stuff'). click(function(e){420 $('input#export_only_modified_stuff').on('click', function(e){ 421 421 $('.wpallexport-free-edition-notice.only-export-modified-posts').slideDown(); 422 422 … … 434 434 }); 435 435 436 $('input#allow_client_mode'). click(function(e){436 $('input#allow_client_mode').on('click', function(e){ 437 437 $('.wpallexport-free-edition-notice.client-mode-notice').slideDown(); 438 438 … … 455 455 456 456 // swither show/hide logic 457 $('input.switcher-horizontal'). change('change', function (e) {457 $('input.switcher-horizontal').on('change', function (e) { 458 458 459 459 if ($(this).is(':checked')) { 460 $(this).parents('form').find('input.switcher-horizontal[name="' + $(this).attr('name') + '"]').not(this). change();460 $(this).parents('form').find('input.switcher-horizontal[name="' + $(this).attr('name') + '"]').not(this).trigger('change'); 461 461 } 462 462 var $targets = $('.switcher-target-' + $(this).attr('id')); … … 469 469 $targets.animate({width:'0px'}, 1000).find('.clear-on-switch').add($targets.filter('.clear-on-switch')).val(''); 470 470 } 471 }). change();471 }).trigger('change'); 472 472 473 473 // autoselect input content on click … … 482 482 // choose file form: option selection dynamic 483 483 // options form: highlight options of selected post type 484 $('form.choose-post-type input[name="type"]'). click(function() {484 $('form.choose-post-type input[name="type"]').on('click', function() { 485 485 var $container = $(this).parents('.file-type-container'); 486 486 $('.file-type-container').not($container).removeClass('selected').find('.file-type-options').hide(); 487 487 $container.addClass('selected').find('.file-type-options').show(); 488 }).filter(':checked'). click();488 }).filter(':checked').trigger('click'); 489 489 490 490 $('.wpallexport-collapsed').each(function(){ … … 887 887 var formHeight = $wrap.height(); 888 888 889 $('.wpallexport-import-from'). click(function(){889 $('.wpallexport-import-from').on('click', function(){ 890 890 891 891 var showImportType = false; … … 999 999 }); 1000 1000 1001 $('.wpallexport-import-from.selected'). click();1001 $('.wpallexport-import-from.selected').trigger('click'); 1002 1002 1003 1003 window.wpaeFiltersDisabled = false; … … 1181 1181 }); 1182 1182 1183 $(this).parents('form:first'). submit();1184 }); 1185 1186 $('form.wpallexport-choose-file').find('input[type=submit]'). click(function(e){1183 $(this).parents('form:first').trigger('submit'); 1184 }); 1185 1186 $('form.wpallexport-choose-file').find('input[type=submit]').on('click', function(e){ 1187 1187 e.preventDefault(); 1188 1188 … … 1194 1194 }); 1195 1195 1196 $(this).parents('form:first'). submit();1196 $(this).parents('form:first').trigger('submit'); 1197 1197 }); 1198 1198 … … 1260 1260 } 1261 1261 }); 1262 $('.open-plugin-details-modal'). click(function(){1262 $('.open-plugin-details-modal').on('click', function(){ 1263 1263 var request = { 1264 1264 action: 'redirect_after_addon_installed', … … 1466 1466 1467 1467 // Add Another btn click 1468 $addAnother. click(function(){1468 $addAnother.on('click', function(){ 1469 1469 1470 1470 $addAnotherForm.find('form')[0].reset(); … … 1499 1499 $addAnotherForm.find('select[name=column_value_type]').find('option').each(function(){ 1500 1500 if ($(this).val() == 'id') 1501 $(this).attr({'selected':'selected'}). click();1501 $(this).attr({'selected':'selected'}).trigger('click'); 1502 1502 else 1503 1503 $(this).removeAttr('selected'); … … 1509 1509 $('.wpallexport-overlay').show(); 1510 1510 1511 $addAnotherForm.find('input.switcher'). change();1511 $addAnotherForm.find('input.switcher').trigger('change'); 1512 1512 $addAnotherForm.show(); 1513 1513 … … 1515 1515 1516 1516 // Delete custom column action 1517 $addAnotherForm.find('.delete_action'). click(function(){1517 $addAnotherForm.find('.delete_action').on('click', function(){ 1518 1518 1519 1519 $('.custom_column').removeClass('active'); … … 1532 1532 1533 1533 // Add/Edit custom column action 1534 $addAnotherForm.find('.save_action'). click(function(event){1534 $addAnotherForm.find('.save_action').on('click', function(event){ 1535 1535 1536 1536 if($(this).hasClass('disabled')) { … … 1714 1714 $addAnotherForm.find('select[name=column_value_type]').find('option').each(function(){ 1715 1715 if ($(this).attr('label') == $elementLabel.val() && $(this).val() == $elementType.val()) 1716 $(this).attr({'selected':'selected'}). click();1716 $(this).attr({'selected':'selected'}).trigger('click'); 1717 1717 else 1718 1718 $(this).removeAttr('selected'); … … 1737 1737 1738 1738 if($isCombineMultipleFieldsIntoOne == "1") { 1739 $addAnotherForm.find('input[name="combine_multiple_fields"][value="1"]'). attr('checked', true);1739 $addAnotherForm.find('input[name="combine_multiple_fields"][value="1"]').prop('checked', true); 1740 1740 $addAnotherForm.find('#combine_multiple_fields_value').val($(this).find('input[name^=cc_combine_multiple_fields_value]').val()); 1741 1741 … … 1744 1744 $('.export-single').hide(); 1745 1745 } else { 1746 $addAnotherForm.find('input[name="combine_multiple_fields"][value="0"]'). attr('checked', true);1746 $addAnotherForm.find('input[name="combine_multiple_fields"][value="0"]').prop('checked', true); 1747 1747 1748 1748 $('#combine_multiple_fields_value_container').hide(); … … 1767 1767 { 1768 1768 var $field_options = window.JSON.parse($settings); 1769 if ($field_options.export_images_from_gallery) $addAnotherForm.find('#export_images_from_gallery'). attr('checked','checked');1769 if ($field_options.export_images_from_gallery) $addAnotherForm.find('#export_images_from_gallery').prop('checked','checked'); 1770 1770 } 1771 1771 else{ 1772 1772 // this option should be enabled by default 1773 $addAnotherForm.find('#export_images_from_gallery'). attr('checked','checked');1773 $addAnotherForm.find('#export_images_from_gallery').prop('checked',true); 1774 1774 } 1775 1775 break; … … 1785 1785 { 1786 1786 var $field_options = window.JSON.parse($settings); 1787 if ($field_options.repeater_field_item_per_line) $addAnotherForm.find('#repeater_field_item_per_line'). attr('checked','checked');1788 if ($field_options.repeater_field_fill_empty_columns) $addAnotherForm.find('#repeater_field_fill_empty_columns'). attr('checked','checked');1787 if ($field_options.repeater_field_item_per_line) $addAnotherForm.find('#repeater_field_item_per_line').prop('checked',true); 1788 if ($field_options.repeater_field_fill_empty_columns) $addAnotherForm.find('#repeater_field_fill_empty_columns').prop('checked',true); 1789 1789 } 1790 1790 } … … 1801 1801 $addAnotherForm.find('select.linked_field_export_data').find('option').each(function(){ 1802 1802 if ($(this).val() == $settings) 1803 $(this).attr({'selected':'selected'}). click();1803 $(this).attr({'selected':'selected'}).trigger('click'); 1804 1804 else 1805 1805 $(this).removeAttr('selected'); … … 1819 1819 $addAnotherForm.find('select.date_field_export_data').find('option').each(function(){ 1820 1820 if ($(this).val() == $settings || $settings != 'unix' && $(this).val() == 'php') 1821 $(this).attr({'selected':'selected'}). click();1821 $(this).attr({'selected':'selected'}).trigger('click'); 1822 1822 else 1823 1823 $(this).removeAttr('selected'); … … 1841 1841 $addAnotherForm.find('select.date_field_export_data').find('option').each(function(){ 1842 1842 if ($(this).val() == $settings || $settings != 'unix' && $(this).val() == 'php') 1843 $(this).attr({'selected':'selected'}). click();1843 $(this).attr({'selected':'selected'}).trigger('click'); 1844 1844 else 1845 1845 $(this).removeAttr('selected'); … … 1865 1865 var $field_options = window.JSON.parse($options); 1866 1866 1867 if ($field_options.is_export_featured) $addAnotherForm.find('#is_image_export_featured'). attr('checked','checked');1868 if ($field_options.is_export_attached) $addAnotherForm.find('#is_image_export_attached_images'). attr('checked','checked');1867 if ($field_options.is_export_featured) $addAnotherForm.find('#is_image_export_featured').prop('checked',true); 1868 if ($field_options.is_export_attached) $addAnotherForm.find('#is_image_export_attached_images').prop('checked',true); 1869 1869 1870 1870 $addAnotherForm.find('input[name=image_field_separator]').val($field_options.image_separator); … … 1875 1875 } 1876 1876 1877 $addAnotherForm.find('input.switcher'). change();1877 $addAnotherForm.find('input.switcher').trigger('change'); 1878 1878 1879 1879 var $column_name = $(this).find('input[name^=cc_name]').val(); … … 1949 1949 $preview.parent('.wp-pointer-content').removeClass('wp-pointer-content').addClass('wpallexport-pointer-content'); 1950 1950 1951 $preview.find('.navigation a').unbind('click'). click(function () {1951 $preview.find('.navigation a').unbind('click').on('click', function () { 1952 1952 1953 1953 tagno += '#prev' == $(this).attr('href') ? -1 : 1; … … 1984 1984 }; 1985 1985 1986 $(this).find('.preview_a_row'). click(function(){1986 $(this).find('.preview_a_row').on('click', function(){ 1987 1987 doPreview($(this), 1); 1988 1988 }); 1989 1989 1990 1990 // preview custom XML template 1991 $(this).find('.preview_a_custom_xml_row'). click(function(){1991 $(this).find('.preview_a_custom_xml_row').on('click', function(){ 1992 1992 doPreview($(this), 1); 1993 1993 }); 1994 1994 1995 1995 // help custom XML template 1996 $(this).find('.help_custom_xml'). click(function(){1996 $(this).find('.help_custom_xml').on('click', function(){ 1997 1997 $('.wp-all-export-custom-xml-help').css('left', ($( document ).width()/2) - 255 ).show(); 1998 1998 $('#wp-all-export-custom-xml-help-inner').css('max-height', $( window ).height()-150).show(); … … 2000 2000 }); 2001 2001 2002 $('.wp_all_export_custom_xml_help').find('h3'). click(function(){2002 $('.wp_all_export_custom_xml_help').find('h3').on('click', function(){ 2003 2003 var $action = $(this).find('span').html(); 2004 2004 $('.wp_all_export_custom_xml_help').find('h3').each(function(){ … … 2016 2016 }); 2017 2017 2018 $('.wpae-available-fields-group'). click(function(){2018 $('.wpae-available-fields-group').on('click', function(){ 2019 2019 var $mode = $(this).find('.wpae-expander').text(); 2020 2020 $(this).next('div').slideToggle(); … … 2026 2026 }); 2027 2027 2028 $('.close_action'). click(function(){2028 $('.close_action').on('click', function(){ 2029 2029 $(this).parents('fieldset:first').hide(); 2030 2030 $('.wpallexport-overlay').hide(); … … 2032 2032 }); 2033 2033 2034 $('.date_field_export_data'). change(function(){2034 $('.date_field_export_data').on('change', function(){ 2035 2035 if ($(this).val() == "unix") 2036 2036 $('.pmxe_date_format_wrapper').hide(); … … 2098 2098 } 2099 2099 2100 $('.wp-all-export-advanced-field-options'). click(function(){2100 $('.wp-all-export-advanced-field-options').on('click', function(){ 2101 2101 if ($(this).find('span').html() == '+'){ 2102 2102 $(this).find('span').html('-'); … … 2112 2112 2113 2113 // Auto generate available data 2114 $('.wp_all_export_auto_generate_data'). click(function(){2114 $('.wp_all_export_auto_generate_data').on('click', function(){ 2115 2115 2116 2116 $('ol#columns').find('li:not(.placeholder)').fadeOut().remove(); … … 2181 2181 liveFiltering(); 2182 2182 2183 $('form.wpallexport-template').find('input[type=submit]'). click(function(e){2183 $('form.wpallexport-template').find('input[type=submit]').on('click', function(e){ 2184 2184 e.preventDefault(); 2185 2185 … … 2226 2226 } 2227 2227 }); 2228 submitButton.parents('form:first'). submit();2228 submitButton.parents('form:first').trigger('submit'); 2229 2229 } 2230 2230 }, … … 2251 2251 }); 2252 2252 } else { 2253 submitButton.parents('form:first'). submit();2253 submitButton.parents('form:first').trigger('submit'); 2254 2254 } 2255 2255 }); … … 2267 2267 } 2268 2268 2269 $('.wpallexport-import-to-format'). click(function(){2269 $('.wpallexport-import-to-format').on('click', function(){ 2270 2270 2271 2271 var isWooCommerceOrder = vm.isWoocommerceOrderExport(); … … 2317 2317 $('.wpallexport-xml-options').show(); 2318 2318 $('input[name=export_to]').val('xml'); 2319 $('.xml_template_type'). change();2319 $('.xml_template_type').trigger('change'); 2320 2320 2321 2321 $('.wpallexport-csv-advanced-options').css('display', 'none'); … … 2343 2343 2344 2344 // template form: auto submit when `load template` list value is picked 2345 $(this).find('select[name="load_template"]'). change(function () {2345 $(this).find('select[name="load_template"]').on('change', function () { 2346 2346 2347 2347 var template = $(this).find('option:selected').val(); … … 2353 2353 angular.element(document.getElementById('googleMerchants')).injector().get('$rootScope').$broadcast('selectedTemplate', template); 2354 2354 } else { 2355 $(this).parents('form'). submit();2355 $(this).parents('form').trigger('submit'); 2356 2356 } 2357 2357 }); … … 2361 2361 2362 2362 // dismiss export template warnings 2363 $('.wp-all-export-warning').find('.notice-dismiss'). click(function(){2363 $('.wp-all-export-warning').find('.notice-dismiss').on('click', function(){ 2364 2364 2365 2365 var $parent = $(this).parent('.wp-all-export-warning'); … … 2415 2415 }); 2416 2416 2417 $('#wpae-options-form'). submit();2417 $('#wpae-options-form').trigger('submit'); 2418 2418 }); 2419 2419 } … … 2423 2423 // [ \Step 3 ( export options ) ] 2424 2424 2425 $('#download-bundle'). click(function(e){2425 $('#download-bundle').on('click', function(e){ 2426 2426 2427 2427 var exportCpt = $('#export-cpt').val(); … … 2437 2437 2438 2438 // [ Step 4 ( export completed ) ] 2439 $('.download_data'). click(function(){2439 $('.download_data').on('click', function(){ 2440 2440 window.location.href = $(this).attr('rel'); 2441 2441 }); … … 2473 2473 $('.wp_all_export_filtering_rules').find('.condition:hidden').each(function(){ 2474 2474 $(this).show(); 2475 $(this).find('.rule_condition:first'). attr('checked', 'checked');2475 $(this).find('.rule_condition:first').prop('checked', true); 2476 2476 }); 2477 2477 $('.wp_all_export_filtering_rules').find('.condition').removeClass('last_condition'); … … 2526 2526 }); 2527 2527 // hide "value" input when "Is Empty" or "Is Not Empty" rule is selected 2528 $('#wp_all_export_rule'). change(function(){2528 $('#wp_all_export_rule').on('change', function(){ 2529 2529 if ($(this).val() == 'is_empty' || $(this).val() == 'is_not_empty') 2530 2530 $('#wp_all_export_value').hide(); … … 2534 2534 2535 2535 // auot-generate zapier API key 2536 $('input[name=pmxe_generate_zapier_api_key]'). click(function(e){2536 $('input[name=pmxe_generate_zapier_api_key]').on('click', function(e){ 2537 2537 2538 2538 e.preventDefault(); … … 2550 2550 }); 2551 2551 2552 $('.CodeMirror'). click(function(e){2552 $('.CodeMirror').on('click', function(e){ 2553 2553 e.preventDefault(); 2554 2554 $('.php-functions-upgrade').slideDown(); 2555 2555 }); 2556 2556 2557 $('.wp_all_export_save_functions'). click(function(e){2557 $('.wp_all_export_save_functions').on('click', function(e){ 2558 2558 $('.wp_all_export_save_functions_container').addClass('wpae-shake'); 2559 2559 setTimeout(function(){ … … 2565 2565 2566 2566 2567 $('.wp_all_export_save_client_mode'). click(function(e){2567 $('.wp_all_export_save_client_mode').on('click', function(e){ 2568 2568 $('.wp_all_export_save_client_mode_container').addClass('wpae-shake'); 2569 2569 setTimeout(function(){ … … 2577 2577 var $xml_template_first_load = true; 2578 2578 2579 $('.xml_template_type'). change(function(e){2579 $('.xml_template_type').on('change', function(e){ 2580 2580 2581 2581 switch ($(this).find('option:selected').val()){ … … 2597 2597 2598 2598 if(!angular.isUndefined(e.originalEvent)) { 2599 if ( ! $('.wpallexport-file-options').hasClass('closed')) $('.wpallexport-file-options').find('.wpallexport-collapsed-header'). click();2599 if ( ! $('.wpallexport-file-options').hasClass('closed')) $('.wpallexport-file-options').find('.wpallexport-collapsed-header').trigger('click'); 2600 2600 } 2601 2601 … … 2615 2615 // If the event was not triggered by the user 2616 2616 if(!angular.isUndefined(e.originalEvent)) { 2617 if ( ! $('.wpallexport-file-options').hasClass('closed')) $('.wpallexport-file-options').find('.wpallexport-collapsed-header'). click();2617 if ( ! $('.wpallexport-file-options').hasClass('closed')) $('.wpallexport-file-options').find('.wpallexport-collapsed-header').trigger('click'); 2618 2618 } 2619 2619 … … 2669 2669 2670 2670 if ( ! $('.wpallexport-file-options').hasClass('closed')) { 2671 $('.wpallexport-file-options').find('.wpallexport-collapsed-header'). click();2671 $('.wpallexport-file-options').find('.wpallexport-collapsed-header').trigger('click'); 2672 2672 } 2673 2673 … … 2701 2701 } 2702 2702 $xml_template_first_load = false; 2703 }). change();2704 2705 $('.wpallexport-overlay'). click(function(){2703 }).trigger('change'); 2704 2705 $('.wpallexport-overlay').on('click', function(){ 2706 2706 $('.wp-pointer').hide(); 2707 2707 $('#columns').find('div.active').removeClass('active'); … … 2723 2723 2724 2724 // Logic for radio boxes (CDATA settings) 2725 $('input[name=simple_custom_xml_cdata_logic]'). change(function(){2725 $('input[name=simple_custom_xml_cdata_logic]').on('change', function(){ 2726 2726 var value = $('input[name=simple_custom_xml_cdata_logic]:checked').val(); 2727 2727 $('#custom_custom_xml_cdata_logic_'+value).prop('checked', true); … … 2730 2730 2731 2731 2732 $('input[name=custom_custom_xml_cdata_logic]'). change(function(event) {2732 $('input[name=custom_custom_xml_cdata_logic]').on('change', function(event) { 2733 2733 event.stopImmediatePropagation(); 2734 2734 var value = $('input[name=custom_custom_xml_cdata_logic]:checked').val(); … … 2739 2739 2740 2740 // Logic for show CDATA tags in preview 2741 $('.show_cdata_in_preview'). change(function(){2741 $('.show_cdata_in_preview').on('change', function(){ 2742 2742 if($(this).is(':checked')) { 2743 2743 $('#show_cdata_in_preview').val(1); … … 2750 2750 2751 2751 // Logic to show CSV advanced options 2752 $('#export_to_sheet'). change(function(e){2752 $('#export_to_sheet').on('change', function(e){ 2753 2753 2754 2754 if ( $('input[name=export_to]').val() === 'xml' ) return; … … 2779 2779 }); 2780 2780 2781 $('#templateForm'). submit(function(event){2781 $('#templateForm').on('submit', function(event){ 2782 2782 2783 2783 var exportType = $('select.xml_template_type').val(); … … 2789 2789 }); 2790 2790 2791 $('select[name=column_value_type]'). change(function(){2791 $('select[name=column_value_type]').on('change', function(){ 2792 2792 var disabledFields = ['fees', 'notes', 'refunds', 'taxes', 'item_data', 'items']; 2793 2793 var selectedField = $(this).find('option:selected').attr('options'); … … 2847 2847 $pointer.find('.wp-pointer-buttons').append('<button class="close-pointer button button-primary button-hero wpallexport-large-button" style="float: right; background: #F1F1F1 none;text-shadow: 0 0 black; color: #777; margin-right: 10px;">Cancel</button>'); 2848 2848 2849 $(".close-pointer, .wpallexport-overlay").unbind('click'). click(function () {2849 $(".close-pointer, .wpallexport-overlay").unbind('click').on('click', function () { 2850 2850 $self.pointer('close'); 2851 2851 $self.pointer('destroy'); … … 2874 2874 html: true, 2875 2875 opacity: 1 2876 }). click(function () {2876 }).on('click', function () { 2877 2877 return false; 2878 2878 }).each(function () { // fix tipsy title for IE … … 2881 2881 }); 2882 2882 2883 $(".save-changes").unbind('click'). click(function () {2883 $(".save-changes").unbind('click').on('click', function () { 2884 2884 if($(this).hasClass('disabled')) { 2885 2885 return false; -
wp-all-export/trunk/static/js/jquery/jquery.ddslick.min.js
r1214634 r2868132 1 (function (a) { function g(a, b) { var c = a.data("ddslick"); var d = a.find(".dd-selected"), e = d.siblings(".dd-selected-value"), f = a.find(".dd-options"), g = d.siblings(".dd-pointer"), h = a.find(".dd-option").eq(b), k = h.closest("li"), l = c.settings, m = c.settings.data[b]; a.find(".dd-option").removeClass("dd-option-selected"); h.addClass("dd-option-selected"); c.selectedIndex = b; c.selectedItem = k; c.selectedData = m; if (l.showSelectedHTML) { d.html((m.text ? '<label class="dd-selected-text ' + (m.imageSrc ? m.imageSrc : "") + '">' + m.text + "</label>" : "") + (m.description ? '<small class="dd-selected-description dd-desc' + (l.truncateDescription ? " dd-selected-description-truncated" : "") + '" >' + m.description + "</small>" : "")) } else d.html(m.text); e.val(m.value); c.original.val(m.value); a.data("ddslick", c); i(a); j(a); if (typeof l.onSelected == "function") { l.onSelected.call(this, c) } } function h(b) { var c = b.find(".dd-select"), d = c.siblings(".dd-options"), e = c.find(".dd-pointer"), f = d.is(":visible"); a(".dd-click-off-close").not(d).slideUp(50); a(".dd-pointer").removeClass("dd-pointer-up"); if (f) { d.slideUp("fast", function(){ var l = b.data("ddslick"); l.settings.onSlideUpOptions.call(this); }); e.removeClass("dd-pointer-up") } else { d.slideDown("fast", function(){ var l = b.data("ddslick"); l.settings.onSlideDownOptions.call(this); }); e.addClass("dd-pointer-up") } k(b) } function i(a) { a.find(".dd-options").slideUp(50); a.find(".dd-pointer").removeClass("dd-pointer-up").removeClass("dd-pointer-up") } function j(a) { var b = a.find(".dd-select").css("height"); var c = a.find(".dd-selected-description"); var d = a.find(".dd-selected-image"); if (c.length <= 0 && d.length > 0) { a.find(".dd-selected-text").css("lineHeight", b) } } function k(b) { b.find(".dd-option").each(function () { var c = a(this); var d = c.css("height"); var e = c.find(".dd-option-description"); var f = b.find(".dd-option-image"); if (e.length <= 0 && f.length > 0) { c.find(".dd-option-text").css("lineHeight", d) } }) } a.fn.ddslick = function (c) { if (b[c]) { return b[c].apply(this, Array.prototype.slice.call(arguments, 1)) } else if (typeof c === "object" || !c) { return b.init.apply(this, arguments) } else { a.error("Method " + c + " does not exists.") } }; var b = {}, c = { data: [], keepJSONItemsOnTop: false, width: "98%", height: null, background: "#eee", selectText: "", defaultSelectedIndex: null, truncateDescription: true, imagePosition: "left", showSelectedHTML: true, clickOffToClose: true, onSelected: function () { }, onSlideDownOptions: function() { }, onSlideUpOptions: function() { } }, d = '<div class="dd-select"><input class="dd-selected-value" type="hidden" /><a class="dd-selected"></a><span class="dd-pointer dd-pointer-down"></span></div>', e = '<ul class="dd-options"></ul>', f = '<style id="css-ddslick" type="text/css">' + ".dd-select{ border-radius:4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; -webkit-border-radius: 4px; border:solid 1px #ccc; position:relative; cursor:pointer;}" + ".dd-desc { color:#aaa; display:block; overflow: hidden; font-weight:normal; line-height: 1.4em; }" + ".dd-selected{ overflow:hidden; display:block; padding:10px; font-weight:bold;}" + ".dd-pointer{ width:0; height:0; position:absolute; right:10px; top:50%; margin-top:-3px;}" + ".dd-pointer-down{ border:solid 5px transparent; border-top:solid 5px #000; }" + ".dd-pointer-up{border:solid 5px transparent !important; border-bottom:solid 5px #000 !important; margin-top:-8px;}" + ".dd-options{ border:solid 1px #ccc; border-top:none; list-style:none; box-shadow:0px 1px 5px #ddd; display:none; position:absolute; z-index:2000; margin:0; padding:0;background:#fff; overflow:auto;}" + ".dd-option{ padding:10px; display:block; border-bottom:solid 1px #ddd; overflow:hidden; text-decoration:none; color:#333; cursor:pointer;-webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out;-o-transition: all 0.25s ease-in-out;-ms-transition: all 0.25s ease-in-out; }" + ".dd-options > li:last-child > .dd-option{ border-bottom:none;}" + ".dd-option:hover{ background:#f3f3f3; color:#000;}" + ".dd-selected-description-truncated { text-overflow: ellipsis; white-space:nowrap; }" + ".dd-option-selected { background:#f6f6f6; }" + ".dd-option-image, .dd-selected-image { vertical-align:middle; float:left; margin-right:5px; max-width:64px;}" + ".dd-image-right { float:right; margin-right:15px; margin-left:5px;}" + ".dd-container{ position:relative;} .dd-selected-text { font-weight:bold}</style>"; if (a("#css-ddslick").length <= 0) { a(f).appendTo("head") } b.init = function (b) { var b = a.extend({}, c, b); return this.each(function () { var c = a(this), f = c.data("ddslick"); if (!f) { var i = [], j = b.data; c.find("option").each(function () { var b = a(this), c = b.data(); i.push({ text: a.trim(b.text()), value: b.val(), selected: b.is(":selected"), description: c.description, imageSrc: c.imagesrc }) }); if (b.keepJSONItemsOnTop) a.merge(b.data, i); else b.data = a.merge(i, b.data); var k = c, l = a('<div id="' + c.attr("id") + '"></div>'); c.replaceWith(l); c = l; c.addClass("dd-container").append(d).append(e); var i = c.find(".dd-select"), m = c.find(".dd-options"); m.css({ width: b.width }); i.css({ width: b.width, background: b.background }); c.css({ width: b.width }); if (b.height != null) m.css({ height: b.height, overflow: "auto" }); a.each(b.data, function (a, c) { if (c.selected) b.defaultSelectedIndex = a; m.append("<li>" + '<a class="dd-option">' + (c.value ? ' <input class="dd-option-value" type="hidden" value="' + c.value + '" />' : "") + (c.text ? ' <label class="dd-option-text ' + (c.imageSrc ? c.imageSrc : "") + '">' + c.text + "</label>" : "") + (c.description ? ' <small class="dd-option-description dd-desc">' + c.description + "</small>" : "") + "</a>" + "</li>") }); var n = { settings: b, original: k, selectedIndex: -1, selectedItem: null, selectedData: null }; c.data("ddslick", n); if (b.selectText.length > 0 && b.defaultSelectedIndex == null) { c.find(".dd-selected").html(b.selectText) } else { var o = b.defaultSelectedIndex != null && b.defaultSelectedIndex >= 0 && b.defaultSelectedIndex < b.data.length ? b.defaultSelectedIndex : 0; g(c, o) } c.find(".dd-select").on("click.ddslick", function () { h(c) }); c.find(".dd-option").on("click.ddslick", function () { g(c, a(this).closest("li").index()) }); if (b.clickOffToClose) { m.addClass("dd-click-off-close"); c.on("click.ddslick", function (a) { a.stopPropagation() }); a("body").on("click", function () { a(".dd-click-off-close").slideUp(50).siblings(".dd-select").find(".dd-pointer").removeClass("dd-pointer-up") }) } } }) }; b.select = function (b) { return this.each(function () { if (b.index) g(a(this), b.index) }) }; b.open = function () { return this.each(function () { var b = a(this), c = b.data("ddslick"); if (c) h(b) }) }; b.close = function () { return this.each(function () { var b = a(this), c = b.data("ddslick"); if (c) i(b) }) }; b.destroy = function () { return this.each(function () { var b = a(this), c = b.data("ddslick"); if (c) { var d = c.original; b.removeData("ddslick").unbind(".ddslick").replaceWith(d) } }) } })(jQuery)1 (function (a) { function g(a, b) { var c = a.data("ddslick"); var d = a.find(".dd-selected"), e = d.siblings(".dd-selected-value"), f = a.find(".dd-options"), g = d.siblings(".dd-pointer"), h = a.find(".dd-option").eq(b), k = h.closest("li"), l = c.settings, m = c.settings.data[b]; a.find(".dd-option").removeClass("dd-option-selected"); h.addClass("dd-option-selected"); c.selectedIndex = b; c.selectedItem = k; c.selectedData = m; if (l.showSelectedHTML) { d.html((m.text ? '<label class="dd-selected-text ' + (m.imageSrc ? m.imageSrc : "") + '">' + m.text + "</label>" : "") + (m.description ? '<small class="dd-selected-description dd-desc' + (l.truncateDescription ? " dd-selected-description-truncated" : "") + '" >' + m.description + "</small>" : "")) } else d.html(m.text); e.val(m.value); c.original.val(m.value); a.data("ddslick", c); i(a); j(a); if (typeof l.onSelected == "function") { l.onSelected.call(this, c) } } function h(b) { var c = b.find(".dd-select"), d = c.siblings(".dd-options"), e = c.find(".dd-pointer"), f = d.is(":visible"); a(".dd-click-off-close").not(d).slideUp(50); a(".dd-pointer").removeClass("dd-pointer-up"); if (f) { d.slideUp("fast", function(){ var l = b.data("ddslick"); l.settings.onSlideUpOptions.call(this); }); e.removeClass("dd-pointer-up") } else { d.slideDown("fast", function(){ var l = b.data("ddslick"); l.settings.onSlideDownOptions.call(this); }); e.addClass("dd-pointer-up") } k(b) } function i(a) { a.find(".dd-options").slideUp(50); a.find(".dd-pointer").removeClass("dd-pointer-up").removeClass("dd-pointer-up") } function j(a) { var b = a.find(".dd-select").css("height"); var c = a.find(".dd-selected-description"); var d = a.find(".dd-selected-image"); if (c.length <= 0 && d.length > 0) { a.find(".dd-selected-text").css("lineHeight", b) } } function k(b) { b.find(".dd-option").each(function () { var c = a(this); var d = c.css("height"); var e = c.find(".dd-option-description"); var f = b.find(".dd-option-image"); if (e.length <= 0 && f.length > 0) { c.find(".dd-option-text").css("lineHeight", d) } }) } a.fn.ddslick = function (c) { if (b[c]) { return b[c].apply(this, Array.prototype.slice.call(arguments, 1)) } else if (typeof c === "object" || !c) { return b.init.apply(this, arguments) } else { a.error("Method " + c + " does not exists.") } }; var b = {}, c = { data: [], keepJSONItemsOnTop: false, width: "98%", height: null, background: "#eee", selectText: "", defaultSelectedIndex: null, truncateDescription: true, imagePosition: "left", showSelectedHTML: true, clickOffToClose: true, onSelected: function () { }, onSlideDownOptions: function() { }, onSlideUpOptions: function() { } }, d = '<div class="dd-select"><input class="dd-selected-value" type="hidden" /><a class="dd-selected"></a><span class="dd-pointer dd-pointer-down"></span></div>', e = '<ul class="dd-options"></ul>', f = '<style id="css-ddslick" type="text/css">' + ".dd-select{ border-radius:4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; -webkit-border-radius: 4px; border:solid 1px #ccc; position:relative; cursor:pointer;}" + ".dd-desc { color:#aaa; display:block; overflow: hidden; font-weight:normal; line-height: 1.4em; }" + ".dd-selected{ overflow:hidden; display:block; padding:10px; font-weight:bold;}" + ".dd-pointer{ width:0; height:0; position:absolute; right:10px; top:50%; margin-top:-3px;}" + ".dd-pointer-down{ border:solid 5px transparent; border-top:solid 5px #000; }" + ".dd-pointer-up{border:solid 5px transparent !important; border-bottom:solid 5px #000 !important; margin-top:-8px;}" + ".dd-options{ border:solid 1px #ccc; border-top:none; list-style:none; box-shadow:0px 1px 5px #ddd; display:none; position:absolute; z-index:2000; margin:0; padding:0;background:#fff; overflow:auto;}" + ".dd-option{ padding:10px; display:block; border-bottom:solid 1px #ddd; overflow:hidden; text-decoration:none; color:#333; cursor:pointer;-webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out;-o-transition: all 0.25s ease-in-out;-ms-transition: all 0.25s ease-in-out; }" + ".dd-options > li:last-child > .dd-option{ border-bottom:none;}" + ".dd-option:hover{ background:#f3f3f3; color:#000;}" + ".dd-selected-description-truncated { text-overflow: ellipsis; white-space:nowrap; }" + ".dd-option-selected { background:#f6f6f6; }" + ".dd-option-image, .dd-selected-image { vertical-align:middle; float:left; margin-right:5px; max-width:64px;}" + ".dd-image-right { float:right; margin-right:15px; margin-left:5px;}" + ".dd-container{ position:relative;} .dd-selected-text { font-weight:bold}</style>"; if (a("#css-ddslick").length <= 0) { a(f).appendTo("head") } b.init = function (b) { var b = a.extend({}, c, b); return this.each(function () { var c = a(this), f = c.data("ddslick"); if (!f) { var i = [], j = b.data; c.find("option").each(function () { var b = a(this), c = b.data(); i.push({ text: b.text().trim(), value: b.val(), selected: b.is(":selected"), description: c.description, imageSrc: c.imagesrc }) }); if (b.keepJSONItemsOnTop) a.merge(b.data, i); else b.data = a.merge(i, b.data); var k = c, l = a('<div id="' + c.attr("id") + '"></div>'); c.replaceWith(l); c = l; c.addClass("dd-container").append(d).append(e); var i = c.find(".dd-select"), m = c.find(".dd-options"); m.css({ width: b.width }); i.css({ width: b.width, background: b.background }); c.css({ width: b.width }); if (b.height != null) m.css({ height: b.height, overflow: "auto" }); a.each(b.data, function (a, c) { if (c.selected) b.defaultSelectedIndex = a; m.append("<li>" + '<a class="dd-option">' + (c.value ? ' <input class="dd-option-value" type="hidden" value="' + c.value + '" />' : "") + (c.text ? ' <label class="dd-option-text ' + (c.imageSrc ? c.imageSrc : "") + '">' + c.text + "</label>" : "") + (c.description ? ' <small class="dd-option-description dd-desc">' + c.description + "</small>" : "") + "</a>" + "</li>") }); var n = { settings: b, original: k, selectedIndex: -1, selectedItem: null, selectedData: null }; c.data("ddslick", n); if (b.selectText.length > 0 && b.defaultSelectedIndex == null) { c.find(".dd-selected").html(b.selectText) } else { var o = b.defaultSelectedIndex != null && b.defaultSelectedIndex >= 0 && b.defaultSelectedIndex < b.data.length ? b.defaultSelectedIndex : 0; g(c, o) } c.find(".dd-select").on("click.ddslick", function () { h(c) }); c.find(".dd-option").on("click.ddslick", function () { g(c, a(this).closest("li").index()) }); if (b.clickOffToClose) { m.addClass("dd-click-off-close"); c.on("click.ddslick", function (a) { a.stopPropagation() }); a("body").on("click", function () { a(".dd-click-off-close").slideUp(50).siblings(".dd-select").find(".dd-pointer").removeClass("dd-pointer-up") }) } } }) }; b.select = function (b) { return this.each(function () { if (b.index) g(a(this), b.index) }) }; b.open = function () { return this.each(function () { var b = a(this), c = b.data("ddslick"); if (c) h(b) }) }; b.close = function () { return this.each(function () { var b = a(this), c = b.data("ddslick"); if (c) i(b) }) }; b.destroy = function () { return this.each(function () { var b = a(this), c = b.data("ddslick"); if (c) { var d = c.original; b.removeData("ddslick").unbind(".ddslick").replaceWith(d) } }) } })(jQuery) -
wp-all-export/trunk/static/js/pmxe.js
r835969 r2868132 4 4 (function($){$(function () { 5 5 6 $('#dismiss'). click(function(){6 $('#dismiss').on('click', function(){ 7 7 8 8 $(this).parents('div.updated:first').slideUp(); -
wp-all-export/trunk/static/js/scheduling.js
r1826194 r2868132 58 58 }; 59 59 60 $('#weekly li'). click(function () {60 $('#weekly li').on('click', function () { 61 61 if ($(this).hasClass('selected')) { 62 62 $(this).removeClass('selected'); … … 76 76 }); 77 77 78 $('#monthly li'). click(function () {78 $('#monthly li').on('click', function () { 79 79 $(this).parent().parent().find('.days-of-week li').removeClass('selected'); 80 80 $(this).addClass('selected'); 81 81 }); 82 82 83 $('input[name="scheduling_run_on"]'). change(function () {83 $('input[name="scheduling_run_on"]').on('change', function () { 84 84 var val = $('input[name="scheduling_run_on"]:checked').val(); 85 85 if (val == "weekly") { -
wp-all-export/trunk/views/admin/export/index.php
r2806325 r2868132 306 306 <table><tr><td class="wpallexport-note"></td></tr></table> 307 307 </form> 308 309 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 308 309 <div class="wpallexport-display-columns wpallexport-margin-top-forty"> 310 <?php echo apply_filters('wpallexport_footer', ''); ?> 311 </div> 310 312 311 313 </div> -
wp-all-export/trunk/views/admin/export/options.php
r2830466 r2868132 129 129 </div> 130 130 131 </form> 131 132 132 </form> 133 134 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a>135 133 <div class="wpallexport-display-columns wpallexport-margin-top-forty"> 134 <?php echo apply_filters('wpallexport_footer', ''); ?> 135 </div> 136 136 137 </td> 137 138 </tr> -
wp-all-export/trunk/views/admin/export/options/settings.php
r2830466 r2868132 153 153 <input type="hidden" name="allow_client_mode" value="0"/> 154 154 <input type="checkbox" id="allow_client_mode" name="allow_client_mode" 155 value="1" <?php echo (isset($post['allow_client_mode']) && $post['allow_client_mode']) ? 'checked="checked"' : '' ?>/>155 value="1" /> 156 156 <label for="allow_client_mode"><?php esc_html_e('Allow non-admins to run this export in Client Mode', 'wp_all_export_plugin') ?></label> 157 157 <span> -
wp-all-export/trunk/views/admin/export/process.php
r2654009 r2868132 97 97 </div> 98 98 99 <a href="http://soflyy.com/" target="_blank" 100 class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 99 <div class="wpallexport-display-columns wpallexport-margin-top-forty"> 100 <?php echo apply_filters('wpallexport_footer', ''); ?> 101 </div> 101 102 102 103 </div> -
wp-all-export/trunk/views/admin/export/success_page.php
r2738627 r2868132 30 30 <script type="text/javascript"> 31 31 jQuery(document).ready(function () { 32 jQuery('.success-tabs .tab'). click(function () {32 jQuery('.success-tabs .tab').on('click', function () { 33 33 jQuery('.success-tabs .tab').removeClass('selected'); 34 34 jQuery(this).addClass('selected'); -
wp-all-export/trunk/views/admin/export/template.php
r2738627 r2868132 621 621 622 622 </fieldset> 623 <?php echo apply_filters('wpallexport_info_panel', ''); ?> 623 624 </td> 624 625 </tr> -
wp-all-export/trunk/views/admin/export/template/add_new_field.php
r2654009 r2868132 28 28 29 29 var $addAnotherForm = $('fieldset.wp-all-export-edit-column'); 30 $addAnotherForm. click(function () {30 $addAnotherForm.on('click', function () { 31 31 var rel = $addAnotherForm.attr('rel'); 32 32 }); 33 33 34 $('select[name="column_value_type"]'). change(function(){34 $('select[name="column_value_type"]').on('change', function(){ 35 35 $('.column_name').val($(this).find('option:selected').text()); 36 36 }); … … 42 42 }); 43 43 44 $('.preview_action'). unbind('click').click(function (event) {44 $('.preview_action').off('click').on('click', function (event) { 45 45 return false; 46 46 }); 47 47 48 $('input[name="combine_multiple_fields"]'). change(function () {48 $('input[name="combine_multiple_fields"]').on('change', function () { 49 49 if ($(this).val() == '1') { 50 50 $('#combine_multiple_fields_value_container').slideDown(); -
wp-all-export/trunk/views/admin/export/variation_options_common.php
r2654009 r2868132 15 15 } 16 16 17 $('.export_variations'). change(function () {17 $('.export_variations').on('change', function () { 18 18 19 19 var inputName = $(this).attr('name'); … … 29 29 }); 30 30 31 $('.export_variations_title'). change(function(event){31 $('.export_variations_title').on('change', function(event){ 32 32 33 33 var inputName = $(this).attr('name'); -
wp-all-export/trunk/views/admin/google/index.php
r2654009 r2868132 7 7 wp_enqueue_style('pmxe-angular-scss', PMXE_ROOT_URL . '/frontend/dist/styles.css', array(), PMXE_VERSION.PMXE_ASSETS_VERSION); 8 8 9 if(getenv('WPAE_DEV')) {10 // Livereload in dev mode11 echo '<script src="//localhost:35729/livereload.js"></script>';12 }13 9 ?> 14 <script type="text/javascript">15 jQuery(document).ready(function(){16 jQuery('#testLink').click(function(){17 mediator.publish('something', { data: 'Some data' });18 });19 });20 </script>21 10 <div ng-app="GoogleMerchants" ng-controller="mainController" ng-init="init()"> 22 11 -
wp-all-export/trunk/views/admin/manage/index.php
r2830466 r2868132 4 4 } 5 5 $addons = new \Wpae\App\Service\Addons\AddonService(); 6 function is_broken($item) { 7 return is_null($item['options']) || !$item['options']; 8 } 6 9 ?> 7 10 … … 32 35 33 36 $(document).ready(function () { 34 $('.open_cron_scheduling'). click(function () {37 $('.open_cron_scheduling').on('click', function () { 35 38 36 39 var itemId = $(this).data('itemid'); … … 323 326 case 'data': 324 327 ?> 325 <td> 326 327 <?php 328 if (!empty($item['options']['cpt'])) { 329 330 echo '<strong>' . __('Post Types: ') . '</strong> <br/>'; 331 332 if($is_rapid_addon_export) { 333 $form = GFAPI::get_form($item['options']['sub_post_type_to_export']); 334 echo 'Gravity Form Entries:<br/>'; 335 echo esc_html($form['title']); 336 } else { 337 echo esc_html(implode(', ', $item['options']['cpt'])); 338 } 339 } 340 else { 341 echo esc_html($item['options']['wp_query']); 342 }?> 343 </td> 328 <td> 329 <?php 330 if(is_broken($item)) { 331 ?> 332 <strong>Broken:</strong> please delete 333 <?php 334 } 335 ?> 336 <?php 337 if (!empty($item['options']['cpt'])) { 338 339 echo '<strong>' . __('Post Types: ') . '</strong> <br/>'; 340 341 if ($is_rapid_addon_export) { 342 $form = GFAPI::get_form($item['options']['sub_post_type_to_export']); 343 echo 'Gravity Form Entries:<br/>'; 344 echo $form['title']; 345 } else { 346 echo implode(', ', $item['options']['cpt']); 347 } 348 } else { 349 echo $item['options']['wp_query']; 350 } ?> 351 </td> 344 352 <?php 345 353 break; … … 433 441 ?> 434 442 <td style="min-width: 130px;"> 435 <?php if ( ! $item['processing'] and ! $item['executing'] ): ?> 436 <h2 style="float:left;"><a class="add-new-h2" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'update'), $this->baseUrl)); ?>"><?php esc_html_e('Run Export', 'wp_all_export_plugin'); ?></a></h2> 437 <?php elseif ($item['processing']) : ?> 438 <h2 style="float:left;"><a class="add-new-h2" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'cancel'), $this->baseUrl)); ?>"><?php esc_html_e('Cancel Cron', 'wp_all_export_plugin'); ?></a></h2> 439 <?php elseif ($item['executing']) : ?> 440 <h2 style="float:left;"><a class="add-new-h2" href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'cancel'), $this->baseUrl)); ?>"><?php esc_html_e('Cancel', 'wp_all_export_plugin'); ?></a></h2> 441 <?php endif; ?> 443 <?php 444 if(!is_broken($item)) { 445 ?> 446 <?php if (!$item['processing'] and !$item['executing']): ?> 447 <h2 style="float:left;"><a class="add-new-h2" 448 href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'update'), $this->baseUrl)); ?>"><?php esc_html_e('Run Export', 'wp_all_export_plugin'); ?></a> 449 </h2> 450 <?php elseif ($item['processing']) : ?> 451 <h2 style="float:left;"><a class="add-new-h2" 452 href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'cancel'), $this->baseUrl)); ?>"><?php esc_html_e('Cancel Cron', 'wp_all_export_plugin'); ?></a> 453 </h2> 454 <?php elseif ($item['executing']) : ?> 455 <h2 style="float:left;"><a class="add-new-h2" 456 href="<?php echo esc_url(add_query_arg(array('id' => $item['id'], 'action' => 'cancel'), $this->baseUrl)); ?>"><?php esc_html_e('Cancel', 'wp_all_export_plugin'); ?></a> 457 </h2> 458 <?php endif; ?> 459 <?php 460 } 461 ?> 442 462 </td> 443 463 <?php … … 475 495 </div> 476 496 </div> 477 <div class="clear"></div> 478 479 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 497 <div class="clear"></div> 498 499 <div class="wpallexport-negative-margin"> 500 <?php echo apply_filters('wpallexport_footer', ''); ?> 501 </div> 502 480 503 481 504 </form> -
wp-all-export/trunk/views/admin/manage/scheduling.php
r2654009 r2868132 60 60 </p> 61 61 62 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 62 <div class="wpallexport-display-columns wpallexport-margin-top-forty"> 63 <?php echo apply_filters('wpallexport_footer', ''); ?> 64 </div> -
wp-all-export/trunk/views/admin/manage/templates.php
r2654009 r2868132 12 12 </p> 13 13 <img src="<?php echo PMXE_ROOT_URL; ?>/static/img/import-templates.png" width="400px" style="border: 1px solid #aaa;"> 14 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 14 <div class="wpallexport-display-columns wpallexport-margin-top-forty"> 15 <?php echo apply_filters('wpallexport_footer', ''); ?> 16 </div> 15 17 </div> -
wp-all-export/trunk/views/admin/manage/update.php
r2654009 r2868132 106 106 107 107 108 </form> 109 110 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 108 </form> 109 110 <div class="wpallexport-display-columns wpallexport-margin-top-forty"> 111 <?php echo apply_filters('wpallexport_footer', ''); ?> 112 </div> 111 113 112 114 </td> -
wp-all-export/trunk/views/admin/settings/index.php
r2830466 r2868132 212 212 </div> 213 213 </div> 214 <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php esc_html_e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> 214 <div class="wpallexport-negative-margin fifteen"> 215 <?php echo apply_filters('wpallexport_footer', ''); ?> 216 </div> -
wp-all-export/trunk/wp-all-export.php
r2830466 r2868132 4 4 Plugin URI: http://www.wpallimport.com/upgrade-to-wp-all-export-pro/?utm_source=export-plugin-free&utm_medium=wp-plugins-page&utm_campaign=upgrade-to-pro 5 5 Description: Export any post type to a CSV or XML file. Edit the exported data, and then re-import it later using WP All Import. 6 Version: 1.3. 86 Version: 1.3.9 7 7 Author: Soflyy 8 8 */ … … 60 60 define('PMXE_PREFIX', 'pmxe_'); 61 61 62 define('PMXE_VERSION', '1.3. 8');62 define('PMXE_VERSION', '1.3.9'); 63 63 64 64 define('PMXE_ASSETS_VERSION', '-1.0.2'); … … 218 218 } 219 219 220 add_action("admin_enqueue_scripts", [$this, 'add_admin_scripts']); 221 220 222 // register filter handlers 221 223 if (is_dir(self::ROOT_DIR . '/filters')) foreach (PMXE_Helper::safe_glob(self::ROOT_DIR . '/filters/*.php', PMXE_Helper::GLOB_RECURSE | PMXE_Helper::GLOB_PATH) as $filePath) { … … 241 243 add_action('admin_init', array($this, 'fix_db_schema'), 10); 242 244 add_action('init', array($this, 'init'), 10); 245 } 246 247 public function add_admin_scripts() { 248 $cm_settings['codeEditor'] = wp_enqueue_code_editor(['type' => 'php']); 249 250 // Use our modified function if user has disabled the syntax editor. 251 if(false === $cm_settings['codeEditor']){ 252 $cm_settings['codeEditor'] = wpae_wp_enqueue_code_editor(['type' => 'php']); 253 } 254 255 wp_localize_script('jquery', 'wpae_cm_settings', $cm_settings); 243 256 } 244 257 … … 812 825 $export_post_type = false; 813 826 $created_at = false; 814 827 815 828 // Check if field exists 816 829 foreach ($tablefields as $tablefield) {
Note: See TracChangeset
for help on using the changeset viewer.