Ultimate CSV Importer - Version 3.6.6

Version Description

Download this release

Release Info

Developer smackcoders
Plugin Icon 128x128 Ultimate CSV Importer
Version 3.6.6
Comparing to
See all releases

Code changes from version 3.6.5 to 3.6.6

Readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.smackcoders.com/donate.html
4
  Tags: batch, csv, excel, import, spreadsheet, autoblog, Autoblogger, csvimporter, data, dataimport, importer, wpcsvimporter, wpimporter, acf, auto blog, csv import, csv to post, data import, Easy CSV Importer, eci, import plugin, admin, user, users, Advanced CSV Import, Advanced CSV Importer, affiliate, amazon, author, automatic, blog, buddypress, bulk, bulk edit, bulk editor, categories, comments, content, csv file, csv format, csv importer, custom post, e-commerce, free, images, language, manage, media, meta, multisite, News, page, photos, pictures, plugin, Post, seo, shop, shortcode, tags, Taxonomy, text, title, video, eshop, woocommerce, wordpress, xml, youtube, export
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 3.6.5
8
- Version: 3.6.5
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
 
@@ -15,13 +15,13 @@ Advanced CSV Importer plugin to import/export posts, pages, eshop products, cust
15
 
16
  == Description ==
17
 
18
- ** Now version 3.6.5 available with much advanced media handling of in line images in any posts features. Visit [www.wpultimatecsvimporter.com](http://www.wpultimatecsvimporter.com) for more news and future plans.
19
 
20
  WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer With Ultimate User Friendly Features. It is much easy now even for newbies to import any csv file as any wordpress post type and associated fields by simple mapping feature. Now import any CSV file as thousands of post, page and custom post types. This is admin side free plugin helps you in bulk edit, create and import posts type for your blog or site.
21
 
22
  = Video Walkthrough =
23
 
24
- <p>http://www.youtube.com/watch?v=OwKdt_NlT2U&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
25
 
26
  = Highlights =
27
  * Import external/internal images in line to any posts
@@ -176,6 +176,11 @@ This will solve your issue or get support from hosting if you dint have sufficie
176
 
177
  == Changelog ==
178
 
 
 
 
 
 
179
  = 3.6.5 =
180
  * Added in line image support with advance media handling
181
  * PDO check added
@@ -360,6 +365,10 @@ This will solve your issue or get support from hosting if you dint have sufficie
360
 
361
 
362
  == Upgrade Notice ==
 
 
 
 
363
  = 3.6.5 =
364
  * Upgrade Now for advanced media handling for post in line images
365
 
4
  Tags: batch, csv, excel, import, spreadsheet, autoblog, Autoblogger, csvimporter, data, dataimport, importer, wpcsvimporter, wpimporter, acf, auto blog, csv import, csv to post, data import, Easy CSV Importer, eci, import plugin, admin, user, users, Advanced CSV Import, Advanced CSV Importer, affiliate, amazon, author, automatic, blog, buddypress, bulk, bulk edit, bulk editor, categories, comments, content, csv file, csv format, csv importer, custom post, e-commerce, free, images, language, manage, media, meta, multisite, News, page, photos, pictures, plugin, Post, seo, shop, shortcode, tags, Taxonomy, text, title, video, eshop, woocommerce, wordpress, xml, youtube, export
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 3.6.6
8
+ Version: 3.6.6
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
 
15
 
16
  == Description ==
17
 
18
+ ** Now version 3.6.6 with added improvements and fixes to 3.6.5 with much advanced media handling of in line images in any posts features. Visit [www.wpultimatecsvimporter.com](http://www.wpultimatecsvimporter.com) for more news and future plans.
19
 
20
  WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer With Ultimate User Friendly Features. It is much easy now even for newbies to import any csv file as any wordpress post type and associated fields by simple mapping feature. Now import any CSV file as thousands of post, page and custom post types. This is admin side free plugin helps you in bulk edit, create and import posts type for your blog or site.
21
 
22
  = Video Walkthrough =
23
 
24
+ <p>https://www.youtube.com/watch?v=Guv5zR7fgW0&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
25
 
26
  = Highlights =
27
  * Import external/internal images in line to any posts
176
 
177
  == Changelog ==
178
 
179
+ = 3.6.6 =
180
+ * Dashboard chart issue fixed for multi site.
181
+ * UI improvements along with easy usability.
182
+ * Fixed Groups plugin conflicts
183
+
184
  = 3.6.5 =
185
  * Added in line image support with advance media handling
186
  * PDO check added
365
 
366
 
367
  == Upgrade Notice ==
368
+
369
+ = 3.6.6 =
370
+ * Upgrade now for improved experience.
371
+
372
  = 3.6.5 =
373
  * Upgrade Now for advanced media handling for post in line images
374
 
css/style.css CHANGED
@@ -156,7 +156,8 @@ margin-right:20px;
156
  float:left;
157
  }
158
  .top-right-box{
159
- float:right;
 
160
  }
161
  .top-left-box h3,.top-right-box h3,.fileManager h3{
162
  padding:10px;
@@ -325,3 +326,326 @@ margin-top:13px;
325
  .mappingheader .table-condensed span {
326
  margin-top:13px;
327
  }*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  float:left;
157
  }
158
  .top-right-box{
159
+ float: left;
160
+ width: 98%;
161
  }
162
  .top-left-box h3,.top-right-box h3,.fileManager h3{
163
  padding:10px;
326
  .mappingheader .table-condensed span {
327
  margin-top:13px;
328
  }*/
329
+ /*settings css*/
330
+ .selected {
331
+ background-color:#fcfcfc !important;
332
+ color:#222222;
333
+ border:0 none !important;
334
+ }
335
+ .selected:hover {
336
+ background-color:#E5E5E5 !important;
337
+ opacity:1;
338
+ color:#222 !important;
339
+ }
340
+ .not-selected {
341
+ background-color:#F2F2F2 !important;
342
+ color:#777;
343
+ opacity:0.7;
344
+ }
345
+ .bg-sidebar {
346
+ background-color:#F2F2F2;
347
+ }
348
+ #sidebar ul
349
+ {
350
+ margin-top: -1px;
351
+ margin-top: 0px;
352
+ width:100%;
353
+ float:left;
354
+ cursor:pointer;
355
+ position: relative;
356
+ list-style-type: none;
357
+ padding-left:5px;
358
+ }
359
+ #sidebar ul > li
360
+ {
361
+ border-right: 1px solid #e7e7e7;
362
+ border-bottom: 1px solid #e7e7e7;
363
+ margin-left:-5px;
364
+ margin-bottom: -0px;
365
+ padding:10px 23px;
366
+ font-weight:700;
367
+ font-size:13px;
368
+ }
369
+ #sidebar li:hover {
370
+ background-color:#E5E5E5;
371
+ color:#555;
372
+ }
373
+ #contentbar {
374
+ color: #444444;
375
+ display:inline-block;
376
+ font-family: "Open Sans",sans-serif;
377
+ font-size: 13px;
378
+ line-height: 1.4em;
379
+ background: none repeat scroll 0 0 #FCFCFC;
380
+ width: 73.5%;
381
+ height:965px;
382
+ border-right:1px solid #D1D1D1;
383
+ position: absolute;
384
+ margin-left:0%;
385
+ float:right;
386
+ min-height:499px;
387
+ }
388
+ #sidebar {
389
+ float:left;
390
+ height:965px;
391
+ border-left:1px solid #D1D1D1;
392
+ color:#777;
393
+ background:#F2F2F2;
394
+ width:25%;
395
+ min-height:499px;
396
+ }
397
+ #settingmodule
398
+ {
399
+ width:100%;
400
+ }
401
+ .title {
402
+ border-bottom: 1px solid #E7E7E7;
403
+ margin-left:25px;
404
+ margin-right:25px;
405
+ }
406
+ .title > h3 {
407
+ color: #222;
408
+ font-family: "Open Sans",sans-serif;
409
+ font-size: 1.3em;
410
+ font-weight: 600;
411
+ line-height: 2em;
412
+ margin-top:10px;
413
+ }
414
+ #innertitle {
415
+ color: #333 !important;
416
+ font-family: "Open Sans",sans-serif !important;
417
+ font-size: 14px !important;
418
+ font-weight: 700 !important;
419
+ }
420
+ #data
421
+ {
422
+ font-size:13px;
423
+ color:#666;
424
+ font-weight:400;
425
+ margin-left:25px;
426
+ margin-right:25px;
427
+ padding-left:30px;
428
+ padding-top:10px;
429
+ padding-bottom: 10px;
430
+ }
431
+ #resetcustfield {
432
+ float: right;
433
+ margin-top: -33px;
434
+ margin-right: 8px;
435
+ }
436
+ #wpusercheck,#allowimport,#schedulecheck,#dropon,#catenable,#postlabel,
437
+ #pagelabel,#userlabel,#commentslabel,#custaxlabel,#cplabel,#catlabel,#custrevlabel {
438
+ border-radius:5px 0 0 5px;
439
+ }
440
+ #wpuseruncheck,#donallowimport,#scheduleuncheck,#dropoff,#catdisable,#nopostlabel,
441
+ #nopagelabel,#nouserlabel,#nocommentslabel,#nocustaxlabel,#nocplabel,#nocatlabel,#nocustrevlabel {
442
+ border-radius:0 5px 5px 0;
443
+ }
444
+ #activemenu {
445
+ margin-left: 3px;
446
+ margin-top: 15px;
447
+ font-family: "Open Sans",sans-serif;
448
+ font-weight: normal;
449
+ font-style: normal;
450
+ font-size: 1.7em;
451
+ }
452
+ .tabase table {
453
+ width:80%;
454
+ }
455
+ #align {
456
+ padding-top:5px;
457
+ padding-left:5px;
458
+ color:#666;
459
+ font-size:16px;
460
+ font-family: "open sans";
461
+ }
462
+ #data table {
463
+ width:88%;
464
+ }
465
+ .security-perfoemance {
466
+ -webkit-padding-after: 26px !important;
467
+ }
468
+ .custom-fields {
469
+ -webkit-padding-after: 14px !important;
470
+ }
471
+ .databorder tr {
472
+ border-bottom:1px solid #E7E7E7;
473
+ }
474
+ .databorder tr:last-child {
475
+ border-bottom: 0 none !important;
476
+ }
477
+ #data td {
478
+ padding: 8px 0;
479
+ }
480
+ #settingheader {
481
+ border:1px solid #D1D1D1;
482
+ height:52px;
483
+ margin-right:23px;
484
+ margin-top: -17px;
485
+ width:98%;
486
+ }
487
+ #bottomsave {
488
+ border-bottom:1px solid #D1D1D1;
489
+ border-left:1px solid #D1D1D1;
490
+ border-right:1px solid #D1D1D1;
491
+ height:52px;
492
+ margin-right:23px;
493
+ margin-top: -4px;
494
+ width:98%;
495
+ }
496
+ #settingsholder {
497
+ display:inline-block;
498
+ height:966px;
499
+ width:98%;
500
+ border-bottom:1px solid #D1D1D1;
501
+ min-height:500px;
502
+ }
503
+ #resetopt {
504
+ color: #0099d5;
505
+ }
506
+ .settings-icon {
507
+ padding-right: 7px;
508
+ }
509
+ .uifree-settings {
510
+ padding-top: 10px;
511
+ }
512
+ #data input[type="radio"],input[type="checkbox"] {
513
+ margin-top: -3px !important;
514
+ }
515
+ .corner-icon > img {
516
+ margin-left: 11px;
517
+ margin-top: 13px;
518
+ }
519
+ .enablesetting {
520
+ background-color:#0074a2;
521
+ color:#fff;
522
+ border-color: #004f6f;
523
+ box-shadow: 0 1px 0 #00abef inset, 0 1px 0 rgba(0, 0, 0, 0.15);
524
+ border-style: solid;
525
+ border-width: 1px;
526
+ cursor: pointer;
527
+ line-height: normal;
528
+ margin-right: -4px;
529
+ padding: 5px;
530
+ border-radius:5px;
531
+ text-align:center;
532
+ }
533
+ .disablesetting {
534
+ background-color: #e6e6e6;
535
+ background-image: linear-gradient(#fff, #fff 25%, #e6e6e6);
536
+ background-repeat: no-repeat;
537
+ border-color: #ccc #ccc #bbb;
538
+ border-image: none;
539
+ border-style: solid;
540
+ border-width: 1px;
541
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
542
+ cursor: pointer;
543
+ line-height: normal;
544
+ margin-right: -4px;
545
+ padding: 5px;
546
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
547
+ border-radius:5px;
548
+ text-align:center;
549
+ }
550
+ .debug-info-name {
551
+ width:40%;
552
+ }
553
+ .ini-configured-values, .min-requirement-values {
554
+ text-align: center;
555
+ }
556
+ .moduleavail {
557
+ float: left;
558
+ margin: 6px 0 0 20px !important;
559
+ position: absolute;
560
+ }
561
+ #pluginavail {
562
+ width: 8px;
563
+ height: 9px;
564
+ border-radius: 15px;
565
+ float:right;
566
+ margin-top: 11px;
567
+ }
568
+ #repavail {
569
+ width: 8px;
570
+ height: 9px;
571
+ border-radius: 15px;
572
+ }
573
+ #repplugin {
574
+ padding-left: 5px;
575
+ padding-top: 5px;
576
+ }
577
+ #replabel{
578
+ padding-left:5px;
579
+ margin-top:-7px;
580
+ }
581
+ /*End of settings css*/
582
+
583
+ /*Export Settings*/
584
+ #exporttable input[type="radio"],input[type="checkbox"] {
585
+ margin-top: -3px !important;
586
+ vertical-align: middle;
587
+ min-width: 16px;
588
+ }
589
+ /*End of export section*/
590
+ .inside input[type="radio"],input[type="checkbox"] {
591
+ margin-top: -3px !important;
592
+ vertical-align: middle;
593
+ min-width: 16px;
594
+ }
595
+ #renameradio input[type="radio"] {
596
+ margin-top: -3px !important;
597
+ vertical-align: middle;
598
+ min-width: 16px;
599
+ }
600
+ #updatediv input[type="checkbox"] {
601
+ margin-top: -3px !important;
602
+ vertical-align: middle;
603
+ min-width: 16px;
604
+ }
605
+ #savetemp input[type="radio"] {
606
+ margin-top: -3px !important;
607
+ vertical-align: middle;
608
+ min-width: 16px;
609
+ }
610
+ #importopt {
611
+ color: #222;
612
+ font-family: "Open Sans",sans-serif;
613
+ font-size: 1.3em !important;
614
+ font-weight: 600 !important;
615
+ }
616
+
617
+ #importalign,#preview_of_row {
618
+ padding-top:5px !important;
619
+ padding-left:5px !important;
620
+ color:#666 !important;
621
+ font-size:14px !important;
622
+ font-family: "open sans" !important;
623
+ }
624
+ #importalign > input[type="radio"], input[type="checkbox"] {
625
+ margin: 0px 6px !important;
626
+ }
627
+ .importstatus, #importalign {
628
+ margin-top:0px;
629
+ }
630
+ .csvheader, .csvcolumnvalue {
631
+ font-size: 13px;
632
+ font-style: normal;
633
+ font-weight: 400;
634
+ color:#666;
635
+ }
636
+ div#log {
637
+ color: #666;
638
+ }
639
+ .columnheader {
640
+ font-size: 1.25em;
641
+ }
642
+
643
+ .form-group {
644
+ margin-top: 10px;
645
+ }
646
+ /*Summary log*/
647
+ #logtabs {
648
+ height:315px !important;
649
+ }
650
+ /*End off summary*/
651
+
images/Bluehelp.png ADDED
Binary file
images/DBOptimize.png ADDED
Binary file
images/additionalfeatures.png ADDED
Binary file
images/chart_bar.png ADDED
Binary file
images/export.png ADDED
Binary file
images/help.png CHANGED
Binary file
images/lSettingsCorner.png ADDED
Binary file
images/lcart.png ADDED
Binary file
images/lcustomfields.png ADDED
Binary file
images/lcustomposts.png ADDED
Binary file
images/ldocs24.png ADDED
Binary file
images/security.png ADDED
Binary file
images/seo24.png ADDED
Binary file
images/settings.png ADDED
Binary file
images/stat_icon.png ADDED
Binary file
includes/WPImporter_includes_helper.php CHANGED
@@ -109,8 +109,8 @@ class WPImporter_includes_helper {
109
  public function getImportDataConfiguration(){
110
  $importDataConfig = "<div class='importstatus'id='importallwithps_div'>
111
  <table><tr><td>
112
- <label>Import with post status</label><span class='mandatory'> *</span></td><td>
113
- <div style='float:left;'>
114
  <select name='importallwithps' id='importallwithps' onChange='selectpoststatus();' >
115
  <option value='0'>Status as in CSV</option>
116
  <option value='1'>Publish</option>
@@ -375,6 +375,7 @@ class WPImporter_includes_helper {
375
  $logObj->detailedLog[$currentLimit]['image'] = "<b>Image -</b>" . $fimg_name;
376
  }
377
  curl_close($ch);
 
378
  }
379
 
380
  /**
@@ -495,6 +496,7 @@ class WPImporter_includes_helper {
495
  $f_img_slug = preg_replace('/\s/', '-', $f_img_slug);
496
 
497
  $post_slug_value = strtolower($f_img_slug);
 
498
  $this->get_fimg_from_URL($f_img, $fimg_path, $fimg_name, $post_slug_value, $currentLimit, $this);
499
  $filepath = $fimg_path ."/" . $fimg_name;
500
 
@@ -1023,7 +1025,7 @@ class WPImporter_includes_helper {
1023
 
1024
  <div align="center" style="text-align:left;margin-top:-33px;">
1025
  <div id="boxmethod1" class="method1">
1026
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="uploadfilefromcomputer" onclick="choose_import_method(this.id);" checked/></span> <span class="header-text">' . __('From Computer') . '</span> </label> <br>
1027
  <!-- The fileinput-button span is used to style the file input field as button -->
1028
  <div id="method1" style="display:block;height:40px;">
1029
  <span class="btn btn-success fileinput-button">
@@ -1042,13 +1044,13 @@ class WPImporter_includes_helper {
1042
  </div>
1043
  <div style = "opacity: 0.3;background-color: ghostwhite;">
1044
  <div id="boxmethod2" class="method2">
1045
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text">' . __('From FTP') . '</span> </label> <br>
1046
  </div>
1047
  <div id="boxmethod3" class="method3">
1048
- <label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text">' . __('From URL') . '</span></label> <br>
1049
  </div>
1050
  <div id="boxmethod4" class="method4">
1051
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text">' . __('From Already Uploaded') . '</span></label> <br>
1052
  </div>
1053
  </div>
1054
 
@@ -1057,9 +1059,9 @@ class WPImporter_includes_helper {
1057
  $curr_module = $_REQUEST['__module'];
1058
  if($curr_module == 'post' || $curr_module == 'page' || $curr_module == 'custompost' || $curr_module == 'eshop') {
1059
  $smack_csv_import_method .= '<div class="media_handling" align="left">
1060
- <span class="advancemediahandling"> <label> <input type="checkbox" name="advance_media_handling" id="advance_media_handling" onclick = "filezipopen();" /> Advance Media Handling </label> </span>
1061
  <span id = "filezipup" style ="display:none;">
1062
- <span class="advancemediahandling" style="padding-left:30px; margin-top:-5px;"> <input type="file" name="inlineimages" id="inlineimages" onchange ="checkextension(this.value);" /> </span>
1063
  </span>
1064
  </div>';
1065
  }
@@ -1068,7 +1070,7 @@ class WPImporter_includes_helper {
1068
  }
1069
  function helpnotes()
1070
  {
1071
- $smackhelpnotes = '<span style="position:absolute;">
1072
  <a href="" class="tooltip">
1073
  <img src="'. WP_CONST_ULTIMATE_CSV_IMP_DIR .'images/help.png" />
1074
  <span class="tooltipPostStatus">
109
  public function getImportDataConfiguration(){
110
  $importDataConfig = "<div class='importstatus'id='importallwithps_div'>
111
  <table><tr><td>
112
+ <label id='importalign'>Import with post status</label><span class='mandatory'> *</span></td><td>
113
+ <div style='float:left;margin-right:10px;'>
114
  <select name='importallwithps' id='importallwithps' onChange='selectpoststatus();' >
115
  <option value='0'>Status as in CSV</option>
116
  <option value='1'>Publish</option>
375
  $logObj->detailedLog[$currentLimit]['image'] = "<b>Image -</b>" . $fimg_name;
376
  }
377
  curl_close($ch);
378
+ return $fimg_name;
379
  }
380
 
381
  /**
496
  $f_img_slug = preg_replace('/\s/', '-', $f_img_slug);
497
 
498
  $post_slug_value = strtolower($f_img_slug);
499
+ $fimg_name = wp_unique_filename($fimg_path, $fimg_name, $path_parts['extension']);
500
  $this->get_fimg_from_URL($f_img, $fimg_path, $fimg_name, $post_slug_value, $currentLimit, $this);
501
  $filepath = $fimg_path ."/" . $fimg_name;
502
 
1025
 
1026
  <div align="center" style="text-align:left;margin-top:-33px;">
1027
  <div id="boxmethod1" class="method1">
1028
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="uploadfilefromcomputer" onclick="choose_import_method(this.id);" checked/></span> <span class="header-text" id="importopt">' . __('From Computer') . '</span> </label> <br>
1029
  <!-- The fileinput-button span is used to style the file input field as button -->
1030
  <div id="method1" style="display:block;height:40px;">
1031
  <span class="btn btn-success fileinput-button">
1044
  </div>
1045
  <div style = "opacity: 0.3;background-color: ghostwhite;">
1046
  <div id="boxmethod2" class="method2">
1047
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP') . '</span> </label> <br>
1048
  </div>
1049
  <div id="boxmethod3" class="method3">
1050
+ <label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL') . '</span></label> <br>
1051
  </div>
1052
  <div id="boxmethod4" class="method4">
1053
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded') . '</span></label> <br>
1054
  </div>
1055
  </div>
1056
 
1059
  $curr_module = $_REQUEST['__module'];
1060
  if($curr_module == 'post' || $curr_module == 'page' || $curr_module == 'custompost' || $curr_module == 'eshop') {
1061
  $smack_csv_import_method .= '<div class="media_handling" align="left">
1062
+ <span class="advancemediahandling"> <label id="importalign"> <input type="checkbox" name="advance_media_handling" id="advance_media_handling" onclick = "filezipopen();" /> Advance Media Handling </label> </span>
1063
  <span id = "filezipup" style ="display:none;">
1064
+ <span class="advancemediahandling" style="padding-left:30px;"> <input type="file" name="inlineimages" id="inlineimages" onchange ="checkextension(this.value);" /> </span>
1065
  </span>
1066
  </div>';
1067
  }
1070
  }
1071
  function helpnotes()
1072
  {
1073
+ $smackhelpnotes = '<span style="position:absolute;margin-top:6px;margin-left:15px;">
1074
  <a href="" class="tooltip">
1075
  <img src="'. WP_CONST_ULTIMATE_CSV_IMP_DIR .'images/help.png" />
1076
  <span class="tooltipPostStatus">
index.php CHANGED
@@ -2,7 +2,7 @@
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: A plugin that helps to import the data's from a CSV file.
5
- * Version: 3.6.5
6
  * Author: smackcoders.com
7
  * Plugin URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
8
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
@@ -51,7 +51,7 @@ define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-
51
  define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
52
  define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
53
  define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
54
- define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.5');
55
  define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
56
  define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
57
  define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: A plugin that helps to import the data's from a CSV file.
5
+ * Version: 3.6.6
6
  * Author: smackcoders.com
7
  * Plugin URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
8
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
51
  define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
52
  define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
53
  define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
54
+ define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.6');
55
  define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
56
  define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
57
  define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
js/dashchart.js CHANGED
@@ -16,13 +16,10 @@ jQuery.ajax({
16
  success: function(data) {
17
 
18
  var browser = JSON.parse(data);
19
- var checkmodule = document.getElementById('checkmodule').value;
20
- if(checkmodule == 'dashboard') {
21
  if (browser['label'] == 'No Imports Yet') {
22
  document.getElementById('pieStats').innerHTML = "<h2 style='color: red;text-align: center;padding-top: 100px;' >No Imports Yet</h2>";
 
23
  }
24
- }
25
- else {
26
  jQuery('#pieStats').highcharts({
27
  chart: {
28
  type: 'pie',
@@ -56,7 +53,6 @@ jQuery.ajax({
56
  data: browser
57
  }]
58
  });
59
- }
60
  }
61
  });
62
  }
16
  success: function(data) {
17
 
18
  var browser = JSON.parse(data);
 
 
19
  if (browser['label'] == 'No Imports Yet') {
20
  document.getElementById('pieStats').innerHTML = "<h2 style='color: red;text-align: center;padding-top: 100px;' >No Imports Yet</h2>";
21
+ return false;
22
  }
 
 
23
  jQuery('#pieStats').highcharts({
24
  chart: {
25
  type: 'pie',
53
  data: browser
54
  }]
55
  });
 
56
  }
57
  });
58
  }
js/ultimate-importer-free.js CHANGED
@@ -501,6 +501,7 @@ var match = /\..+$/;
501
 
502
 
503
  function inline_image_option(id) {
 
504
  var selected_option = document.getElementById(id).value;
505
  document.getElementById('inlineimagevalue').value = selected_option;
506
  if(selected_option == 'inlineimage_location') {
@@ -515,10 +516,13 @@ function customimagelocation(val) {
515
 
516
  function enableinlineimageoption() {
517
  var importinlineimage = document.getElementById('multiimage').checked;
518
- if(importinlineimage == true)
519
  document.getElementById('inlineimageoption').style.display = '';
520
- else
 
521
  document.getElementById('inlineimageoption').style.display = 'none';
 
 
522
  }
523
 
524
  function importRecordsbySettings(siteurl)
@@ -536,12 +540,15 @@ function importRecordsbySettings(siteurl)
536
  var currentlimit = document.getElementById('currentlimit').value;
537
  var tmpCnt = document.getElementById('tmpcount').value;
538
  var no_of_tot_records = document.getElementById('tot_records').value;
539
- var importinlineimage = document.getElementById('multiimage').checked;
540
- if(importinlineimage == true) {
541
- } else {
 
 
 
 
 
542
  }
543
- var imagehandling = document.getElementById('inlineimagevalue').value;
544
- var inline_image_location = document.getElementById('inline_image_location').value;
545
  var get_log = document.getElementById('log').innerHTML;
546
  document.getElementById('reportLog').style.display = '';
547
  document.getElementById('terminatenow').style.display = '';
@@ -664,8 +671,14 @@ function check_if_avail(val){
664
  proModule[15] = 'recommerce';
665
  proModule[16] = 'automapping';
666
  proModule[17] = 'utfsupport';
667
-
668
-
 
 
 
 
 
 
669
  var warning_name = new Array();
670
  warning_name['categories'] = 'Categories/Tags';
671
  warning_name['customtaxonomy'] = 'Custom Taxonomy';
@@ -673,8 +686,8 @@ function check_if_avail(val){
673
  warning_name['marketpress'] = 'Market Press Lite';
674
  warning_name['woocommerce'] = 'WooCommerce';
675
  warning_name['wpcommerce'] = 'WP e-Commerce';
676
- warning_name['cctm'] = 'CCTM';
677
- warning_name['types'] = 'Types';
678
  warning_name['acf'] = 'ACF';
679
  warning_name['Customerreviews'] = 'Customer Reviews';
680
  warning_name['WP-Members'] = 'WP-Members';
@@ -684,11 +697,18 @@ function check_if_avail(val){
684
  warning_name['custompostuitype'] = 'Custom Post Type UI';
685
  warning_name['automapping'] = 'Auto Mapping';
686
  warning_name['utfsupport'] = 'UTF Support';
 
 
 
 
 
 
 
687
 
688
  var result = inArray(val, proModule);
689
  if(result == true){
690
 
691
- if(val == 'eshop' || val == 'wpcustomfields' || val == 'wpcommerce' || val == 'woocommerce' || val == 'marketpress'){
692
  if(val == 'wpcommerce' || val == 'wpcustomfields') {
693
  document.getElementById('wpcustomfieldstr').style.display = '';
694
  } else {
@@ -697,15 +717,42 @@ function check_if_avail(val){
697
  // document.getElementById('wpcustomfieldstr').style.display = 'none';
698
  document.getElementById('nonerecommerce').checked = true;
699
  }
700
- if(val == 'cctm' || val == 'acf'){
701
- document.getElementById('nonercustompost').checked = true;
 
 
 
 
 
 
 
 
 
702
  }
703
- if(val == 'aioseo' || val == 'yoastseo'){
704
- document.getElementById('nonerseooption').checked = true;
 
 
 
705
  }
706
  if(val == 'caticonenable'){
707
  document.getElementById('caticondisable').checked = true;
708
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
709
  document.getElementById(val).checked = false;
710
  document.getElementById('ShowMsg').style.display = "";
711
  document.getElementById('warning-msg').innerHTML = warning_name[val]+' feature is available only for PRO!.';
@@ -821,6 +868,28 @@ function selectModules(id) {
821
  document.getElementById('users').checked = true;
822
  document.getElementById('comments').checked = true;
823
  document.getElementById('custompost').checked = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
824
  }
825
  else if(param == 'uncheckallModules') {
826
 
@@ -829,6 +898,28 @@ function selectModules(id) {
829
  document.getElementById('users').checked = false;
830
  document.getElementById('comments').checked = false;
831
  document.getElementById('custompost').checked = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
832
  }
833
  }
834
 
@@ -871,3 +962,560 @@ function addwpexportfilter(id) {
871
  }
872
  }
873
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
 
502
 
503
  function inline_image_option(id) {
504
+ document.getElementById('startbutton').disabled = false;
505
  var selected_option = document.getElementById(id).value;
506
  document.getElementById('inlineimagevalue').value = selected_option;
507
  if(selected_option == 'inlineimage_location') {
516
 
517
  function enableinlineimageoption() {
518
  var importinlineimage = document.getElementById('multiimage').checked;
519
+ if(importinlineimage == true) {
520
  document.getElementById('inlineimageoption').style.display = '';
521
+ document.getElementById('startbutton').disabled = true;
522
+ } else {
523
  document.getElementById('inlineimageoption').style.display = 'none';
524
+ document.getElementById('startbutton').disabled = false;
525
+ }
526
  }
527
 
528
  function importRecordsbySettings(siteurl)
540
  var currentlimit = document.getElementById('currentlimit').value;
541
  var tmpCnt = document.getElementById('tmpcount').value;
542
  var no_of_tot_records = document.getElementById('tot_records').value;
543
+ var importinlineimage = false;
544
+ var imagehandling = false;
545
+ var inline_image_location = false;
546
+ var currentModule = document.getElementById('current_module').value;
547
+ if(currentModule != 'users' && currentModule != 'comments') {
548
+ importinlineimage = document.getElementById('multiimage').checked;
549
+ imagehandling = document.getElementById('inlineimagevalue').value;
550
+ inline_image_location = document.getElementById('inline_image_location').value;
551
  }
 
 
552
  var get_log = document.getElementById('log').innerHTML;
553
  document.getElementById('reportLog').style.display = '';
554
  document.getElementById('terminatenow').style.display = '';
671
  proModule[15] = 'recommerce';
672
  proModule[16] = 'automapping';
673
  proModule[17] = 'utfsupport';
674
+ proModule[18] = 'podspost';
675
+ proModule[19] = 'podscustomfield';
676
+ proModule[20] = 'typescustomfield';
677
+ proModule[21] = 'drop_table';
678
+ proModule[22] = 'database_optimization';
679
+ proModule[23] = 'scheduled';
680
+ proModule[24] = 'cctmcustomfields';
681
+
682
  var warning_name = new Array();
683
  warning_name['categories'] = 'Categories/Tags';
684
  warning_name['customtaxonomy'] = 'Custom Taxonomy';
686
  warning_name['marketpress'] = 'Market Press Lite';
687
  warning_name['woocommerce'] = 'WooCommerce';
688
  warning_name['wpcommerce'] = 'WP e-Commerce';
689
+ warning_name['cctm'] = 'CCTM Custom Post';
690
+ warning_name['types'] = 'Types Custom Post';
691
  warning_name['acf'] = 'ACF';
692
  warning_name['Customerreviews'] = 'Customer Reviews';
693
  warning_name['WP-Members'] = 'WP-Members';
697
  warning_name['custompostuitype'] = 'Custom Post Type UI';
698
  warning_name['automapping'] = 'Auto Mapping';
699
  warning_name['utfsupport'] = 'UTF Support';
700
+ warning_name['podspost'] = 'Pods Custom Post';
701
+ warning_name['podscustomfield'] = 'Pods Custom Field';
702
+ warning_name['typescustomfield'] = 'Types Custom Field';
703
+ warning_name['drop_table'] = 'Drop Table';
704
+ warning_name['database_optimization'] = 'Database Optimization';
705
+ warning_name['scheduled'] = 'Scheduled log mails';
706
+ warning_name['cctmcustomfields'] = 'CCTM Custom Fields';
707
 
708
  var result = inArray(val, proModule);
709
  if(result == true){
710
 
711
+ if( val == 'wpcustomfields' ){
712
  if(val == 'wpcommerce' || val == 'wpcustomfields') {
713
  document.getElementById('wpcustomfieldstr').style.display = '';
714
  } else {
717
  // document.getElementById('wpcustomfieldstr').style.display = 'none';
718
  document.getElementById('nonerecommerce').checked = true;
719
  }
720
+ if(val == 'cctm'){
721
+ document.getElementById('cctm').checked = true;
722
+ }
723
+ if(val == 'types'){
724
+ document.getElementById('types').checked = true;
725
+ }
726
+ if(val == 'acf'){
727
+ document.getElementById('acf').checked = true;
728
+ }
729
+ if(val == 'cctmcustomfields'){
730
+ document.getElementById('cctmcustomfields').checked = true;
731
  }
732
+ if(val == 'podscustomfield'){
733
+ document.getElementById('podscustomfield').checked = true;
734
+ }
735
+ if(val == 'yoastseo'){
736
+ document.getElementById('yoastseo').checked = true;
737
  }
738
  if(val == 'caticonenable'){
739
  document.getElementById('caticondisable').checked = true;
740
  }
741
+ if(val == 'drop_table'){
742
+ document.getElementById('drop_table').checked = true;
743
+ }
744
+ if(val == 'scheduled'){
745
+ document.getElementById('scheduled').checked = true;
746
+ }
747
+ if(val == 'marketpress'){
748
+ document.getElementById('marketpress').checked = true;
749
+ }
750
+ if(val == 'woocommerce'){
751
+ document.getElementById('woocommerce').checked = true;
752
+ }
753
+ if(val == 'wpcommerce'){
754
+ document.getElementById('wpcommerce').checked = true;
755
+ }
756
  document.getElementById(val).checked = false;
757
  document.getElementById('ShowMsg').style.display = "";
758
  document.getElementById('warning-msg').innerHTML = warning_name[val]+' feature is available only for PRO!.';
868
  document.getElementById('users').checked = true;
869
  document.getElementById('comments').checked = true;
870
  document.getElementById('custompost').checked = true;
871
+
872
+ jQuery('#postlabel').removeClass("disablesetting");
873
+ jQuery('#postlabel').addClass("enablesetting");
874
+ jQuery('#nopostlabel').addClass("disablesetting");
875
+ jQuery('#nopostlabel').removeClass("enablesetting");
876
+ jQuery('#pagelabel').removeClass("disablesetting");
877
+ jQuery('#pagelabel').addClass("enablesetting");
878
+ jQuery('#nopagelabel').addClass("disablesetting");
879
+ jQuery('#nopagelabel').removeClass("enablesetting");
880
+ jQuery('#userlabel').removeClass("disablesetting");
881
+ jQuery('#userlabel').addClass("enablesetting");
882
+ jQuery('#nouserlabel').addClass("disablesetting");
883
+ jQuery('#nouserlabel').removeClass("enablesetting");
884
+ jQuery('#commentslabel').removeClass("disablesetting");
885
+ jQuery('#commentslabel').addClass("enablesetting");
886
+ jQuery('#nocommentslabel').addClass("disablesetting");
887
+ jQuery('#nocommentslabel').removeClass("enablesetting");
888
+ jQuery('#cplabel').removeClass("disablesetting");
889
+ jQuery('#cplabel').addClass("enablesetting");
890
+ jQuery('#nocplabel').addClass("disablesetting");
891
+ jQuery('#nocplabel').removeClass("enablesetting");
892
+
893
  }
894
  else if(param == 'uncheckallModules') {
895
 
898
  document.getElementById('users').checked = false;
899
  document.getElementById('comments').checked = false;
900
  document.getElementById('custompost').checked = false;
901
+
902
+ jQuery('#nopostlabel').removeClass("disablesetting");
903
+ jQuery('#nopostlabel').addClass("enablesetting");
904
+ jQuery('#postlabel').addClass("disablesetting");
905
+ jQuery('#postlabel').removeClass("enablesetting");
906
+ jQuery('#nopagelabel').removeClass("disablesetting");
907
+ jQuery('#nopagelabel').addClass("enablesetting");
908
+ jQuery('#pagelabel').addClass("disablesetting");
909
+ jQuery('#pagelabel').removeClass("enablesetting");
910
+ jQuery('#nouserlabel').removeClass("disablesetting");
911
+ jQuery('#nouserlabel').addClass("enablesetting");
912
+ jQuery('#userlabel').addClass("disablesetting");
913
+ jQuery('#userlabel').removeClass("enablesetting");
914
+ jQuery('#nocommentslabel').removeClass("disablesetting");
915
+ jQuery('#nocommentslabel').addClass("enablesetting");
916
+ jQuery('#commentslabel').addClass("disablesetting");
917
+ jQuery('#commentslabel').removeClass("enablesetting");
918
+ jQuery('#nocplabel').removeClass("disablesetting");
919
+ jQuery('#nocplabel').addClass("enablesetting");
920
+ jQuery('#cplabel').addClass("disablesetting");
921
+ jQuery('#cplabel').removeClass("enablesetting");
922
+
923
  }
924
  }
925
 
962
  }
963
  }
964
  }
965
+
966
+ //Settings js code
967
+ function showsettingsoption(id) {
968
+ for(i=1;i<=9;i++) {
969
+ if(parseInt(id) == parseInt(i)) {
970
+ if(parseInt(i) == 8) {
971
+ document.getElementById('sidebar').style.height = '1139px';
972
+ document.getElementById('contentbar').style.height = '1139px';
973
+ document.getElementById('settingsholder').style.height = '1140px';
974
+ } else if(parseInt(i) == 9) {
975
+ document.getElementById('sidebar').style.height = '665px';
976
+ document.getElementById('contentbar').style.height = '665px';
977
+ document.getElementById('settingsholder').style.height = '666px';
978
+ } else if(parseInt(i) == 4) {
979
+ document.getElementById('sidebar').style.height = '420px';
980
+ document.getElementById('contentbar').style.height = '420px';
981
+ document.getElementById('settingsholder').style.height = '421px';
982
+ } else if(parseInt(i) == 3) {
983
+ document.getElementById('sidebar').style.height = '586px';
984
+ document.getElementById('contentbar').style.height = '586px';
985
+ document.getElementById('settingsholder').style.height = '587px';
986
+ } else if(parseInt(i) == 2) {
987
+ document.getElementById('sidebar').style.height = '522px';
988
+ document.getElementById('contentbar').style.height = '522px';
989
+ document.getElementById('settingsholder').style.height = '523px';
990
+ } else if(parseInt(i) == 1) {
991
+ document.getElementById('sidebar').style.height = '965px';
992
+ document.getElementById('contentbar').style.height = '965px';
993
+ document.getElementById('settingsholder').style.height = '966px';
994
+ } else {
995
+ document.getElementById('sidebar').style.height = 'auto';
996
+ document.getElementById('contentbar').style.height = 'auto';
997
+ document.getElementById('settingsholder').style.height = 'auto';
998
+ }
999
+
1000
+ jQuery('#'+id).removeClass( "bg-sidebar" );
1001
+ jQuery('#'+id).addClass( "selected" );
1002
+ document.getElementById('section'+id).style.display="";
1003
+ // document.getElementById('arrow'+id).style.display="";
1004
+ document.getElementById('activemenu').innerHTML = document.getElementById('settingmenu'+id).innerHTML ;
1005
+ } else {
1006
+ jQuery('#'+i).removeClass( "selected" );
1007
+ jQuery('#'+i).addClass( "bg-sidebar" );
1008
+ document.getElementById('section'+i).style.display="none";
1009
+ // document.getElementById('arrow'+i).style.display="none";
1010
+ }
1011
+ }
1012
+ document.getElementById('section'+id).style.display="";
1013
+ }
1014
+
1015
+
1016
+ //seo setting enable and disable
1017
+ function seosetting(id) {
1018
+ if(id == 'none') {
1019
+ jQuery('#seosetting1').removeClass("disablesetting");
1020
+ jQuery('#seosetting1').addClass("enablesetting");
1021
+ document.getElementById("seosetting1text").innerHTML="Enabled";
1022
+ document.getElementById("seosetting2text").innerHTML="Disabled";
1023
+ document.getElementById("seosetting3text").innerHTML="Disabled";
1024
+ jQuery('#seosetting2').addClass("disablesetting");
1025
+ jQuery('#seosetting2').removeClass("enablesetting");
1026
+ jQuery('#seosetting3').addClass("disablesetting");
1027
+ jQuery('#seosetting3').removeClass("enablesetting");
1028
+ }
1029
+ else if(id == 'aioseo') {
1030
+ jQuery('#seosetting2').removeClass("disablesetting");
1031
+ jQuery('#seosetting2').addClass("enablesetting");
1032
+ document.getElementById('seosetting2text').innerHTML="Enabled";
1033
+ document.getElementById("seosetting1text").innerHTML="Disabled";
1034
+ document.getElementById("seosetting3text").innerHTML="Disabled";
1035
+ jQuery('#seosetting1').addClass("disablesetting");
1036
+ jQuery('#seosetting1').removeClass("enablesetting");
1037
+ jQuery('#seosetting3').addClass("disablesetting");
1038
+ jQuery('#seosetting3').removeClass("enablesetting");
1039
+ }
1040
+ else if(id == 'yoastseo') {
1041
+ jQuery('#seosetting3').removeClass("disablesetting");
1042
+ jQuery('#seosetting3').addClass("enablesetting");
1043
+ document.getElementById('seosetting3text').innerHTML="Enabled";
1044
+ document.getElementById("seosetting1text").innerHTML="Disabled";
1045
+ document.getElementById("seosetting2text").innerHTML="Disabled";
1046
+ jQuery('#seosetting1').addClass("disablesetting");
1047
+ jQuery('#seosetting1').removeClass("enablesetting");
1048
+ jQuery('#seosetting2').addClass("disablesetting");
1049
+ jQuery('#seosetting2').removeClass("enablesetting");
1050
+ }
1051
+ }
1052
+
1053
+ //Custom post setting
1054
+ function custompostsetting(id) {
1055
+ if(id == 'nonercustompost') {
1056
+ jQuery('#custompostsetting1').removeClass("disablesetting");
1057
+ jQuery('#custompostsetting1').addClass("enablesetting");
1058
+ document.getElementById("custompost1text").innerHTML="Enabled";
1059
+ document.getElementById("custompost2text").innerHTML="Disabled";
1060
+ jQuery('#custompostsetting2').addClass("disablesetting");
1061
+ jQuery('#custompostsetting2').removeClass("enablesetting");
1062
+ }
1063
+ else if(id == 'custompostuitype') {
1064
+ jQuery('#custompostsetting2').removeClass("disablesetting");
1065
+ jQuery('#custompostsetting2').addClass("enablesetting");
1066
+ document.getElementById("custompost2text").innerHTML="Enabled";
1067
+ document.getElementById("custompost1text").innerHTML="Disabled";
1068
+ jQuery('#custompostsetting1').addClass("disablesetting");
1069
+ jQuery('#custompostsetting1').removeClass("enablesetting");
1070
+ }
1071
+ /* else if(id == 'wptypespost') {
1072
+ jQuery('#custompostsetting3').removeClass("disablesetting");
1073
+ jQuery('#custompostsetting3').addClass("enablesetting");
1074
+ document.getElementById("custompost3text").innerHTML="Enabled";
1075
+ document.getElementById("custompost2text").innerHTML="Disabled";
1076
+ document.getElementById("custompost1text").innerHTML="Disabled";
1077
+ document.getElementById("custompost4text").innerHTML="Disabled";
1078
+ document.getElementById("custompost5text").innerHTML="Disabled";
1079
+ jQuery('#custompostsetting2').addClass("disablesetting");
1080
+ jQuery('#custompostsetting2').removeClass("enablesetting");
1081
+ jQuery('#custompostsetting1').addClass("disablesetting");
1082
+ jQuery('#custompostsetting1').removeClass("enablesetting");
1083
+ jQuery('#custompostsetting4').addClass("disablesetting");
1084
+ jQuery('#custompostsetting4').removeClass("enablesetting");
1085
+ jQuery('#custompostsetting5').addClass("disablesetting");
1086
+ jQuery('#custompostsetting5').removeClass("enablesetting");
1087
+ }
1088
+ else if(id == 'cctm') {
1089
+ jQuery('#custompostsetting4').removeClass("disablesetting");
1090
+ jQuery('#custompostsetting4').addClass("enablesetting");
1091
+ document.getElementById("custompost4text").innerHTML="Enabled";
1092
+ document.getElementById("custompost2text").innerHTML="Disabled";
1093
+ document.getElementById("custompost3text").innerHTML="Disabled";
1094
+ document.getElementById("custompost1text").innerHTML="Disabled";
1095
+ document.getElementById("custompost5text").innerHTML="Disabled";
1096
+ jQuery('#custompostsetting2').addClass("disablesetting");
1097
+ jQuery('#custompostsetting2').removeClass("enablesetting");
1098
+ jQuery('#custompostsetting3').addClass("disablesetting");
1099
+ jQuery('#custompostsetting3').removeClass("enablesetting");
1100
+ jQuery('#custompostsetting1').addClass("disablesetting");
1101
+ jQuery('#custompostsetting1').removeClass("enablesetting");
1102
+ jQuery('#custompostsetting5').addClass("disablesetting");
1103
+ jQuery('#custompostsetting5').removeClass("enablesetting");
1104
+ }
1105
+ else if(id == 'podspost') {
1106
+ jQuery('#custompostsetting5').removeClass("disablesetting");
1107
+ jQuery('#custompostsetting5').addClass("enablesetting");
1108
+ document.getElementById("custompost5text").innerHTML="Enabled";
1109
+ document.getElementById("custompost1text").innerHTML="Disabled";
1110
+ document.getElementById("custompost2text").innerHTML="Disabled";
1111
+ document.getElementById("custompost3text").innerHTML="Disabled";
1112
+ document.getElementById("custompost4text").innerHTML="Disabled";
1113
+ jQuery('#custompostsetting1').addClass("disablesetting");
1114
+ jQuery('#custompostsetting1').removeClass("enablesetting");
1115
+ jQuery('#custompostsetting2').addClass("disablesetting");
1116
+ jQuery('#custompostsetting2').removeClass("enablesetting");
1117
+ jQuery('#custompostsetting3').addClass("disablesetting");
1118
+ jQuery('#custompostsetting3').removeClass("enablesetting");
1119
+ jQuery('#custompostsetting4').addClass("disablesetting");
1120
+ jQuery('#custompostsetting4').removeClass("enablesetting");
1121
+ }*/
1122
+ }
1123
+ //Security and performance
1124
+ function authorimportsetting(id) {
1125
+ if(id == 'enableimport') {
1126
+ jQuery('#allowimport').removeClass("disablesetting");
1127
+ jQuery('#allowimport').addClass("enablesetting");
1128
+ jQuery('#donallowimport').addClass("disablesetting");
1129
+ jQuery('#donallowimport').removeClass("enablesetting");
1130
+ }
1131
+ else {
1132
+ jQuery('#donallowimport').removeClass("disablesetting");
1133
+ jQuery('#donallowimport').addClass("enablesetting");
1134
+ jQuery('#allowimport').addClass("disablesetting");
1135
+ jQuery('#allowimport').removeClass("enablesetting");
1136
+ }
1137
+ }
1138
+ //General Settings
1139
+ function postsetting(id) {
1140
+ if(id == 'post') {
1141
+ jQuery('#postlabel').removeClass("disablesetting");
1142
+ jQuery('#postlabel').addClass("enablesetting");
1143
+ jQuery('#nopostlabel').addClass("disablesetting");
1144
+ jQuery('#nopostlabel').removeClass("enablesetting");
1145
+ }
1146
+ else {
1147
+ jQuery('#nopostlabel').removeClass("disablesetting");
1148
+ jQuery('#nopostlabel').addClass("enablesetting");
1149
+ jQuery('#postlabel').addClass("disablesetting");
1150
+ jQuery('#postlabel').removeClass("enablesetting");
1151
+ }
1152
+ }
1153
+
1154
+ function pagesetting(id) {
1155
+ if(id == 'page') {
1156
+ jQuery('#pagelabel').removeClass("disablesetting");
1157
+ jQuery('#pagelabel').addClass("enablesetting");
1158
+ jQuery('#nopagelabel').addClass("disablesetting");
1159
+ jQuery('#nopagelabel').removeClass("enablesetting");
1160
+ }
1161
+ else {
1162
+ jQuery('#nopagelabel').removeClass("disablesetting");
1163
+ jQuery('#nopagelabel').addClass("enablesetting");
1164
+ jQuery('#pagelabel').addClass("disablesetting");
1165
+ jQuery('#pagelabel').removeClass("enablesetting");
1166
+ }
1167
+ }
1168
+
1169
+ function usersetting(id) {
1170
+ if(id == 'users') {
1171
+ jQuery('#userlabel').removeClass("disablesetting");
1172
+ jQuery('#userlabel').addClass("enablesetting");
1173
+ jQuery('#nouserlabel').addClass("disablesetting");
1174
+ jQuery('#nouserlabel').removeClass("enablesetting");
1175
+ }
1176
+ else {
1177
+ jQuery('#nouserlabel').removeClass("disablesetting");
1178
+ jQuery('#nouserlabel').addClass("enablesetting");
1179
+ jQuery('#userlabel').addClass("disablesetting");
1180
+ jQuery('#userlabel').removeClass("enablesetting");
1181
+ }
1182
+ }
1183
+
1184
+ function commentsetting(id) {
1185
+ if(id == 'comments') {
1186
+ jQuery('#commentslabel').removeClass("disablesetting");
1187
+ jQuery('#commentslabel').addClass("enablesetting");
1188
+ jQuery('#nocommentslabel').addClass("disablesetting");
1189
+ jQuery('#nocommentslabel').removeClass("enablesetting");
1190
+ }
1191
+ else {
1192
+ jQuery('#nocommentslabel').removeClass("disablesetting");
1193
+ jQuery('#nocommentslabel').addClass("enablesetting");
1194
+ jQuery('#commentslabel').addClass("disablesetting");
1195
+ jQuery('#commentslabel').removeClass("enablesetting");
1196
+ }
1197
+ }
1198
+
1199
+ function cpsetting(id) {
1200
+ if(id == 'custompost') {
1201
+ jQuery('#cplabel').removeClass("disablesetting");
1202
+ jQuery('#cplabel').addClass("enablesetting");
1203
+ jQuery('#nocplabel').addClass("disablesetting");
1204
+ jQuery('#nocplabel').removeClass("enablesetting");
1205
+ }
1206
+ else {
1207
+ jQuery('#nocplabel').removeClass("disablesetting");
1208
+ jQuery('#nocplabel').addClass("enablesetting");
1209
+ jQuery('#cplabel').addClass("disablesetting");
1210
+ jQuery('#cplabel').removeClass("enablesetting");
1211
+ }
1212
+ }
1213
+ function custaxsetting(id) {
1214
+ if(id == 'customtaxonomy') {
1215
+ jQuery('#custaxlabel').removeClass("disablesetting");
1216
+ jQuery('#custaxlabel').addClass("enablesetting");
1217
+ jQuery('#nocustaxlabel').addClass("disablesetting");
1218
+ jQuery('#nocustaxlabel').removeClass("enablesetting");
1219
+ }
1220
+ else {
1221
+ jQuery('#nocustaxlabel').removeClass("disablesetting");
1222
+ jQuery('#nocustaxlabel').addClass("enablesetting");
1223
+ jQuery('#custaxlabel').addClass("disablesetting");
1224
+ jQuery('#custaxlabel').removeClass("enablesetting");
1225
+ }
1226
+ }
1227
+
1228
+ function catsetting(id) {
1229
+ if(id == 'categories') {
1230
+ jQuery('#catlabel').removeClass("disablesetting");
1231
+ jQuery('#catlabel').addClass("enablesetting");
1232
+ jQuery('#nocatlabel').addClass("disablesetting");
1233
+ jQuery('#nocatlabel').removeClass("enablesetting");
1234
+ }
1235
+ else {
1236
+ jQuery('#nocatlabel').removeClass("disablesetting");
1237
+ jQuery('#nocatlabel').addClass("enablesetting");
1238
+ jQuery('#catlabel').addClass("disablesetting");
1239
+ jQuery('#catlabel').removeClass("enablesetting");
1240
+ }
1241
+ }
1242
+
1243
+ function cusrevsetting(id) {
1244
+ if(id == 'rcustomerreviews') {
1245
+ jQuery('#custrevlabel').removeClass("disablesetting");
1246
+ jQuery('#custrevlabel').addClass("enablesetting");
1247
+ jQuery('#nocustrevlabel').addClass("disablesetting");
1248
+ jQuery('#nocustrevlabel').removeClass("enablesetting");
1249
+ }
1250
+ else {
1251
+ jQuery('#nocustrevlabel').removeClass("disablesetting");
1252
+ jQuery('#nocustrevlabel').addClass("enablesetting");
1253
+ jQuery('#custrevlabel').addClass("disablesetting");
1254
+ jQuery('#custrevlabel').removeClass("enablesetting");
1255
+ }
1256
+ }
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+ //Custom field
1264
+ function resetOption(id) {
1265
+ if (id == 'resetopt') {
1266
+ document.getElementById('runcheckmember').checked = true;
1267
+ document.getElementById('wpcustomfields').checked = false;
1268
+ document.getElementById('cctmcustomfield').checked = false;
1269
+ document.getElementById('acfcustomfield').checked = false;
1270
+ document.getElementById('typescustomfield').checked = false;
1271
+ document.getElementById('podscustomfield').checked = false;
1272
+
1273
+ document.getElementById('customfield1text').innerHTML = "Disabled";
1274
+ document.getElementById('customfield2text').innerHTML = "Disabled";
1275
+ document.getElementById('customfield3text').innerHTML = "Disabled";
1276
+ document.getElementById('customfield4text').innerHTML = "Disabled";
1277
+
1278
+ jQuery('#wpuseruncheck').removeClass("disablesetting");
1279
+ jQuery('#wpuseruncheck').addClass("enablesetting");
1280
+ jQuery('#wpusercheck').addClass("disablesetting");
1281
+ jQuery('#wpusercheck').removeClass("enablesetting");
1282
+ jQuery('#customfieldsetting1').addClass("disablesetting");
1283
+ jQuery('#customfieldsetting1').removeClass("enablesetting");
1284
+ jQuery('#customfieldsetting2').addClass("disablesetting");
1285
+ jQuery('#customfieldsetting2').removeClass("enablesetting");
1286
+ jQuery('#customfieldsetting3').addClass("disablesetting");
1287
+ jQuery('#customfieldsetting3').removeClass("enablesetting");
1288
+ jQuery('#customfieldsetting4').addClass("disablesetting");
1289
+ jQuery('#customfieldsetting4').removeClass("enablesetting");
1290
+ }
1291
+ }
1292
+ function wpmembersetting(id) {
1293
+ if(id == 'rwpmembers') {
1294
+ jQuery('#wpusercheck').removeClass("disablesetting");
1295
+ jQuery('#wpusercheck').addClass("enablesetting");
1296
+ jQuery('#wpuseruncheck').addClass("disablesetting");
1297
+ jQuery('#wpuseruncheck').removeClass("enablesetting");
1298
+ }
1299
+ else {
1300
+ jQuery('#wpuseruncheck').removeClass("disablesetting");
1301
+ jQuery('#wpuseruncheck').addClass("enablesetting");
1302
+ jQuery('#wpusercheck').addClass("disablesetting");
1303
+ jQuery('#wpusercheck').removeClass("enablesetting");
1304
+ }
1305
+ }
1306
+ function customfieldsetting(id) {
1307
+ if(id == 'acfcustomfield') {
1308
+ jQuery('#customfieldsetting1').removeClass("disablesetting");
1309
+ jQuery('#customfieldsetting1').addClass("enablesetting");
1310
+ document.getElementById("customfield1text").innerHTML="Enabled";
1311
+ document.getElementById("customfield2text").innerHTML="Disabled";
1312
+ document.getElementById("customfield3text").innerHTML="Disabled";
1313
+ document.getElementById("customfield4text").innerHTML="Disabled";
1314
+ jQuery('#customfieldsetting2').addClass("disablesetting");
1315
+ jQuery('#customfieldsetting2').removeClass("enablesetting");
1316
+ jQuery('#customfieldsetting3').addClass("disablesetting");
1317
+ jQuery('#customfieldsetting3').removeClass("enablesetting");
1318
+ jQuery('#customfieldsetting4').addClass("disablesetting");
1319
+ jQuery('#customfieldsetting4').removeClass("enablesetting");
1320
+ }
1321
+ else if(id == 'cctmcustomfield') {
1322
+ jQuery('#customfieldsetting2').removeClass("disablesetting");
1323
+ jQuery('#customfieldsetting2').addClass("enablesetting");
1324
+ document.getElementById('customfield2text').innerHTML="Enabled";
1325
+ document.getElementById("customfield1text").innerHTML="Disabled";
1326
+ document.getElementById("customfield3text").innerHTML="Disabled";
1327
+ document.getElementById("customfield4text").innerHTML="Disabled";
1328
+ jQuery('#customfieldsetting1').addClass("disablesetting");
1329
+ jQuery('#customfieldsetting1').removeClass("enablesetting");
1330
+ jQuery('#customfieldsetting3').addClass("disablesetting");
1331
+ jQuery('#customfieldsetting3').removeClass("enablesetting");
1332
+ jQuery('#customfieldsetting4').addClass("disablesetting");
1333
+ jQuery('#customfieldsetting4').removeClass("enablesetting");
1334
+ }
1335
+ else if(id == 'typescustomfield') {
1336
+ jQuery('#customfieldsetting3').removeClass("disablesetting");
1337
+ jQuery('#customfieldsetting3').addClass("enablesetting");
1338
+ document.getElementById('customfield3text').innerHTML="Enabled";
1339
+ document.getElementById("customfield1text").innerHTML="Disabled";
1340
+ document.getElementById("customfield2text").innerHTML="Disabled";
1341
+ document.getElementById("customfield4text").innerHTML="Disabled";
1342
+ jQuery('#customfieldsetting1').addClass("disablesetting");
1343
+ jQuery('#customfieldsetting1').removeClass("enablesetting");
1344
+ jQuery('#customfieldsetting2').addClass("disablesetting");
1345
+ jQuery('#customfieldsetting2').removeClass("enablesetting");
1346
+ jQuery('#customfieldsetting4').addClass("disablesetting");
1347
+ jQuery('#customfieldsetting4').removeClass("enablesetting");
1348
+ }
1349
+ else if(id == 'podscustomfield') {
1350
+ jQuery('#customfieldsetting4').removeClass("disablesetting");
1351
+ jQuery('#customfieldsetting4').addClass("enablesetting");
1352
+ document.getElementById('customfield4text').innerHTML="Enabled";
1353
+ document.getElementById("customfield1text").innerHTML="Disabled";
1354
+ document.getElementById("customfield2text").innerHTML="Disabled";
1355
+ document.getElementById("customfield3text").innerHTML="Disabled";
1356
+ jQuery('#customfieldsetting1').addClass("disablesetting");
1357
+ jQuery('#customfieldsetting1').removeClass("enablesetting");
1358
+ jQuery('#customfieldsetting2').addClass("disablesetting");
1359
+ jQuery('#customfieldsetting2').removeClass("enablesetting");
1360
+ jQuery('#customfieldsetting3').addClass("disablesetting");
1361
+ jQuery('#customfieldsetting3').removeClass("enablesetting");
1362
+ }
1363
+ }
1364
+ //Additional Features
1365
+ function schedulesetting(id) {
1366
+ if(id == 'scheduled') {
1367
+ jQuery('#schedulecheck').removeClass("disablesetting");
1368
+ jQuery('#schedulecheck').addClass("enablesetting");
1369
+ jQuery('#scheduleuncheck').addClass("disablesetting");
1370
+ jQuery('#scheduleuncheck').removeClass("enablesetting");
1371
+ }
1372
+ else {
1373
+ jQuery('#scheduleuncheck').removeClass("disablesetting");
1374
+ jQuery('#scheduleuncheck').addClass("enablesetting");
1375
+ jQuery('#schedulecheck').addClass("disablesetting");
1376
+ jQuery('#schedulecheck').removeClass("enablesetting");
1377
+ }
1378
+ }
1379
+
1380
+ function categoryiconsetting(id) {
1381
+ if(id == 'caticonenable') {
1382
+ jQuery('#catenable').removeClass("disablesetting");
1383
+ jQuery('#catenable').addClass("enablesetting");
1384
+ jQuery('#catdisable').addClass("disablesetting");
1385
+ jQuery('#catdisable').removeClass("enablesetting");
1386
+ }
1387
+ else {
1388
+ jQuery('#catdisable').removeClass("disablesetting");
1389
+ jQuery('#catdisable').addClass("enablesetting");
1390
+ jQuery('#catenable').addClass("disablesetting");
1391
+ jQuery('#catenable').removeClass("enablesetting");
1392
+ }
1393
+ }
1394
+
1395
+
1396
+ function dropsetting(id) {
1397
+ if(id == 'drop_table') {
1398
+ jQuery('#dropon').removeClass("disablesetting");
1399
+ jQuery('#dropon').addClass("enablesetting");
1400
+ jQuery('#dropoff').addClass("disablesetting");
1401
+ jQuery('#dropoff').removeClass("enablesetting");
1402
+ }
1403
+ else {
1404
+ jQuery('#dropoff').removeClass("disablesetting");
1405
+ jQuery('#dropoff').addClass("enablesetting");
1406
+ jQuery('#dropon').addClass("disablesetting");
1407
+ jQuery('#dropon').removeClass("enablesetting");
1408
+ }
1409
+ }
1410
+
1411
+ //Ecommerce setting
1412
+ function ecommercesetting(id) {
1413
+ if(id == 'nonerecommerce') {
1414
+ jQuery('#ecommercesetting1').removeClass("disablesetting");
1415
+ jQuery('#ecommercesetting1').addClass("enablesetting");
1416
+ document.getElementById("ecommerce1text").innerHTML="Enabled";
1417
+ document.getElementById("ecommerce2text").innerHTML="Disabled";
1418
+ document.getElementById("ecommerce3text").innerHTML="Disabled";
1419
+ document.getElementById("ecommerce4text").innerHTML="Disabled";
1420
+ document.getElementById("ecommerce5text").innerHTML="Disabled";
1421
+
1422
+ jQuery('#ecommercesetting2').addClass("disablesetting");
1423
+ jQuery('#ecommercesetting2').removeClass("enablesetting");
1424
+ jQuery('#ecommercesetting3').addClass("disablesetting");
1425
+ jQuery('#ecommercesetting3').removeClass("enablesetting");
1426
+ jQuery('#ecommercesetting4').addClass("disablesetting");
1427
+ jQuery('#ecommercesetting4').removeClass("enablesetting");
1428
+ jQuery('#ecommercesetting5').addClass("disablesetting");
1429
+ jQuery('#ecommercesetting5').removeClass("enablesetting");
1430
+ }
1431
+ else if(id == 'eshop') {
1432
+ jQuery('#ecommercesetting2').removeClass("disablesetting");
1433
+ jQuery('#ecommercesetting2').addClass("enablesetting");
1434
+ document.getElementById("ecommerce2text").innerHTML="Enabled";
1435
+ document.getElementById("ecommerce1text").innerHTML="Disabled";
1436
+ document.getElementById("ecommerce3text").innerHTML="Disabled";
1437
+ document.getElementById("ecommerce4text").innerHTML="Disabled";
1438
+ document.getElementById("ecommerce5text").innerHTML="Disabled";
1439
+ jQuery('#ecommercesetting1').addClass("disablesetting");
1440
+ jQuery('#ecommercesetting1').removeClass("enablesetting");
1441
+ jQuery('#ecommercesetting3').addClass("disablesetting");
1442
+ jQuery('#ecommercesetting3').removeClass("enablesetting");
1443
+ jQuery('#ecommercesetting4').addClass("disablesetting");
1444
+ jQuery('#ecommercesetting4').removeClass("enablesetting");
1445
+ jQuery('#ecommercesetting5').addClass("disablesetting");
1446
+ jQuery('#ecommercesetting5').removeClass("enablesetting");
1447
+ }
1448
+ else if(id == 'marketpress') {
1449
+ jQuery('#ecommercesetting3').removeClass("disablesetting");
1450
+ jQuery('#ecommercesetting3').addClass("enablesetting");
1451
+ document.getElementById("ecommerce3text").innerHTML="Enabled";
1452
+ document.getElementById("ecommerce2text").innerHTML="Disabled";
1453
+ document.getElementById("ecommerce1text").innerHTML="Disabled";
1454
+ document.getElementById("ecommerce4text").innerHTML="Disabled";
1455
+ document.getElementById("ecommerce5text").innerHTML="Disabled";
1456
+ jQuery('#ecommercesetting1').addClass("disablesetting");
1457
+ jQuery('#ecommercesetting1').removeClass("enablesetting");
1458
+ jQuery('#ecommercesetting2').addClass("disablesetting");
1459
+ jQuery('#ecommercesetting2').removeClass("enablesetting");
1460
+ jQuery('#ecommercesetting4').addClass("disablesetting");
1461
+ jQuery('#ecommercesetting4').removeClass("enablesetting");
1462
+ jQuery('#ecommercesetting5').addClass("disablesetting");
1463
+ jQuery('#ecommercesetting5').removeClass("enablesetting");
1464
+ }
1465
+ else if(id == 'woocommerce') {
1466
+ jQuery('#ecommercesetting4').removeClass("disablesetting");
1467
+ jQuery('#ecommercesetting4').addClass("enablesetting");
1468
+ document.getElementById("ecommerce4text").innerHTML="Enabled";
1469
+ document.getElementById("ecommerce2text").innerHTML="Disabled";
1470
+ document.getElementById("ecommerce3text").innerHTML="Disabled";
1471
+ document.getElementById("ecommerce1text").innerHTML="Disabled";
1472
+ document.getElementById("ecommerce5text").innerHTML="Disabled";
1473
+ jQuery('#ecommercesetting1').addClass("disablesetting");
1474
+ jQuery('#ecommercesetting1').removeClass("enablesetting");
1475
+ jQuery('#ecommercesetting2').addClass("disablesetting");
1476
+ jQuery('#ecommercesetting2').removeClass("enablesetting"); jQuery('#ecommercesetting3').addClass("disablesetting");
1477
+ jQuery('#ecommercesetting3').removeClass("enablesetting");
1478
+ jQuery('#ecommercesetting5').addClass("disablesetting");
1479
+ jQuery('#ecommercesetting5').removeClass("enablesetting");
1480
+ }
1481
+ else if(id == 'wpcommerce') {
1482
+ jQuery('#ecommercesetting5').removeClass("disablesetting");
1483
+ jQuery('#ecommercesetting5').addClass("enablesetting");
1484
+ document.getElementById("ecommerce5text").innerHTML="Enabled";
1485
+ document.getElementById("ecommerce2text").innerHTML="Disabled";
1486
+ document.getElementById("ecommerce3text").innerHTML="Disabled";
1487
+ document.getElementById("ecommerce4text").innerHTML="Disabled";
1488
+ document.getElementById("ecommerce1text").innerHTML="Disabled";
1489
+ jQuery('#ecommercesetting1').addClass("disablesetting");
1490
+ jQuery('#ecommercesetting1').removeClass("enablesetting");
1491
+ jQuery('#ecommercesetting2').addClass("disablesetting");
1492
+ jQuery('#ecommercesetting2').removeClass("enablesetting");
1493
+ jQuery('#ecommercesetting4').addClass("disablesetting");
1494
+ jQuery('#ecommercesetting4').removeClass("enablesetting");
1495
+ jQuery('#ecommercesetting3').addClass("disablesetting");
1496
+ jQuery('#ecommercesetting3').removeClass("enablesetting");
1497
+ }
1498
+ else {
1499
+ jQuery('#ecommercesetting5').removeClass("enablesetting");
1500
+ jQuery('#ecommercesetting5').addClass("disablesetting");
1501
+ document.getElementById("ecommerce5text").innerHTML="Disabled";
1502
+ document.getElementById("ecommerce2text").innerHTML="Disabled";
1503
+ document.getElementById("ecommerce3text").innerHTML="Disabled";
1504
+ document.getElementById("ecommerce4text").innerHTML="Disabled";
1505
+ document.getElementById("ecommerce1text").innerHTML="Disabled";
1506
+ jQuery('#ecommercesetting1').addClass("disablesetting");
1507
+ jQuery('#ecommercesetting1').removeClass("enablesetting");
1508
+ jQuery('#ecommercesetting2').addClass("disablesetting");
1509
+ jQuery('#ecommercesetting2').removeClass("enablesetting");
1510
+ jQuery('#ecommercesetting4').addClass("disablesetting");
1511
+ jQuery('#ecommercesetting4').removeClass("enablesetting");
1512
+ jQuery('#ecommercesetting3').addClass("disablesetting");
1513
+ jQuery('#ecommercesetting3').removeClass("enablesetting");
1514
+ }
1515
+
1516
+ }
1517
+
1518
+ //End of settings js
1519
+
1520
+
1521
+
modules/comments/templates/index.php CHANGED
@@ -71,7 +71,7 @@
71
  <div class="form-group" style="padding-bottom:20px;">
72
  <table>
73
  <tr>
74
- <div id='showmappingtemplate' style='float:left;padding-left:10px;padding-top:8px'>
75
  <select disabled>
76
  <option value ='select template' /> select template </option>
77
  </select>
@@ -80,9 +80,9 @@
80
  </div>
81
  <div style="float:right;">
82
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
83
- class='btn btn-warning'/>
84
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
85
- class='btn btn-primary'/>
86
  </div>
87
  </tr>
88
  </table>
@@ -233,8 +233,8 @@ $allcustomposts.=$value.',';
233
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
234
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
235
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
236
- Go To Row #<input type='text' id='goto_element' name='goto_element' />
237
- <input type='button' id='apply_element' name='apply_element' value='Show' class="btn btn-success" onclick='gotoelement(this.id);' />
238
  </div>
239
  </td>
240
  </tr>
@@ -242,12 +242,12 @@ $allcustomposts.=$value.',';
242
  $count = 0;
243
  $cmdsObj = new CommentsActions();
244
  ?>
245
- <tr><td class="left_align"> <b>CSV HEADER</b> </td><td> <b>WP FIELDS</b> </td><td> <b>CSV ROW</b> </td><td></td></tr>
246
  <?php
247
  foreach ($impCE->headers as $key => $value) {
248
  ?>
249
  <tr>
250
- <td class="left_align"><label><?php print($value);?></label></td>
251
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
252
  <option id="select">-- Select --</option>
253
  <?php
@@ -284,7 +284,7 @@ $allcustomposts.=$value.',';
284
  </script>
285
 
286
  </td>
287
- <td class="left_align">
288
  <?php
289
  if(strlen($getrecords[0][$value])>32) {
290
  $getrecords[0][$value] = substr($getrecords[0][$value], 0, 28).'...';
@@ -320,7 +320,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
320
 
321
  <div>
322
  <div class="goto_import_options" align=center>
323
- <div class="mappingactions" >
324
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
325
  <span style = ''>
326
  <a href="#" class="tooltip tooltip_smack" style = ''>
@@ -368,8 +368,8 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
368
  <div class="postbox" id="options" style=" margin-bottom:0px;">
369
  <!-- <h4 class="hndle">Search settings</h4>-->
370
  <div class="inside">
371
- <label><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
372
- <label><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
373
  <div id='schedule' style='display:none'>
374
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
375
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -400,10 +400,10 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
400
  </select><br>
401
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
402
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
403
- <label><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
404
- <label><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
405
 
406
- No. of posts/rows per server request <span class="mandatory">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
407
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
408
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
409
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
71
  <div class="form-group" style="padding-bottom:20px;">
72
  <table>
73
  <tr>
74
+ <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
75
  <select disabled>
76
  <option value ='select template' /> select template </option>
77
  </select>
80
  </div>
81
  <div style="float:right;">
82
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
83
+ class='btn btn-warning' style="margin-right:15px;"/>
84
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
85
+ class='btn btn-primary' style="margin-right:15px;"/>
86
  </div>
87
  </tr>
88
  </table>
233
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
234
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
235
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
236
+ <label id="importalign" style="margin-right:8px;">Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
237
+ <input type='button' id='apply_element' name='apply_element' value='Show' class="btn btn-success" onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
238
  </div>
239
  </td>
240
  </tr>
242
  $count = 0;
243
  $cmdsObj = new CommentsActions();
244
  ?>
245
+ <tr><td class="left_align columnheader"> <b>CSV HEADER</b> </td><td class="columnheader"> <b>WP FIELDS</b> </td><td class="columnheader"> <b>CSV ROW</b> </td><td></td></tr>
246
  <?php
247
  foreach ($impCE->headers as $key => $value) {
248
  ?>
249
  <tr>
250
+ <td class="left_align csvheader"><label><?php print($value);?></label></td>
251
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
252
  <option id="select">-- Select --</option>
253
  <?php
284
  </script>
285
 
286
  </td>
287
+ <td class="left_align csvcolumnvalue">
288
  <?php
289
  if(strlen($getrecords[0][$value])>32) {
290
  $getrecords[0][$value] = substr($getrecords[0][$value], 0, 28).'...';
320
 
321
  <div>
322
  <div class="goto_import_options" align=center>
323
+ <div class="mappingactions" style="margin-top:26px;">
324
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
325
  <span style = ''>
326
  <a href="#" class="tooltip tooltip_smack" style = ''>
368
  <div class="postbox" id="options" style=" margin-bottom:0px;">
369
  <!-- <h4 class="hndle">Search settings</h4>-->
370
  <div class="inside">
371
+ <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
372
+ <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
373
  <div id='schedule' style='display:none'>
374
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
375
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
400
  </select><br>
401
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
402
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
403
+ <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
404
+ <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
405
 
406
+ <label id='importalign'>No. of posts/rows per server request</label> <span class="mandatory" style="margin-left:-13px;margin-right:10px">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
407
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
408
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
409
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
modules/custompost/templates/index.php CHANGED
@@ -68,7 +68,7 @@ $impCE = new WPImporter_includes_helper();
68
  <div class="form-group" style="padding-bottom:20px;">
69
  <table>
70
  <tr>
71
- <div id='showmappingtemplate' style='float:left;padding-left:10px;padding-top:8px'>
72
  <select disabled>
73
  <option value ='select template' > select template </option>
74
  </select>
@@ -77,9 +77,9 @@ $impCE = new WPImporter_includes_helper();
77
  </div>
78
  <div style="float:right;">
79
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
80
- class='btn btn-warning'/>
81
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
82
- class='btn btn-primary'/>
83
  </div>
84
  </tr>
85
  </table>
@@ -193,8 +193,8 @@ $impCE = new WPImporter_includes_helper();
193
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
194
  <div class='importstatus' style='display:true;'>
195
  <input type="hidden" id="customposts" name="customposts" value="">
196
- <div style = 'float:left'> <label> Select Post Type </label> <span class="mandatory"> * </span> </div>
197
- <div style = 'float:left'>
198
  <select name='custompostlist' id='custompostlist'>
199
  <option value='select'>---Select---</option>
200
  <?php
@@ -331,8 +331,8 @@ $impCE = new WPImporter_includes_helper();
331
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
332
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
333
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
334
- Go To Row #<input type='text' id='goto_element' name='goto_element' />
335
- <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' />
336
  </div>
337
  </td>
338
  </tr>
@@ -348,13 +348,13 @@ $impCE = new WPImporter_includes_helper();
348
  unset($impCE->defCols['wp_page_template']);
349
  }
350
  ?>
351
- <tr><td class="left_align"> <b>CSV HEADER</b> </td><td> <b>WP FIELDS</b> </td><td> <b>CSV ROW</b> </td><td></td></tr>
352
  <?php
353
  $mappingFields_arr = array();
354
  foreach ($impCE->headers as $key => $value)
355
  { ?>
356
  <tr>
357
- <td class="left_align"> <label> <?php print($value);?> </label> </td>
358
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
359
  <option id = "select"> -- Select -- </option>
360
  <?php
@@ -403,7 +403,7 @@ $impCE = new WPImporter_includes_helper();
403
  </script>
404
 
405
  </td>
406
- <td class="left_align">
407
  <?php
408
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
409
  if(strlen($getrecords[0][$value])>32)
@@ -439,7 +439,7 @@ $impCE = new WPImporter_includes_helper();
439
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
440
  <div>
441
  <div class="goto_import_options" align=center>
442
- <div class="mappingactions" >
443
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
444
  <span style = ''>
445
  <a href="#" class="tooltip tooltip_smack" style = ''>
@@ -495,8 +495,8 @@ $impCE = new WPImporter_includes_helper();
495
  <div class="postbox" id="options" style=" margin-bottom:0px;">
496
  <!-- <h4 class="hndle">Search settings</h4>-->
497
  <div class="inside">
498
- <label><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
499
- <label><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
500
  <div id='schedule' style='display:none'>
501
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
502
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -525,18 +525,18 @@ $impCE = new WPImporter_includes_helper();
525
  </select><br>
526
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
527
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
528
- <label><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
529
- <label><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
530
- No. of posts/rows per server request <span class="mandatory">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
531
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
532
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
533
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
534
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
535
- <h4>Inline image options</h4>
536
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
537
  <div id='inlineimageoption' style="display:none;" >
538
- <label><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
539
- <label><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" /></label>
540
  </div>
541
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
542
  </li>
68
  <div class="form-group" style="padding-bottom:20px;">
69
  <table>
70
  <tr>
71
+ <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
72
  <select disabled>
73
  <option value ='select template' > select template </option>
74
  </select>
77
  </div>
78
  <div style="float:right;">
79
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
80
+ class='btn btn-warning' style="margin-right:15px" />
81
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
82
+ class='btn btn-primary'style="margin-right:15px"/>
83
  </div>
84
  </tr>
85
  </table>
193
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
194
  <div class='importstatus' style='display:true;'>
195
  <input type="hidden" id="customposts" name="customposts" value="">
196
+ <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
197
+ <div style = 'float:left;margin-right:10px'>
198
  <select name='custompostlist' id='custompostlist'>
199
  <option value='select'>---Select---</option>
200
  <?php
331
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
332
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
333
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
334
+ <label id="importalign" style="margin-right:8px;"> Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
335
+ <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
336
  </div>
337
  </td>
338
  </tr>
348
  unset($impCE->defCols['wp_page_template']);
349
  }
350
  ?>
351
+ <tr><td class="left_align columnheader"> <b>CSV HEADER</b> </td><td class="columnheader"> <b>WP FIELDS</b> </td><td class="columnheader"> <b>CSV ROW</b> </td><td></td></tr>
352
  <?php
353
  $mappingFields_arr = array();
354
  foreach ($impCE->headers as $key => $value)
355
  { ?>
356
  <tr>
357
+ <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
358
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
359
  <option id = "select"> -- Select -- </option>
360
  <?php
403
  </script>
404
 
405
  </td>
406
+ <td class="left_align csvcolumnvalue">
407
  <?php
408
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
409
  if(strlen($getrecords[0][$value])>32)
439
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
440
  <div>
441
  <div class="goto_import_options" align=center>
442
+ <div class="mappingactions" style="margin-top:26px;">
443
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
444
  <span style = ''>
445
  <a href="#" class="tooltip tooltip_smack" style = ''>
495
  <div class="postbox" id="options" style=" margin-bottom:0px;">
496
  <!-- <h4 class="hndle">Search settings</h4>-->
497
  <div class="inside">
498
+ <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
499
+ <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
500
  <div id='schedule' style='display:none'>
501
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
502
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
525
  </select><br>
526
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
527
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
528
+ <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
529
+ <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
530
+ <label id="importalign">No. of posts/rows per server request</label> <span class="mandatory" style="margin-left:-13px;margin-right:10px">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
531
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
532
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
533
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
534
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
535
+ <label id="innertitle">Inline image options</label><br />
536
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
537
  <div id='inlineimageoption' style="display:none;" >
538
+ <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
539
+ <label id="importalign"><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" style="margin-top:5px;margin-left:10px"/></label>
540
  </div>
541
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
542
  </li>
modules/dashboard/templates/index.php CHANGED
@@ -43,36 +43,38 @@ $ret_arr=array();
43
  if(isset($_REQUEST['msg']) && $_REQUEST['msg'] == 'filenotfound'){
44
  ?>
45
  <script>
46
- showMapMessages('error','The files does not exist');
47
  </script>
48
  <?php
49
  } ?>
50
  <div class="box-one">
51
  <div class="top-right-box">
52
- <h3><span class="header-icon glyphicon glyphicon-list"></span>Importers Activity</h3>
53
- <div class="top-right-content">
54
- <div id='dispLabel'></div>
55
- <div class='lineStats' id='lineStats' style='height: 250px;width:100%;margin-top:15px; margin-bottom:15px;'></div>
56
- </div>
57
- </div>
58
- <div class="top-left-box">
59
- <h3><span class="header-icon glyphicon glyphicon-dashboard"></span>Overall Statistics</h3>
60
- <div class="top-left-content">
61
- <div id='dispLabel'></div>
62
- <div class='pieStats' id='pieStats' style='height: 250px;width:100%;margin-top:15px; margin-bottom:15px;'></div>
63
  </div>
 
 
 
 
 
 
64
  </div>
65
  </div>
66
- <div class= "promobox" id="pluginpromo" style="width:98%;">
 
 
67
  <div class="accordion-group" >
68
  <div class="accordion-body in collapse">
69
- <div>
70
- <?php // $impCE->common_footer_for_other_plugin_promotions(); ?>
71
- <?php $impCE->common_footer(); ?>
72
- </div>
73
  </div>
74
  </div>
75
- </div>
76
 
77
  <?php if(isset($_REQUEST['errormsg'])){
78
  ?>
43
  if(isset($_REQUEST['msg']) && $_REQUEST['msg'] == 'filenotfound'){
44
  ?>
45
  <script>
46
+ showMapMessages('error','The files does not exist');
47
  </script>
48
  <?php
49
  } ?>
50
  <div class="box-one">
51
  <div class="top-right-box">
52
+ <h3><span style="margin: -5px 5px 5px 5px;"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR;?>images/chart_bar.png" /></span>Importers Activity</h3>
53
+ <div class="top-right-content">
54
+ <div id='dispLabel'></div>
55
+ <div class='lineStats' id='lineStats' style='height: 250px;width:100%;margin-top:15px; margin-bottom:15px;'></div>
56
+ </div>
 
 
 
 
 
 
57
  </div>
58
+ <div class="top-right-box">
59
+ <h3><span style="margin: -5px 5px 5px 5px;"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR;?>images/stat_icon.png"></span>Import Statistics</h3>
60
+ <div class="top-right-content">
61
+ <div id='dispLabel'></div>
62
+ <div class='pieStats' id='pieStats' style='float:left;height:250px;width:100%;margin-top:15px;margin-bottom:15px;'></div>
63
+ </div>
64
  </div>
65
  </div>
66
+
67
+
68
+ <!--<div class= "promobox" id="pluginpromo" style="width:98%;">
69
  <div class="accordion-group" >
70
  <div class="accordion-body in collapse">
71
+ <div>
72
+ <?php // $impCE->common_footer_for_other_plugin_promotions(); ?>
73
+ <?php $impCE->common_footer(); ?>
74
+ </div>
75
  </div>
76
  </div>
77
+ </div>-->
78
 
79
  <?php if(isset($_REQUEST['errormsg'])){
80
  ?>
modules/eshop/actions/actions.php CHANGED
@@ -424,7 +424,7 @@ class EshopActions extends SkinnyActions {
424
  $post_slug_value = strtolower($f_img_slug);
425
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY.'/includes/WPImporter_includes_helper.php');
426
  $impCE = new WPImporter_includes_helper();
427
-
428
  $impCE->get_fimg_from_URL($f_img,$fimg_path,$fimg_name,$post_slug_value,$currentLimit,$this);
429
  $filepath = $fimg_path."/" . $post_slug_value . "-" . $fimg_name;
430
 
424
  $post_slug_value = strtolower($f_img_slug);
425
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY.'/includes/WPImporter_includes_helper.php');
426
  $impCE = new WPImporter_includes_helper();
427
+ $fimg_name = wp_unique_filename($fimg_path, $fimg_name, $path_parts['extension']);
428
  $impCE->get_fimg_from_URL($f_img,$fimg_path,$fimg_name,$post_slug_value,$currentLimit,$this);
429
  $filepath = $fimg_path."/" . $post_slug_value . "-" . $fimg_name;
430
 
modules/eshop/templates/index.php CHANGED
@@ -105,7 +105,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
105
  <div class="form-group" style="padding-bottom:20px;">
106
  <table>
107
  <tr>
108
- <div id='showmappingtemplate' style='float:left;padding-left:10px;padding-top:8px'>
109
  <select disabled/>
110
  <option value ='select template' > select template </option>
111
  </select>
@@ -116,9 +116,9 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
116
  </div>
117
 
118
  <div style="float:right;">
119
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();" class='btn btn-warning'/>
120
 
121
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled class='btn btn-primary'/>
122
  </div>
123
  </tr>
124
  </table>
@@ -234,7 +234,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
234
  <div class='importstatus' style='display:true;'>
235
  <input type="hidden" id="customposts" name="customposts" value="">
236
  <div style = 'float:left'> <label> Select Post Type </label> <span class="mandatory"> * </span> </div>
237
- <div style = 'float:left'>
238
  <select name='custompostlist' id='custompostlist'>
239
  <option value='select'>---Select---</option>
240
  <?php
@@ -315,8 +315,8 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
315
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
316
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
317
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
318
- Go To Row #<input type='text' id='goto_element' name='goto_element' />
319
- <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' />
320
  </div>
321
  </td>
322
  </tr>
@@ -331,13 +331,13 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
331
  unset($impCE->defCols['wp_page_template']);
332
  }
333
  ?>
334
- <tr><td class="left_align"> <b>CSV HEADER</b> </td><td> <b>WP FIELDS</b> </td><td> <b>CSV ROW</b> </td><td></td></tr>
335
  <?php
336
  $eshopObj = new EshopActions();
337
  foreach ($impCE->headers as $key => $value)
338
  { ?>
339
  <tr>
340
- <td class="left_align"> <label> <?php print($value);?> </label> </td>
341
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
342
  <option id = "select"> -- Select -- </option>
343
  <?php
@@ -386,7 +386,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
386
  });
387
  </script>
388
  </td>
389
- <td class="left_align">
390
  <?php
391
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
392
  if(strlen($getrecords[0][$value])>32)
@@ -422,7 +422,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
422
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
423
  <div>
424
  <div class="goto_import_options" align=center>
425
- <div class="mappingactions" >
426
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
427
  <span style = ''>
428
  <a href="#" class="tooltip tooltip_smack" style = ''>
@@ -478,8 +478,8 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
478
  <div class="postbox" id="options" style=" margin-bottom:0px;">
479
  <!-- <h4 class="hndle">Search settings</h4>-->
480
  <div class="inside">
481
- <label><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
482
- <label><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
483
  <div id='schedule' style='display:none'>
484
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
485
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -509,18 +509,18 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
509
  </select><br>
510
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
511
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
512
- <label><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
513
- <label><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
514
- No. of posts/rows per server request <span class="mandatory">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
515
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
516
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
517
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
518
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
519
- <h4>Inline image options</h4>
520
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
521
  <div id='inlineimageoption' style="display:none;" >
522
- <label><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
523
- <label><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" /></label>
524
  </div>
525
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
526
  </li>
105
  <div class="form-group" style="padding-bottom:20px;">
106
  <table>
107
  <tr>
108
+ <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
109
  <select disabled/>
110
  <option value ='select template' > select template </option>
111
  </select>
116
  </div>
117
 
118
  <div style="float:right;">
119
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();" class='btn btn-warning' style="margin-right:15px"/>
120
 
121
+ <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled class='btn btn-primary' style="margin-right:15px"/>
122
  </div>
123
  </tr>
124
  </table>
234
  <div class='importstatus' style='display:true;'>
235
  <input type="hidden" id="customposts" name="customposts" value="">
236
  <div style = 'float:left'> <label> Select Post Type </label> <span class="mandatory"> * </span> </div>
237
+ <div style = 'float:left;margin-right:10px' >
238
  <select name='custompostlist' id='custompostlist'>
239
  <option value='select'>---Select---</option>
240
  <?php
315
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
316
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
317
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
318
+ <label id="importalign" style="margin-right:8px;"> Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
319
+ <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
320
  </div>
321
  </td>
322
  </tr>
331
  unset($impCE->defCols['wp_page_template']);
332
  }
333
  ?>
334
+ <tr><td class="left_align columnheader"> <b>CSV HEADER</b> </td><td class="columnheader"> <b>WP FIELDS</b> </td><td class="columnheader"> <b>CSV ROW</b> </td><td></td></tr>
335
  <?php
336
  $eshopObj = new EshopActions();
337
  foreach ($impCE->headers as $key => $value)
338
  { ?>
339
  <tr>
340
+ <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
341
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
342
  <option id = "select"> -- Select -- </option>
343
  <?php
386
  });
387
  </script>
388
  </td>
389
+ <td class="left_align csvcolumnvalue">
390
  <?php
391
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
392
  if(strlen($getrecords[0][$value])>32)
422
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
423
  <div>
424
  <div class="goto_import_options" align=center>
425
+ <div class="mappingactions" style="margin-top;26px;">
426
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
427
  <span style = ''>
428
  <a href="#" class="tooltip tooltip_smack" style = ''>
478
  <div class="postbox" id="options" style=" margin-bottom:0px;">
479
  <!-- <h4 class="hndle">Search settings</h4>-->
480
  <div class="inside">
481
+ <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
482
+ <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
483
  <div id='schedule' style='display:none'>
484
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
485
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
509
  </select><br>
510
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
511
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
512
+ <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
513
+ <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
514
+ <label id='importalign'>No. of posts/rows per server request</label> <span class="mandatory" style="margin-left:-13px;margin-right:10px">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
515
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
516
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
517
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
518
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
519
+ <label id="innertitle">Inline image options</label><br />
520
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
521
  <div id='inlineimageoption' style="display:none;" >
522
+ <label id='importalign'><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
523
+ <label id='importalign'><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" style="margin-top:5px;margin-left:10px"/></label>
524
  </div>
525
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
526
  </li>
modules/export/templates/index.php CHANGED
@@ -10,16 +10,20 @@
10
  <div class="accordion-group">
11
  <div id="collapseTwo" class="accordion-body in collapse">
12
  <div class="accordion-inner">
 
 
 
 
13
 
14
- <div style="margin-top:30px;">
15
  <div style="display:none;" id="ShowMsg"><p class="alert alert-warning" id="warning-msg"></p></div>
16
  <form class="form-horizontal" method="post" name="exportmodule" action="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>modules/export/templates/export.php" onsubmit="return export_module();">
17
  <!-- <form class="form-horizontal" method="post" name="exportmodule" action="" onsubmit="return export_module();"> -->
18
  <div class="table-responsive">
19
  <table style='width:100%;' class='table exportmodule'>
20
- <th colspan='2'><label class='h-exportmodule'> To export data based on the filters </label></th>
21
  <tr>
22
- <td><input type='checkbox' name='getdataforspecificperiod' id='getdataforspecificperiod' value='getdataforspecificperiod' onclick='addwpexportfilter(this.id);' /> Export data for the specific period
23
  <div id='specificperiodexport' style='padding:10px;display:none;'>
24
  <label id='periodstartfrom'><b> Start From </b></label>
25
  <input type='text' class='form-control' name='postdatefrom' style='cursor:default;width:25%;' readonly id='postdatefrom' value='' />
@@ -29,7 +33,7 @@
29
  </td>
30
  </tr>
31
  <tr>
32
- <td><input type='checkbox' name='getdatawithspecificstatus' id='getdatawithspecificstatus' value='getdatawithspecificstatus' onclick='addwpexportfilter(this.id);' /> Export data with the specific status
33
  <div id='specificstatusexport' style='padding:10px;display:none;'>
34
  <label id='status'><b> Status </b></label>
35
  <select name='postwithstatus' id='postwithstatus'>
@@ -45,7 +49,7 @@
45
  </td>
46
  </tr>
47
  <tr>
48
- <td><input type='checkbox' name='getdatabyspecificauthors' id='getdatabyspecificauthors' value='getdatabyspecificauthors' onclick='addwpexportfilter(this.id);' /> Export data by specific authors
49
  <div id='specificauthorexport' style='padding:10px;display:none;'>
50
  <label id='authors'><b> Authors </b></label>
51
  <?php $blogusers = get_users( 'blog_id=1&orderby=nicename' ); ?>
@@ -70,21 +74,21 @@
70
  });
71
  </script>
72
  </div>
73
- <div class="table-responsive">
74
  <table class='table exportmodule'>
75
- <th colspan='2'><label class='h-exportmodule'> Select your module to export the data </label></th>
76
  <tr>
77
- <td class='exportdatatype'><label> <input type="radio" name="export" value="post" id="post"> Post </label></td>
78
- <td class='exportdatatype'><label> <input type="radio" name="export" value="eshop" id="eshop"> Eshop </label></td>
79
  </tr>
80
  <tr>
81
- <td class='exportdatatype'><label> <input type="radio" name="export" value="page" id="page"> Page </label></td>
82
- <td class='exportdatatype'><label> <input type="radio" name="export" value="wpcommerce" id="wpcommerce" onclick="export_check(this.value);"> Wp-Commerce <span class="mandatory">*</span></label></td>
83
  </tr>
84
  <tr>
85
  <td class='exportdatatype'>
86
- <label> <input type="radio" name="export" value="custompost" id="custompost" > Custom Post </label>
87
- <select name="export_post_type">
88
  <option>--Select--</option>
89
  <?php
90
  foreach (get_post_types() as $key => $value) {
@@ -97,20 +101,20 @@
97
  ?>
98
  </select>
99
  </td>
100
- <td class='exportdatatype'><label> <input type="radio" name="export" value="woocommerce" id="woocommerce" onclick="export_check(this.value);"> Woo-Commerce <span class="mandatory">*</span></label></td>
101
  </tr>
102
  <tr>
103
- <td class='exportdatatype'><label> <input type="radio" name="export" value="category" id="category" onclick="export_check(this.value);"> Category <span class="mandatory">*</span></label></td>
104
- <td class='exportdatatype'><label> <input type="radio" name="export" value="marketpress" id="marketpress" onclick="export_check(this.value);"> Marketpress <span class="mandatory">*</span></label></td>
105
  </tr>
106
  <tr>
107
- <td class='exportdatatype'><label> <input type="radio" name="export" value="tags" id="tags" onclick="export_check(this.value);"> Tags <span class="mandatory">*</span></label></td>
108
- <td class='exportdatatype'><label> <input type="radio" name="export" value="customerreviews" id="customerreviews" onclick="export_check(this.value);"> Customer Reviews <span class="mandatory">*</span></label></td>
109
  </tr>
110
  <tr>
111
  <td class='exportdatatype'>
112
- <label> <input type="radio" name="export" value="customtaxonomy" id="customtaxonomy" onclick="export_check(this.value);"> Custom Taxonomy <span class="mandatory">*</span></label>
113
- <select name="export_taxo_type">
114
  <option>--Select--</option>
115
  <?php
116
  foreach (get_taxonomies() as $key => $value) {
@@ -122,10 +126,10 @@
122
  }
123
  ?>
124
  </select></td>
125
- <td class='exportdatatype'><label> <input type="radio" name="export" value="comments" id="comments"> Comments </label></td>
126
  </tr>
127
  <tr>
128
- <td class='exportdatatype'><label> <input type="radio" name="export" value="users" id="users"> Users </label></td>
129
  <td class='exportdatatype'></td>
130
  </tr>
131
  </table>
10
  <div class="accordion-group">
11
  <div id="collapseTwo" class="accordion-body in collapse">
12
  <div class="accordion-inner">
13
+ <div class="title">
14
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/export.png" width="24" height="24" /> </span>
15
+ <label><h3>Export Data With Advanced Filters</h3></label>
16
+ </div>
17
 
18
+ <div style="margin-top:20px;">
19
  <div style="display:none;" id="ShowMsg"><p class="alert alert-warning" id="warning-msg"></p></div>
20
  <form class="form-horizontal" method="post" name="exportmodule" action="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>modules/export/templates/export.php" onsubmit="return export_module();">
21
  <!-- <form class="form-horizontal" method="post" name="exportmodule" action="" onsubmit="return export_module();"> -->
22
  <div class="table-responsive">
23
  <table style='width:100%;' class='table exportmodule'>
24
+ <th colspan='2'><label class='h-exportmodule'><h3 id="innertitle"> To export data based on the filters</h3> </label></th>
25
  <tr>
26
+ <td><label><input type='checkbox' name='getdataforspecificperiod' id='getdataforspecificperiod' value='getdataforspecificperiod' onclick='addwpexportfilter(this.id);' /><span id="align"> Export data for the specific period</span></label>
27
  <div id='specificperiodexport' style='padding:10px;display:none;'>
28
  <label id='periodstartfrom'><b> Start From </b></label>
29
  <input type='text' class='form-control' name='postdatefrom' style='cursor:default;width:25%;' readonly id='postdatefrom' value='' />
33
  </td>
34
  </tr>
35
  <tr>
36
+ <td><label><input type='checkbox' name='getdatawithspecificstatus' id='getdatawithspecificstatus' value='getdatawithspecificstatus' onclick='addwpexportfilter(this.id);' /> <span id="align">Export data with the specific status</span></label>
37
  <div id='specificstatusexport' style='padding:10px;display:none;'>
38
  <label id='status'><b> Status </b></label>
39
  <select name='postwithstatus' id='postwithstatus'>
49
  </td>
50
  </tr>
51
  <tr>
52
+ <td><label><input type='checkbox' name='getdatabyspecificauthors' id='getdatabyspecificauthors' value='getdatabyspecificauthors' onclick='addwpexportfilter(this.id);' /><span id="align"> Export data by specific authors</span></label>
53
  <div id='specificauthorexport' style='padding:10px;display:none;'>
54
  <label id='authors'><b> Authors </b></label>
55
  <?php $blogusers = get_users( 'blog_id=1&orderby=nicename' ); ?>
74
  });
75
  </script>
76
  </div>
77
+ <div class="table-responsive" id="exporttable">
78
  <table class='table exportmodule'>
79
+ <th colspan='2'><label class='h-exportmodule'><h3 id="innertitle"> Select your module to export the data</h3> </label></th>
80
  <tr>
81
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="post" id="post"><span id="align"> Post</span> </label></td>
82
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="eshop" id="eshop"><span id="align"> Eshop</span> </label></td>
83
  </tr>
84
  <tr>
85
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="page" id="page"><span id="align"> Page</span> </label></td>
86
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="wpcommerce" id="wpcommerce" onclick="export_check(this.value);"><span id="align"> Wp-Commerce</span> <span class="mandatory">*</span></label></td>
87
  </tr>
88
  <tr>
89
  <td class='exportdatatype'>
90
+ <label> <input type="radio" name="export" value="custompost" id="custompost" ><span id="align"> Custom Post</span> </label>
91
+ <select name="export_post_type" style="margin-left:10px">
92
  <option>--Select--</option>
93
  <?php
94
  foreach (get_post_types() as $key => $value) {
101
  ?>
102
  </select>
103
  </td>
104
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="woocommerce" id="woocommerce" onclick="export_check(this.value);"><span id="align"> Woo-Commerce</span> <span class="mandatory">*</span></label></td>
105
  </tr>
106
  <tr>
107
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="category" id="category" onclick="export_check(this.value);"><span id="align"> Category</span><span class="mandatory">*</span></label></td>
108
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="marketpress" id="marketpress" onclick="export_check(this.value);"><span id="align"> Marketpress</span> <span class="mandatory">*</span></label></td>
109
  </tr>
110
  <tr>
111
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="tags" id="tags" onclick="export_check(this.value);"><span id="align"> Tags</span> <span class="mandatory">*</span></label></td>
112
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="customerreviews" id="customerreviews" onclick="export_check(this.value);"><span id="align"> Customer Reviews</span><span class="mandatory">*</span></label></td>
113
  </tr>
114
  <tr>
115
  <td class='exportdatatype'>
116
+ <label> <input type="radio" name="export" value="customtaxonomy" id="customtaxonomy" onclick="export_check(this.value);"><span id="align"> Custom Taxonomy</span> <span class="mandatory">*</span></label>
117
+ <select name="export_taxo_type" style="margin-left:10px;">
118
  <option>--Select--</option>
119
  <?php
120
  foreach (get_taxonomies() as $key => $value) {
126
  }
127
  ?>
128
  </select></td>
129
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="comments" id="comments"><span id="align"> Comments</span> </label></td>
130
  </tr>
131
  <tr>
132
+ <td class='exportdatatype'><label> <input type="radio" name="export" value="users" id="users"><span id="align"> Users</span> </label></td>
133
  <td class='exportdatatype'></td>
134
  </tr>
135
  </table>
modules/page/templates/index.php CHANGED
@@ -68,7 +68,7 @@ $impCE = new WPImporter_includes_helper();
68
  <div class="form-group" style="padding-bottom:20px;">
69
  <table>
70
  <tr>
71
- <div id='showmappingtemplate' style='float:left;padding-left:10px;padding-top:8px'>
72
  <select disabled>
73
  <option value ='select template' /> select template </option>
74
  </select>
@@ -76,9 +76,9 @@ $impCE = new WPImporter_includes_helper();
76
  </div>
77
  <div style="float:right;">
78
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
79
- class='btn btn-warning'/>
80
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
81
- class='btn btn-primary'/>
82
  </div>
83
  </tr>
84
  </table>
@@ -193,8 +193,8 @@ $impCE = new WPImporter_includes_helper();
193
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
194
  <div class='importstatus' style='display:true;'>
195
  <input type="hidden" id="customposts" name="customposts" value="">
196
- <div style = 'float:left'> <label> Select Post Type </label> <span class="mandatory"> * </span> </div>
197
- <div style = 'float:left'>
198
  <select name='custompostlist' id='custompostlist'>
199
  <option value='select'>---Select---</option>
200
  <?php
@@ -272,8 +272,8 @@ $impCE = new WPImporter_includes_helper();
272
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
273
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
274
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
275
- Go To Row #<input type='text' id='goto_element' name='goto_element' />
276
- <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' />
277
  </div>
278
  </td>
279
  </tr>
@@ -285,13 +285,13 @@ $impCE = new WPImporter_includes_helper();
285
  unset($impCE->defCols['post_format']);
286
  }
287
  ?>
288
- <tr><td class="left_align"> <b>CSV HEADER</b> </td><td> <b>WP FIELDS</b> </td><td> <b>CSV ROW</b> </td><td></td></tr>
289
  <?php
290
  $mappingFields_arr = array();
291
  foreach ($impCE->headers as $key => $value)
292
  { ?>
293
  <tr>
294
- <td class="left_align"> <label> <?php print($value);?> </label> </td>
295
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
296
  <option id = "select"> -- Select -- </option>
297
  <?php
@@ -340,7 +340,7 @@ $impCE = new WPImporter_includes_helper();
340
  </script>
341
 
342
  </td>
343
- <td class="left_align">
344
  <?php
345
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
346
  if(strlen($getrecords[0][$value])>32)
@@ -376,7 +376,7 @@ $impCE = new WPImporter_includes_helper();
376
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php print_r($mFieldsArr); ?>"/>
377
  <div>
378
  <div class="goto_import_options" align=center>
379
- <div class="mappingactions" >
380
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
381
  <span style = ''>
382
  <a href="#" class="tooltip tooltip_smack" style = ''>
@@ -432,8 +432,8 @@ $impCE = new WPImporter_includes_helper();
432
  <div class="postbox" id="options" style=" margin-bottom:0px;">
433
  <!-- <h4 class="hndle">Search settings</h4>-->
434
  <div class="inside">
435
- <label><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
436
- <label><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
437
  <div id='schedule' style='display:none'>
438
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
439
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -462,18 +462,18 @@ $impCE = new WPImporter_includes_helper();
462
  </select><br>
463
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
464
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
465
- <label><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
466
- <label><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
467
- No. of posts/rows per server request <span class="mandatory">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?> <br>
468
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
469
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
470
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
471
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
472
- <h4>Inline image options</h4>
473
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
474
  <div id='inlineimageoption' style="display:none;" >
475
- <label><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
476
- <label><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" /></label>
477
  </div>
478
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
479
  </li>
68
  <div class="form-group" style="padding-bottom:20px;">
69
  <table>
70
  <tr>
71
+ <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
72
  <select disabled>
73
  <option value ='select template' /> select template </option>
74
  </select>
76
  </div>
77
  <div style="float:right;">
78
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
79
+ class='btn btn-warning' style="margin-right:15px"/>
80
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
81
+ class='btn btn-primary' style="margin-right:15px"/>
82
  </div>
83
  </tr>
84
  </table>
193
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
194
  <div class='importstatus' style='display:true;'>
195
  <input type="hidden" id="customposts" name="customposts" value="">
196
+ <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
197
+ <div style = 'float:left;margin-right:10px'>
198
  <select name='custompostlist' id='custompostlist'>
199
  <option value='select'>---Select---</option>
200
  <?php
272
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
273
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
274
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
275
+ <label id="importalign" style="margin-right:8px;"> Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
276
+ <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
277
  </div>
278
  </td>
279
  </tr>
285
  unset($impCE->defCols['post_format']);
286
  }
287
  ?>
288
+ <tr><td class="left_align columnheader"> <b>CSV HEADER</b> </td><td class="columnheader"> <b>WP FIELDS</b> </td><td > <b>CSV ROW</b> </td><td></td></tr>
289
  <?php
290
  $mappingFields_arr = array();
291
  foreach ($impCE->headers as $key => $value)
292
  { ?>
293
  <tr>
294
+ <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
295
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
296
  <option id = "select"> -- Select -- </option>
297
  <?php
340
  </script>
341
 
342
  </td>
343
+ <td class="left_align csvcolumnvalue">
344
  <?php
345
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
346
  if(strlen($getrecords[0][$value])>32)
376
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php print_r($mFieldsArr); ?>"/>
377
  <div>
378
  <div class="goto_import_options" align=center>
379
+ <div class="mappingactions" style="margin-top:26px;">
380
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
381
  <span style = ''>
382
  <a href="#" class="tooltip tooltip_smack" style = ''>
432
  <div class="postbox" id="options" style=" margin-bottom:0px;">
433
  <!-- <h4 class="hndle">Search settings</h4>-->
434
  <div class="inside">
435
+ <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
436
+ <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
437
  <div id='schedule' style='display:none'>
438
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
439
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
462
  </select><br>
463
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
464
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
465
+ <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
466
+ <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
467
+ <label id="importalign">No. of posts/rows per server request</label> <span class="mandatory" style="margin-left:-13px;margin-right:10px">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?> <br>
468
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
469
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
470
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
471
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
472
+ <label id="innertitle">Inline image options</label><br />
473
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
474
  <div id='inlineimageoption' style="display:none;" >
475
+ <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
476
+ <label id="importalign"><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" style="margin-top:5px;margin-left:10px"/></label>
477
  </div>
478
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
479
  </li>
modules/post/templates/index.php CHANGED
@@ -69,7 +69,7 @@ $impCE = new WPImporter_includes_helper();
69
  <div class="form-group" style="padding-bottom:20px;">
70
  <table>
71
  <tr>
72
- <div id='showmappingtemplate' style='float:left;padding-left:10px;padding-top:8px'>
73
  <select disabled/>
74
  <option value ='select template' > select template </option>
75
  </select>
@@ -80,9 +80,9 @@ $impCE = new WPImporter_includes_helper();
80
  </div>
81
 
82
  <div style="float:right;">
83
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();" class='btn btn-warning'/>
84
 
85
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled class='btn btn-primary'/>
86
  </div>
87
  </tr>
88
  </table>
@@ -196,8 +196,8 @@ $impCE = new WPImporter_includes_helper();
196
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
197
  <div class='importstatus' style='display:true;'>
198
  <input type="hidden" id="customposts" name="customposts" value="">
199
- <div style = 'float:left'> <label> Select Post Type </label> <span class="mandatory"> * </span> </div>
200
- <div style = 'float:left'>
201
  <select name='custompostlist' id='custompostlist'>
202
  <option value='select'>---Select---</option>
203
  <?php
@@ -278,8 +278,8 @@ $impCE = new WPImporter_includes_helper();
278
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
279
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
280
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
281
- Go To Row #<input type='text' id='goto_element' name='goto_element' />
282
- <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' />
283
  </div>
284
  </td>
285
  </tr>
@@ -294,12 +294,12 @@ $impCE = new WPImporter_includes_helper();
294
  unset($impCE->defCols['wp_page_template']);
295
  }
296
  ?>
297
- <tr><td class="left_align"> <b>CSV HEADER</b> </td><td> <b>WP FIELDS</b> </td><td> <b>CSV ROW</b> </td><td></td></tr>
298
  <?php
299
  foreach ($impCE->headers as $key => $value)
300
  { ?>
301
  <tr>
302
- <td class="left_align"> <label> <?php print($value);?> </label> </td>
303
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
304
  <option id = "select"> -- Select -- </option>
305
  <?php
@@ -348,7 +348,7 @@ $impCE = new WPImporter_includes_helper();
348
  });
349
  </script>
350
  </td>
351
- <td class="left_align">
352
  <?php
353
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
354
  if(strlen($getrecords[0][$value])>32)
@@ -384,7 +384,7 @@ $impCE = new WPImporter_includes_helper();
384
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
385
  <div>
386
  <div class="goto_import_options" align=center>
387
- <div class="mappingactions" >
388
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
389
  <span style = ''>
390
  <a href="#" class="tooltip tooltip_smack" style = ''>
@@ -440,8 +440,8 @@ $impCE = new WPImporter_includes_helper();
440
  <div class="postbox" id="options" style=" margin-bottom:0px;">
441
  <!-- <h4 class="hndle">Search settings</h4>-->
442
  <div class="inside">
443
- <label><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
444
- <label><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
445
  <div id='schedule' style='display:none'>
446
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
447
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -471,18 +471,18 @@ $impCE = new WPImporter_includes_helper();
471
  </select><br>
472
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
473
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
474
- <label><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
475
- <label><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
476
- No. of posts/rows per server request <span class="mandatory">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
477
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
478
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
479
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
480
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
481
- <h4>Inline image options</h4>
482
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
483
  <div id='inlineimageoption' style="display:none;" >
484
- <label><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
485
- <label><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" /></label>
486
  </div>
487
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
488
  </li>
69
  <div class="form-group" style="padding-bottom:20px;">
70
  <table>
71
  <tr>
72
+ <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
73
  <select disabled/>
74
  <option value ='select template' > select template </option>
75
  </select>
80
  </div>
81
 
82
  <div style="float:right;">
83
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();" class='btn btn-warning' style="margin-right:15px;"/>
84
 
85
+ <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled class='btn btn-primary' style="margin-right:15px;"/>
86
  </div>
87
  </tr>
88
  </table>
196
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
197
  <div class='importstatus' style='display:true;'>
198
  <input type="hidden" id="customposts" name="customposts" value="">
199
+ <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
200
+ <div style = 'float:left;margin-right:10px'>
201
  <select name='custompostlist' id='custompostlist'>
202
  <option value='select'>---Select---</option>
203
  <?php
278
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
279
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
280
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
281
+ <label id="importalign" style="margin-right:8px;">Go To Row # </label> <input type='text' id='goto_element' name='goto_element' />
282
+ <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='Show' onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
283
  </div>
284
  </td>
285
  </tr>
294
  unset($impCE->defCols['wp_page_template']);
295
  }
296
  ?>
297
+ <tr><td class="left_align columnheader"> <b>CSV HEADER</b> </td><td class="columnheader"> <b>WP FIELDS</b> </td><td class="columnheader"> <b>CSV ROW</b> </td><td></td></tr>
298
  <?php
299
  foreach ($impCE->headers as $key => $value)
300
  { ?>
301
  <tr>
302
+ <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
303
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
304
  <option id = "select"> -- Select -- </option>
305
  <?php
348
  });
349
  </script>
350
  </td>
351
+ <td class="left_align csvcolumnvalue">
352
  <?php
353
  $getrecords[0][$value] = htmlspecialchars($getrecords[0][$value], ENT_COMPAT, "UTF-8");
354
  if(strlen($getrecords[0][$value])>32)
384
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
385
  <div>
386
  <div class="goto_import_options" align=center>
387
+ <div class="mappingactions" style="margin-top:26px;" >
388
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
389
  <span style = ''>
390
  <a href="#" class="tooltip tooltip_smack" style = ''>
440
  <div class="postbox" id="options" style=" margin-bottom:0px;">
441
  <!-- <h4 class="hndle">Search settings</h4>-->
442
  <div class="inside">
443
+ <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
444
+ <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
445
  <div id='schedule' style='display:none'>
446
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
447
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
471
  </select><br>
472
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
473
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
474
+ <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
475
+ <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
476
+ <label id="importalign">No. of posts/rows per server request</label><span class="mandatory" style="margin-left:-13px;margin-right:10px">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
477
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
478
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
479
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
480
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
481
+ <label id="innertitle">Inline image options</label><br />
482
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
483
  <div id='inlineimageoption' style="display:none;" >
484
+ <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
485
+ <label id="importalign"><input type="radio" name="inlineimage_location" id="inlineimage_location" value="inlineimage_location" onclick="inline_image_option(this.value);" /> <input type="text" name="imagelocation" id="imagelocation" placeholder="Inline Image Location" value="" onblur="customimagelocation(this.value);" style="margin-top:5px;margin-left:10px" /></label>
486
  </div>
487
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
488
  </li>
modules/settings/actions/actions.php CHANGED
@@ -66,6 +66,404 @@ class SettingsActions extends SkinnyActions
66
  foreach($settings as $settings_key)
67
  $data[$settings_key] = 'checked';
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  $data['cctmtd'] = $this->getpluginstate('custom-content-type-manager/index.php');
70
  $data['cptutd'] = $this->getpluginstate('custom-post-type-ui/custom-post-type-ui.php');
71
  $data['eshoptd'] = $this->getpluginstate('eshop/eshop.php');
@@ -206,3 +604,4 @@ class SettingsActions extends SkinnyActions
206
  return $pluginStatus;
207
  }
208
  }
 
66
  foreach($settings as $settings_key)
67
  $data[$settings_key] = 'checked';
68
 
69
+
70
+ //Settings action
71
+ //SEO option
72
+ $tableseo = get_option('wpcsvfreesettings');
73
+ $seooption = $tableseo['rseooption'];
74
+ if ( $seooption == 'aioseo' ) {
75
+ $data['aioseo'] = 'checked enablesetting';
76
+ $data['yoastseo'] = 'disablesetting';
77
+ $data['nonerseooption'] = 'disablesetting';
78
+ $data['aioseo_status'] = 'Enabled';
79
+ $data['yoastseo_status'] = 'Disabled';
80
+ $data['none_status']= 'Disabled';
81
+ }
82
+ else if ( $seooption == 'yoastseo' ) {
83
+ $data['yoastseo'] = 'checked enablesetting';
84
+ $data['aioseo'] = 'disablesetting';
85
+ $data['nonerseooption'] = 'disablesetting';
86
+ $data['aioseo_status'] = 'Disabled';
87
+ $data['yoastseo_status'] = 'Enabled';
88
+ $data['none_status'] = 'Disabled';
89
+ }
90
+ else {
91
+ $data['nonerseooption'] = 'checked enablesetting';
92
+ $data['aioseo'] = 'disablesetting';
93
+ $data['yoastseo'] = 'disablesetting';
94
+ $data['aioseo_status'] = 'Disabled';
95
+ $data['yoastseo_status'] = 'Disabled';
96
+ $data['none_status'] = 'Enabled';
97
+ }
98
+
99
+ $data['wpcustomfields'] = '';
100
+ if(isset($tableseo['wpcustomfields']) && $tableseo['wpcustomfields'] == 'on') {
101
+ $data['wpcustomfields'] = 'checked';
102
+ }
103
+ //Security and Performance
104
+ if(isset($tableseo['enable_plugin_access_for_author'])) {
105
+ $importoption = $tableseo['enable_plugin_access_for_author'];
106
+ } else {
107
+ $importoption = '';
108
+ };
109
+ if ( $importoption == 'enable_plugin_access_for_author' ) {
110
+ $data['authorimport'] = 'checked enablesetting';
111
+ $data['noauthorimport'] = 'disablesetting';
112
+ }
113
+ else {
114
+ $data['noauthorimport'] = 'checked enablesetting';
115
+ $data['authorimport'] = 'disablesetting';
116
+ }
117
+
118
+ //General Settings
119
+ if(isset($tableseo['post'])) {
120
+ $importoption = $tableseo['post'];
121
+ } else {
122
+ $importoption = '';
123
+ };
124
+ if ( $importoption == 'post' ) {
125
+ $data['post'] = 'checked enablesetting';
126
+ $data['nopost'] = 'disablesetting';
127
+ }
128
+ else {
129
+ $data['nopost'] = 'checked enablesetting';
130
+ $data['post'] = 'disablesetting';
131
+ }
132
+
133
+ if(isset($tableseo['page'])) {
134
+ $importoption = $tableseo['page'];
135
+ } else {
136
+ $importoption = '';
137
+ };
138
+ if ( $importoption == 'page' ) {
139
+ $data['page'] = 'checked enablesetting';
140
+ $data['nopage'] = 'disablesetting';
141
+ }
142
+ else {
143
+ $data['nopage'] = 'checked enablesetting';
144
+ $data['page'] = 'disablesetting';
145
+ }
146
+
147
+ if(isset($tableseo['users'])) {
148
+ $importoption = $tableseo['users'];
149
+ } else {
150
+ $importoption = '';
151
+ };
152
+ if ( $importoption == 'users' ) {
153
+ $data['users'] = 'checked enablesetting';
154
+ $data['nousers'] = 'disablesetting';
155
+ }
156
+ else {
157
+ $data['nousers'] = 'checked enablesetting';
158
+ $data['users'] = 'disablesetting';
159
+ }
160
+
161
+ if(isset($tableseo['comments'])) {
162
+ $importoption = $tableseo['comments'];
163
+ } else {
164
+ $importoption = '';
165
+ };
166
+ if ( $importoption == 'comments' ) {
167
+ $data['comments'] = 'checked enablesetting';
168
+ $data['nocomments'] = 'disablesetting';
169
+ }
170
+ else {
171
+ $data['nocomments'] = 'checked enablesetting';
172
+ $data['comments'] = 'disablesetting';
173
+ }
174
+
175
+ if(isset($tableseo['custompost'])) {
176
+ $importoption = $tableseo['custompost'];
177
+ } else {
178
+ $importoption = '';
179
+ };
180
+ if ( $importoption == 'custompost' ) {
181
+ $data['custompost'] = 'checked enablesetting';
182
+ $data['nocustompost'] = 'disablesetting';
183
+ }
184
+ else {
185
+ $data['nocustompost'] = 'checked enablesetting';
186
+ $data['custompost'] = 'disablesetting';
187
+ }
188
+
189
+ if(isset($tableseo['customtaxonomy'])) {
190
+ $importoption = $tableseo['customtaxonomy'];
191
+ } else {
192
+ $importoption = '';
193
+ };
194
+ if ( $importoption == 'customtaxonomy' ) {
195
+ $data['customtaxonomy'] = 'checked enablesetting';
196
+ $data['nocustomtaxonomy'] = 'disablesetting';
197
+ }
198
+ else {
199
+ $data['nocustomtaxonomy'] = 'checked enablesetting';
200
+ $data['customtaxonomy'] = 'disablesetting';
201
+ }
202
+
203
+ if(isset($tableseo['categories'])) {
204
+ $importoption = $tableseo['categories'];
205
+ } else {
206
+ $importoption = '';
207
+ };
208
+ if ( $importoption == 'categories' ) {
209
+ $data['categories'] = 'checked enablesetting';
210
+ $data['nocategories'] = 'disablesetting';
211
+ }
212
+ else {
213
+ $data['nocategories'] = 'checked enablesetting';
214
+ $data['categories'] = 'disablesetting';
215
+ }
216
+
217
+ if(isset($tableseo['rcustomerreviews'])) {
218
+ $importoption = $tableseo['rcustomerreviews'];
219
+ } else {
220
+ $importoption = '';
221
+ };
222
+ if ( $importoption == 'customerreviews' ) {
223
+ $data['customerreviews'] = 'checked enablesetting';
224
+ $data['nocustomerreviews'] = 'disablesetting';
225
+ }
226
+ else {
227
+ $data['nocustomerreviews'] = 'checked enablesetting';
228
+ $data['customerreviews'] = 'disablesetting';
229
+ }
230
+
231
+
232
+
233
+
234
+
235
+ //Custom Fields
236
+ #$wpmemberoption = $tableseo['rwpmembers'];
237
+ if (isset($tableseo['rwpmembers']) && $tableseo['rwpmembers'] == 'wpmembers' ) {
238
+ $data['checkuser'] = 'checked enablesetting';
239
+ $data['uncheckuser'] = 'disablesetting';
240
+ }
241
+ else {
242
+ $data['uncheckuser'] = 'checked enablesetting';
243
+ $data['checkuser'] = 'disablesetting';
244
+ }
245
+ #$customfieldoption = $tableseo['rcustomfield'];
246
+ if ( isset($tableseo['rcustomfield']) && $tableseo['rcustomfield'] == 'acf' ) {
247
+ $data['acf'] = 'checked enablesetting';
248
+ $data['cctmcustfields'] = 'disablesetting';
249
+ $data['wptypescustfields'] = 'disablesetting';
250
+ $data['podscustomfields'] = 'disablesetting';
251
+ $data['acf_status'] = 'Enabled';
252
+ $data['cctmfield_status'] = 'Disabled';
253
+ $data['typesfield_status'] = 'Disabled';
254
+ $data['podsfield_status'] = 'Disabled';
255
+ }
256
+ else if ( isset($tableseo['rcustomfield']) && $tableseo['rcustomfield'] == 'cctmcustfields' ) {
257
+ $data['cctmcustfields'] = 'checked enablesetting';
258
+ $data['acf'] = 'disablesetting';
259
+ $data['wptypescustfields'] = 'disablesetting';
260
+ $data['podscustomfields'] = 'disablesetting';
261
+ $data['acf_status'] = 'Disabled';
262
+ $data['cctmfield_status'] = 'Enabled';
263
+ $data['typesfield_status'] = 'Disabled';
264
+ $data['podsfield_status'] = 'Disabled';
265
+ }
266
+ else if ( isset($tableseo['rcustomfield']) && $tableseo['rcustomfield'] == 'wptypescustfields' ) {
267
+ $data['wptypescustfields'] = 'checked enablesetting';
268
+ $data['acf'] = 'disablesetting';
269
+ $data['cctmcustfields'] = 'disablesetting';
270
+ $data['podscustomfields'] = 'disablesetting';
271
+ $data['acf_status'] = 'Disabled';
272
+ $data['cctmfield_status'] = 'Disabled';
273
+ $data['typesfield_status'] = 'Enabled';
274
+ $data['podsfield_status'] = 'Disabled';
275
+ }
276
+ else if ( isset($tableseo['rcustomfield']) && $tableseo['rcustomfield'] == 'podscustomfields' ) {
277
+ $data['podscustomfields'] = 'checked enablesetting';
278
+ $data['acf'] = 'disablesetting';
279
+ $data['cctmcustfields'] = 'disablesetting';
280
+ $data['wptypescustfields'] = 'disablesetting';
281
+ $data['acf_status'] = 'Disabled';
282
+ $data['cctmfield_status'] = 'Disabled';
283
+ $data['typesfield_status'] = 'Disabled';
284
+ $data['podsfield_status'] = 'Enabled';
285
+ }
286
+ else {
287
+ $data['podscustomfields'] = 'disablesetting';
288
+ $data['acf'] = 'disablesetting';
289
+ $data['cctmcustfields'] = 'disablesetting';
290
+ $data['wptypescustfields'] = 'disablesetting';
291
+ $data['acf_status'] = 'Disabled';
292
+ $data['cctmfield_status'] = 'Disabled';
293
+ $data['typesfield_status'] = 'Disabled';
294
+ $data['podsfield_status'] = 'Disabled';
295
+ }
296
+
297
+ //Custom post
298
+ $tablecustompost = get_option('wpcsvfreesettings');
299
+ $customoption = $tablecustompost['rcustompost'];
300
+ if ( $customoption == 'custompostuitype' ) {
301
+ $data['custompostuitype'] = 'checked enablesetting';
302
+ $data['wptypes'] = 'disablesetting';
303
+ $data['cctm'] = 'disablesetting';
304
+ $data['podspost'] = 'disablesetting';
305
+ $data['nonercustompost'] = 'disablesetting';
306
+ $data['default_status'] = 'Disabled';
307
+ $data['cptui_status'] = 'Enabled';
308
+ $data['wptypes_status'] = 'Disabled';
309
+ $data['cctm_status'] = 'Disabled';
310
+ $data['podspost_status'] = 'Disabled';
311
+ }
312
+ else if ( $customoption == 'wptypes' ) {
313
+ $data['wptypes'] = 'checked enablesetting';
314
+ $data['custompostuitype'] = 'disablesetting';
315
+ $data['cctm'] = 'disablesetting';
316
+ $data['podspost'] = 'disablesetting';
317
+ $data['nonercustompost'] = 'disablesetting';
318
+ $data['default_status'] = 'Disabled';
319
+ $data['cptui_status'] = 'Disabled';
320
+ $data['wptypes_status'] = 'Enabled';
321
+ $data['cctm_status'] = 'Disabled';
322
+ $data['podspost_status'] = 'Disabled';
323
+ }
324
+ else if ( $customoption == 'cctm' ) {
325
+ $data['cctm'] = 'checked enablesetting';
326
+ $data['wptypes'] = 'disablesetting';
327
+ $data['custompostuitype'] = 'disablesetting';
328
+ $data['podspost'] = 'disablesetting';
329
+ $data['nonercustompost'] = 'disablesetting';
330
+ $data['default_status'] = 'Disabled';
331
+ $data['cptui_status'] = 'Disabled';
332
+ $data['wptypes_status'] = 'Disabled';
333
+ $data['cctm_status'] = 'Enabled';
334
+ $data['podspost_status'] = 'Disabled';
335
+ }
336
+ else if ( $customoption == 'podspost' ) {
337
+ $data['podspost'] = 'checked enablesetting';
338
+ $data['cctm'] = 'disablesetting';
339
+ $data['wptypes'] = 'disablesetting';
340
+ $data['custompostuitype'] = 'disablesetting';
341
+ $data['nonercustompost'] = 'disablesetting';
342
+ $data['default_status'] = 'Disabled';
343
+ $data['cctm_status'] = 'Disabled';
344
+ $data['cptui_status'] = 'Disabled';
345
+ $data['wptypes_status'] = 'Disabled';
346
+ $data['podspost_status'] = 'Enabled';
347
+ }
348
+ else {
349
+ $data['nonercustompost'] = 'checked enablesetting';
350
+ $data['cctm'] = 'disablesetting';
351
+ $data['wptypes'] = 'disablesetting';
352
+ $data['podspost'] = 'disablesetting';
353
+ $data['custompostuitype'] = 'disablesetting';
354
+ $data['default_status'] = 'Enabled';
355
+ $data['cptui_status'] = 'Disabled';
356
+ $data['wptypes_status'] = 'Disabled';
357
+ $data['cctm_status'] = 'Disabled';
358
+ $data['podspost_status'] = 'Disabled';
359
+ }
360
+ //Additional Settings
361
+ $scheduleoption = $tableseo['send_log_email'];
362
+ if ( $scheduleoption == 'send_log_email' ) {
363
+ $data['schedulelog'] = 'checked enablesetting';
364
+ $data['schedulenolog'] = 'disablesetting';
365
+ }
366
+ else {
367
+ $data['schedulenolog'] = 'checked enablesetting';
368
+ $data['schedulelog'] = 'disablesetting';
369
+ }
370
+
371
+ $categoryoption = $tableseo['rcateicons'];
372
+ if ( $categoryoption == 'enable' ) {
373
+ $data['catyenable'] = 'checked enablesetting';
374
+ $data['catydisable'] = 'disablesetting';
375
+ $data['catyenablestatus'] = 'checked';
376
+ $data['catydisablestatus'] = '';
377
+ }
378
+ else {
379
+ $data['catydisable'] = 'checked enablesetting';
380
+ $data['catyenable'] = 'disablesetting';
381
+ $data['catyenablestatus'] = '';
382
+ $data['catydisablestatus'] = 'checked';
383
+ }
384
+
385
+ $dropoption = $tableseo['drop_table'];
386
+ if ( $dropoption == 'on' ) {
387
+ $data['drop_on'] = 'checked enablesetting';
388
+ $data['drop_off'] = 'disablesetting';
389
+ $data['dropon_status'] = 'checked';
390
+ $data['dropoff_status'] = '';
391
+ }
392
+ else {
393
+ $data['drop_off'] = 'checked enablesetting';
394
+ $data['drop_on'] = 'disablesetting';
395
+ $data['dropon_status'] = '';
396
+ $data['dropoff_status'] = 'checked';
397
+ }
398
+ //Eccommerce option
399
+ $ecommerceoption = $tableseo['recommerce'];
400
+ if ( $ecommerceoption == 'eshop' ) {
401
+ $data['eshop'] = 'checked enablesetting';
402
+ $data['marketpress'] = 'disablesetting';
403
+ $data['woocommerce'] = 'disablesetting';
404
+ $data['wpcommerce'] = 'disablesetting';
405
+ $data['nonerecommerce'] = 'disablesetting';
406
+
407
+ $data['eshop_status'] = 'Enabled';
408
+ $data['marketpress_status'] = 'Disabled';
409
+ $data['woocommerce_status'] = 'Disabled';
410
+ $data['wpcommerce_status'] = 'Disabled';
411
+ $data['ecomnone_status'] = 'Disabled';
412
+ }
413
+ else if ( $ecommerceoption == 'marketpress' ) {
414
+ $data['marketpress'] = 'checked enablesetting';
415
+ $data['eshop'] = 'disablesetting';
416
+ $data['woocommerce'] = 'disablesetting';
417
+ $data['wpcommerce'] = 'disablesetting';
418
+ $data['nonerecommerce'] = 'disablesetting';
419
+
420
+ $data['eshop_status'] = 'Disabled';
421
+ $data['marketpress_status'] = 'Enabled';
422
+ $data['woocommerce_status'] = 'Disabled';
423
+ $data['wpcommerce_status'] = 'Disabled';
424
+ $data['ecomnone_status'] = 'Disabled';
425
+ }
426
+ else if ( $ecommerceoption == 'woocommerce' ) {
427
+ $data['woocommerce'] = 'checked enablesetting';
428
+ $data['marketpress'] = 'disablesetting';
429
+ $data['eshop'] = 'disablesetting';
430
+ $data['wpcommerce'] = 'disablesetting';
431
+ $data['nonerecommerce'] = 'disablesetting';
432
+
433
+ $data['eshop_status'] = 'Disabled';
434
+ $data['marketpress_status'] = 'Disabled';
435
+ $data['woocommerce_status'] = 'Enabled';
436
+ $data['wpcommerce_status'] = 'Disabled';
437
+ $data['ecomnone_status'] = 'Disabled';
438
+ }
439
+ else if ( $ecommerceoption == 'wpcommerce' ) {
440
+ $data['wpcommerce'] = 'checked enablesetting';
441
+ $data['marketpress'] = 'disablesetting';
442
+ $data['woocommerce'] = 'disablesetting';
443
+ $data['eshop'] = 'disablesetting';
444
+ $data['nonerecommerce'] = 'disablesetting';
445
+
446
+ $data['eshop_status'] = 'Disabled';
447
+ $data['marketpress_status'] = 'Disabled';
448
+ $data['woocommerce_status'] = 'Disabled';
449
+ $data['wpcommerce_status'] = 'Enabled';
450
+ $data['ecomnone_status'] = 'Disabled';
451
+ }
452
+ else {
453
+ $data['nonerecommerce'] = 'checked enablesetting';
454
+ $data['wpcommerce'] = 'disablesetting';
455
+ $data['marketpress'] = 'disablesetting';
456
+ $data['woocommerce'] = 'disablesetting';
457
+ $data['eshop'] = 'disablesetting';
458
+
459
+ $data['eshop_status'] = 'Disabled';
460
+ $data['marketpress_status'] = 'Disabled';
461
+ $data['woocommerce_status'] = 'Disabled';
462
+ $data['wpcommerce_status'] = 'Disabled';
463
+ $data['ecomnone_status'] = 'Enabled';
464
+ }
465
+
466
+
467
  $data['cctmtd'] = $this->getpluginstate('custom-content-type-manager/index.php');
468
  $data['cptutd'] = $this->getpluginstate('custom-post-type-ui/custom-post-type-ui.php');
469
  $data['eshoptd'] = $this->getpluginstate('eshop/eshop.php');
604
  return $pluginStatus;
605
  }
606
  }
607
+
modules/settings/templates/index.php CHANGED
@@ -50,196 +50,527 @@
50
  });
51
  </script>
52
  <?php
53
- } ?>
 
 
54
  <form class="add:the-list: validate" action="" name="importerSettings" method="post" enctype="multipart/form-data">
55
- <div class="container-fluid">
56
- <div class="accordion" id="accordion2">
57
- <div class="accordion-group">
58
- <div class="accordion-heading">
59
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> <?php echo __("Modules"); ?> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/arrow_down.gif" style="float:right;" /></a>
60
-
61
  </div>
62
- <div id="collapseTwo" class="accordion-body in collapse">
63
- <div class="accordion-inner">
64
- <div id = 'moduleBox' class = 'switchercontent newboxes2'>
65
- <table>
66
- <tr>
67
- <td>
68
- <ul>
69
- <label class="<?php echo $skinnyData['post']; ?>"><input type='checkbox' name='post' id='post' value='post' <?php echo $skinnyData['post']; ?> onclick="check_if_avail(this.name);" checked disabled > Post </label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  <input type="hidden" name="post" id="post" value="post" />
71
- <label class="<?php echo $skinnyData['users']; ?>" ><input type='checkbox' name='users' id='users' value='users' <?php echo $skinnyData['users']; ?> onclick="check_if_avail(this.name);" > Users/Roles </label>
72
- <label class="<?php echo $skinnyData['page']; ?>"><input type='checkbox' name='page' id='page' value='page' <?php echo $skinnyData['page']; ?> onclick="check_if_avail(this.name);" checked disabled > Page </label>
 
 
 
 
 
 
 
73
  <input type="hidden" name="page" id="page" value="page" />
74
- <label class="<?php echo $skinnyData['comments']; ?>"><input type='checkbox' name='comments' id='comments' value='comments' <?php echo $skinnyData['comments']; ?> onclick="check_if_avail(this.name);" > Comments </label>
75
- <label class="<?php echo $skinnyData['categories']; ?>"><input type='checkbox' name='categories' id='categories' value='categories' <?php echo $skinnyData['categories']; ?> onclick="check_if_avail(this.name);" > Categories/Tags </label>
76
- <label class="<?php echo $skinnyData['customtaxonomy']; ?>" ><input type='checkbox' name='customtaxonomy' id='customtaxonomy' value='customtaxonomy' <?php echo $skinnyData['customtaxonomy']; ?> onclick="check_if_avail(this.name);" > Custom Taxonomy </label>
77
-
78
- <label class="<?php echo $skinnyData['custompost']; ?>"><input type='checkbox' name='custompost' id='custompost' value='custompost' <?php echo $skinnyData['custompost']; ?> onclick="check_if_avail(this.name);" checked disabled > Custom Post </label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  <input type="hidden" name="custompost" id="custompost" value="custompost" />
80
- <label style='color:red;position:relative;margin-top:1%;'> Note: Supports WordPress Custom Post by default. For Custom Post Type UI plugin enable it under supported 3rd party plugins</label>
81
- </ul>
82
- </td>
83
- </tr>
84
- </table>
85
- <span style = "margin-left:73%;margin-top:1%;"><a href="#" id='checkallModules' value = 'Check All' name='checkallModules' onclick="selectModules(this.id);">Check All</a></span>
86
- <span style = "margin-left:0%;margin-top:1%;"><a href="#" id='uncheckallModules' name='checkallModules' value = 'Un Check All' onclick='selectModules(this.id);'> / Uncheck All</a></span>
87
- <button type='submit' class='action btn btn-primary' name='savesettings' value='Save' style='float:right;margin-top:-2%;' onclick="saveSettings();">Save</button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
- <!-- <input type='hidden' name='post' value='post' />
90
- <input type='hidden' name='custompost' value='custompost' />
91
- <input type='hidden' name='page' value='page' />-->
92
- </div>
93
- </div>
94
- </div>
95
- </div>
96
- <div class="accordion-group">
97
- <div class="accordion-heading">
98
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree"> <?php echo __("Third Party Plugins"); ?> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/arrow_down.gif" style="float:right;" /></a>
99
-
100
- </div>
101
- <div id="collapseThree" class="accordion-body collapse">
102
- <div class="accordion-inner">
103
- <div id='thirdPartyBox' class = 'switchercontent newboxes2'>
104
- <table class='supportedplugins'>
105
- <tr class='typeofplugin'>
106
- <td class="plugintype" colspan=4> <b> Ecommerce </b> </td>
107
- </tr>
108
- <tr>
109
- <td>
110
- <label class="<?php echo $skinnyData['nonerecommerce']; ?>"><input type = 'radio' name ='recommerce' id='nonerecommerce' value='nonerecommerce' <?php echo $skinnyData['nonerecommerce']; ?> class='ecommerce' checked> None </label>
111
- </td>
112
- <td>
113
- <label class="<?php echo $skinnyData['eshoptd'].' '.$skinnyData['eshop']; ?>">
114
- <input type='radio' name='recommerce' id='eshop' value='eshop' <?php echo $skinnyData['eshop']; ?> class='ecommerce' > Eshop
115
- </label>
116
- </td>
117
- <td>
118
- <label class="<?php echo $skinnyData['woocomtd'].' '.$skinnyData['woocommerce']; ?>"><input type='radio' name='recommerce' id='marketpress' value='marketpress' <?php echo $skinnyData['marketpress']; ?> class = 'woocommerce' onclick='check_if_avail(this.id);'> Market Press Lite</label>
119
- </td>
120
- <td>
121
- <label class="<?php echo $skinnyData['woocomtd'].' '.$skinnyData['woocommerce']; ?>"><input type='radio' name='recommerce' id='woocommerce' value='woocommerce' <?php echo $skinnyData['woocommerce']; ?> class = 'woocommerce' onclick='check_if_avail(this.id);'> WooCommerce </label>
122
- </td>
123
- </tr>
124
- <!-- WP e-Commerce Custom Fields support -->
125
- <tr id='wpcustomfieldstr'>
126
- <td>
127
- <label class="<?php echo $skinnyData['wpcomtd'].' '.$skinnyData['wpcommerce']; ?>">
128
- <input type='radio' name='recommerce' id='wpcommerce' value='wpcommerce' <?php echo $skinnyData['wpcommerce']; ?> class = 'ecommerce' onclick='check_if_avail(this.id);'> WP e-Commerce </label>
129
- </td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
- </tr>
132
- <tr class='typeofplugin'><td colspan=4><b> Custom Post and Custom Fields </b></td></tr>
133
- <tr>
134
- <td><label class="<?php echo $skinnyData['nonercustompost']; ?>" ><input type = 'radio' name ='rcustompost' id='nonercustompost' value='nonercustompost' <?php echo $skinnyData['nonercustompost']; ?> class='ecommerce' onclick="check_if_avail(this.id);" > Default </label></td>
135
- <td><label class="<?php echo $skinnyData['cptutd'].' '.$skinnyData['custompostuitype'];?>" ><input type ='radio' name = 'rcustompost' id='custompostuitype' value='custompostuitype' <?php echo $skinnyData['custompostuitype']; ?> > Custom Post Type UI </label></td>
136
- <td><label class="<?php echo $skinnyData['cctmtd'].' '.$skinnyData['cctm'];?>" ><input type ='radio' name = 'rcustompost' id='cctm' value='cctm' <?php echo $skinnyData['cctm']; ?> onclick="check_if_avail(this.id);" > CCTM </label></td>
137
- <td><label class="<?php echo $skinnyData['cctmtd'].' '.$skinnyData['cctm'];?>" >
138
- <input type ='radio' name = 'rcustompost' id='types' value='types' <?php echo $skinnyData['cctm']; ?> onclick="check_if_avail(this.id);" > Types </label></td>
139
- </tr>
140
- <tr>
141
- <td><label class="<?php echo $skinnyData['acftd'].' '.$skinnyData['acf'];?>" ><input type ='checkbox' name = 'rcustomfield' id='acf' value='acf' <?php echo $skinnyData['acf']; ?> onclick="check_if_avail(this.id);" > ACF </label></td>
142
- <td><label class="<?php echo $skinnyData['acftd'].' '.$skinnyData['acf'];?>" ><input type ='checkbox' name = 'rcustomfield' id='Customerreviews' value='Customerreviews' <?php echo $skinnyData['acf']; ?> onclick="check_if_avail(this.id);" > Customer Reviews </label></td>
143
- <td><label class="<?php echo $skinnyData['acftd'].' '.$skinnyData['acf'];?>" ><input type ='checkbox' name = 'rcustomfield' id='WP-Members' value='WP-Members' <?php echo $skinnyData['acf']; ?> onclick="check_if_avail(this.id);" > WP-Members </label></td>
144
- </tr>
145
- <tr class='typeofplugin'>
146
- <td colspan=4><b> SEO Options </b></td>
147
- </tr>
148
- <tr>
149
- <td><label class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="check_if_avail(this.id);" > None </label></td>
150
- <td><label class="<?php echo $skinnyData['aioseotd'].' '.$skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> > All-in-SEO </label></td>
151
- <td><label class="<?php echo $skinnyData['yoasttd'].' '.$skinnyData['yoastseo']; ?>" ><input type ='radio' name = 'rseooption' id='yoastseo' value='yoastseo' <?php echo $skinnyData['yoastseo']; ?> onclick="check_if_avail(this.id);" > Yoast SEO </label></td>
152
- </tr>
153
- <tr class='typeofplugin'>
154
- <td colspan=4><b> Category Icons </b></td>
155
- </tr>
156
- <tr>
157
- <td><label class="<?php echo $skinnyData['enable'];?>" ><input type = 'radio' name ='rcateicons' id='caticonenable' value='enable' <?php echo $skinnyData['enable']; ?> class='ecommerce' onclick="check_if_avail(this.id);"> Enable </label> </td>
158
- <td>
159
- <label><input type ='radio' name = 'rcateicons' id = 'caticondisable' value='disable' <?php echo $skinnyData['disable']; ?> checked > Disable </label></td>
160
- </tr>
161
- </table>
162
- <button type='submit' class='action btn btn-primary' name='savesettings' value='Save' style='float:right;margin-top:-4%;' onclick="saveSettings();">Save</button>
163
- </div>
164
- </div>
165
- </div>
166
- </div>
167
- <div class="accordion-group">
168
- <div class="accordion-heading">
169
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"> <?php echo __("Features"); ?> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/arrow_down.gif" style="float:right;" /></a>
170
 
171
- </div>
172
- <div id="collapseOne" class="accordion-body collapse" style="height: 0px; ">
173
- <div class="accordion-inner">
174
- <div id='featuresBox' class = 'switchercontent newboxes2'>
175
- <table>
176
- <tr>
177
- <td>
178
- <label class=$automapping>
179
- <input type='checkbox' name='automapping' id='automapping' value='automapping' checked disabled onclick="check_if_avail(this.id);" >
180
- Enable Auto Mapping
181
- </label>
182
- </td>
183
- </tr>
184
- <tr>
185
- <td>
186
- <label class=$utfsupport><input type='checkbox' name='rutfsupport' id='utfsupport' value='utfsupport' checked disabled onclick="check_if_avail(this.id);" >
187
- Enable UTF Support</label>
188
- </td>
189
- </tr>
190
- <tr>
191
- <td>
192
- <label style="padding:5px 0px 0px 15px;">Export Delimiter
193
- <select name="export_delimiter">
194
- <option>;</option>
195
- <option>,</option>
196
- </select>
197
- </label>
198
- </td>
199
- </tr>
200
- </table>
201
- <button type='submit' class='action btn btn-primary' name='savesettings' value='Save' style='float:right;margin-top:-4%;' onclick="saveSettings();">Save</button>
202
- </div>
203
- </div>
204
- </div>
205
- </div>
206
 
207
- <div class="accordion-heading">
208
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
209
- <?php echo __("Security"); ?> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/arrow_down.gif" style="float:right;" /></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  </div>
211
- <div id="collapseFour" class="accordion-body collapse" style="height: 0px; ">
212
- <div class="accordion-inner">
213
- <div id='securityBox' class='switchercontent newboxes2'>
214
- <table class="securityfeatures">
215
- <tr>
216
- <td>
217
- <label><input type='checkbox' name='enable_plugin_access_for_author' value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> /> Allow authors to import </label>
218
- </td>
219
- </tr>
220
- </table>
221
- <label style='color:red;margin-top:0%;'> Note: Enable author support excerpt for users</label>
222
- <button type='submit' class='action btn btn-primary' name='savesettings' value='Save' style='float:right;margin-top:-4.5%;' onclick="saveSettings();">Save</button>
223
- </div>
224
- </div>
225
  </div>
 
 
 
 
226
  </div>
 
 
 
 
 
 
 
 
227
  </div>
228
  </form>
229
-
230
- <!-- Promotion footer for other useful plugins -->
231
- <?php $impCE = new WPImporter_includes_helper(); ?>
232
- <div class= "promobox" id="pluginpromo" style="width:98%;">
233
- <div class="accordion-group" >
234
- <!-- <div class="accordion-heading">
235
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> OTHER USEFUL LINKS </a>
236
- </div> -->
237
- <div class="accordion-body in collapse">
238
- <div>
239
- <?php // $impCE->common_footer_for_other_plugin_promotions(); ?>
240
- <?php $impCE->common_footer(); ?>
241
- </div>
242
- </div>
243
- </div>
244
  </div>
245
-
50
  });
51
  </script>
52
  <?php
53
+ }
54
+ global $wpdb; ?>
55
+ <div class="uifree-settings">
56
  <form class="add:the-list: validate" action="" name="importerSettings" method="post" enctype="multipart/form-data">
57
+ <div id="settingheader">
58
+ <span class="corner-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/lSettingsCorner.png" width="24" height="24" /> </span>
59
+ <span><label id="activemenu">General Settings</label></span>
60
+ <button class="action btnn btn-primary" onclick="saveSettings();" style="float:right;position:relative; margin: 7px 15px 5px;padding:5px 10px;" value="Save" name="savesettings" type="submit">Save Changes </button>
 
 
61
  </div>
62
+ <div id="settingsholder">
63
+ <div id="sidebar">
64
+ <ul>
65
+ <li id="1" class="bg-sidebar selected" onclick="showsettingsoption(this.id);">
66
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/settings.png" width="24" height="24" /> </span>
67
+ <span id="settingmenu1" >General Settings</span>
68
+ <span id="arrow1" class="list-arrow"></span>
69
+ </li>
70
+ <li id="2" class="bg-sidebar" onclick="showsettingsoption(this.id);">
71
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/lcustomposts.png" width="24" height="24" /> </span>
72
+ <span id="settingmenu2" >Custom Posts & Taxonomy</span>
73
+ <span id="arrow2" class="list-arrow" style="display:none;" ></span>
74
+ </li>
75
+ <li id="3" class="bg-sidebar" onclick="showsettingsoption(this.id);">
76
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/lcustomfields.png" width="24" height="24" /> </span>
77
+ <span id="settingmenu3" >Custom Fields</span>
78
+ <span id="arrow3" class="list-arrow" style="display:none;" ></span>
79
+ </li>
80
+ <li id="4" class="bg-sidebar" onclick="showsettingsoption(this.id);">
81
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/lcart.png" width="24" height="24" /> </span>
82
+ <span id="settingmenu4" >Ecommerce Settings</span>
83
+ <span id="arrow4" class="list-arrow" style="display:none;" ></span>
84
+ </li>
85
+ <li id="5" class="bg-sidebar" onclick="showsettingsoption(this.id);">
86
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/seo24.png" width="24" height="24" /> </span>
87
+ <span id="settingmenu5" >SEO Settings</span>
88
+ <span id="arrow5" class="list-arrow" style="display:none;" ></span>
89
+ </li>
90
+ <li id="6" class="bg-sidebar" onclick="showsettingsoption(this.id);">
91
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/additionalfeatures.png" width="24" height="24" /> </span>
92
+ <span id="settingmenu6" >Additional Features</span>
93
+ <span id="arrow6" class="list-arrow" style="display:none;" ></span>
94
+ </li>
95
+ <li id="7" class="bg-sidebar" onclick="showsettingsoption(this.id);">
96
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/DBOptimize.png" width="24" height="24" /> </span>
97
+ <span id="settingmenu7" >Database Optimization</span>
98
+ <span id="arrow7" class="list-arrow" style="display:none;" ></span>
99
+ </li>
100
+ <li id="8" class="bg-sidebar" onclick="showsettingsoption(this.id);">
101
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/security.png" width="24" height="24" /> </span>
102
+ <span id="settingmenu8" >Security and Performance</span>
103
+ <span id="arrow8" class="list-arrow" style="display:none;" ></span>
104
+ </li>
105
+ <li id="9" class="bg-sidebar" onclick="showsettingsoption(this.id);">
106
+ <span class="settings-icon"> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/ldocs24.png" width="24" height="24" /> </span>
107
+ <span id="settingmenu9" >Documentation</span>
108
+ <span id="arrow9" class="list-arrow" style="display:none;" ></span>
109
+ </li>
110
+ </ul>
111
+ </div>
112
+ <div id="contentbar">
113
+ <!-- div-1-->
114
+ <div id="section1" class="generalsettings">
115
+ <div class="title">
116
+ <h3>Enabled Modules</h3>
117
+ <span style="float:right;margin-right:92px;margin-top:-34px;">
118
+ <a href="#" id='checkallModules' value = 'Check All' name='checkallModules' onclick="selectModules(this.id);">Check All</a>
119
+ </span>
120
+ <span style="float:right;margin-right:5px;margin-top:-34px;">
121
+ <a href="#" id='uncheckallModules' name='checkallModules' value = 'Un Check All' onclick='selectModules(this.id);'> / Uncheck All</a>
122
+ </span>
123
+ </div>
124
+ <div id="data">
125
+ <table>
126
+ <tr><td>
127
+ <h3 id="innertitle">Post</h3>
128
+ <label>
129
+ <div>Enables to import posts with custompost and customfields.</div>
130
+ <div>Enable to import posts with attributes from csv.</div>
131
+ </label>
132
+ </td><td>
133
+ </td><td style="width:112px">
134
+ <label id="postlabel" class="<?php echo $skinnyData['post']; ?>"><input type='checkbox' name='post' id='post' value='post' <?php echo $skinnyData['post']; ?> onclick="postsetting(this.id);" checked disabled style="display:none">Enable</label>
135
  <input type="hidden" name="post" id="post" value="post" />
136
+ <label id="nopostlabel" class="<?php echo $skinnyData['nopost']; ?>"><input type='checkbox' name='post' onclick="postsetting(this.id);" checked disabled style="display:none">Disable</label>
137
+ </td></tr>
138
+ <tr><td>
139
+ <h3 id="innertitle">Page</h3>
140
+ <label><div>Enables to import pages with custompost and customfields.</div>
141
+ <div>Enable to import pages with attributes from csv.</div></label>
142
+ </td><td>
143
+ </td><td style="width:112px">
144
+ <label id="pagelabel" class="<?php echo $skinnyData['page']; ?>"><input type='checkbox' name='page' id='page' style="display:none" value='page' <?php echo $skinnyData['page']; ?> onclick="pagesetting(this.id);" checked disabled >Enable</label>
145
  <input type="hidden" name="page" id="page" value="page" />
146
+ <label id="nopagelabel" class="<?php echo $skinnyData['nopage']; ?>"><input type='checkbox' name='page' style="display:none" onclick="pagesetting(this.id);" checked disabled >Disable</label>
147
+ </td></tr>
148
+ <tr><td>
149
+ <h3 id="innertitle">Users</h3>
150
+ <label>Enable to import users with attributes from csv.</label>
151
+ </td><td>
152
+ </td><td style="width:112px">
153
+ <label id="userlabel" class="<?php echo $skinnyData['users']; ?>" ><input type='checkbox' name='users' id='users' style="display:none" value='users' <?php echo $skinnyData['users']; ?> onclick="usersetting(this.id);" >Enable</label>
154
+ <label id="nouserlabel" class="<?php echo $skinnyData['nousers']; ?>" ><input type='checkbox' name='users' style="display:none" onclick="usersetting(this.id);" >Disable</label>
155
+ </td></tr>
156
+ <tr><td>
157
+ <h3 id="innertitle">Comments</h3>
158
+ <label><div>Enables to import posts with custompost and customfields.</div>
159
+ <div>Enable to import comments for post ids from csv.</div>
160
+ </label>
161
+ </td><td>
162
+ </td><td style="width:112px">
163
+ <label id="commentslabel" class="<?php echo $skinnyData['comments']; ?>"><input type='checkbox' name='comments' id='comments' style="display:none" value='comments' <?php echo $skinnyData['comments']; ?> onclick="commentsetting(this.id);" >Enable </label>
164
+ <label id="nocommentslabel" class="<?php echo $skinnyData['nocomments']; ?>"><input type='checkbox' name='comments' style="display:none" onclick="commentsetting(this.id);" >Disable </label>
165
+ </td></tr>
166
+ <tr><td>
167
+ <h3 id="innertitle">Custom Post</h3>
168
+ <label><div>Enables to import Customposts.</div>
169
+ <div>Enable to import custom posts with attributes from csv</div></label></td><td>
170
+ </td><td style="width:112px">
171
+ <label id="cplabel" class="<?php echo $skinnyData['custompost']; ?>"><input type='checkbox' name='custompost' id='custompost' style="display:none" value='custompost' <?php echo $skinnyData['custompost']; ?> onclick="cpsetting(this.id);" checked disabled >Enable </label>
172
  <input type="hidden" name="custompost" id="custompost" value="custompost" />
173
+ <label id="nocplabel" class="<?php echo $skinnyData['nocustompost']; ?>"><input type='checkbox' name='custompost' style="display:none" onclick="cpsetting(this.id);" checked disabled >Disable</label>
174
+ </td></tr>
175
+ <tr><td>
176
+ <h3 id="innertitle">Custom Taxonomy</h3>
177
+ <label><div>Enables to import Custom taxonomy.</div>
178
+ <div>Enable to import nested custom taxonomies with description and slug for each from csv</div></label>
179
+ </td><td>
180
+ </td><td style="width:112px">
181
+ <label id="custaxlabel" class="<?php echo $skinnyData['customtaxonomy']; ?>" ><input type='checkbox' name='customtaxonomy' id='customtaxonomy' style="display:none" value='customtaxonomy' <?php echo $skinnyData['customtaxonomy']; ?> onclick="check_if_avail(this.name);" >Enable</label>
182
+ <label id="nocustaxlabel" class="<?php echo $skinnyData['nocustomtaxonomy']; ?>" ><input type='checkbox' name='customtaxonomy' style="display:none" onclick="check_if_avail(this.name);" >Disable</label>
183
+ </td></tr>
184
+ <tr><td>
185
+ <h3 id="innertitle">Categories/Tags</h3>
186
+ <label><div>Enables to import Categories.</div>
187
+ <div>Enable to import nested categories with description and slug for each from csv.</div></label></td><td>
188
+ </td><td style="width:112px">
189
+ <label id="catlabel" class="<?php echo $skinnyData['categories']; ?>"><input type='checkbox' name='categories' id='categories' style="display:none" value='categories' <?php echo $skinnyData['categories']; ?> onclick="check_if_avail(this.name);" >Enable</label>
190
+ <label id="nocatlabel" class="<?php echo $skinnyData['nocategories']; ?>"><input type='checkbox' name='categories' style="display:none" onclick="check_if_avail(this.name);" >Disable</label>
191
+ </td></tr>
192
+ <tr><td>
193
+ <h3 id="innertitle">Customer Reviews</h3>
194
+ <label><div>Enables to import Customer reviews.</div>
195
+ <div>Enable to import customer reviews with attributes from csv.</div></label></td><td>
196
+ </td><td style="width:112px">
197
+ <label id="custrevlabel" class="<?php echo $skinnyData['customerreviews'].' '.$skinnyData['acf'];?>" ><input type ='checkbox' name = 'rcustomfield' id='Customerreviews' style="display:none" value='Customerreviews' <?php echo $skinnyData['acf']; ?> onclick="check_if_avail(this.id);" >Enable</label>
198
+ <label id="nocustrevlabel" class="<?php echo $skinnyData['nocustomerreviews'];?>" ><input type ='checkbox' name = 'rcustomfield' style="display:none" onclick="check_if_avail(this.name);" >Disable</label>
199
+ <span id="pluginavail" class="moduleavail <?php echo $skinnyData['customerreviewstd'] ?>"> </span>
200
+ </td></tr>
201
+ </tbody></table><br />
202
+ <label style='color:red;'><?php echo __("Note: Supports WordPress Custom Post by default. For Custom Post Type UI plugin, please enable it under Custom Posts & Taxonomy"); ?></label>
203
+ </div>
204
+ </div>
205
+ <!--div-2 -->
206
+ <div id="section2" class="custompost" style="display:none;">
207
+ <div class="title" class="databorder" >
208
+ <h3>Custom Posts & Taxonomy </h3>
209
+ </div>
210
+ <div id="data">
211
+ <table>
212
+ <tbody>
213
+ <tr><td>
214
+ <h3 id="innertitle" >Default</h3>
215
+ <label>Custom post types that are coded within wordpress codex apart from plugins.</label>
216
+ </td><td>
217
+ <label id="custompostsetting1" class="<?php echo $skinnyData['nonercustompost']; ?>" ><input type = 'radio' name ='rcustompost' id='nonercustompost'style="display:none" value='nonercustompost' <?php echo $skinnyData['nonercustompost']; ?> class='ecommerce' onclick="custompostsetting(this.id);"><span id="custompost1text"> <?php echo $skinnyData['default_status']; ?> </span></label>
218
+ </td></tr>
219
+ <tr><td>
220
+ <h3 id="innertitle">Custom Post Type UI</h3>
221
+ <label>Import support for Custom Post Type UI data.</label></td><td>
222
+ <label id="custompostsetting2" class="<?php echo $skinnyData['custompostuitype'];?>" ><input type ='radio' name = 'rcustompost' id='custompostuitype' style="display:none" value='custompostuitype' <?php echo $skinnyData['custompostuitype']; ?> onclick="custompostsetting(this.id);"><span id="custompost2text"> <?php echo $skinnyData['cptui_status']; ?> </span></label>
223
+ <div id="pluginavail" class="<?php echo $skinnyData['cptutd'] ?>"> </div>
224
+ </td></tr>
225
+ <tr><td>
226
+ <h3 id="innertitle">Types Custom Posts & Taxonomy</h3>
227
+ <label>Import support for Types Custom Post Type and taxonomies data.</label> </td><td>
228
+ <label id="custompostsetting3" class="<?php echo $skinnyData['cctm'];?>" >
229
+ <input type ='radio' name = 'rcustompost' id='types' style="display:none" value='types' <?php echo $skinnyData['cctm']; ?> onclick="check_if_avail(this.id);" ><span id="custompost3text"> <?php echo $skinnyData['wptypes_status']; ?> </span></label>
230
+ <div id="pluginavail" class="<?php echo $skinnyData['wptypestd'] ?>"> </div>
231
+ </td></tr>
232
+ <tr><td>
233
+ <h3 id="innertitle">CCTM Custom Posts</h3>
234
+ <label>Import support for CCTM Custom Posts from csv.</label> </td><td>
235
+ <label id="custompostsetting4" class="<?php echo $skinnyData['cctm'];?>" ><input type ='radio' name = 'rcustompost' id='cctm' style="display:none" value='cctm' <?php echo $skinnyData['cctm']; ?> onclick="check_if_avail(this.id);" ><span id="custompost4text"><?php echo $skinnyData['cctm_status']; ?></span> </label>
236
+ <div id="pluginavail" class="<?php echo $skinnyData['cctmtd'] ?>"> </div>
237
+ </td></tr>
238
+ <tr><td>
239
+ <h3 id="innertitle">PODS Custom Posts & Taxonomy</h3>
240
+ <label>Import support for PODS Custom Posts.</label> </td><td>
241
+ <label id="custompostsetting5" class="<?php echo $skinnyData['podspost']; ?>"><input type='radio' name='rcustompost' id='podspost' value='podspost' <?php echo $skinnyData['podspost']; ?> style="display:none" onclick="check_if_avail(this.id);"><span id="custompost5text"> <?php echo $skinnyData['podspost_status']; ?></span></label>
242
+ <div id="pluginavail" class="<?php echo $skinnyData['podstd'] ?>"> </div>
243
+ </td></tr>
244
+ </tbody>
245
+ </table>
246
+ </div>
247
+ </div>
248
+ <!--div-3-->
249
+ <div id="section3" class="Customfields" style="display:none;">
250
+ <div class="title">
251
+ <h3>Custom Fields</h3>
252
+ <span id="resetcustfield"><a id="resetopt" href="#" value="reset" name="resetcustfield" onclick="resetOption(this.id);">Reset Custom Field</a> </span>
253
+ </div>
254
+ <div id="data" class="databorder custom-fields" >
255
+ <table>
256
+ <tbody>
257
+ <tr><td>
258
+ <h3 id="innertitle">WP-Members for Users</h3>
259
+ <label>Enable to add import support WP-Members user fields.</label> </td><td>
260
+ <label id="wpusercheck" class="<?php echo $skinnyData['checkuser'].' '.$skinnyData['acf'];?>" ><input type ='radio' name = 'rwpmembers' id='WP-Members' style="display:none" value='WP-Members' <?php echo $skinnyData['acf']; ?> onclick="check_if_avail(this.id);" ><span id="checkuser">Enabled</span></label>
261
+ <label id="wpuseruncheck" class="<?php echo $skinnyData['uncheckuser'];?>" ><input type ='radio' name = 'rwpmembers' style="display:none" onclick="check_if_avail(this.id);" >Disabled</label>
262
+ </td></tr>
263
+ <tr><td>
264
+ <h3 id="innertitle">WP e-Commerce Custom Fields </h3>
265
+ <label>Enable to add import support for WP e-Commerce custom fields.</label> </td>
266
+ <td style="padding-left: 20px;">
267
+ <input type='checkbox' name='recommerce' id='wpcommerce' value='wpcommerce' <?php echo $skinnyData['wpcommerce']; ?> class = 'ecommerce' onclick='check_if_avail(this.id);'>
268
+ </td></tr>
269
+ <tr><td>
270
+ <h3 id="innertitle">ACF Custom Fields</h3>
271
+ <label>Enable to add import support for ACF Custom Fields.</label> </td><td>
272
+ <label id="customfieldsetting1" class="<?php echo $skinnyData['acf'];?>" ><input type ='checkbox' name = 'rcustomfield' id='acf' style="display:none" value='acf' <?php echo $skinnyData['acf']; ?> onclick="check_if_avail(this.id);" ><span id="customfield1text" > <?php echo $skinnyData['acf_status']; ?> </span></label>
273
+ <div id="pluginavail" class="<?php echo $skinnyData['acftd'] ?>"> </div>
274
+ </td></tr>
275
+ <tr><td>
276
+ <h3 id="innertitle">CCTM Custom Fields</h3>
277
+ <label>Enable to add import support for CCTM Custom Fields.</label> </td><td>
278
+ <label id="customfieldsetting2" class="<?php echo $skinnyData['cctmcustfields'].' '.$skinnyData['cctm'];?>" ><input type ='radio' name = 'rcustompost' id='cctmcustomfields' style="display:none" value='cctm' <?php echo $skinnyData['cctm']; ?> onclick="check_if_avail(this.id);" ><span id="customfield2text" > <?php echo $skinnyData['cctmfield_status']; ?> </span></label>
279
+ <div id="pluginavail" class="<?php echo $skinnyData['cctmtd'] ?>"> </div>
280
+ </td></tr>
281
+ <tr><td>
282
+ <h3 id="innertitle">Types Custom Fields</h3>
283
+ <label>Enable to add import support for Types custom fields.</label> </td><td>
284
+ <label id="customfieldsetting3" class="<?php echo $skinnyData['wptypescustfields']; ?>"><input type='radio' name='rcustomfield' id='typescustomfield' value='wptypescustfields' <?php echo $skinnyData['wptypes']; ?> style="display:none" onclick="check_if_avail(this.id);" /><span id="customfield3text" > <?php echo $skinnyData['typesfield_status']; ?> </span></label>
285
+ <div id="pluginavail" class="<?php echo $skinnyData['wptypestd'] ?>"> </div>
286
+ </td></tr>
287
+ <tr><td>
288
+ <h3 id="innertitle">PODS Custom Fields </h3>
289
+ <label>Enable to add import support for PODS custom fields.</label> </td><td>
290
+ <label id="customfieldsetting4" class="<?php echo $skinnyData['podscustomfields']; ?>"><input type='radio' name='rcustomfield' id='podscustomfield' value='podscustomfields' <?php echo $skinnyData['podscustomfields']; ?> style="display:none" onclick="check_if_avail(this.id);" /><span id="customfield4text" > <?php echo $skinnyData['podsfield_status']; ?> </span></label>
291
+ <div id="pluginavail" class="<?php echo $skinnyData['podstd'] ?>"> </div>
292
+ </td></tr>
293
+ </tbody>
294
+ </table>
295
+ </div>
296
+ </div>
297
+ <!--div-4 -->
298
+ <div id="section4" class="ecommercesettings" style="display:none;">
299
+ <div class="title">
300
+ <h3>Ecommerce Settings</h3>
301
+ </div>
302
+ <div id="data" class="databorder" >
303
+ <table>
304
+ <tbody>
305
+ <tr><td>
306
+ <h3 id="innertitle">None</h3>
307
+ <label>Ecommerce import is disabled.</label> </td><td>
308
+ <label id="ecommercesetting1"class="<?php echo $skinnyData['nonerecommerce']; ?>"><input type = 'radio' name ='recommerce' id='nonerecommerce' value='nonerecommerce' <?php echo $skinnyData['nonerecommerce']; ?> class='ecommerce' checked style="display:none" onclick="ecommercesetting(this.id);" ><span id="ecommerce1text"> <?php echo $skinnyData['ecomnone_status']; ?> </span></label>
309
+ </td></tr>
310
+ <tr><td>
311
+ <h3 id="innertitle">Eshop </h3>
312
+ <label>Enable ecommerce import for Eshop.</label> </td><td>
313
+ <label id="ecommercesetting2" class="<?php echo $skinnyData['eshop']; ?>">
314
+ <input type='radio' name='recommerce' id='eshop' value='eshop' <?php echo $skinnyData['eshop']; ?> class='ecommerce' style="display:none" onclick="ecommercesetting(this.id);"><span id="ecommerce2text"><?php echo $skinnyData['eshop_status']; ?></span></label>
315
+ <div id="pluginavail" class="<?php echo $skinnyData['eshoptd'] ?>"> </div>
316
+ </td></tr>
317
+ <tr><td>
318
+ <h3 id="innertitle">Marketpress Lite</h3>
319
+ <label>Enable ecommerce import for marketpress Lite.</label> </td><td>
320
+ <label id="ecommercesetting3" class="<?php echo $skinnyData['woocommerce']; ?>"><input type='radio' name='recommerce' id='marketpress' value='marketpress' <?php echo $skinnyData['marketpress']; ?> class = 'woocommerce' onclick='check_if_avail(this.id);' style="display:none"><span id="ecommerce3text"><?php echo $skinnyData['marketpress_status']; ?></span></label>
321
+ <div id="pluginavail" class="<?php echo $skinnyData['marketpresslitetd'] ?>"> </div>
322
+ </td></tr>
323
+ <tr><td>
324
+ <h3 id="innertitle">Woocommerce </h3>
325
+ <label>Enable ecommerce import for Woocommerce.</label> </td><td>
326
+ <label id="ecommercesetting4" class="<?php echo $skinnyData['woocommerce']; ?>"><input type='radio' name='recommerce' id='woocommerce' value='woocommerce' <?php echo $skinnyData['woocommerce']; ?> class = 'woocommerce' onclick='check_if_avail(this.id);' style="display:none" ><span id="ecommerce4text"><?php echo $skinnyData['woocommerce_status']; ?></span> </label>
327
+ <div id="pluginavail" class="<?php echo $skinnyData['woocomtd'] ?>"> </div>
328
+ </td></tr>
329
+ <tr><td>
330
+ <h3 id="innertitle"> WP e-Commerce</h3>
331
+ <label>Enable ecommerce import for WP e-Commerce.</label> </td><td>
332
+ <label id="ecommercesetting5" class="<?php echo $skinnyData['wpcommerce']; ?>">
333
+ <input type='radio' name='recommerce' id='wpcommerce' value='wpcommerce' <?php echo $skinnyData['wpcommerce']; ?> class = 'ecommerce' onclick='check_if_avail(this.id);' style="display:none" ><span id="ecommerce5text"><?php echo $skinnyData['wpcommerce_status']; ?></span></label>
334
+ <div id="pluginavail" class="<?php echo $skinnyData['wpcomtd'] ?>"> </div>
335
+ </td></tr>
336
+ </tbody>
337
+ </table>
338
+ </div>
339
+ </div>
340
+ <!--div-5-->
341
+ <div id="section5" class="seosettings" style="display:none;">
342
+ <div class="title">
343
+ <h3>SEO Settings</h3>
344
+ </div>
345
+ <div id="data" class="databorder" >
346
+ <table>
347
+ <tbody>
348
+ <tr><td>
349
+ <h3 id="innertitle">None</h3>
350
+ <label>SEO Meta import is disabled.</label> </td><td>
351
+ <label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="check_if_avail(this.id);" style="display:none"><span id="seosetting1text"> <?php echo $skinnyData['none_status']; ?> </span> </label>
352
+ </td></tr>
353
+ <tr><td>
354
+ <h3 id="innertitle">All-in-one SEO </h3>
355
+ <label>Enable All-in-one SEO import.</label> </td><td>
356
+ <label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
357
+ <div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
358
+ </td></tr>
359
+ <tr><td>
360
+ <h3 id="innertitle"> Yoast SEO</h3>
361
+ <label>Enable Wordpress SEO by Yoast support.</label> </td><td>
362
+ <label id="seosetting3" class="<?php echo $skinnyData['yoastseo']; ?>" ><input type ='radio' name = 'rseooption' id='yoastseo' value='yoastseo' <?php echo $skinnyData['yoastseo']; ?> onclick="check_if_avail(this.id);" style="display:none"><span id="seosetting3text"><?php echo $skinnyData['yoastseo_status']; ?> </span></label>
363
+ <div id="pluginavail" class="<?php echo $skinnyData['yoasttd'] ?>" > </div>
364
+ </td></tr>
365
+ </tbody>
366
+ </table>
367
+ </div>
368
+ </div>
369
 
370
+ <!--div-6-->
371
+ <div id="section6" class="additionalfeatures" style="display:none;">
372
+ <div class="title">
373
+ <h3>Additional Features</h3>
374
+ </div>
375
+ <div id="data">
376
+ <table class="enablefeatures">
377
+ <tbody>
378
+ <tr><td>
379
+ <label class=$automapping>
380
+ <input type='checkbox' name='automapping' id='automapping' value='automapping' checked disabled onclick="check_if_avail(this.id);" ><span id="align">Enable Auto Mapping</span></label>
381
+ </td></tr>
382
+ <tr><td>
383
+ <label class=$utfsupport><input type='checkbox' name='rutfsupport' id='utfsupport' value='utfsupport' checked disabled onclick="check_if_avail(this.id);" ><span id="align">Enable UTF Support</span></label>
384
+ </td></tr>
385
+ <tr class="databorder"><td>
386
+ <label id="align">Export Delimiter
387
+ <select name="export_delimiter">
388
+ <option>;</option>
389
+ <option>,</option>
390
+ </select>
391
+ </label>
392
+ </td></tr>
393
+ <tr class="databorder"><td>
394
+ <h3 id="innertitle">Scheduled log mails</h3>
395
+ <label>Enable to get scheduled log mails.</label> </td><td>
396
+ <label id="schedulecheck" class="<?php echo $skinnyData['schedulelog']; ?>"><input type='radio' name='send_log_email' value='send_log_email' <?php echo $skinnyData['send_log_email']; ?> id="scheduled" style="display:none" onclick="check_if_avail(this.id);" > Yes </label>
397
+ <label id="scheduleuncheck" class="<?php echo $skinnyData['schedulenolog']; ?>"><input type='radio' name='send_log_email' id="noscheduled" style="display:none" onclick="check_if_avail(this.id);" > No </label>
398
+ </td></tr>
399
+ <tr><td>
400
+ <h3 id="innertitle">Drop Table</h3>
401
+ <label>If enabled plugin deactivation will remove plugin data, this cannot be restored.</label></td>
402
+ <td><label id="dropon" class="<?php echo $skinnyData['drop_on'] ; ?>" ><input type='radio' name='drop_table' id='drop_table' value='on' <?php echo $skinnyData['dropon_status']; ?> style="display:none" onclick="check_if_avail(this.id);" > On </label>
403
+ <label id="dropoff" class="<?php echo $skinnyData['drop_off'] ; ?>" ><input type='radio' name='drop_table' id='drop_tab' value='off' <?php echo $skinnyData['dropoff_status']; ?> style="display:none" onclick="check_if_avail(this.id);" > Off</label>
404
+ </td></tr>
405
+ <tr><td>
406
+ <h3 id="innertitle" >Category Icons:</h3>
407
+ <label>Enable to import category icons for category.</label>
408
+ </td><td>
409
+ <label id="catenable" class="<?php echo $skinnyData['enable'] ." ". $skinnyData['catyenable'];?>" ><input type = 'radio' name ='rcateicons' id='caticonenable' style="display:none" value='enable' <?php echo $skinnyData['enable']; ?> class='ecommerce' onclick="check_if_avail(this.id);"> Enable </label>
410
+ <label id="catdisable" class="<?php echo $skinnyData['enable'] ." ". $skinnyData['catydisable'];?>" ><input type = 'radio' name ='rcateicons' id='caticondisable' style="display:none" value='disable' <?php echo $skinnyData['disable']; ?> checked onclick="check_if_avail(this.id);">Disable</label>
411
+ </td>
412
+ </tr>
413
+ </tbody>
414
+ </table>
415
+ </div>
416
+ </div>
417
+ <!--div-7-->
418
+ <div id="section7" class="databaseoptimization" style="display:none;">
419
+ <div class="title">
420
+ <h3>Database Optimization </h3>
421
+ <span style="float:right;margin-right:168px;margin-top:-35px;">
422
+ <a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> Check All </a>
423
+ </span>
424
+ <span style="float:right;margin-right:81px;margin-top:-35px;">
425
+ <a id="uncheckOpt" onclick="check_if_avail(this.id);" href="#"> / Uncheck All </a>
426
+ </span>
427
+ </div>
428
+ <div id="data" class="database">
429
+ <table class="databaseoptimization">
430
+ <tbody>
431
+ <tr><td>
432
+ <label><input type='checkbox' name='delete_all_orphaned_post_page_meta' id='delete_all_orphaned_post_page_meta' value='delete_all_orphaned_post_page_meta' <?php echo $skinnyData['delete_all_orphaned_post_page_meta']; ?> disabled /><span id="align"> Delete all orphaned Post/Page Meta</span></label>
433
+ </td><td>
434
+ <label><input type='checkbox' name='delete_all_unassigned_tags' id='delete_all_unassigned_tags' value='delete_all_unassigned_tags' <?php echo $skinnyData['delete_all_unassigned_tags']; ?> disabled/><span id="align"> Delete all unassigned tags</span></label>
435
+ </td></tr>
436
+ <tr><td>
437
+ <label><input type='checkbox' name='delete_all_post_page_revisions' id='delete_all_post_page_revisions' value='delete_all_post_page_revisions' <?php echo $skinnyData['delete_all_post_page_revisions']; ?> disabled /><span id="align"> Delete all Post/Page revisions</span></label>
438
+ </td><td>
439
+ <label><input type='checkbox' name='delete_all_auto_draft_post_page' id='delete_all_auto_draft_post_page' value='delete_all_auto_draft_post_page' <?php echo $skinnyData['delete_all_auto_draft_post_page']; ?> disabled /><span id="align"> Delete all auto drafted Post/Page</span></label>
440
+ </td></tr>
441
+ <tr><td>
442
+ <label><input type='checkbox' name='delete_all_post_page_in_trash' id='delete_all_post_page_in_trash' value='delete_all_post_page_in_trash' <?php echo $skinnyData['delete_all_spam_comments']; ?> disabled /><span id="align"> Delete all Post/Page in trash</span></label>
443
+ </td><td>
444
+ <label><input type='checkbox' name='delete_all_spam_comments' id='delete_all_spam_comments' value='delete_all_spam_comments' <?php echo $skinnyData['delete_all_comments_in_trash']; ?> disabled /><span id="align"> Delete all Spam Comments</span></label>
445
+ </td></tr>
446
+ <tr><td>
447
+ <label><input type='checkbox' name='delete_all_comments_in_trash' id='delete_all_comments_in_trash' value='delete_all_comments_in_trash' <?php echo $skinnyData['delete_all_comments_in_trash']; ?> disabled /><span id="align"> Delete all Comments in trash</span></label>
448
+ </td><td>
449
+ <label><input type='checkbox' name='delete_all_unapproved_comments' id='delete_all_unapproved_comments' value='delete_all_unapproved_comments' <?php echo $skinnyData['delete_all_unapproved_comments']; ?> disabled /><span id="align"> Delete all Unapproved Comments</span></label>
450
+ </td></tr>
451
+ <tr><td>
452
+ <label><input type='checkbox' name='delete_all_pingback_commments' id='delete_all_pingback_commments' value='delete_all_pingback_commments' <?php echo $skinnyData['delete_all_pingback_commments']; ?> disabled /><span id="align"> Delete all Pingback Comments</span></label>
453
+ </td><td>
454
+ <label><input type='checkbox' name='delete_all_trackback_comments' id='delete_all_trackback_comments' value='delete_all_trackback_comments' <?php echo $skinnyData['delete_all_trackback_comments']; ?> disabled /> <span id="align"> Delete all Trackback Comments</span></label>
455
+ </td></tr>
456
+ </tbody>
457
+ </table>
458
+ <div style="float:right;padding:17px;margin-top:-2px;">
459
+ <input id="database_optimization" class="action btn btn-warning" type="button" onclick="check_if_avail();" value="Run DB Optimizer" name="database_optimization">
460
+ </div>
461
+ <div id="optimizelog" style="margin-top:40px;display:none;">
462
+ <h4>Database Optimization Log</h4>
463
+ <div id="optimizationlog" class="optimizerlog">
464
+ <div id="log" class="log">
465
+ <p style="margin:15px;color:red;" id="align">NO LOGS YET NOW.</p>
466
+ </div>
467
+ </div>
468
+ </div>
469
+ </div>
470
+ </div>
471
+ <!--div-8-->
472
+ <div id="section8" class="securityperformance" style="display:none;">
473
+ <div class="title">
474
+ <h3>Security and Performance</h3>
475
+ </div>
476
+ <div id="data" class="databorder security-perfoemance" >
477
+ <table class="securityfeatures">
478
+ <tr><td>
479
+ <h3 id="innertitle">Allow authors to import</h3>
480
+ <label><div>This enables authors to import.</div>
481
+ <div>It does not support users.</div></label></td><td>
482
 
483
+ <!--<label><input type='checkbox' name='enable_plugin_access_for_author' value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> /> Allow authors to import </label>-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
 
486
+ <label id="allowimport" class="<?php echo $skinnyData['authorimport']; ?>" ><input type='radio' name='enable_plugin_access_for_author' id="enableimport" class="importauthor" value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> style="display:none" onclick="authorimportsetting(this.id);"/>Check</label>
487
+ <label id="donallowimport" class="<?php echo $skinnyData['noauthorimport']; ?>" > <input type='radio' name='enable_plugin_access_for_author' class="importauthor" style="display:none" onclick="authorimportsetting(this.id);">Uncheck</label>
488
+ </td></tr>
489
+ </table>
490
+ <table class="table table-striped">
491
+ <tr><th colspan="3" >
492
+ <h3 id="innertitle">Minimum required php.ini values (Ini configured values)</h3>
493
+ </th></tr>
494
+ <tr><th>
495
+ <label>Variables</label>
496
+ </th><th class='ini-configured-values'>
497
+ <label>System values</label>
498
+ </th><th class='min-requirement-values'>
499
+ <label>Minimum Requirements</label>
500
+ </th></tr>
501
+ <tr><td>post_max_size </td><td class='ini-configured-values'><?php echo ini_get('post_max_size') ?></td><td class='min-requirement-values'></td></tr>
502
+ <tr><td>auto_append_file</td><td class='ini-configured-values'><?php echo ini_get('auto_append_file') ?></td><td class='min-requirement-values'></td></tr>
503
+ <tr><td>auto_prepend_file </td><td class='ini-configured-values'><?php echo ini_get('auto_prepend_file') ?></td><td class='min-requirement-values'></td></tr>
504
+ <tr><td>upload_max_filesize </td><td class='ini-configured-values'><?php echo ini_get('upload_max_filesize') ?></td><td class='min-requirement-values'></td></tr>
505
+ <tr><td>file_uploads </td><td class='ini-configured-values'><?php echo ini_get('file_uploads') ?></td><td class='min-requirement-values'></td></tr>
506
+ <tr><td>allow_url_fopen </td><td class='ini-configured-values'><?php echo ini_get('allow_url_fopen') ?></td><td class='min-requirement-values'></td></tr>
507
+ <tr><td>max_execution_time </td><td class='ini-configured-values'><?php echo ini_get('max_execution_time') ?></td><td class='min-requirement-values'></td></tr>
508
+ <tr><td>max_input_time </td><td class='ini-configured-values'><?php echo ini_get('max_input_time') ?></td><td class='min-requirement-values'></td></tr>
509
+ <tr><td>max_input_vars </td><td class='ini-configured-values'><?php echo ini_get('max_input_vars') ?></td><td class='min-requirement-values'></td></tr>
510
+ <tr><td>memory_limit </td><td class='ini-configured-values'><?php echo ini_get('memory_limit') ?></td><td class='min-requirement-values'></td></tr>
511
+ </table>
512
+ <h3 id="innertitle" colspan="2" >Required Loaders and Extentions:</h3>
513
+ <table class="table table-striped">
514
+ <?php $loaders_extensions = get_loaded_extensions();?>
515
+ <tr><td>IonCube Loader </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
516
+ echo '<label style="color:green;">Yes</label>';
517
+ } else {
518
+ echo '<label style="color:red;">No</label>';
519
+ } ?> </td><td></td></tr>
520
+ <tr><td>PDO </td><td><?php if(in_array('PDO', $loaders_extensions)) {
521
+ echo '<label style="color:green;">Yes</label>';
522
+ } else {
523
+ echo '<label style="color:red;">No</label>';
524
+ } ?></td><td></td></tr>
525
+ <tr><td>Curl </td><td><?php if(in_array('curl', $loaders_extensions)) {
526
+ echo '<label style="color:green;">Yes</label>';
527
+ } else {
528
+ echo '<label style="color:red;">No</label>';
529
+ } ?></td><td></td></tr>
530
+ </table>
531
+ <h3 id="innertitle" colspan="2" >Debug Information:</h3>
532
+ <table class="table table-striped">
533
+ <tr><td class='debug-info-name'>WordPress Version</td><td><?php echo $wp_version; ?></td><td></td></tr>
534
+ <tr><td class='debug-info-name'>PHP Version</td><td><?php echo phpversion(); ?></td><td></td></tr>
535
+ <tr><td class='debug-info-name'>MySQL Version</td><td><?php echo $wpdb->db_version(); ?></td><td></td></tr>
536
+ <tr><td class='debug-info-name'>Server SoftWare</td><td><?php echo $_SERVER[ 'SERVER_SOFTWARE' ]; ?></td><td></td></tr> <tr><td class='debug-info-name'>Your User Agent</td><td><?php echo $_SERVER['HTTP_USER_AGENT']; ?></td><td></td></tr>
537
+ <tr><td class='debug-info-name'>WPDB Prefix</td><td><?php echo $wpdb->prefix; ?></td><td></td></tr>
538
+ <tr><td class='debug-info-name'>WP Multisite Mode</td><td><?php if ( is_multisite() ) { echo '<label style="color:green;">Enabled</label>'; } else { echo '<label style="color:red;">Disabled</label>'; } ?> </td><td></td></tr>
539
+ <tr><td class='debug-info-name'>WP Memory Limit</td><td><?php echo (int) ini_get('memory_limit'); ?></td><td></td></tr>
540
+ </table>
541
+ </div>
542
+ </div>
543
+ <div id="section9" class="documentation" style="display:none;">
544
+ <div class="title">
545
+ <h3>Documentation</h3>
546
+ </div>
547
+ <div id="data">
548
+ <div id="video">
549
+ <iframe width="560" height="315" src="//www.youtube.com/embed/FhTUXE5zk0o?list=PL2k3Ck1bFtbRli9VdJaqwtzTSzzkOrH4j" frameborder="0" allowfullscreen></iframe>
550
  </div>
551
+ <div id="relatedpages">
552
+ <h2 id="doctitle">Smackcoders Guidelines </h2 >
553
+ <p> <a href="https://www.smackcoders.com/blog/category/web-development-news/" target="_blank"> Development News </a> </p>
554
+ <p> <a href="http://www.wpultimatecsvimporter.com/" target="_blank"> Whats New? </a> </p>
555
+ <p> <a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Pro" target="_blank"> Documentation </a> </p>
556
+ <p> <a href="https://www.smackcoders.com/blog/csv-importer-a-simple-and-easy-csv-importer-tutorial.html" target="_blank"> Tutorials </a> </p>
557
+ <p> <a href="http://www.youtube.com/user/smackcoders/channels" target="_blank"> Youtube Channel </a> </p>
558
+ <p> <a href="https://www.smackcoders.com/store/products-46/wordpress.html" target="_blank"> Other Plugins </a> </p>
 
 
 
 
 
 
559
  </div>
560
+ </div>
561
+ </div>
562
+ <!--conbar-->
563
+ </div>
564
  </div>
565
+ <div id="bottomsave">
566
+ <!-- <span style="float:left;width:50%">
567
+ <div id="repplugin"><span id="repavail" style="float:left" class="pluginActive"></span><label id="replabel" >Indicates active plugin.</label></div>
568
+ <div id="repplugin"><span id="repavail" style="float:left" class="pluginAbsent"></span><label id="replabel" >Indicates the absence or inactive state of plugin.</label></div>
569
+ </span>-->
570
+ <span style="float:right" >
571
+ <button class="action btnn btn-primary" onclick="saveSettings();" style="float:right;position:relative; margin: 8px 15px 5px;padding:5px 10px" value="Save" name="savesettings" type="submit">Save Changes </button>
572
+ </span>
573
  </div>
574
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
  </div>
576
+
modules/support/templates/index.php CHANGED
@@ -75,19 +75,6 @@ $impCE = new WPImporter_includes_helper();
75
  </form>
76
  </div>
77
  </div>
78
- <!-- for YouTube videos -->
79
- <div style = "margin-top:5px;">
80
- <div class="accordion-group" >
81
- <div class="accordion-heading">
82
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> WP Ultimate CSV Importer Youtube Playlist </a>
83
- </div>
84
- <div class="accordion-body in collapse">
85
- <div class="accordion-inner">
86
- <iframe width="100%" height="315" src="//www.youtube.com/embed/FhTUXE5zk0o?list=PL2k3Ck1bFtbRli9VdJaqwtzTSzzkOrH4j" frameborder="0" allowfullscreen></iframe>
87
- </div>
88
- </div>
89
- </div>
90
- </div>
91
 
92
  </div>
93
  </div>
75
  </form>
76
  </div>
77
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  </div>
80
  </div>
modules/users/templates/index.php CHANGED
@@ -72,7 +72,7 @@ $impCE = new WPImporter_includes_helper();
72
  <div class="form-group" style="padding-bottom:20px;">
73
  <table>
74
  <tr>
75
- <div id='showmappingtemplate' style='float:left;padding-left:10px;padding-top:8px'>
76
  <select disabled/>
77
  <option value ='select template' /> select template </option>
78
  </select>
@@ -81,9 +81,9 @@ $impCE = new WPImporter_includes_helper();
81
  </div>
82
  <div style="float:right;">
83
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
84
- class='btn btn-warning'/>
85
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
86
- class='btn btn-primary'/>
87
  </div>
88
  </tr>
89
  </table>
@@ -231,8 +231,8 @@ $allcustomposts.=$value.',';
231
  <input type='button' id='prev_record' name='prev_record' value='<<' class="btn btn-primary" onclick='gotoelement(this.id);' />
232
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
233
  <input type='button' id='next_record' name='next_record' value='>>' class="btn btn-primary" onclick='gotoelement(this.id);' />
234
- Go To Row #<input type='text' id='goto_element' name='goto_element' />
235
- <input type='button' id='apply_element' name='apply_element' value='Show' class="btn btn-success" onclick='gotoelement(this.id);' />
236
  </div>
237
  </td>
238
  </tr>
@@ -240,12 +240,12 @@ $allcustomposts.=$value.',';
240
  $count = 0;
241
  $usersObj = new UsersActions();
242
  ?>
243
- <tr><td class="left_align"> <b>CSV HEADER</b> </td><td> <b>WP FIELDS</b> </td><td> <b>CSV ROW</b> </td><td></td></tr>
244
  <?php
245
  foreach ($impCE->headers as $key => $value) {
246
  ?>
247
  <tr>
248
- <td class="left_align"><label><?php print($value);?></label></td>
249
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
250
  <option id="select">-- Select --</option>
251
  <?php
@@ -282,7 +282,7 @@ $usersObj = new UsersActions();
282
  </script>
283
 
284
  </td>
285
- <td class="left_align">
286
  <?php
287
  if(strlen($getrecords[0][$value])>32) {
288
  $getrecords[0][$value] = substr($getrecords[0][$value], 0, 28).'...';
@@ -317,7 +317,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
317
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
318
  <div>
319
  <div class="goto_import_options" align=center>
320
- <div class="mappingactions" >
321
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
322
  <span style = ''>
323
  <a href="#" class="tooltip tooltip_smack" style = ''>
@@ -365,8 +365,8 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
365
  <div class="postbox" id="options" style=" margin-bottom:0px;">
366
  <!-- <h4 class="hndle">Search settings</h4>-->
367
  <div class="inside">
368
- <label><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
369
- <label><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
370
  <div id='schedule' style='display:none'>
371
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
372
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -397,10 +397,10 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
397
  </select><br>
398
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
399
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
400
- <label><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
401
- <label><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
402
 
403
- No. of posts/rows per server request <span class="mandatory">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
404
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
405
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
406
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
72
  <div class="form-group" style="padding-bottom:20px;">
73
  <table>
74
  <tr>
75
+ <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
76
  <select disabled/>
77
  <option value ='select template' /> select template </option>
78
  </select>
81
  </div>
82
  <div style="float:right;">
83
  <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
84
+ class='btn btn-warning' style="margin-right:15px"/>
85
  <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
86
+ class='btn btn-primary' style="margin-right:15px"/>
87
  </div>
88
  </tr>
89
  </table>
231
  <input type='button' id='prev_record' name='prev_record' value='<<' class="btn btn-primary" onclick='gotoelement(this.id);' />
232
  <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
233
  <input type='button' id='next_record' name='next_record' value='>>' class="btn btn-primary" onclick='gotoelement(this.id);' />
234
+ <label id="importalign" style="margin-right:8px;"> Go To Row # </label><input type='text' id='goto_element' name='goto_element' />
235
+ <input type='button' id='apply_element' name='apply_element' value='Show' class="btn btn-success" onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
236
  </div>
237
  </td>
238
  </tr>
240
  $count = 0;
241
  $usersObj = new UsersActions();
242
  ?>
243
+ <tr><td class="left_align columnheader"> <b>CSV HEADER</b> </td><td class="columnheader"> <b>WP FIELDS</b> </td><td class="columnheader"> <b>CSV ROW</b> </td><td></td></tr>
244
  <?php
245
  foreach ($impCE->headers as $key => $value) {
246
  ?>
247
  <tr>
248
+ <td class="left_align csvheader"><label><?php print($value);?></label></td>
249
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
250
  <option id="select">-- Select --</option>
251
  <?php
282
  </script>
283
 
284
  </td>
285
+ <td class="left_align csvcolumnvalue">
286
  <?php
287
  if(strlen($getrecords[0][$value])>32) {
288
  $getrecords[0][$value] = substr($getrecords[0][$value], 0, 28).'...';
317
  <input type="hidden" id="mapping_fields_array" name="mapping_fields_array" value="<?php if(isset($mFieldsArr)) { print_r($mFieldsArr); } ?>"/>
318
  <div>
319
  <div class="goto_import_options" align=center>
320
+ <div class="mappingactions" style="margin-top:26px;" >
321
  <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
322
  <span style = ''>
323
  <a href="#" class="tooltip tooltip_smack" style = ''>
365
  <div class="postbox" id="options" style=" margin-bottom:0px;">
366
  <!-- <h4 class="hndle">Search settings</h4>-->
367
  <div class="inside">
368
+ <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
369
+ <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
370
  <div id='schedule' style='display:none'>
371
  <input type ='hidden' id='select_templatename' name='#select_templatename' value = '<?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'])) { echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['templateid'] ; } ?>'>
372
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
397
  </select><br>
398
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
399
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
400
+ <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
401
+ <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
402
 
403
+ <label id='importalign'>No. of posts/rows per server request</label> <span class="mandatory" style="margin-left:-13px;margin-right:10px">*</span> <input name="importlimit" id="importlimit" type="text" value="1" placeholder="10" onblur="check_allnumeric(this.value);"></label> <?php echo $impCE->helpnotes(); ?><br>
404
  <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;">You can set upto <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
405
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
406
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
plugins/class.inlineimages.php CHANGED
@@ -47,32 +47,46 @@ class WPImporter_inlineImages {
47
  $baseurl = $dir ['baseurl'];
48
  }
49
  $inline_img_path = $full_path;
50
- $img_real_name = wp_unique_filename($inline_img_path, $img_real_name, $unique_filename_callback = null);
51
  if($import_image_method == 'imagewithextension' && $count == 1 ) {
52
  $new_img_path = $imgLoc . '/' . $img_real_name;
53
- $helperObj->get_fimg_from_URL($new_img_path, $inline_img_path, $img_real_name, $post_slug_value, $currentLimit, $impObj);
54
  } else {
55
  if($sampleURL == null) {
56
- $helperObj->get_fimg_from_URL($img_path, $inline_img_path, $img_real_name, $post_slug_value, $currentLimit, $impObj);
57
  } else {
58
  $new_img_path = $sampleURL . '/' . $img_real_name;
59
- $helperObj->get_fimg_from_URL($new_img_path, $inline_img_path, $img_real_name, $post_slug_value, $currentLimit, $impObj);
60
  }
61
  }
62
- $inline_filepath = $inline_img_path . "/" . $img_real_name;
63
  if (@getimagesize($inline_filepath)) {
64
- $inline_file ['guid'] = $baseurl . "/" . $img_real_name;
65
- $inline_file ['post_title'] = $img_real_name;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  $inline_file ['post_content'] = '';
67
  $inline_file ['post_status'] = 'attachment';
68
  $wp_upload_dir = wp_upload_dir();
69
  $attachment = array('guid' => $inline_file ['guid'], 'post_mime_type' => 'image/jpg', 'post_title' => preg_replace('/\.[^.]+$/', '', @basename($inline_file ['guid'])), 'post_content' => '', 'post_status' => 'inherit');
70
  if ($get_media_settings == 1) {
71
- $generate_attachment = $dirname . '/' . $img_real_name;
72
  } else {
73
- $generate_attachment = $img_real_name;
74
  }
75
- $uploadedImage = $wp_upload_dir['path'] . '/' . $img_real_name;
76
  $attach_id = wp_insert_attachment($attachment, $generate_attachment, $post_id);
77
  $attach_data = wp_generate_attachment_metadata($attach_id, $uploadedImage);
78
  wp_update_attachment_metadata($attach_id, $attach_data);
47
  $baseurl = $dir ['baseurl'];
48
  }
49
  $inline_img_path = $full_path;
50
+ #$img_real_name = wp_unique_filename($inline_img_path, $img_real_name, $unique_filename_callback = null);
51
  if($import_image_method == 'imagewithextension' && $count == 1 ) {
52
  $new_img_path = $imgLoc . '/' . $img_real_name;
53
+ $inline = $helperObj->get_fimg_from_URL($new_img_path, $inline_img_path, $img_real_name, $post_slug_value, $currentLimit, $impObj);
54
  } else {
55
  if($sampleURL == null) {
56
+ $inline = $helperObj->get_fimg_from_URL($img_path, $inline_img_path, $img_real_name, $post_slug_value, $currentLimit, $impObj);
57
  } else {
58
  $new_img_path = $sampleURL . '/' . $img_real_name;
59
+ $inline = $helperObj->get_fimg_from_URL($new_img_path, $inline_img_path, $img_real_name, $post_slug_value, $currentLimit, $impObj);
60
  }
61
  }
62
+ $inline_filepath = $inline_img_path . "/" . $inline;
63
  if (@getimagesize($inline_filepath)) {
64
+ $img = wp_get_image_editor($inline_filepath);
65
+ if (!is_wp_error($img)) {
66
+ $sizes_array = array(
67
+ // #1 - resizes to 1024x768 pixel, square-cropped image
68
+ array('width' => 1024, 'height' => 768, 'crop' => true),
69
+ // #2 - resizes to 100px max width/height, non-cropped image
70
+ array('width' => 100, 'height' => 100, 'crop' => false),
71
+ // #3 - resizes to 100 pixel max height, non-cropped image
72
+ array('width' => 300, 'height' => 100, 'crop' => false),
73
+ // #3 - resizes to 624x468 pixel max width, non-cropped image
74
+ array('width' => 624, 'height' => 468, 'crop' => false)
75
+ );
76
+ $resize = $img->multi_resize($sizes_array);
77
+ }
78
+ $inline_file ['guid'] = $baseurl . "/" . $inline;
79
+ $inline_file ['post_title'] = $inline;
80
  $inline_file ['post_content'] = '';
81
  $inline_file ['post_status'] = 'attachment';
82
  $wp_upload_dir = wp_upload_dir();
83
  $attachment = array('guid' => $inline_file ['guid'], 'post_mime_type' => 'image/jpg', 'post_title' => preg_replace('/\.[^.]+$/', '', @basename($inline_file ['guid'])), 'post_content' => '', 'post_status' => 'inherit');
84
  if ($get_media_settings == 1) {
85
+ $generate_attachment = $dirname . '/' . $inline;
86
  } else {
87
+ $generate_attachment = $inline;
88
  }
89
+ $uploadedImage = $wp_upload_dir['path'] . '/' . $inline;
90
  $attach_id = wp_insert_attachment($attachment, $generate_attachment, $post_id);
91
  $attach_data = wp_generate_attachment_metadata($attach_id, $uploadedImage);
92
  wp_update_attachment_metadata($attach_id, $attach_data);
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
screenshot-5.png CHANGED
Binary file
screenshot-6.png CHANGED
Binary file
screenshot-7.png CHANGED
Binary file
screenshot-8.png CHANGED
Binary file