Ultimate CSV Importer - Version 3.8

Version Description

Download this release

Release Info

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

Code changes from version 3.7.4 to 3.8

Readme.txt CHANGED
@@ -3,45 +3,75 @@ Contributors: smackcoders
3
  Donate link: http://www.smackcoders.com/donate.html
4
  Tags: wp all import, 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, 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: 4.1
6
- Tested up to: 4.2.1
7
- Stable tag: 3.7.4
8
- Version: 3.7.4
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
 
12
  License: GPLv2 or later
13
 
14
- Import CSV with Ultimate CSV Importer made simple to import & export posts, pages, custom posts and custom fields in few simple clicks
15
 
16
  == Description ==
17
 
18
- Import CSV data to WordPress is made very easy even for novice users as in few clicks and 3 simple steps with Ultimate CSV Importer plugin. WordPress Ultimate CSV Importer V3.7.4 is updated with allow author/editor to import option and 4.2.2 compatibility. Users can get product manual and sample csv files etc., from http://www.wpultimatecsvimporter.com/
19
 
20
- ** New Features of WordPress Ultimate CSV Importer Pro V4.0 **
21
 
22
- * Added common module for all features.
23
- * Static/Dynamic/Formula content feature.
24
- * Advanced image handling with content and featured image short codes.
25
- * Added update feature from File Manager.
26
- * Managing logs with any time downloadable logs.
27
- * Auto delimiter detection.
28
- * Nested category & Nested Taxonomies with Yoast SEO support.
29
- * Added Ajax save in Setting module.
30
- * Summarize view,Security fix and Migrations are added.
31
- * ACF Pro support for all available fields.
32
- * Mapping template feature with edit option.
33
- * Auto mapping and specific column update in Update feature.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- ** Now stable version 3.7.4 available to download with allow author/editor users to import fix. Visit [www.wpultimatecsvimporter.com](http://www.wpultimatecsvimporter.com) for more news and future plans.
36
 
37
- 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 csv file exported from any tool, app or software. Import 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.
 
 
 
 
 
 
 
38
 
39
  = Video Walkthrough =
40
 
41
  <p>https://www.youtube.com/watch?v=Guv5zR7fgW0&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
42
 
43
  = Highlights =
44
- * Import CSV from any source as WordPress posts
45
  * New Terminate & Continue feature is added.
46
  * Complete export feature with improved filters
47
  * Import external/internal images in line to any posts
@@ -78,25 +108,31 @@ WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer
78
  * Custom fields support for WP standard
79
  * Map custom fields by adding new on the fly.
80
 
81
- The csv importer supports almost every WordPress modules and plugin fields as follows. Import data feed periodically from csv file as
 
 
 
 
82
 
83
- = Supported Core Modules and Attributes =
84
- * Post
85
- * Page
86
- * Standard WP Custom Post types
87
- * WordPress themes custom posts
88
- * Custom post type UI plugin Post types
89
- * Users with roles
90
- * Comments
91
- * Custom Fields
92
- * Author
93
- * Tags
94
- * Categories
95
- * Eshop
 
 
 
 
 
96
 
97
- It is more easy to convert any off line database maintained in Excel xls or spread sheets into valuable content for your web site without missing any. It is possible now to schedule a periodical content update, maintenance, prices, offers, coupons and inventory etc.
98
-
99
- Much improved User interface with most flexible jquery plugin features and bootstrap UI design makes csv import more simple, easy, fast and even more flexible for better user experience. With improved Multi site, buddy press compatibility (except user import module) works well for most of the best WordPress themes available online. Now manage multi site & buddy press, Amazon data import, affiliates blog, product inventory, ecommerce store, multi author blog, automatic news import, photo blog etc periodically with simple click import.
100
 
101
  = Common Issues =
102
 
@@ -110,6 +146,13 @@ php_value auto_append_file none
110
 
111
  This will solve your issue or get support from hosting if you dint have sufficient permission.
112
 
 
 
 
 
 
 
 
113
  = Extended Pro Power Features in WP Ultimate CSV Importer =
114
  * Types Plugin support
115
  * Woocommerce CSV importer with product variation
@@ -129,41 +172,12 @@ This will solve your issue or get support from hosting if you dint have sufficie
129
  * WP ecommerce Products CSV Importer with WP e-Commerce Custom Fields
130
  * Categories & tags Import with Category icons plugin support
131
  * Custom Taxonomy import
132
- * [Get Complete List of supported 3rd party plugins here](http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html)
133
-
134
-
135
- [Read More about Pro>>](http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html) or [Test Drive Our Live Demo](http://demo.smackcoders.com/demowpthree/wp-admin/admin.php?page=wp-ultimate-csv-importer-pro/index.php&__module=dashboard)
136
-
137
- = Imp. Notes =
138
- * All CSV files should be should be strictly UTF-8 CSV format. Now this can be handled by plugin.
139
- * All WordPress supported languages can imported with csv format as UTF-8 without BOM (See FAQ for instructions).
140
- * User import option is disabled for multi site mode.
141
- * To Schedule posts for publishing provide future date and time in date column in CSV File.
142
-
143
- Featured Image Support
144
- Your WordPress theme should support featured image. If not, please add the following code to where you need to display E.g. wp-contents/themes/header.php
145
- `<?php add_theme_support( 'post-thumbnails' ); ?>`
146
-
147
- Also you can follow the instructions as given here
148
-
149
- * [http://codex.wordpress.org/Function_Reference/the_post_thumbnail](http://codex.wordpress.org/Function_Reference/the_post_thumbnail)
150
- * [http://codex.wordpress.org/Post_Thumbnails](http://codex.wordpress.org/Post_Thumbnails)
151
- * [http://wordpress.org/support/topic/featured-image-not-showing-7?replies=5](http://wordpress.org/support/topic/featured-image-not-showing-7?replies=5)
152
-
153
- Need More Help, Cool. Browse Below Links
154
-
155
- * [Get Pro Power Features, check here](http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html)
156
- * [Wiki and Documentation](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer)
157
- * [Tutorials, Guides, Blog News and Updates](http://blog.smackcoders.com/category/free-wordpress-plugins/wordpress-ultimate-csv-importer-plugin/)
158
- * [Video Walkthrough](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Videos)
159
- * [Get the Sample CSV Files Here](http://blog.smackcoders.com/wordpress-ultimate-csv-importer-csv-sample-files-and-updates.html)
160
- * [Download CSV Format Cheat Sheets Here](http://blog.smackcoders.com/how-to-make-one-click-easy-csv-import-in-wordpress-free-cheat-sheet-downloads.html)
161
 
162
  = And we thank @respectyoda, @alantygel and @James Golovich for their wonderful support to us. =
163
 
164
  == Installation ==
165
 
166
- * [Step By Step Installation Wiki with Snaps](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Free_Version_1.1.1_Installation_and_Configuration)
167
 
168
 
169
  == Screenshots ==
@@ -192,12 +206,16 @@ php_value auto_append_file none
192
 
193
  This will solve your issue or get support from hosting if you dint have sufficient permission.
194
 
195
- [Click Here for Detailed FAQs](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_FAQ)
196
- [CSV File and Format Related](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_FAQ#CSV_File_and_Format_Related)
197
-
198
 
199
  == Changelog ==
200
 
 
 
 
 
 
 
201
  = 3.7.4 =
202
  * Fixed : Allow Editor/Author to import.(Multisite also).
203
  * Added : WordPress 4.2.2 compatibility.
@@ -450,6 +468,9 @@ This will solve your issue or get support from hosting if you dint have sufficie
450
 
451
  == Upgrade Notice ==
452
 
 
 
 
453
  = 3.7.4 =
454
  * Upgrade now for allow author/editor to import fix.
455
 
3
  Donate link: http://www.smackcoders.com/donate.html
4
  Tags: wp all import, 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, 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: 4.1
6
+ Tested up to: 4.2.2
7
+ Stable tag: 3.8
8
+ Version: 3.8
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
 
12
  License: GPLv2 or later
13
 
14
+ Import CSV with CSV Importer made simple to import & export posts, pages, custom posts and custom fields in few simple clicks
15
 
16
  == Description ==
17
 
18
+ Import CSV data to WordPress is made very easy even for novice users as in few clicks and 3 simple steps with CSV Importer plugin.
19
 
20
+ Now csv importer supports multi language and almost every WordPress modules and plugin fields as follows. Import data feed periodically from csv file as
21
 
22
+ = Supported Core Modules and Attributes =
23
+ * Post
24
+ * Page
25
+ * Featured image support
26
+ * Post inline image handling
27
+ * Standard WP Custom Post types
28
+ * WordPress themes custom posts
29
+ * Custom post type UI plugin Post types
30
+ * Users with roles
31
+ * Comments
32
+ * Custom Fields
33
+ * Author
34
+ * Tags import and multi tag for each post import
35
+ * Categories import and multi category for each post
36
+ * Eshop
37
+ * All-in-one SEO
38
+
39
+ = Highlights of 3.8 =
40
+ * Multilanguage support (fr_FR,es_ES,nl_NL)
41
+ * Inline image handling shortcode with image attributes Example:[WPIMPINLINE:greensroad.jpg|width='150'|height='80'|alt='post_title_redtree']
42
+ * Fixed user reported Warnings and Bugs
43
+ * Any delimiter support for csv export
44
+
45
+ Note: Now you can import no. of images in in-line post content as image shortcodes using advanced media handling option as zip files.
46
+
47
+ = CSV Importer =
48
+
49
+ WP Ultimate CSV Importer Plugin proven much effective advanced CSV Importer With Ultimate User Friendly Features. It is much easy now even for newbies to import csv file exported from any tool, app or software. Import 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.
50
+
51
+ It is more easy to import csv database maintained in Excel xls or spread sheets into valuable content for your web site without missing any. It is possible now to schedule a import csv periodically for content update, maintenance, prices, offers, coupons and inventory etc.
52
+
53
+ Much improved User interface with most flexible jquery plugin features and bootstrap UI design makes csv import more simple, easy, fast and even more flexible for better user experience. With improved Multi site, buddy press compatibility (except user import module) works well for most of the best WordPress themes available online. Now manage multi site & buddy press, Amazon data import, affiliates blog, product inventory, ecommerce store, multi author blog, automatic news import, photo blog etc periodically with simple click import.
54
+
55
+ = Helpful Links =
56
+
57
+ [Read More Here>>](http://www.wpultimatecsvimporter.com?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)
58
 
 
59
 
60
+ [Test Drive Our Live Demo](http://demo.smackcoders.com/demowpthree/wp-admin/admin.php?page=wp-ultimate-csv-importer-pro/index.php&__module=dashboard?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)
61
+
62
+
63
+ Get Started [Sample CSV Files](https://www.smackcoders.com/blog/wordpress-ultimate-csv-importer-csv-sample-files-and-updates.html?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)
64
+
65
+
66
+ Documentation and Tutorial for [CSV Importer ](http://www.wpultimatecsvimporter.com/documentation?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)
67
+
68
 
69
  = Video Walkthrough =
70
 
71
  <p>https://www.youtube.com/watch?v=Guv5zR7fgW0&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
72
 
73
  = Highlights =
74
+ * import csv from any source as WordPress posts
75
  * New Terminate & Continue feature is added.
76
  * Complete export feature with improved filters
77
  * Import external/internal images in line to any posts
108
  * Custom fields support for WP standard
109
  * Map custom fields by adding new on the fly.
110
 
111
+ = Imp. Notes =
112
+ * All CSV files should be should be strictly UTF-8 CSV format. Now this can be handled by plugin.
113
+ * All WordPress supported languages can imported with csv format as UTF-8 without BOM (See FAQ for instructions).
114
+ * User import option is disabled for multi site mode.
115
+ * To Schedule posts for publishing provide future date and time in date column in CSV File.
116
 
117
+ Featured Image Support
118
+ Your WordPress theme should support featured image. If not, please add the following code to where you need to display E.g. wp-contents/themes/header.php
119
+ `<?php add_theme_support( 'post-thumbnails' ); ?>`
120
+
121
+ = Pro Features =
122
+ * Advanced Features
123
+ * Multi language Support
124
+ * Woocommerce Support with woocommerce_products, woocommerce_variations, woocommerce_refunds, woocommerce_orders, woocommerce_coupons
125
+ * Market press
126
+ * ACF, TYPES, PODS, CCTM Custom Fields
127
+ * Advanced Export with Delimiter and Filters
128
+ * Advanced Media Handling
129
+ * Schedule Imports
130
+ * Dashboard, CSV Manager and Custom Mapping Templates
131
+ * DB Optimizer, System status etc.
132
+
133
+ Compare Free Vs Pro [Features](https://www.wpultimatecsvimporter.com/wp-ultimate-csv-importer-plugin?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)>>
134
+ Learn More from [User Manual](https://www.wpultimatecsvimporter.com/documentation?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)>>
135
 
 
 
 
136
 
137
  = Common Issues =
138
 
146
 
147
  This will solve your issue or get support from hosting if you dint have sufficient permission.
148
 
149
+ Also you can follow the instructions as given here
150
+
151
+ * [http://codex.wordpress.org/Function_Reference/the_post_thumbnail](http://codex.wordpress.org/Function_Reference/the_post_thumbnail)
152
+ * [http://codex.wordpress.org/Post_Thumbnails](http://codex.wordpress.org/Post_Thumbnails)
153
+ * [http://wordpress.org/support/topic/featured-image-not-showing-7?replies=5](http://wordpress.org/support/topic/featured-image-not-showing-7?replies=5)
154
+
155
+
156
  = Extended Pro Power Features in WP Ultimate CSV Importer =
157
  * Types Plugin support
158
  * Woocommerce CSV importer with product variation
172
  * WP ecommerce Products CSV Importer with WP e-Commerce Custom Fields
173
  * Categories & tags Import with Category icons plugin support
174
  * Custom Taxonomy import
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
 
176
  = And we thank @respectyoda, @alantygel and @James Golovich for their wonderful support to us. =
177
 
178
  == Installation ==
179
 
180
+ * [Step By Step Installation with Snaps](http://www.wpultimatecsvimporter.com/documentation?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)
181
 
182
 
183
  == Screenshots ==
206
 
207
  This will solve your issue or get support from hosting if you dint have sufficient permission.
208
 
209
+ [Click Here for More Details](http://www.wpultimatecsvimporter.com/documentation?utm_source=WpOrg&utm_medium=Readme&utm_campaign=ListingTraffic)
 
 
210
 
211
  == Changelog ==
212
 
213
+ = 3.8 =
214
+ * Multilanguage support (fr_FR,es_ES,nl_NL)
215
+ * Inline image handling shortcode with image attributes
216
+ * Warnings and bugs Fixes
217
+ * Any delimiter support for csv export
218
+
219
  = 3.7.4 =
220
  * Fixed : Allow Editor/Author to import.(Multisite also).
221
  * Added : WordPress 4.2.2 compatibility.
468
 
469
  == Upgrade Notice ==
470
 
471
+ = 3.8 =
472
+ * Upgrade now for Multi language support and bug fixes
473
+
474
  = 3.7.4 =
475
  * Upgrade now for allow author/editor to import fix.
476
 
images/Importicon_24.png CHANGED
File without changes
images/facebook.png CHANGED
File without changes
images/googleplus.png CHANGED
File without changes
images/icon.png CHANGED
File without changes
images/linkedin.png CHANGED
File without changes
images/twitter.png CHANGED
File without changes
includes/WPImporter_includes_helper.php CHANGED
@@ -109,28 +109,28 @@ class WPImporter_includes_helper {
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>
117
- <option value='2'>Sticky</option>
118
- <option value='4'>Private</option>
119
- <option value='3'>Protected</option>
120
- <option value='5'>Draft</option>
121
- <option value='6'>Pending</option>
122
  </select></div>
123
  <div style='float:right;'>
124
  <a href='#' class='tooltip'>
125
  <img src='".WP_CONST_ULTIMATE_CSV_IMP_DIR."images/help.png' />
126
  <span class='tooltipPostStatus'>
127
  <img class='callout' src='".WP_CONST_ULTIMATE_CSV_IMP_DIR."images/callout.gif' />
128
- Select the status for the post imported, if not defined within your csv .E.g.publish
129
  <img src='". WP_CONST_ULTIMATE_CSV_IMP_DIR."images/help.png' style='margin-top: 6px;float:right;' />
130
  </span></a> </div>
131
  </td></tr><tr><td>
132
- <div id='globalpassword_label' class='globalpassword' style='display:none;'><label>Password</label><span class='mandatory'> *</span></div></td><td>
133
- <div id='globalpassword_text' class='globalpassword' style='display:none;'><input type = 'text' id='globalpassword_txt' name='globalpassword_txt' placeholder='Password for all post'></div></td></tr></table>
134
  </div>";
135
  return $importDataConfig;
136
  }
@@ -375,9 +375,9 @@ class WPImporter_includes_helper {
375
  }
376
  if ($rawdata == false) {
377
  if ($logObj == '') {
378
- $this->detailedLog[$currentLimit]['image'] = "<b>Image -</b> host not resolved";
379
  } else {
380
- $logObj->detailedLog[$currentLimit]['image'] = "<b>Image -</b> host not resolved";
381
  }
382
  } else {
383
  if (file_exists($fimg_path)) {
@@ -386,7 +386,7 @@ class WPImporter_includes_helper {
386
  $fp = fopen($fimg_path, 'x');
387
  fwrite($fp, $rawdata);
388
  fclose($fp);
389
- $logObj->detailedLog[$currentLimit]['image'] = "<b>Image -</b>" . $fimg_name;
390
  }
391
  curl_close($ch);
392
  return $fimg_name;
@@ -506,12 +506,13 @@ class WPImporter_includes_helper {
506
  $path_parts = pathinfo($f_img);
507
  if(!isset($path_parts['extension']))
508
  $fimg_name = $fimg_name . '.jpg';
509
-
510
  $f_img_slug = preg_replace('/\.[^.]*$/', '',$f_img_slug);
511
  $f_img_slug = strtolower(str_replace('','-',$f_img_slug));
512
 
513
  $post_slug_value = strtolower($f_img_slug);
514
  $fimg_name = wp_unique_filename($fimg_path, $fimg_name, $path_parts['extension']);
 
515
  $this->get_fimg_from_URL($f_img, $fimg_path, $fimg_name, $post_slug_value, $currentLimit, $this);
516
  $filepath = $fimg_path ."/" . $fimg_name;
517
 
@@ -566,29 +567,29 @@ class WPImporter_includes_helper {
566
  switch ($data_array ['post_status']) {
567
  case 1 :
568
  $data_array['post_status'] = 'publish';
569
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>publish";
570
  break;
571
  case 2 :
572
  $data_array['post_status'] = 'publish';
573
  $sticky = true;
574
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>sticky";
575
  break;
576
  case 3 :
577
  $data_array['post_status'] = 'publish';
578
  $data_array ['post_password'] = $_POST ['postsPassword'];
579
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>protected with password " . $data_array['post_password'];
580
  break;
581
  case 4 :
582
  $data_array ['post_status'] = 'private';
583
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>private";
584
  break;
585
  case 5 :
586
  $data_array ['post_status'] = 'draft';
587
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>draft";
588
  break;
589
  case 6 :
590
  $data_array ['post_status'] = 'pending';
591
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>pending";
592
  break;
593
  default :
594
  $poststatus = $data_array['post_status'] = strtolower($data_array['post_status']);
@@ -601,24 +602,24 @@ class WPImporter_includes_helper {
601
  $postpwd = substr($poststatus, 0, -1);
602
  $data_array['post_status'] = 'publish';
603
  $data_array ['post_password'] = $postpwd;
604
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>protected with password " . $data_array['post_password'];
605
  } else {
606
  $data_array['post_status'] = 'publish';
607
  $data_array ['post_password'] = $poststatus;
608
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>protected with password " . $data_array['post_password'];
609
  }
610
  } else {
611
  $data_array['post_status'] = 'publish';
612
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>publish";
613
  }
614
  }
615
  if ($data_array['post_status'] == 'sticky') {
616
  $data_array['post_status'] = 'publish';
617
  $sticky = true;
618
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>sticky";
619
  }
620
  else {
621
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>" . $data_array['post_status'];
622
  }
623
  }
624
  // Post Format Options
@@ -702,17 +703,17 @@ class WPImporter_includes_helper {
702
  if (empty($postauthor) || !$postauthor[0]->ID) {
703
  $data_array ['post_author'] = 1;
704
  $admindet = $wpdb->get_results("select ID,user_login from $wpdb->users where ID = 1");
705
- $this->detailedLog[$currentLimit]['assigned_author'] = "<b>Author - not found (assigned to </b>" . $admindet[0]->user_login . ")";
706
  $this->noPostAuthCount++;
707
  } else {
708
  $data_array ['post_author'] = $postauthor [0]->ID;
709
- $this->detailedLog[$currentLimit]['assigned_author'] = "<b>Author - </b>" . $postauthor[0]->user_login;
710
  }
711
  }
712
  else{
713
  $data_array ['post_author'] = 1;
714
  $admindet = $wpdb->get_results("select ID,user_login from $wpdb->users where ID = 1");
715
- $this->detailedLog[$currentLimit]['assigned_author'] = "<b>Author - not found (assigned to </b>" . $admindet[0]->user_login . ")";
716
  $this->noPostAuthCount++;
717
  }
718
 
@@ -720,10 +721,10 @@ class WPImporter_includes_helper {
720
  $data_array ['post_date'] = str_replace('/', '-', $data_array ['post_date']);
721
  if (!isset($data_array ['post_date'])){
722
  $data_array ['post_date'] = date('Y-m-d H:i:s');
723
- $this->detailedLog[$currentLimit]['postdate'] = "<b>Date - </b>" . $data_array ['post_date'];
724
  }else{
725
  $data_array ['post_date'] = date('Y-m-d H:i:s', strtotime($data_array ['post_date']));
726
- $this->detailedLog[$currentLimit]['postdate'] = "<b>Date - </b>" . $data_array ['post_date'];
727
  }
728
  if(isset($data_array ['post_slug'])){
729
  $data_array ['post_name'] = $data_array ['post_slug'];
@@ -733,16 +734,18 @@ class WPImporter_includes_helper {
733
  if($data_array){
734
  if($ret_array['importallwithps'] == 3){
735
  $data_array['post_password'] = $ret_array['globalpassword_txt'];
736
- $this->detailedLog[$currentLimit]['poststatus'] = "<b>Status - </b>protected with password " . $ret_array['globalpassword_txt'];
737
  }
738
  }
739
  if ($data_array) {
740
  if($this->MultiImages == 'true') { // Inline image import feature by fredrick marks
741
  $inlineImagesObj = new WPImporter_inlineImages();
742
- $post_id = $inlineImagesObj->importwithInlineImages($data_array['ID'], $currentLimit, $data_array, $this, $importinlineimageoption, $extractedimagelocation, $sample_inlineimage_url);
 
 
743
  } else {
744
  $post_id = wp_insert_post($data_array);
745
- $this->detailedLog[$currentLimit]['post_id'] = "<b>Created Post_ID - </b>" . $post_id . " - success";
746
  }
747
  }
748
  unset($postauthor);
@@ -813,7 +816,7 @@ class WPImporter_includes_helper {
813
  $this->detailedLog[$currentLimit]['tags'] .= $tag_value . "|";
814
  wp_set_post_tags($post_id, $tag_value);
815
  }
816
- $this->detailedLog[$currentLimit]['tags'] = "<b>Tags - </b>" .substr($this->detailedLog[$currentLimit]['tags'], 0, -1);
817
  }
818
 
819
  // Create/Add category to post
@@ -831,7 +834,7 @@ class WPImporter_includes_helper {
831
  foreach($assigned_categories as $cateKey => $cateVal) {
832
  $this->detailedLog[$currentLimit]['category'] .= $cateKey . "|";
833
  }
834
- $this->detailedLog[$currentLimit]['category'] = "<b>Category - </b>" .substr($this->detailedLog[$currentLimit]['category'], 0, -1);
835
  wp_set_object_terms($post_id, $split_cate, 'category');
836
  }
837
  // Add featured image
@@ -861,7 +864,7 @@ class WPImporter_includes_helper {
861
  $skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
862
  }
863
  }
864
- $this->detailedLog[$currentLimit]['verify_here'] = "<b>Verify Here -</b> <a href='" . get_permalink( $post_id ) . "' title='" . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $data_array['post_title'] ) ) . "' rel='permalink' target='_blank'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "' target='_blank'>" . __( 'Admin View' ) . "</a>";
865
 
866
  unset($data_array);
867
  }
@@ -869,7 +872,7 @@ class WPImporter_includes_helper {
869
  // Create Data base for Statistic chart
870
  public static function activate() {
871
  if (!defined('PDO::ATTR_DRIVER_NAME')) {
872
- echo("Make sure you have enable the PDO extensions in your environment before activate the plugin!");
873
  die;
874
  }
875
  global $wpdb;
@@ -979,21 +982,21 @@ class WPImporter_includes_helper {
979
 
980
  // Function to show common notice for PRO Feature
981
  public function common_notice_for_pro_feature() {
982
- return "<p align='center'> <label style='color:red;'> This feature is only available in Pro! </label> <a href='http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html' target='_blank'>Go Pro Now</a> </p>";
983
  }
984
 
985
  // Function for common footer
986
  public function common_footer_for_other_plugin_promotions(){
987
  $content = '<div class="accordion-inner">
988
- <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/" target="_blank">Social All in One Bot</a></label>
989
- <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/google-seo-author-snippet-plugin/" target="_blank">Google SEO Author Snippet</a></label>
990
- <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/" target="_blank">WP Advanced Importer</a></label>
991
- <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/" target="_blank">WP Sugar</a></label>
992
- <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/" target="_blank">WP Zoho crm Sync</a></label>
993
-
994
- <label class="plugintags"><a href="http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html" target="_blank">WP Ultimate CSV Importer Pro</a></label>
995
- <label class="plugintags"><a href="http://www.smackcoders.com/wordpress-sugar-integration-automated-multi-web-forms-generator-pro.html" target="_blank">WordPress Sugar Pro</a></label>
996
- <div style="position:relative;float:right;"><a href="http://www.smackcoders.com/"><img width=80 src="http://www.smackcoders.com/skin/frontend/default/megashop/images/logo.png" /></a></div>
997
  </div>';
998
  echo $content;
999
  }
@@ -1046,23 +1049,23 @@ class WPImporter_includes_helper {
1046
  $get_pluginData = get_plugin_data(plugin_dir_path( __FILE__ ).'../index.php');
1047
  $footer = '';
1048
  $footer .= '<div style="padding:10px;">';
1049
- $footer .= '<label class="plugintags"><a href="http://www.wpultimatecsvimporter.com" target="_blank">Home</a></label> <label class="plugintags"><a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer" target="_blank">Wiki</a></label>
1050
- <label class="plugintags"><a href="http://www.wpultimatecsvimporter.com" target="_blank">Tutorials</a></label> <label class="plugintags"><a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Videos" target="_blank">Videos</a></label>
1051
- <label class="plugintags"><a href="http://blog.smackcoders.com/wordpress-ultimate-csv-importer-csv-sample-files-and-updates.html" target="_blank">Sample Files</a></label>';
1052
  $footer .= '</div>';
1053
  $footer .= '<div style="padding:10px;margin-bottom:20px;">';
1054
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] != 'settings')
1055
- $footer .= "<div style='float:right;margin-top:-49px;'><a class='label label-info' href='".get_admin_url()."admin.php?page=".WP_CONST_ULTIMATE_CSV_IMP_SLUG."/index.php&__module=settings'>Click here to Enable any disabled module</a></div>";
1056
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] == 'settings') {
1057
- $footer .= "<div style='float:right;margin-top:-48px;'><span style='margin-right:20px;'><a class='label label-info' href='http://wordpress.org/plugins/wp-ultimate-csv-importer/developers/'>Get Old Versions</a></span><a class='label label-info' href='".get_admin_url()."admin.php?page=".WP_CONST_ULTIMATE_CSV_IMP_SLUG."/index.php&__module=support'>Click here to Get some useful links</a></div>";
1058
- $footer .= "<div style='float:right;margin-right:15px;'> </span> Current Version: ".$get_pluginData['Version']." </div>";
1059
  }
1060
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] != 'support' && $_REQUEST['__module'] != 'settings') {
1061
- $footer .= "<div style='float:right;margin-right:225px;margin-top:-48px;'><span style='margin-right:20px;'> <a class='label label-info' href='http://wordpress.org/plugins/wp-ultimate-csv-importer/developers/'>Get Old Versions</a></span><a class='label label-info' href='".get_admin_url()."admin.php?page=".WP_CONST_ULTIMATE_CSV_IMP_SLUG."/index.php&__module=support'>Click here to Get some useful links</a></div>";
1062
- $footer .= "<div style='float:right;margin-right:15px;'> Current Version: ".$get_pluginData['Version']." </div>";
1063
  }
1064
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] == 'support'){
1065
- $footer .= "<div style='float:right;margin-right:15px;'><span style='margin-right:20px;'>Current Version: ".$get_pluginData['Version']." </span><span style='margin-right:10px;'><a class='label label-info' href='http://wordpress.org/plugins/wp-ultimate-csv-importer/developers/'>Get Old Versions</a></span></div>";
1066
  }
1067
  $footer .= '</div>';
1068
  $footer .= '<div style="float:right;margin-right:15px;margin-top:-10px;"> <label>Plugin By <a href="http://www.smackcoders.com"> Smackcoders</a></label> </div>';
@@ -1075,11 +1078,11 @@ class WPImporter_includes_helper {
1075
 
1076
  <div align="center" style="text-align:left;margin-top:-33px;">
1077
  <div id="boxmethod1" class="method1">
1078
- <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>
1079
  <!-- The fileinput-button span is used to style the file input field as button -->
1080
  <div id="method1" style="display:block;height:40px;">
1081
  <span class="btn btn-success fileinput-button">
1082
- <span>' . __('Browse') . '</span>
1083
  <input id="fileupload" type="file" name="files[]" multiple>
1084
  <a href="#" id="zip_process" style = "display:none"> Click Here To Process Zip </a>
1085
  </span>';
@@ -1087,20 +1090,20 @@ class WPImporter_includes_helper {
1087
  $smack_csv_import_method .= '<span style="padding-top:10px;">
1088
  <div id="progress" class="progress">
1089
  <div class="progress-bar progress-bar-success"></div>
1090
- <div align="center" id="helpnotify" style="width:100%;"><p class="msgborder" style="color:green;">' . __('You can also drag and drop files here') . '</div>
1091
  </div>
1092
  </span>
1093
  </div>
1094
  </div>
1095
  <div style = "opacity: 0.3;background-color: ghostwhite;">
1096
  <div id="boxmethod2" class="method2">
1097
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP') . '</span> </label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1098
  </div>
1099
  <div id="boxmethod3" class="method3">
1100
- <label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL') . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1101
  </div>
1102
  <div id="boxmethod4" class="method4">
1103
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded') . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1104
  </div>
1105
  </div>
1106
 
@@ -1109,7 +1112,7 @@ class WPImporter_includes_helper {
1109
  $curr_module = $_REQUEST['__module'];
1110
  if($curr_module == 'post' || $curr_module == 'page' || $curr_module == 'custompost' || $curr_module == 'eshop') {
1111
  $smack_csv_import_method .= '<div class="media_handling" align="left">
1112
- <span class="advancemediahandling"> <label id="importalign"> <input type="checkbox" name="advance_media_handling" id="advance_media_handling" onclick = "filezipopen();" /> Advance Media Handling </label> </span>
1113
  <span id = "filezipup" style ="display:none;">
1114
  <span class="advancemediahandling" style="padding-left:30px;"> <input type="file" name="inlineimages" id="inlineimages" onchange ="checkextension(this.value);" /> </span>
1115
  </span>
@@ -1135,7 +1138,31 @@ class WPImporter_includes_helper {
1135
  function create_nonce_key(){
1136
  return wp_create_nonce('smack_nonce');
1137
  }
1138
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1139
  }
1140
 
1141
  class CallWPImporterObj extends WPImporter_includes_helper
109
  public function getImportDataConfiguration(){
110
  $importDataConfig = "<div class='importstatus'id='importallwithps_div'>
111
  <table><tr><td>
112
+ <label id='importalign'>".__('Import with post status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</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',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
116
+ <option value='1'>".__('Publish',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
117
+ <option value='2'>".__('Sticky',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
118
+ <option value='4'>".__('Private',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
119
+ <option value='3'>".__('Protected',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
120
+ <option value='5'>".__('Draft',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
121
+ <option value='6'>".__('Pending',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</option>
122
  </select></div>
123
  <div style='float:right;'>
124
  <a href='#' class='tooltip'>
125
  <img src='".WP_CONST_ULTIMATE_CSV_IMP_DIR."images/help.png' />
126
  <span class='tooltipPostStatus'>
127
  <img class='callout' src='".WP_CONST_ULTIMATE_CSV_IMP_DIR."images/callout.gif' />
128
+ ". __('Select the status for the post imported, if not defined within your csv .E.g.publish',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."
129
  <img src='". WP_CONST_ULTIMATE_CSV_IMP_DIR."images/help.png' style='margin-top: 6px;float:right;' />
130
  </span></a> </div>
131
  </td></tr><tr><td>
132
+ <div id='globalpassword_label' class='globalpassword' style='display:none;'><label>". __('Password',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</label><span class='mandatory'> *</span></div></td><td>
133
+ <div id='globalpassword_text' class='globalpassword' style='display:none;'><input type = 'text' id='globalpassword_txt' name='globalpassword_txt' placeholder=".__('Password for all post',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."></div></td></tr></table>
134
  </div>";
135
  return $importDataConfig;
136
  }
375
  }
376
  if ($rawdata == false) {
377
  if ($logObj == '') {
378
+ $this->detailedLog[$currentLimit]['image'] = "<b>" .__('Image',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." -</b> " .__('host not resolved',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
379
  } else {
380
+ $logObj->detailedLog[$currentLimit]['image'] = "<b>" . __('Image',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." -</b>" .__('host not resolved',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
381
  }
382
  } else {
383
  if (file_exists($fimg_path)) {
386
  $fp = fopen($fimg_path, 'x');
387
  fwrite($fp, $rawdata);
388
  fclose($fp);
389
+ $logObj->detailedLog[$currentLimit]['image'] = "<b>". __('Image',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." -</b>" . $fimg_name;
390
  }
391
  curl_close($ch);
392
  return $fimg_name;
506
  $path_parts = pathinfo($f_img);
507
  if(!isset($path_parts['extension']))
508
  $fimg_name = $fimg_name . '.jpg';
509
+ $f_img_slug = '';
510
  $f_img_slug = preg_replace('/\.[^.]*$/', '',$f_img_slug);
511
  $f_img_slug = strtolower(str_replace('','-',$f_img_slug));
512
 
513
  $post_slug_value = strtolower($f_img_slug);
514
  $fimg_name = wp_unique_filename($fimg_path, $fimg_name, $path_parts['extension']);
515
+ $fimg_name = $fimg_name.'.'.$path_parts['extension'];
516
  $this->get_fimg_from_URL($f_img, $fimg_path, $fimg_name, $post_slug_value, $currentLimit, $this);
517
  $filepath = $fimg_path ."/" . $fimg_name;
518
 
567
  switch ($data_array ['post_status']) {
568
  case 1 :
569
  $data_array['post_status'] = 'publish';
570
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('publish',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
571
  break;
572
  case 2 :
573
  $data_array['post_status'] = 'publish';
574
  $sticky = true;
575
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('sticky',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
576
  break;
577
  case 3 :
578
  $data_array['post_status'] = 'publish';
579
  $data_array ['post_password'] = $_POST ['postsPassword'];
580
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('protected with password',WP_CONST_ULTIMATE_CSV_IMP_SLUG). $data_array['post_password'];
581
  break;
582
  case 4 :
583
  $data_array ['post_status'] = 'private';
584
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('private',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
585
  break;
586
  case 5 :
587
  $data_array ['post_status'] = 'draft';
588
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('draft',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
589
  break;
590
  case 6 :
591
  $data_array ['post_status'] = 'pending';
592
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('pending',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
593
  break;
594
  default :
595
  $poststatus = $data_array['post_status'] = strtolower($data_array['post_status']);
602
  $postpwd = substr($poststatus, 0, -1);
603
  $data_array['post_status'] = 'publish';
604
  $data_array ['post_password'] = $postpwd;
605
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>".__('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('protected with password',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . $data_array['post_password'];
606
  } else {
607
  $data_array['post_status'] = 'publish';
608
  $data_array ['post_password'] = $poststatus;
609
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('protected with password',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . $data_array['post_password'];
610
  }
611
  } else {
612
  $data_array['post_status'] = 'publish';
613
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>". __('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('publish',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
614
  }
615
  }
616
  if ($data_array['post_status'] == 'sticky') {
617
  $data_array['post_status'] = 'publish';
618
  $sticky = true;
619
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>".__('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('sticky',WP_CONST_ULTIMATE_CSV_IMP_SLUG);
620
  }
621
  else {
622
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>".__('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" . $data_array['post_status'];
623
  }
624
  }
625
  // Post Format Options
703
  if (empty($postauthor) || !$postauthor[0]->ID) {
704
  $data_array ['post_author'] = 1;
705
  $admindet = $wpdb->get_results("select ID,user_login from $wpdb->users where ID = 1");
706
+ $this->detailedLog[$currentLimit]['assigned_author'] = "<b>" .__('Author - not found (assigned to',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." </b>" . $admindet[0]->user_login . ")";
707
  $this->noPostAuthCount++;
708
  } else {
709
  $data_array ['post_author'] = $postauthor [0]->ID;
710
+ $this->detailedLog[$currentLimit]['assigned_author'] = "<b>".__('Author',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" . $postauthor[0]->user_login;
711
  }
712
  }
713
  else{
714
  $data_array ['post_author'] = 1;
715
  $admindet = $wpdb->get_results("select ID,user_login from $wpdb->users where ID = 1");
716
+ $this->detailedLog[$currentLimit]['assigned_author'] = "<b>".__('Author - not found (assigned to',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." </b>" . $admindet[0]->user_login . ")";
717
  $this->noPostAuthCount++;
718
  }
719
 
721
  $data_array ['post_date'] = str_replace('/', '-', $data_array ['post_date']);
722
  if (!isset($data_array ['post_date'])){
723
  $data_array ['post_date'] = date('Y-m-d H:i:s');
724
+ $this->detailedLog[$currentLimit]['postdate'] = "<b>".__('Date',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" . $data_array ['post_date'];
725
  }else{
726
  $data_array ['post_date'] = date('Y-m-d H:i:s', strtotime($data_array ['post_date']));
727
+ $this->detailedLog[$currentLimit]['postdate'] = "<b>".__('Date',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" . $data_array ['post_date'];
728
  }
729
  if(isset($data_array ['post_slug'])){
730
  $data_array ['post_name'] = $data_array ['post_slug'];
734
  if($data_array){
735
  if($ret_array['importallwithps'] == 3){
736
  $data_array['post_password'] = $ret_array['globalpassword_txt'];
737
+ $this->detailedLog[$currentLimit]['poststatus'] = "<b>".__('Status',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>".__('protected with password',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . $ret_array['globalpassword_txt'];
738
  }
739
  }
740
  if ($data_array) {
741
  if($this->MultiImages == 'true') { // Inline image import feature by fredrick marks
742
  $inlineImagesObj = new WPImporter_inlineImages();
743
+ $postid = wp_insert_post($data_array);
744
+ $post_id = $inlineImagesObj->importwithInlineImages($postid, $currentLimit, $data_array, $this, $importinlineimageoption, $extractedimagelocation, $sample_inlineimage_url);
745
+ // $inline_shortcode = $inlineImagesObj->capture_all_shortcodes($data_array['post_content']);
746
  } else {
747
  $post_id = wp_insert_post($data_array);
748
+ $this->detailedLog[$currentLimit]['post_id'] = "<b>".__('Created Post_ID',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" . $post_id . " - success";
749
  }
750
  }
751
  unset($postauthor);
816
  $this->detailedLog[$currentLimit]['tags'] .= $tag_value . "|";
817
  wp_set_post_tags($post_id, $tag_value);
818
  }
819
+ $this->detailedLog[$currentLimit]['tags'] = "<b>".__('Tags',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" .substr($this->detailedLog[$currentLimit]['tags'], 0, -1);
820
  }
821
 
822
  // Create/Add category to post
834
  foreach($assigned_categories as $cateKey => $cateVal) {
835
  $this->detailedLog[$currentLimit]['category'] .= $cateKey . "|";
836
  }
837
+ $this->detailedLog[$currentLimit]['category'] = "<b>".__('Category',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." - </b>" .substr($this->detailedLog[$currentLimit]['category'], 0, -1);
838
  wp_set_object_terms($post_id, $split_cate, 'category');
839
  }
840
  // Add featured image
864
  $skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
865
  }
866
  }
867
+ $this->detailedLog[$currentLimit]['verify_here'] = "<b>Verify Here -</b> <a href='" . get_permalink( $post_id ) . "' title='" . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $data_array['post_title'] ) ) . "' rel='permalink' target='_blank'>" . __( 'Web View',WP_CONST_ULTIMATE_CSV_IMP_SLUG ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item',WP_CONST_ULTIMATE_CSV_IMP_SLUG ) ) . "' target='_blank'>" . __( 'Admin View',WP_CONST_ULTIMATE_CSV_IMP_SLUG ) . "</a>";
868
 
869
  unset($data_array);
870
  }
872
  // Create Data base for Statistic chart
873
  public static function activate() {
874
  if (!defined('PDO::ATTR_DRIVER_NAME')) {
875
+ echo __("Make sure you have enable the PDO extensions in your environment before activate the plugin!",WP_CONST_ULTIMATE_CSV_IMP_SLUG);
876
  die;
877
  }
878
  global $wpdb;
982
 
983
  // Function to show common notice for PRO Feature
984
  public function common_notice_for_pro_feature() {
985
+ return "<p align='center'> <label style='color:red;'> ".__('This feature is only available in Pro!',WP_CONST_ULTIMATE_CSV_IMP_SLUG)." </label> <a href='http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html' target='_blank'>". __('Go Pro Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a> </p>";
986
  }
987
 
988
  // Function for common footer
989
  public function common_footer_for_other_plugin_promotions(){
990
  $content = '<div class="accordion-inner">
991
+ <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">Social All in One Bot</a></label>
992
+ <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/google-seo-author-snippet-plugin/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">Google SEO Author Snippet</a></label>
993
+ <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">WP Advanced Importer</a></label>
994
+ <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">WP Sugar</a></label>
995
+ <label class="plugintags"><a href="http://blog.smackcoders.com/category/free-wordpress-plugins/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">WP Zoho crm Sync</a></label>
996
+
997
+ <label class="plugintags"><a href="http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">WP Ultimate CSV Importer Pro</a></label>
998
+ <label class="plugintags"><a href="http://www.smackcoders.com/wordpress-sugar-integration-automated-multi-web-forms-generator-pro.html?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">WordPress Sugar Pro</a></label>
999
+ <div style="position:relative;float:right;"><a href="http://www.smackcoders.com/"><img width=80 src="http://www.smackcoders.com/skin/frontend/default/megashop/images/logo.png?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" /></a></div>
1000
  </div>';
1001
  echo $content;
1002
  }
1049
  $get_pluginData = get_plugin_data(plugin_dir_path( __FILE__ ).'../index.php');
1050
  $footer = '';
1051
  $footer .= '<div style="padding:10px;">';
1052
+ $footer .= '<label class="plugintags"><a href="http://www.wpultimatecsvimporter.com" target="_blank">'.__("Home",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</a></label><label class="plugintags"><a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">'. __("Wiki",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</a></label>
1053
+ <label class="plugintags"><a href="http://www.wpultimatecsvimporter.com" target="_blank">' .__('Tutorials',WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</a></label> <label class="plugintags"><a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Videos?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">'. __("Videos",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</a></label>
1054
+ <label class="plugintags"><a href="http://blog.smackcoders.com/wordpress-ultimate-csv-importer-csv-sample-files-and-updates.html?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank">'. __("Sample Files",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</a></label>';
1055
  $footer .= '</div>';
1056
  $footer .= '<div style="padding:10px;margin-bottom:20px;">';
1057
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] != 'settings')
1058
+ $footer .= "<div style='float:right;margin-top:-49px;'><a class='label label-info' href='".get_admin_url()."admin.php?page=".WP_CONST_ULTIMATE_CSV_IMP_SLUG."/index.php&__module=settings'>". __('Click here to Enable any disabled module',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></div>";
1059
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] == 'settings') {
1060
+ $footer .= "<div style='float:right;margin-top:-48px;'><span style='margin-right:20px;'><a class='label label-info' href='http://wordpress.org/plugins/wp-ultimate-csv-importer/developers/'>".__('Get Old Versions',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></span><a class='label label-info' href='".get_admin_url()."admin.php?page=".WP_CONST_ULTIMATE_CSV_IMP_SLUG."/index.php&__module=support'>".__('Click here to Get some useful links')."</a></div>";
1061
+ $footer .= "<div style='float:right;margin-right:15px;'> </span> ".__('Current Version',WP_CONST_ULTIMATE_CSV_IMP_SLUG).":".$get_pluginData['Version']." </div>";
1062
  }
1063
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] != 'support' && $_REQUEST['__module'] != 'settings') {
1064
+ $footer .= "<div style='float:right;margin-right:225px;margin-top:-48px;'><span style='margin-right:20px;'> <a class='label label-info' href='http://wordpress.org/plugins/wp-ultimate-csv-importer/developers/'>". __('Get Old Versions',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></span><a class='label label-info' href='".get_admin_url()."admin.php?page=".WP_CONST_ULTIMATE_CSV_IMP_SLUG."/index.php&__module=support'>". __('Click here to Get some useful links',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></div>";
1065
+ $footer .= "<div style='float:right;margin-right:15px;'> ".'Current Version'.": ".$get_pluginData['Version']." </div>";
1066
  }
1067
  if(isset ($_REQUEST['__module']) && $_REQUEST['__module'] == 'support'){
1068
+ $footer .= "<div style='float:right;margin-right:15px;'><span style='margin-right:20px;'>".__('Current Version',WP_CONST_ULTIMATE_CSV_IMP_SLUG).": ".$get_pluginData['Version']." </span><span style='margin-right:10px;'><a class='label label-info' href='http://wordpress.org/plugins/wp-ultimate-csv-importer/developers/'>". __('Get Old Versions',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></span></div>";
1069
  }
1070
  $footer .= '</div>';
1071
  $footer .= '<div style="float:right;margin-right:15px;margin-top:-10px;"> <label>Plugin By <a href="http://www.smackcoders.com"> Smackcoders</a></label> </div>';
1078
 
1079
  <div align="center" style="text-align:left;margin-top:-33px;">
1080
  <div id="boxmethod1" class="method1">
1081
+ <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',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . '</span> </label> <br>
1082
  <!-- The fileinput-button span is used to style the file input field as button -->
1083
  <div id="method1" style="display:block;height:40px;">
1084
  <span class="btn btn-success fileinput-button">
1085
+ <span>' . __('Browse',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . '</span>
1086
  <input id="fileupload" type="file" name="files[]" multiple>
1087
  <a href="#" id="zip_process" style = "display:none"> Click Here To Process Zip </a>
1088
  </span>';
1090
  $smack_csv_import_method .= '<span style="padding-top:10px;">
1091
  <div id="progress" class="progress">
1092
  <div class="progress-bar progress-bar-success"></div>
1093
+ <div align="center" id="helpnotify" style="width:100%;"><p class="msgborder" style="color:green;">' . __('You can also drag and drop files here',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . '</div>
1094
  </div>
1095
  </span>
1096
  </div>
1097
  </div>
1098
  <div style = "opacity: 0.3;background-color: ghostwhite;">
1099
  <div id="boxmethod2" class="method2">
1100
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . '</span> </label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1101
  </div>
1102
  <div id="boxmethod3" class="method3">
1103
+ <label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1104
  </div>
1105
  <div id="boxmethod4" class="method4">
1106
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded',WP_CONST_ULTIMATE_CSV_IMP_SLUG) . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1107
  </div>
1108
  </div>
1109
 
1112
  $curr_module = $_REQUEST['__module'];
1113
  if($curr_module == 'post' || $curr_module == 'page' || $curr_module == 'custompost' || $curr_module == 'eshop') {
1114
  $smack_csv_import_method .= '<div class="media_handling" align="left">
1115
+ <span class="advancemediahandling"> <label id="importalign"> <input type="checkbox" name="advance_media_handling" id="advance_media_handling" onclick = "filezipopen();" /> '.__("Advance Media Handling",WP_CONST_ULTIMATE_CSV_IMP_SLUG).' </label> </span>
1116
  <span id = "filezipup" style ="display:none;">
1117
  <span class="advancemediahandling" style="padding-left:30px;"> <input type="file" name="inlineimages" id="inlineimages" onchange ="checkextension(this.value);" /> </span>
1118
  </span>
1138
  function create_nonce_key(){
1139
  return wp_create_nonce('smack_nonce');
1140
  }
1141
+ function reduceStringLength($convert_str,$checktext){
1142
+ if ($checktext == 'Enable' || $checktext == 'Disable' || $checktext == 'Mapping'){
1143
+ if( strlen($convert_str) > 7)
1144
+ $convert_str = substr($convert_str, 0, 5) . '..';
1145
+ }
1146
+ else if ($checktext == 'caticonEnable' || $checktext == 'caticonDisable') {
1147
+ if( strlen($convert_str) > 7)
1148
+ $convert_str = substr($convert_str,0,4) . '..';
1149
+ }
1150
+ else if ($checktext == 'Enabled' || $checktext == 'Disabled'){
1151
+ if( strlen($convert_str) > 8)
1152
+ $convert_str = substr($convert_str,0,3) . '..';
1153
+ }
1154
+ else if ($checktext == 'Check All' || $checktext == 'Uncheck All'){
1155
+ if(strlen($convert_str) > 12)
1156
+ $convert_str = substr($convert_str,0,10) . '..';
1157
+ }
1158
+ else if($checktext == 'Yes' || $checktext == 'No' ){
1159
+ if( strlen($convert_str) > 4)
1160
+ $convert_str = substr($convert_str,0,2) . '..';
1161
+ }
1162
+ else if ($checktext == 'Next' && strlen($convert_str) > 5)
1163
+ $convert_str = substr($convert_str,0,4) . '..';
1164
+ return $convert_str;
1165
+ }
1166
  }
1167
 
1168
  class CallWPImporterObj extends WPImporter_includes_helper
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.7.4
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
@@ -75,7 +75,7 @@ define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-
75
  define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
76
  define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
77
  define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
78
- define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.7.4');
79
  define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
80
  define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
81
  define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
@@ -84,6 +84,12 @@ if (!class_exists('SkinnyControllerWPCsvFree')) {
84
  require_once('lib/skinnymvc/controller/SkinnyController.php');
85
  }
86
 
 
 
 
 
 
 
87
 
88
  require_once('plugins/class.inlineimages.php');
89
  require_once('includes/WPImporter_includes_helper.php');
@@ -249,3 +255,15 @@ function importByRequest() {
249
  }
250
  add_action('wp_ajax_importByRequest', 'importByRequest');
251
 
 
 
 
 
 
 
 
 
 
 
 
 
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.8
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
75
  define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
76
  define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
77
  define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
78
+ define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.8');
79
  define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
80
  define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
81
  define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
84
  require_once('lib/skinnymvc/controller/SkinnyController.php');
85
  }
86
 
87
+ add_action('plugins_loaded','load_lang_files');
88
+
89
+ function load_lang_files(){
90
+ $csv_importer_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/';
91
+ load_plugin_textdomain( 'wp-ultimate-csv-importer', false, $csv_importer_dir);
92
+ }
93
 
94
  require_once('plugins/class.inlineimages.php');
95
  require_once('includes/WPImporter_includes_helper.php');
255
  }
256
  add_action('wp_ajax_importByRequest', 'importByRequest');
257
 
258
+ /**
259
+ *To translate the alert strings
260
+ */
261
+ function trans_alert_str(){
262
+ if(isset($_POST['alertmsg']))
263
+ echo __($_POST['alertmsg'],WP_CONST_ULTIMATE_CSV_IMP_SLUG);
264
+ die();
265
+
266
+ }
267
+ add_action('wp_ajax_trans_alert_str' , 'trans_alert_str');
268
+
269
+
js/ultimate-importer-free.js CHANGED
@@ -4,9 +4,13 @@ jQuery( document ).ready(function() {
4
  if(checkmodule != 'dashboard' && checkmodule != 'filemanager' && checkmodule !='support' && checkmodule !='export') {
5
  var get_log = document.getElementById('log').innerHTML;
6
  if (!jQuery.trim(jQuery('#log').html()).length) {
7
- document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>';
8
  }
9
 
 
 
 
 
10
  }
11
  if (checkmodule == 'custompost') {
12
  var step = jQuery('#stepstatus').val();
@@ -27,7 +31,7 @@ jQuery( document ).ready(function() {
27
  var checkmodule = jQuery('#checkmodule').val();
28
  if (!jQuery.trim(jQuery('#log').html()).length) {
29
  if(checkmodule != 'dashboard')
30
- document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>';
31
  }
32
 
33
  /* if (checkfile != '') {
@@ -89,17 +93,17 @@ function gotoelement(id) {
89
  if (id == 'apply_element') {
90
  gotoElement = parseInt(document.getElementById('goto_element').value);
91
  if (isNaN(gotoElement)) {
92
- showMapMessages('error', ' Please provide valid record number.');
93
  }
94
  if (gotoElement <= 0) {
95
  gotoElement = 0;
96
- showMapMessages('error', ' Please provide valid record number.');
97
  } else {
98
  gotoElement = gotoElement - 1;
99
  }
100
  if (gotoElement >= no_of_records) {
101
  gotoElement = parseInt(no_of_records) - 1;
102
- showMapMessages('error', 'CSV file have only ' + no_of_records + ' records.');
103
  return false;
104
  }
105
  }
@@ -122,7 +126,7 @@ function gotoelement(id) {
122
  }
123
  }
124
  var displayRecCount = gotoElement + 1;
125
- document.getElementById('preview_of_row').innerHTML = "Showing preview of row #" + displayRecCount;
126
  document.getElementById('current_record').value = gotoElement;
127
  }
128
  });
@@ -299,6 +303,27 @@ function shownotification(msg, alerts)
299
  'slow');
300
  }
301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  function import_csv()
303
  {
304
  // code added by goku to check whether templatename
@@ -312,7 +337,7 @@ function import_csv()
312
 
313
  if(jQuery.trim(mapping_tempname) == '')
314
  {
315
- alert('Template name is empty');
316
  return false;
317
  }
318
  else
@@ -345,7 +370,7 @@ function import_csv()
345
 
346
  if(mapping_tempname == '' && (mapping_checked || mapping_templatename_edit == 'saveas'))
347
  {
348
- alert('Template Name already exists');return false;
349
  }
350
  // code ends here on checking templatename
351
 
@@ -404,7 +429,7 @@ function import_csv()
404
  }
405
  if (post_status_msg == 'Off')
406
  error_msg += " post_status";
407
- showMapMessages('error', 'Error: ' + error_msg + ' - Mandatory fields. Please map the fields to proceed.');
408
  return false;
409
  }
410
  }
@@ -433,7 +458,7 @@ else if(importer == 'comments'){
433
  return true;
434
  }
435
  else{
436
- showMapMessages('error',' "Post Id", "Comment Author", "Comment Author Email" and "Comment Content" should be mapped.');
437
  return false;
438
  }
439
 
@@ -458,7 +483,7 @@ else if(importer == 'comments'){
458
  return true;
459
  }
460
  else{
461
- showMapMessages('error','"role", "user_login" and "user_email" should be mapped.');
462
  return false;
463
  }
464
  }
@@ -467,6 +492,21 @@ else if(importer == 'comments'){
467
 
468
 
469
  function showMapMessages(alerttype, msg) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
  jQuery("#showMsg").addClass("maperror");
471
  document.getElementById('showMsg').innerHTML = msg;
472
  document.getElementById('showMsg').className += ' ' + alerttype;
@@ -495,7 +535,7 @@ var match = /\..+$/;
495
  }
496
  else
497
  {
498
- alert("File must be .zip!");
499
  //will clear the file input box.
500
  location.reload();
501
  return false;
@@ -561,7 +601,7 @@ function importRecordsbySettings(siteurl)
561
  //return true;
562
  } else {
563
  document.getElementById('showMsg').style.display = "";
564
- document.getElementById('showMsg').innerHTML = '<p id="warning-msg" class="alert alert-warning">Fill all mandatory fields.</p>'; jQuery("#showMsg").fadeOut(10000);
565
  return false;
566
  }
567
  if(parseInt(get_requested_count) <= parseInt(no_of_tot_records)) {
@@ -571,7 +611,7 @@ function importRecordsbySettings(siteurl)
571
  return false;
572
  }
573
  if(get_log == '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>'){
574
- document.getElementById('log').innerHTML = '<p style="margin-left:10px;color:red;">Your Import Is In Progress...</p>';
575
  document.getElementById('startbutton').disabled = true;
576
  }
577
  document.getElementById('ajaxloader').style.display="";
@@ -612,7 +652,7 @@ function importRecordsbySettings(siteurl)
612
  document.getElementById('tmpcount').value = parseInt(tmpCnt)+parseInt(importlimit);
613
  setTimeout(function(){importRecordsbySettings()},0);
614
  } else {
615
- document.getElementById('log').innerHTML += "<p style='margin-left:10px;color:red;'>Import process has been terminated.</p>";
616
  document.getElementById('ajaxloader').style.display="none";
617
  document.getElementById('startbutton').style.display = "none";
618
  document.getElementById('terminatenow').style.display = "none";
@@ -652,7 +692,7 @@ function continueprocess() {
652
  } else {
653
  document.getElementById('terminatenow').style.display = "";
654
  }
655
- document.getElementById('log').innerHTML += "<div style='margin-left:10px;color:green;'> Import process has been continued.</div></br>";
656
  document.getElementById('ajaxloader').style.display = "";
657
  document.getElementById('startbutton').style.display = "";
658
  document.getElementById('continuebutton').style.display = "none";
@@ -794,7 +834,7 @@ function check_if_avail(val){
794
  }
795
  document.getElementById(val).checked = false;
796
  document.getElementById('ShowMsg').style.display = "";
797
- document.getElementById('warning-msg').innerHTML = warning_name[val]+' feature is available only for PRO!.';
798
  jQuery('#ShowMsg').delay(7000).fadeOut();
799
  }
800
  }
@@ -828,7 +868,7 @@ function sendemail2smackers(){
828
  return true;
829
  else
830
  document.getElementById('showMsg').style.display = '';
831
- document.getElementById('showMsg').innerHTML = '<p id="warning-msg" class="alert alert-warning">Fill all mandatory fields.</p>';
832
  jQuery("#showMsg").fadeOut(10000);
833
  return false;
834
  }
@@ -844,9 +884,9 @@ function check_allnumeric(inputtxt)
844
  else
845
  {
846
  if(inputtxt == '')
847
- alert('Fill all mandatory fields.');
848
  else
849
- alert('Please enter numeric characters only');
850
  return false;
851
  }
852
  }
@@ -868,7 +908,7 @@ function export_module(){
868
  return true;
869
  }
870
  }
871
- showMapMessages('error', 'Please choose one module to export the records!');
872
  return false;
873
  }
874
  function export_check(value) {
@@ -876,7 +916,7 @@ function export_check(value) {
876
  document.getElementById(value).checked = false;
877
  document.getElementById('ShowMsg').style.display = "";
878
  value = value.toUpperCase();
879
- document.getElementById('warning-msg').innerHTML = value+' Feature is available only for PRO!.';
880
  jQuery('#ShowMsg').delay(7000).fadeOut();
881
  }
882
  }
@@ -981,7 +1021,7 @@ function addexportfilter(id) {
981
  document.getElementById('authors').style.display = '';
982
  document.getElementById('postauthor').style.display = '';
983
  }
984
- else if(id == 'getdatawithdelimeter'){
985
  document.getElementById('delimeter').style.display = '';
986
  }
987
  } else if (document.getElementById(id).checked == false) {
@@ -1002,7 +1042,7 @@ function addexportfilter(id) {
1002
  document.getElementById('authors').style.display = 'none';
1003
  document.getElementById('postauthor').style.display = 'none';
1004
  }
1005
- else if(id == 'getdatawithdelimeter'){
1006
  document.getElementById('delimeter').style.display = 'none';
1007
  }
1008
  }
4
  if(checkmodule != 'dashboard' && checkmodule != 'filemanager' && checkmodule !='support' && checkmodule !='export') {
5
  var get_log = document.getElementById('log').innerHTML;
6
  if (!jQuery.trim(jQuery('#log').html()).length) {
7
+ document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">'+ translateAlertString("NO LOGS YET NOW.")+'</p>';
8
  }
9
 
10
+ //pieStats();
11
+ //lineStats();
12
+
13
+
14
  }
15
  if (checkmodule == 'custompost') {
16
  var step = jQuery('#stepstatus').val();
31
  var checkmodule = jQuery('#checkmodule').val();
32
  if (!jQuery.trim(jQuery('#log').html()).length) {
33
  if(checkmodule != 'dashboard')
34
+ document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">'+ translateAlertString("NO LOGS YET NOW.")+'</p>';
35
  }
36
 
37
  /* if (checkfile != '') {
93
  if (id == 'apply_element') {
94
  gotoElement = parseInt(document.getElementById('goto_element').value);
95
  if (isNaN(gotoElement)) {
96
+ showMapMessages('error', translateAlertString('Please provide valid record number.'));
97
  }
98
  if (gotoElement <= 0) {
99
  gotoElement = 0;
100
+ showMapMessages('error', translateAlertString('Please provide valid record number.'));
101
  } else {
102
  gotoElement = gotoElement - 1;
103
  }
104
  if (gotoElement >= no_of_records) {
105
  gotoElement = parseInt(no_of_records) - 1;
106
+ showMapMessages('error', translateAlertString('CSV file have only ') + no_of_records + translateAlertString(' records.'));
107
  return false;
108
  }
109
  }
126
  }
127
  }
128
  var displayRecCount = gotoElement + 1;
129
+ document.getElementById('preview_of_row').innerHTML = translateAlertString("Showing preview of row #") + displayRecCount;
130
  document.getElementById('current_record').value = gotoElement;
131
  }
132
  });
303
  'slow');
304
  }
305
 
306
+ function translateAlertString(alertstring){
307
+ var convertedStr = "";
308
+ jQuery.ajax({
309
+ type:'POST',
310
+ url: ajaxurl,
311
+ async: false,
312
+ data: {
313
+ 'action' : 'trans_alert_str',
314
+ 'alertmsg': alertstring,
315
+ },
316
+ success:function(response)
317
+ {
318
+ convertedStr = response;
319
+ },
320
+ error: function(errorThrown){
321
+ console.log(errorThrown);
322
+ }
323
+ });
324
+ return convertedStr;
325
+ }
326
+
327
  function import_csv()
328
  {
329
  // code added by goku to check whether templatename
337
 
338
  if(jQuery.trim(mapping_tempname) == '')
339
  {
340
+ alert(translateAlertString('Template name is empty'));
341
  return false;
342
  }
343
  else
370
 
371
  if(mapping_tempname == '' && (mapping_checked || mapping_templatename_edit == 'saveas'))
372
  {
373
+ alert(translateAlertString('Template Name already exists'));return false;
374
  }
375
  // code ends here on checking templatename
376
 
429
  }
430
  if (post_status_msg == 'Off')
431
  error_msg += " post_status";
432
+ showMapMessages('error', 'Error: ' + error_msg + translateAlertString(' - Mandatory fields. Please map the fields to proceed.'));
433
  return false;
434
  }
435
  }
458
  return true;
459
  }
460
  else{
461
+ showMapMessages('error',' "Post Id", "Comment Author", "Comment Author Email" and "Comment Content"'+translateAlertString(' should be mapped.'));
462
  return false;
463
  }
464
 
483
  return true;
484
  }
485
  else{
486
+ showMapMessages('error','"role", "user_login" and "user_email"'+translateAlertString(' should be mapped.'));
487
  return false;
488
  }
489
  }
492
 
493
 
494
  function showMapMessages(alerttype, msg) {
495
+ jQuery.ajax({
496
+ type : 'POST',
497
+ url : ajaxurl,
498
+ data : {
499
+ 'action' : 'trans_alert_str',
500
+ 'type' : alerttype,
501
+ 'message' : msg,
502
+ },
503
+ success : function(response){
504
+ // alert(response);
505
+ },
506
+ error : function(errorThrown){
507
+ console.log(errorThrown);
508
+ },
509
+ });
510
  jQuery("#showMsg").addClass("maperror");
511
  document.getElementById('showMsg').innerHTML = msg;
512
  document.getElementById('showMsg').className += ' ' + alerttype;
535
  }
536
  else
537
  {
538
+ alert(translateAlertString("File must be .zip!"));
539
  //will clear the file input box.
540
  location.reload();
541
  return false;
601
  //return true;
602
  } else {
603
  document.getElementById('showMsg').style.display = "";
604
+ document.getElementById('showMsg').innerHTML = '<p id="warning-msg" class="alert alert-warning">'+translateAlertString("Fill all mandatory fields.")+'</p>'; jQuery("#showMsg").fadeOut(10000);
605
  return false;
606
  }
607
  if(parseInt(get_requested_count) <= parseInt(no_of_tot_records)) {
611
  return false;
612
  }
613
  if(get_log == '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>'){
614
+ document.getElementById('log').innerHTML = '<p style="margin-left:10px;color:red;">'+translateAlertString("Your Import Is In Progress...")+'</p>';
615
  document.getElementById('startbutton').disabled = true;
616
  }
617
  document.getElementById('ajaxloader').style.display="";
652
  document.getElementById('tmpcount').value = parseInt(tmpCnt)+parseInt(importlimit);
653
  setTimeout(function(){importRecordsbySettings()},0);
654
  } else {
655
+ document.getElementById('log').innerHTML += "<p style='margin-left:10px;color:red;'>"+translateAlertString('Import process has been terminated.')+"</p>";
656
  document.getElementById('ajaxloader').style.display="none";
657
  document.getElementById('startbutton').style.display = "none";
658
  document.getElementById('terminatenow').style.display = "none";
692
  } else {
693
  document.getElementById('terminatenow').style.display = "";
694
  }
695
+ document.getElementById('log').innerHTML += "<div style='margin-left:10px;color:green;'>"+translateAlertString('Import process has been continued.')+"</div></br>";
696
  document.getElementById('ajaxloader').style.display = "";
697
  document.getElementById('startbutton').style.display = "";
698
  document.getElementById('continuebutton').style.display = "none";
834
  }
835
  document.getElementById(val).checked = false;
836
  document.getElementById('ShowMsg').style.display = "";
837
+ document.getElementById('warning-msg').innerHTML = warning_name[val]+translateAlertString(' feature is available only for PRO!.');
838
  jQuery('#ShowMsg').delay(7000).fadeOut();
839
  }
840
  }
868
  return true;
869
  else
870
  document.getElementById('showMsg').style.display = '';
871
+ document.getElementById('showMsg').innerHTML = '<p id="warning-msg" class="alert alert-warning">'+translateAlertString('Fill all mandatory fields.')+'</p>';
872
  jQuery("#showMsg").fadeOut(10000);
873
  return false;
874
  }
884
  else
885
  {
886
  if(inputtxt == '')
887
+ alert(translateAlertString('Fill all mandatory fields.'));
888
  else
889
+ alert(translateAlertString('Please enter numeric characters only'));
890
  return false;
891
  }
892
  }
908
  return true;
909
  }
910
  }
911
+ showMapMessages('error', translateAlertString('Please choose one module to export the records!'));
912
  return false;
913
  }
914
  function export_check(value) {
916
  document.getElementById(value).checked = false;
917
  document.getElementById('ShowMsg').style.display = "";
918
  value = value.toUpperCase();
919
+ document.getElementById('warning-msg').innerHTML = value+translateAlertString(' Feature is available only for PRO!.');
920
  jQuery('#ShowMsg').delay(7000).fadeOut();
921
  }
922
  }
1021
  document.getElementById('authors').style.display = '';
1022
  document.getElementById('postauthor').style.display = '';
1023
  }
1024
+ else if(id == 'getdatawithdelimiter'){
1025
  document.getElementById('delimeter').style.display = '';
1026
  }
1027
  } else if (document.getElementById(id).checked == false) {
1042
  document.getElementById('authors').style.display = 'none';
1043
  document.getElementById('postauthor').style.display = 'none';
1044
  }
1045
+ else if(id == 'getdatawithdelimiter'){
1046
  document.getElementById('delimeter').style.display = 'none';
1047
  }
1048
  }
languages/alertStrings.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ echo __('NO LOGS YET NOW.');
3
+ echo __('Please provide valid record number.');
4
+ echo __('CSV file have only');
5
+ echo __('records.');
6
+ echo __('Template name is empty');
7
+ echo __('Template Name already exists');
8
+ echo __('Error: ');
9
+ echo __(' - Mandatory fields. Please map the fields to proceed.');
10
+ echo __(' post_type,');
11
+ echo __(' post_title');
12
+ echo __('Comment Author');
13
+ echo __('Post Id');
14
+ echo __('Comment Author Email');
15
+ echo __('Comment Content');
16
+ echo __(' should be mapped.');
17
+ echo __('role');
18
+ echo __('user_login');
19
+ echo __('user_email');
20
+ echo __('File must be .zip!');
21
+ echo __('Fill all mandatory fields.');
22
+ echo __('Your Import Is In Progress...');
23
+ echo __('Import process has been terminated.');
24
+ echo __(' Import process has been continued.');
25
+ echo __(' feature is available only for PRO!.');
26
+ echo __('Fill all mandatory fields.');
27
+ echo __('Please enter numeric characters only');
28
+ echo __('Please choose one module to export the records!');
29
+ echo __(' Feature is available only for PRO!.');
30
+ echo __('Showing preview of row #');
31
+ ?>
languages/wp-ultimate-csv-importer-es_ES.mo ADDED
Binary file
languages/wp-ultimate-csv-importer-fr_FR.mo ADDED
Binary file
languages/wp-ultimate-csv-importer-nl_NL.mo ADDED
Binary file
lib/jquery-plugins/uploader.php CHANGED
@@ -14,29 +14,29 @@ error_reporting(E_ALL | E_STRICT);
14
  require('UploadHandler.php');
15
  $current_user = wp_get_current_user();
16
  if(is_multisite()) {
17
- $HelperObj = new WPImporter_includes_helper();
18
- $settings = $HelperObj->getSettings();
19
- if ( current_user_can( 'administrator' ) ) {
20
- if($current_user->ID != 0)
21
- $upload_handler = new UploadHandler();
22
- }
23
- if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
24
  if(current_user_can('author') || current_user_can('editor')){
25
  if($current_user->ID != 0)
26
- $upload_handler = new UploadHandler();
 
27
  }
28
- }
29
  }
30
  else {
31
- if ( current_user_can( 'author' ) || current_user_can('editor')) {
32
- $HelperObj = new WPImporter_includes_helper();
33
- $settings = $HelperObj->getSettings();
34
- if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
35
- if($current_user->ID != 0)
36
- $upload_handler = new UploadHandler();
37
- }
38
- } else if ( current_user_can( 'administrator' ) ) {
39
- if($current_user->ID != 0)
40
- $upload_handler = new UploadHandler();
41
- }
42
  }
14
  require('UploadHandler.php');
15
  $current_user = wp_get_current_user();
16
  if(is_multisite()) {
17
+ $HelperObj = new WPImporter_includes_helper();
18
+ $settings = $HelperObj->getSettings();
19
+ if ( current_user_can( 'administrator' ) ) {
20
+ if($current_user->ID != 0)
21
+ $upload_handler = new UploadHandler();
22
+ }
23
+ if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
24
  if(current_user_can('author') || current_user_can('editor')){
25
  if($current_user->ID != 0)
26
+ $upload_handler = new UploadHandler();
27
+ }
28
  }
 
29
  }
30
  else {
31
+ if ( current_user_can( 'author' ) || current_user_can('editor')) {
32
+ $HelperObj = new WPImporter_includes_helper();
33
+ $settings = $HelperObj->getSettings();
34
+ if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
35
+ if($current_user->ID != 0)
36
+ $upload_handler = new UploadHandler();
37
+ }
38
+ } else if ( current_user_can( 'administrator' ) ) {
39
+ if($current_user->ID != 0)
40
+ $upload_handler = new UploadHandler();
41
+ }
42
  }
modules/categories/templates/index.php CHANGED
@@ -35,4 +35,4 @@
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
- echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>This feature is only available in PRO!.</p></div>";
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
+ echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>". __('This feature is only available in PRO!.')."</p></div>";
modules/comments/templates/index.php CHANGED
@@ -42,7 +42,7 @@ $nonce_Key = $impCE->create_nonce_key();
42
  <table class="table-importer">
43
  <tr>
44
  <td>
45
- <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
48
  if (!is_writable($impCE->getUploadDirectory('default'))) {
@@ -80,16 +80,16 @@ $nonce_Key = $impCE->create_nonce_key();
80
  <tr>
81
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
82
  <select disabled>
83
- <option value ='select template' /> select template </option>
84
  </select>
85
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
86
  </div>
87
 
88
  </div>
89
  <div style="float:right;">
90
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
91
  class='btn btn-warning' style="margin-right:15px;"/>
92
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
93
  class='btn btn-primary' style="margin-right:15px;"/>
94
  </div>
95
  </tr>
@@ -183,11 +183,11 @@ jQuery('#importfile').attr('disabled', false);
183
  $custom_key = array();
184
  $wpcsvsettings=get_option('wpcsvfreesettings');
185
  ?>
186
- <h3>Map CSV to WP fields/attributes</h3>
187
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings') { ?>
188
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
189
  <div class='mappingsection'>
190
- <h2><div class="secondformheader">Import Data Configuration</div></h2>
191
 
192
  <div id="select_cust_taxonomy" class="select_cust_taxonomy" style="margin-top: 30px;">
193
 
@@ -240,9 +240,9 @@ $allcustomposts.=$value.',';
240
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['__module'])) { echo $_REQUEST['step']; } ?>' />
241
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
242
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
243
- <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
244
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
245
- <label id="importalign" style="margin-right:8px;">Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
246
  <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"/>
247
  </div>
248
  </td>
@@ -251,14 +251,14 @@ $allcustomposts.=$value.',';
251
  $count = 0;
252
  $cmdsObj = new CommentsActions();
253
  ?>
254
- <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>
255
  <?php
256
  foreach ($impCE->headers as $key => $value) {
257
  ?>
258
  <tr>
259
  <td class="left_align csvheader"><label><?php print($value);?></label></td>
260
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
261
- <option id="select">-- Select --</option>
262
  <?php
263
  foreach ($cmdsObj->defCols as $key1 => $value1) {
264
  if ($key1 == 'post_name')
@@ -307,12 +307,12 @@ $allcustomposts.=$value.',';
307
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
308
  <span class="tooltipFour">
309
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
310
- <strong>Give a name for your new custom field</strong>
311
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
312
  </span>
313
  </a>
314
  </span>
315
- <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>">Replace the custom value</span>
316
  </td>
317
  </tr>
318
  <?php
@@ -330,20 +330,20 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
330
  <div>
331
  <div class="goto_import_options" align=center>
332
  <div class="mappingactions" style="margin-top:26px;">
333
- <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
334
  <span style = ''>
335
  <a href="#" class="tooltip tooltip_smack" style = ''>
336
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
337
  <span class="tooltipClearMapping">
338
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
339
- <strong>Refresh to re-map fields</strong>
340
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
341
  </span>
342
  </a>
343
  </span>
344
  </div>
345
  <div class="mappingactions" >
346
- <input type='submit' id='goto_importer_setting' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='Next >>' />
347
  </div>
348
  </div>
349
  </div>
@@ -354,7 +354,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
354
  </tr>
355
  <tr>
356
  <td>
357
- <h3>Settings and Performance</h3>
358
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
359
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
360
  <?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES'])) { ?>
@@ -377,8 +377,8 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
377
  <div class="postbox" id="options" style=" margin-bottom:0px;">
378
  <!-- <h4 class="hndle">Search settings</h4>-->
379
  <div class="inside">
380
- <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
381
- <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
382
  <div id='schedule' style='display:none'>
383
  <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'] ; } ?>'>
384
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -409,12 +409,12 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
409
  </select><br>
410
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
411
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
412
- <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
413
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
414
- <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
415
 
416
- <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>
417
- <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>
418
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
419
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
420
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
@@ -423,12 +423,12 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
423
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
424
  </li>-->
425
  </ul>
426
- <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
427
- <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
428
- <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
429
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
430
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
431
- <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
432
  <div class="clear"></div>
433
  </form>
434
  </div>
@@ -449,7 +449,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
449
  <table class="table-importer">
450
  <tr>
451
  <td>
452
- <h3><?php echo __("Summary"); ?></h3>
453
  <div id='reportLog' class='postbox' style='display:none;'>
454
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
455
  <div id="logtabs" class="logcontainer">
42
  <table class="table-importer">
43
  <tr>
44
  <td>
45
+ <h3><?php echo __('CSV Import Options',WP_CONST_ULTIMATE_CSV_IMP_SLUG);?></h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
48
  if (!is_writable($impCE->getUploadDirectory('default'))) {
80
  <tr>
81
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
82
  <select disabled>
83
+ <option value ='select template' /> <?php echo __('select template',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
84
  </select>
85
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
86
  </div>
87
 
88
  </div>
89
  <div style="float:right;">
90
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' onclick="Reload();"
91
  class='btn btn-warning' style="margin-right:15px;"/>
92
+ <input type='submit' name='importfile' id='importfile' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next');echo(" >>");?>' disabled
93
  class='btn btn-primary' style="margin-right:15px;"/>
94
  </div>
95
  </tr>
183
  $custom_key = array();
184
  $wpcsvsettings=get_option('wpcsvfreesettings');
185
  ?>
186
+ <h3><?php echo __('Map CSV to WP fields/attributes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
187
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings') { ?>
188
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
189
  <div class='mappingsection'>
190
+ <h2><div class="secondformheader"><?php echo __('Import Data Configuration',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></h2>
191
 
192
  <div id="select_cust_taxonomy" class="select_cust_taxonomy" style="margin-top: 30px;">
193
 
240
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['__module'])) { echo $_REQUEST['step']; } ?>' />
241
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
242
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
243
+ <label style="padding-right:10px;" id='preview_of_row'><?php echo __('Showing preview of row # 1',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
244
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
245
+ <label id="importalign" style="margin-right:8px;"><?php echo __('Go To Row #',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label><input type='text' id='goto_element' name='goto_element' />
246
  <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"/>
247
  </div>
248
  </td>
251
  $count = 0;
252
  $cmdsObj = new CommentsActions();
253
  ?>
254
+ <tr><td class="left_align columnheader"> <b><?php echo __('CSV HEADER',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('WP FIELDS',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('CSV ROW',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td></td></tr>
255
  <?php
256
  foreach ($impCE->headers as $key => $value) {
257
  ?>
258
  <tr>
259
  <td class="left_align csvheader"><label><?php print($value);?></label></td>
260
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
261
+ <option id="select"><?php echo __('-- Select --',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
262
  <?php
263
  foreach ($cmdsObj->defCols as $key1 => $value1) {
264
  if ($key1 == 'post_name')
307
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
308
  <span class="tooltipFour">
309
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
310
+ <strong><?php echo __('Give a name for your new custom field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
311
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
312
  </span>
313
  </a>
314
  </span>
315
+ <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>"><?php echo __('Replace the custom value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
316
  </td>
317
  </tr>
318
  <?php
330
  <div>
331
  <div class="goto_import_options" align=center>
332
  <div class="mappingactions" style="margin-top:26px;">
333
+ <input type='button' id='clear_mapping' title = '<?php echo __("clear Mapping",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='clear_mapping btn btn-warning' name='clear_mapping' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); echo ' ';echo $impCE->reduceStringLength(__(" Mapping",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Mapping'); ?>' onclick='clearMapping();' style = 'float:left'/>
334
  <span style = ''>
335
  <a href="#" class="tooltip tooltip_smack" style = ''>
336
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
337
  <span class="tooltipClearMapping">
338
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
339
+ <strong><?php echo __('Refresh to re-map fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
340
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
341
  </span>
342
  </a>
343
  </span>
344
  </div>
345
  <div class="mappingactions" >
346
+ <input type='submit' id='goto_importer_setting' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>'class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='<?php echo $impCE->reduceStringLength(__('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); ?> >>' />
347
  </div>
348
  </div>
349
  </div>
354
  </tr>
355
  <tr>
356
  <td>
357
+ <h3><?php echo __('Settings and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
358
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
359
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
360
  <?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES'])) { ?>
377
  <div class="postbox" id="options" style=" margin-bottom:0px;">
378
  <!-- <h4 class="hndle">Search settings</h4>-->
379
  <div class="inside">
380
+ <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
381
+ <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
382
  <div id='schedule' style='display:none'>
383
  <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'] ; } ?>'>
384
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
409
  </select><br>
410
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
411
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
412
+ <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> <?php echo __('Detect duplicate post content',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
413
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
414
+ <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > <?php echo __('Detect duplicate post title',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
415
 
416
+ <label id='importalign'><?php echo __('No. of posts/rows per server request',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
417
+ <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;"><?php echo __('You can set upto',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> <?php echo __('per request.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
418
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
419
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
420
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
423
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
424
  </li>-->
425
  </ul>
426
+ <input id="startbutton" class="btn btn-primary" type="button" value="<?php echo __('Import Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
427
+ <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="<?php echo __('Terminate Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG);?>" style="display:none;" onclick="terminateProcess();" />
428
+ <input class="btn btn-warning" type="button" value="<?php echo __('Reload',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" id="importagain" style="display:none" onclick="import_again();" />
429
+ <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="<?php echo __('Continue',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;color: #ffffff;" onclick="continueprocess();">
430
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
431
+ <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> <?php echo __('Processing...',WP_CONST_ULTIMATE_CSV_IMP_SLUG);?></div>
432
  <div class="clear"></div>
433
  </form>
434
  </div>
449
  <table class="table-importer">
450
  <tr>
451
  <td>
452
+ <h3><?php echo __("Summary",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
453
  <div id='reportLog' class='postbox' style='display:none;'>
454
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
455
  <div id="logtabs" class="logcontainer">
modules/custompost/templates/index.php CHANGED
@@ -43,7 +43,7 @@ $nonce_Key = $impCE->create_nonce_key();
43
  <table class="table-importer">
44
  <tr>
45
  <td>
46
- <h3>CSV Import Options</h3>
47
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
48
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
49
  if (!is_writable($impCE->getUploadDirectory('default'))) {
@@ -78,16 +78,16 @@ $nonce_Key = $impCE->create_nonce_key();
78
  <tr>
79
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
80
  <select disabled>
81
- <option value ='select template' > select template </option>
82
  </select>
83
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
84
  </div>
85
 
86
  </div>
87
  <div style="float:right;">
88
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
89
  class='btn btn-warning' style="margin-right:15px" />
90
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
91
  class='btn btn-primary'style="margin-right:15px"/>
92
  </div>
93
  </tr>
@@ -193,23 +193,27 @@ $nonce_Key = $impCE->create_nonce_key();
193
  $basename_zipfile = $get_basename_zipfile[0];
194
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
195
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
 
196
  $zip = new ZipArchive;
197
- if ($zip->open($uploaded_compressedFile) === TRUE) {
198
- $zip->extractTo($location_to_extract);
199
- $zip->close();
200
- $extracted_status = 1;
201
- } else {
202
- $extracted_status = 0;
203
- }
 
 
 
204
  }
205
  ?>
206
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
207
  <div class='importstatus' style='display:true;'>
208
  <input type="hidden" id="customposts" name="customposts" value="">
209
- <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
210
  <div style = 'float:left;margin-right:10px'>
211
  <select name='custompostlist' id='custompostlist'>
212
- <option value='select'>---Select---</option>
213
  <?php
214
  $cust_post_list_count=0;
215
  foreach (get_post_types() as $key => $value) {
@@ -281,10 +285,10 @@ $nonce_Key = $impCE->create_nonce_key();
281
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
282
  <span class="tooltipCustompost">
283
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
284
- <strong>Select your custompost type</strong>
285
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
286
  </span>
287
- </a><label id='cust_post_empty' style='display:none'>CUSTOMPOST LIST IS EMPTY</label>
288
  </div>
289
  </div>
290
  <?php } ?>
@@ -341,12 +345,12 @@ $nonce_Key = $impCE->create_nonce_key();
341
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
342
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])) { echo $_REQUEST['step']; } ?>' />
343
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
344
- <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php echo $extracted_image_location; ?>' />
345
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
346
- <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
347
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
348
- <label id="importalign" style="margin-right:8px;"> Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
349
- <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"/>
350
  </div>
351
  </td>
352
  </tr>
@@ -362,7 +366,7 @@ $nonce_Key = $impCE->create_nonce_key();
362
  unset($impCE->defCols['wp_page_template']);
363
  }
364
  ?>
365
- <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>
366
  <?php
367
  $mappingFields_arr = array();
368
  foreach ($impCE->headers as $key => $value)
@@ -370,7 +374,7 @@ $nonce_Key = $impCE->create_nonce_key();
370
  <tr>
371
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
372
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
373
- <option id = "select"> -- Select -- </option>
374
  <?php
375
  foreach ($impCE->defCols as $key1 => $value1)
376
  {
@@ -406,7 +410,7 @@ $nonce_Key = $impCE->create_nonce_key();
406
  }
407
  }
408
  ?>
409
- <option value="add_custom<?php print($count); ?>">Add Custom Field</option>
410
  </select>
411
  <script type="text/javascript">
412
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
@@ -427,18 +431,18 @@ $nonce_Key = $impCE->create_nonce_key();
427
  <span id='elementVal_<?php echo $key; ?>' > <?php echo $getrecords[0][$value]; ?> </span>
428
  </td>
429
  <td width = "180px;">
430
- <input class="customfieldtext" type="text" id="textbox<?php print($count); ?>" name="textbox<?php print($count); ?>" TITLE="Replace the default value" style="display: none;float:left;width:160px;" value="<?php echo $value ?>"/>
431
  <span style="display: none;float:left" id="customspan<?php echo $count ?>">
432
  <a href="#" class="tooltip">
433
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
434
  <span class="tooltipPostStatus">
435
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
436
- <strong>Give a name for your new custom field</strong>
437
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
438
  </span>
439
  </a>
440
  </span>
441
- <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>">Replace the custom value</span>
442
  </td>
443
  </tr>
444
  <?php
@@ -454,20 +458,20 @@ $nonce_Key = $impCE->create_nonce_key();
454
  <div>
455
  <div class="goto_import_options" align=center>
456
  <div class="mappingactions" style="margin-top:26px;">
457
- <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
458
  <span style = ''>
459
  <a href="#" class="tooltip tooltip_smack" style = ''>
460
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
461
  <span class="tooltipClearMapping">
462
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
463
- <strong>Refresh to re-map fields</strong>
464
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
465
  </span>
466
  </a>
467
  </span>
468
  </div>
469
  <div class="mappingactions" >
470
- <input type='submit' id='goto_importer_setting' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='Next >>' />
471
  </div>
472
  </div>
473
  </div>
@@ -479,7 +483,7 @@ $nonce_Key = $impCE->create_nonce_key();
479
  </tr>
480
  <tr>
481
  <td>
482
- <h3>Settings and Performance</h3>
483
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
484
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
485
  <?php //$prevoptionindex='';?>
@@ -509,8 +513,8 @@ $nonce_Key = $impCE->create_nonce_key();
509
  <div class="postbox" id="options" style=" margin-bottom:0px;">
510
  <!-- <h4 class="hndle">Search settings</h4>-->
511
  <div class="inside">
512
- <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
513
- <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
514
  <div id='schedule' style='display:none'>
515
  <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'] ; } ?>'>
516
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -539,32 +543,32 @@ $nonce_Key = $impCE->create_nonce_key();
539
  </select><br>
540
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
541
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
542
- <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
543
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
544
- <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
545
- <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>
546
- <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>
547
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
548
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
549
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
550
  <label id="innertitle">Inline image options</label><br />
551
- <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
552
- <div id='inlineimageoption' style="display:none;" >
553
  <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
554
  <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>
555
- </div>
556
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
557
  </li>
558
  <!--<li>
559
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
560
  </li>-->
561
  </ul>
562
- <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
563
- <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
564
- <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
565
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
566
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
567
- <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
568
  <div class="clear"></div>
569
  </form>
570
  </div>
@@ -585,7 +589,7 @@ $nonce_Key = $impCE->create_nonce_key();
585
  <table class="table-importer">
586
  <tr>
587
  <td>
588
- <h3><?php echo __("Summary"); ?></h3>
589
  <div id='reportLog' class='postbox' style='display:none;'>
590
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
591
  <div id="logtabs" class="logcontainer">
43
  <table class="table-importer">
44
  <tr>
45
  <td>
46
+ <h3><?php echo __('CSV Import Options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
47
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
48
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
49
  if (!is_writable($impCE->getUploadDirectory('default'))) {
78
  <tr>
79
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
80
  <select disabled>
81
+ <option value ='select template' > <?php echo __('select template',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
82
  </select>
83
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
84
  </div>
85
 
86
  </div>
87
  <div style="float:right;">
88
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' onclick="Reload();"
89
  class='btn btn-warning' style="margin-right:15px" />
90
+ <input type='submit' name='importfile' title = '<?php echo __('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG);?>' id='importfile' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); echo (" >>");?>' disabled
91
  class='btn btn-primary'style="margin-right:15px"/>
92
  </div>
93
  </tr>
193
  $basename_zipfile = $get_basename_zipfile[0];
194
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
195
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
196
+ if(class_exists(ZipArchive)){
197
  $zip = new ZipArchive;
198
+ if(!empty($uploaded_compressedFile)){
199
+ if ($zip->open($uploaded_compressedFile) === TRUE) {
200
+ $zip->extractTo($location_to_extract);
201
+ $zip->close();
202
+ $extracted_status = 1;
203
+ } else {
204
+ $extracted_status = 0;
205
+ }
206
+ }
207
+ }
208
  }
209
  ?>
210
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
211
  <div class='importstatus' style='display:true;'>
212
  <input type="hidden" id="customposts" name="customposts" value="">
213
+ <div style = 'float:left'> <label id="importalign"> <?php echo __('Select Post Type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label> <span class="mandatory"> * </span> </div>
214
  <div style = 'float:left;margin-right:10px'>
215
  <select name='custompostlist' id='custompostlist'>
216
+ <option value='select'><?php echo __('---Select---',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
217
  <?php
218
  $cust_post_list_count=0;
219
  foreach (get_post_types() as $key => $value) {
285
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
286
  <span class="tooltipCustompost">
287
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
288
+ <strong><?php echo __('Select your custompost type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
289
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
290
  </span>
291
+ </a><label id='cust_post_empty' style='display:none'><?php echo __('CUSTOMPOST LIST IS EMPTY',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
292
  </div>
293
  </div>
294
  <?php } ?>
345
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
346
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])) { echo $_REQUEST['step']; } ?>' />
347
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
348
+ <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php if(isset($extracted_image_location)){ echo $extracted_image_location;}?>' />
349
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
350
+ <label style="padding-right:10px;" id='preview_of_row'><?php echo __('Showing preview of row # 1',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
351
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
352
+ <label id="importalign" style="margin-right:8px;"> <?php echo __('Go To Row #',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label><input type='text' id='goto_element' name='goto_element' />
353
+ <input type='button' id='apply_element' name='apply_element' class="btn btn-success" value='<?php echo __("Show",WP_CONST_ULTIMATE_CSV_IMP_SLUG);?>' onclick='gotoelement(this.id);' style="margin-right:10px;margin-left:5px"/>
354
  </div>
355
  </td>
356
  </tr>
366
  unset($impCE->defCols['wp_page_template']);
367
  }
368
  ?>
369
+ <tr><td class="left_align columnheader"> <b><?php echo __('CSV HEADER',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('WP FIELDS',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('CSV ROW',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td></td></tr>
370
  <?php
371
  $mappingFields_arr = array();
372
  foreach ($impCE->headers as $key => $value)
374
  <tr>
375
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
376
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
377
+ <option id = "select"> <?php echo __('-- Select --',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
378
  <?php
379
  foreach ($impCE->defCols as $key1 => $value1)
380
  {
410
  }
411
  }
412
  ?>
413
+ <option value="add_custom<?php print($count); ?>"><?php echo __('Add Custom Field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
414
  </select>
415
  <script type="text/javascript">
416
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
431
  <span id='elementVal_<?php echo $key; ?>' > <?php echo $getrecords[0][$value]; ?> </span>
432
  </td>
433
  <td width = "180px;">
434
+ <input class="customfieldtext" type="text" id="textbox<?php print($count); ?>" name="textbox<?php print($count); ?>" TITLE="<?php echo __('Replace the default value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display: none;float:left;width:160px;" value="<?php echo $value ?>"/>
435
  <span style="display: none;float:left" id="customspan<?php echo $count ?>">
436
  <a href="#" class="tooltip">
437
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
438
  <span class="tooltipPostStatus">
439
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
440
+ <strong><?php echo __('Give a name for your new custom field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
441
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
442
  </span>
443
  </a>
444
  </span>
445
+ <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>"><?php echo __('Replace the custom value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
446
  </td>
447
  </tr>
448
  <?php
458
  <div>
459
  <div class="goto_import_options" align=center>
460
  <div class="mappingactions" style="margin-top:26px;">
461
+ <input type='button' id='clear_mapping' title = '<?php echo __('Clear Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='clear_mapping btn btn-warning' name='clear_mapping' value='<?php echo __('Clear',WP_CONST_ULTIMATE_CSV_IMP_SLUG);echo ' '; echo $impCE->reduceStringLength(__(' Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Mapping'); ?>' onclick='clearMapping();' style = 'float:left'/>
462
  <span style = ''>
463
  <a href="#" class="tooltip tooltip_smack" style = ''>
464
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
465
  <span class="tooltipClearMapping">
466
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
467
+ <strong><?php echo __('Refresh to re-map fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
468
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
469
  </span>
470
  </a>
471
  </span>
472
  </div>
473
  <div class="mappingactions" >
474
+ <input type='submit' id='goto_importer_setting' title = '<?php echo __('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='<?php echo $impCE->reduceStringLength(__('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); ?> >>' />
475
  </div>
476
  </div>
477
  </div>
483
  </tr>
484
  <tr>
485
  <td>
486
+ <h3><?php echo __('Settings and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
487
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
488
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
489
  <?php //$prevoptionindex='';?>
513
  <div class="postbox" id="options" style=" margin-bottom:0px;">
514
  <!-- <h4 class="hndle">Search settings</h4>-->
515
  <div class="inside">
516
+ <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
517
+ <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
518
  <div id='schedule' style='display:none'>
519
  <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'] ; } ?>'>
520
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
543
  </select><br>
544
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
545
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
546
+ <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> <?php echo __('Detect duplicate post content',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
547
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
548
+ <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > <?php echo __('Detect duplicate post title',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
549
+ <label id="importalign"><?php __('No. of posts/rows per server request',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
550
+ <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;"><?php echo __('You can set upto',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> per request.</span>
551
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
552
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
553
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
554
  <label id="innertitle">Inline image options</label><br />
555
+ <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' > <?php echo __('Insert Inline Images',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label><br>
556
+ <!-- <div id='inlineimageoption' style="display:none;" >
557
  <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
558
  <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>
559
+ </div> -->
560
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
561
  </li>
562
  <!--<li>
563
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
564
  </li>-->
565
  </ul>
566
+ <input id="startbutton" class="btn btn-primary" type="button" value="<?php echo __('Import Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
567
+ <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="<?php echo __('Terminate Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;" onclick="terminateProcess();" />
568
+ <input class="btn btn-warning" type="button" value="<?php echo __('Reload',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" id="importagain" style="display:none" onclick="import_again();" />
569
+ <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="<?php echo __('Continue',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;color: #ffffff;" onclick="continueprocess();">
570
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
571
+ <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> <?php echo __('Processing...',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
572
  <div class="clear"></div>
573
  </form>
574
  </div>
589
  <table class="table-importer">
590
  <tr>
591
  <td>
592
+ <h3><?php echo __("Summary",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
593
  <div id='reportLog' class='postbox' style='display:none;'>
594
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
595
  <div id="logtabs" class="logcontainer">
modules/customtaxonomy/templates/index.php CHANGED
@@ -35,4 +35,4 @@
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
- echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>This feature is only available in PRO!.</p></div>";
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
+ echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>". __('This feature is only available in PRO!.',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</p></div>";
modules/dashboard/templates/index.php CHANGED
@@ -43,20 +43,20 @@ $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 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>
43
  if(isset($_REQUEST['msg']) && $_REQUEST['msg'] == 'filenotfound'){
44
  ?>
45
  <script>
46
+ showMapMessages('error',translateAlertString('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><?php echo __('Importers Activity',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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><?php echo __('Import Statistics',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
modules/eshop/actions/actions.php CHANGED
@@ -409,8 +409,9 @@ class EshopActions extends SkinnyActions {
409
  $fimg_path = $full_path;
410
 
411
  $fimg_name = @basename($f_img);
412
- $fimg_name = preg_replace("/[^a-zA-Z0-9._\s]/", "", $fimg_name);
413
- $fimg_name = preg_replace('/\s/', '-', $fimg_name);
 
414
  $fimg_name = urlencode($fimg_name);
415
 
416
  $parseURL = parse_url($f_img);
@@ -418,15 +419,18 @@ class EshopActions extends SkinnyActions {
418
  if(!isset($path_parts['extension']))
419
  $fimg_name = $fimg_name . '.jpg';
420
 
421
- $f_img_slug = preg_replace("/[^a-zA-Z0-9._\s]/", "", $new_post['post_title']);
422
- $f_img_slug = preg_replace('/\s/', '-', $f_img_slug);
 
 
423
 
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
 
431
  if(@getimagesize($filepath)){
432
  $img = wp_get_image_editor($filepath);
@@ -594,7 +598,8 @@ class EshopActions extends SkinnyActions {
594
  if ($data_array) {
595
  if($this->MultiImages == 'true') {
596
  $inlineImagesObj = new WPImporter_inlineImages();
597
- $post_id = $inlineImagesObj->importwithInlineImages($data_array['ID'], $currentLimit, $data_array, $this, $importinlineimageoption, $extractedimagelocation, $sample_inlineimage_url);
 
598
  } else {
599
  $post_id = wp_insert_post($data_array);
600
  $this->detailedLog[$currentLimit]['post_id'] = "<b>Created Post_ID - </b>" . $post_id . " - success";
@@ -687,16 +692,16 @@ class EshopActions extends SkinnyActions {
687
  $attachment = array(
688
  'guid' => $file ['guid'],
689
  'post_mime_type' => 'image/jpeg',
690
- 'post_title' => preg_replace('/\.[^.]+$/', '', @basename($file ['guid'])),
691
  'post_content' => '',
692
  'post_status' => 'inherit'
693
  );
694
  if($get_media_settings == 1){
695
- $generate_attachment = $dirname . '/' . $post_slug_value . '-' . $fimg_name;
696
  }else{
697
  $generate_attachment = $fimg_name;
698
  }
699
- $uploadedImage = $wp_upload_dir['path'] . '/' . $post_slug_value . '-' . $fimg_name;
700
  $attach_id = wp_insert_attachment($attachment, $generate_attachment, $post_id);
701
  $attach_data = wp_generate_attachment_metadata($attach_id, $uploadedImage);
702
  wp_update_attachment_metadata($attach_id, $attach_data);
409
  $fimg_path = $full_path;
410
 
411
  $fimg_name = @basename($f_img);
412
+ $fimg_name = preg_replace('/\.[^.]*$/', '', $fimg_name);
413
+ $fimg_name = strtolower(str_replace(' ','-',$fimg_name));
414
+
415
  $fimg_name = urlencode($fimg_name);
416
 
417
  $parseURL = parse_url($f_img);
419
  if(!isset($path_parts['extension']))
420
  $fimg_name = $fimg_name . '.jpg';
421
 
422
+ $f_img_slug = '';
423
+ $f_img_slug = preg_replace('/\.[^.]*$/', '',$f_img_slug);
424
+ $f_img_slug = strtolower(str_replace('','-',$f_img_slug));
425
+
426
 
427
  $post_slug_value = strtolower($f_img_slug);
428
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY.'/includes/WPImporter_includes_helper.php');
429
  $impCE = new WPImporter_includes_helper();
430
  $fimg_name = wp_unique_filename($fimg_path, $fimg_name, $path_parts['extension']);
431
+ $fimg_name = $fimg_name.'.'.$path_parts['extension'];
432
  $impCE->get_fimg_from_URL($f_img,$fimg_path,$fimg_name,$post_slug_value,$currentLimit,$this);
433
+ $filepath = $fimg_path."/" . $fimg_name;
434
 
435
  if(@getimagesize($filepath)){
436
  $img = wp_get_image_editor($filepath);
598
  if ($data_array) {
599
  if($this->MultiImages == 'true') {
600
  $inlineImagesObj = new WPImporter_inlineImages();
601
+ $postid = wp_insert_post($data_array);
602
+ $post_id = $inlineImagesObj->importwithInlineImages($postid, $currentLimit, $data_array, $this, $importinlineimageoption, $extractedimagelocation, $sample_inlineimage_url);
603
  } else {
604
  $post_id = wp_insert_post($data_array);
605
  $this->detailedLog[$currentLimit]['post_id'] = "<b>Created Post_ID - </b>" . $post_id . " - success";
692
  $attachment = array(
693
  'guid' => $file ['guid'],
694
  'post_mime_type' => 'image/jpeg',
695
+ 'post_title' => preg_replace('/\.[^.]*$/', '', @basename($file ['guid'])),
696
  'post_content' => '',
697
  'post_status' => 'inherit'
698
  );
699
  if($get_media_settings == 1){
700
+ $generate_attachment = $dirname . '/' . $fimg_name;
701
  }else{
702
  $generate_attachment = $fimg_name;
703
  }
704
+ $uploadedImage = $wp_upload_dir['path'] . '/' . $fimg_name;
705
  $attach_id = wp_insert_attachment($attachment, $generate_attachment, $post_id);
706
  $attach_data = wp_generate_attachment_metadata($attach_id, $uploadedImage);
707
  wp_update_attachment_metadata($attach_id, $attach_data);
modules/eshop/templates/index.php CHANGED
@@ -45,7 +45,7 @@ $eshopObj->isplugin();
45
  <table class="table-importer">
46
  <tr>
47
  <td>
48
- <h3>CSV Import Options</h3>
49
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
50
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
51
  if (!is_writable($impCE->getUploadDirectory('default'))) {
@@ -115,7 +115,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
115
  <tr>
116
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
117
  <select disabled/>
118
- <option value ='select template' > select template </option>
119
  </select>
120
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
121
  </div>
@@ -125,9 +125,9 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
125
  </div>
126
 
127
  <div style="float:right;">
128
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();" class='btn btn-warning' style="margin-right:15px"/>
129
 
130
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled class='btn btn-primary' style="margin-right:15px"/>
131
  </div>
132
  </tr>
133
  </table>
@@ -217,11 +217,11 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
217
  $custom_key = array();
218
  $wpcsvsettings=get_option('wpcsvfreesettings');
219
  ?>
220
- <h3>Map CSV to WP fields/attributes</h3>
221
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings') { ?>
222
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
223
  <div class='mappingsection'>
224
- <h2><div class="secondformheader">Import Data Configuration</div></h2>
225
  <?php
226
  if(isset($_FILES['inlineimages'])) {
227
  if(isset($_POST['uploadfilename']) && $_POST['uploadfilename'] != ''){
@@ -233,23 +233,27 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
233
  $basename_zipfile = $get_basename_zipfile[0];
234
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
235
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
 
236
  $zip = new ZipArchive;
237
- if ($zip->open($uploaded_compressedFile) === TRUE) {
238
- $zip->extractTo($location_to_extract);
239
- $zip->close();
240
- $extracted_status = 1;
241
- } else {
242
- $extracted_status = 0;
243
- }
 
 
 
244
  }
245
  ?>
246
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
247
  <div class='importstatus' style='display:true;'>
248
  <input type="hidden" id="customposts" name="customposts" value="">
249
- <div style = 'float:left'> <label> Select Post Type </label> <span class="mandatory"> * </span> </div>
250
  <div style = 'float:left;margin-right:10px' >
251
  <select name='custompostlist' id='custompostlist'>
252
- <option value='select'>---Select---</option>
253
  <?php
254
  foreach (get_post_types() as $key => $value) {
255
  if (($value != 'featured_image') && ($value != 'attachment') && ($value != 'wpsc-product') && ($value != 'wpsc-product-file') && ($value != 'revision') && ($value != 'nav_menu_item') && ($value != 'post') && ($value != 'page') && ($value != 'wp-types-group') && ($value != 'wp-types-user-group')) {?>
@@ -263,7 +267,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
263
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
264
  <span class="tooltipCustompost">
265
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
266
- <strong>Select your custompost type</strong>
267
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
268
  </span>
269
  </a>
@@ -325,11 +329,11 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
325
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
326
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])){ echo $_REQUEST['step']; } ?>' />
327
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
328
- <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php echo $extracted_image_location; ?>' />
329
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
330
- <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
331
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
332
- <label id="importalign" style="margin-right:8px;"> Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
333
  <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"/>
334
  </div>
335
  </td>
@@ -345,7 +349,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
345
  unset($impCE->defCols['wp_page_template']);
346
  }
347
  ?>
348
- <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>
349
  <?php
350
  $eshopObj = new EshopActions();
351
  foreach ($impCE->headers as $key => $value)
@@ -353,7 +357,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
353
  <tr>
354
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
355
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
356
- <option id = "select"> -- Select -- </option>
357
  <?php
358
  foreach ($eshopObj->defCols as $key1 => $value1)
359
  {
@@ -390,7 +394,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
390
  }
391
  }
392
  ?>
393
- <option value="add_custom<?php print($count); ?>">Add Custom Field</option>
394
  </select>
395
  <script type="text/javascript">
396
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
@@ -416,12 +420,12 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
416
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
417
  <span class="tooltipPostStatus">
418
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
419
- <strong>Give a name for your new custom field</strong>
420
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
421
  </span>
422
  </a>
423
  </span>
424
- <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>">Replace the custom value</span>
425
  </td>
426
  </tr>
427
  <?php
@@ -437,20 +441,20 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
437
  <div>
438
  <div class="goto_import_options" align=center>
439
  <div class="mappingactions" style="margin-top;26px;">
440
- <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
441
  <span style = ''>
442
  <a href="#" class="tooltip tooltip_smack" style = ''>
443
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
444
  <span class="tooltipClearMapping">
445
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
446
- <strong>Refresh to re-map fields</strong>
447
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
448
  </span>
449
  </a>
450
  </span>
451
  </div>
452
  <div class="mappingactions" >
453
- <input type='submit' id='goto_importer_setting' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='Next >>' />
454
  </div>
455
  </div>
456
  </div>
@@ -462,7 +466,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
462
  </tr>
463
  <tr>
464
  <td>
465
- <h3>Settings and Performance</h3>
466
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
467
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
468
  <?php //$prevoptionindex='';?>
@@ -492,8 +496,8 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
492
  <div class="postbox" id="options" style=" margin-bottom:0px;">
493
  <!-- <h4 class="hndle">Search settings</h4>-->
494
  <div class="inside">
495
- <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
496
- <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
497
  <div id='schedule' style='display:none'>
498
  <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'] ; } ?>'>
499
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -523,20 +527,20 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
523
  </select><br>
524
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
525
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
526
- <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
527
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
528
- <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
529
- <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>
530
- <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>
531
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
532
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
533
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
534
  <label id="innertitle">Inline image options</label><br />
535
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
536
- <div id='inlineimageoption' style="display:none;" >
537
  <label id='importalign'><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
538
  <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>
539
- </div>
540
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
541
  </li>
542
  <!-- <li>
@@ -544,12 +548,12 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
544
  </li>-->
545
  </ul>
546
  <!-- <input id="goto_back" name="goto_back" class="btn btn-warning" type="button" value="<< Back" onclick="gotoback();" /> -->
547
- <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
548
- <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
549
- <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
550
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
551
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
552
- <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
553
 
554
  <div class="clear"></div>
555
  </form>
@@ -571,7 +575,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
571
  <table class="table-importer">
572
  <tr>
573
  <td>
574
- <h3><?php echo __("Summary"); ?></h3>
575
  <div id='reportLog' class='postbox' style='display:none;'>
576
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
577
  <div id="logtabs" class="logcontainer">
45
  <table class="table-importer">
46
  <tr>
47
  <td>
48
+ <h3><?php echo __('CSV Import Options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
49
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
50
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
51
  if (!is_writable($impCE->getUploadDirectory('default'))) {
115
  <tr>
116
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
117
  <select disabled/>
118
+ <option value ='select template' > <?php echo __('select template',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
119
  </select>
120
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
121
  </div>
125
  </div>
126
 
127
  <div style="float:right;">
128
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' onclick="Reload();" class='btn btn-warning' style="margin-right:15px"/>
129
 
130
+ <input type='submit' name='importfile' id='importfile' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); echo __(" >>");?>' disabled class='btn btn-primary' style="margin-right:15px"/>
131
  </div>
132
  </tr>
133
  </table>
217
  $custom_key = array();
218
  $wpcsvsettings=get_option('wpcsvfreesettings');
219
  ?>
220
+ <h3><?php echo __('Map CSV to WP fields/attributes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
221
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings') { ?>
222
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
223
  <div class='mappingsection'>
224
+ <h2><div class="secondformheader"><?php echo __('Import Data Configuration',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></h2>
225
  <?php
226
  if(isset($_FILES['inlineimages'])) {
227
  if(isset($_POST['uploadfilename']) && $_POST['uploadfilename'] != ''){
233
  $basename_zipfile = $get_basename_zipfile[0];
234
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
235
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
236
+ if(class_exists(ZipArchive)){
237
  $zip = new ZipArchive;
238
+ if(!empty($uploaded_compressedFile)){
239
+ if ($zip->open($uploaded_compressedFile) === TRUE) {
240
+ $zip->extractTo($location_to_extract);
241
+ $zip->close();
242
+ $extracted_status = 1;
243
+ } else {
244
+ $extracted_status = 0;
245
+ }
246
+ }
247
+ }
248
  }
249
  ?>
250
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
251
  <div class='importstatus' style='display:true;'>
252
  <input type="hidden" id="customposts" name="customposts" value="">
253
+ <div style = 'float:left'> <label> <?php echo __('Select Post Type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label> <span class="mandatory"> * </span> </div>
254
  <div style = 'float:left;margin-right:10px' >
255
  <select name='custompostlist' id='custompostlist'>
256
+ <option value='select'><?php echo __('---Select---',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
257
  <?php
258
  foreach (get_post_types() as $key => $value) {
259
  if (($value != 'featured_image') && ($value != 'attachment') && ($value != 'wpsc-product') && ($value != 'wpsc-product-file') && ($value != 'revision') && ($value != 'nav_menu_item') && ($value != 'post') && ($value != 'page') && ($value != 'wp-types-group') && ($value != 'wp-types-user-group')) {?>
267
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
268
  <span class="tooltipCustompost">
269
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
270
+ <strong><?php echo __('Select your custompost type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
271
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
272
  </span>
273
  </a>
329
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
330
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])){ echo $_REQUEST['step']; } ?>' />
331
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
332
+ <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php if(isset($extracted_image_location)){ echo $extracted_image_location;} ?>' />
333
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
334
+ <label style="padding-right:10px;" id='preview_of_row'><?php echo __('Showing preview of row # 1',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
335
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
336
+ <label id="importalign" style="margin-right:8px;"> <?php echo __('Go To Row #',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label><input type='text' id='goto_element' name='goto_element' />
337
  <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"/>
338
  </div>
339
  </td>
349
  unset($impCE->defCols['wp_page_template']);
350
  }
351
  ?>
352
+ <tr><td class="left_align columnheader"> <b><?php echo __('CSV HEADER',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('WP FIELDS',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('CSV ROW',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td></td></tr>
353
  <?php
354
  $eshopObj = new EshopActions();
355
  foreach ($impCE->headers as $key => $value)
357
  <tr>
358
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
359
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
360
+ <option id = "select"> <?php echo __('-- Select --',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
361
  <?php
362
  foreach ($eshopObj->defCols as $key1 => $value1)
363
  {
394
  }
395
  }
396
  ?>
397
+ <option value="add_custom<?php print($count); ?>"><?php echo __('Add Custom Field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
398
  </select>
399
  <script type="text/javascript">
400
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
420
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
421
  <span class="tooltipPostStatus">
422
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
423
+ <strong><?php echo __('Give a name for your new custom field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
424
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
425
  </span>
426
  </a>
427
  </span>
428
+ <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>"><?php echo __('Replace the custom value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
429
  </td>
430
  </tr>
431
  <?php
441
  <div>
442
  <div class="goto_import_options" align=center>
443
  <div class="mappingactions" style="margin-top;26px;">
444
+ <input type='button' id='clear_mapping' title = '<?php echo __('clear Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='clear_mapping btn btn-warning' name='clear_mapping' value='<?php echo __('Clear',WP_CONST_ULTIMATE_CSV_IMP_SLUG); echo ' ';echo $impCE->reduceStringLength(__(' Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Mapping'); ?>' onclick='clearMapping();' style = 'float:left'/>
445
  <span style = ''>
446
  <a href="#" class="tooltip tooltip_smack" style = ''>
447
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
448
  <span class="tooltipClearMapping">
449
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
450
+ <strong><?php echo __('Refresh to re-map fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
451
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
452
  </span>
453
  </a>
454
  </span>
455
  </div>
456
  <div class="mappingactions" >
457
+ <input type='submit' id='goto_importer_setting' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='<?php echo $impCE->reduceStringLength(__('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); ?> >>' />
458
  </div>
459
  </div>
460
  </div>
466
  </tr>
467
  <tr>
468
  <td>
469
+ <h3><?php echo __('Settings and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
470
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
471
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
472
  <?php //$prevoptionindex='';?>
496
  <div class="postbox" id="options" style=" margin-bottom:0px;">
497
  <!-- <h4 class="hndle">Search settings</h4>-->
498
  <div class="inside">
499
+ <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
500
+ <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
501
  <div id='schedule' style='display:none'>
502
  <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'] ; } ?>'>
503
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
527
  </select><br>
528
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
529
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
530
+ <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> <?php echo __('Detect duplicate post content',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
531
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
532
+ <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > <?php echo __('Detect duplicate post title',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
533
+ <label id='importalign'><?php __('No. of posts/rows per server request',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
534
+ <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;"><?php echo __('You can set upto',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> <?php echo __('per request.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
535
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
536
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
537
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
538
  <label id="innertitle">Inline image options</label><br />
539
  <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
540
+ <!-- <div id='inlineimageoption' style="display:none;" >
541
  <label id='importalign'><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
542
  <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>
543
+ </div> -->
544
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
545
  </li>
546
  <!-- <li>
548
  </li>-->
549
  </ul>
550
  <!-- <input id="goto_back" name="goto_back" class="btn btn-warning" type="button" value="<< Back" onclick="gotoback();" /> -->
551
+ <input id="startbutton" class="btn btn-primary" type="button" value="<?php echo __('Import Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
552
+ <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="<?php echo __('Terminate Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;" onclick="terminateProcess();" />
553
+ <input class="btn btn-warning" type="button" value="<?php echo __('Reload',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" id="importagain" style="display:none" onclick="import_again();" />
554
+ <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="<?php echo __('Continue',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;color: #ffffff;" onclick="continueprocess();">
555
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
556
+ <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> <?php echo __('Processing...',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
557
 
558
  <div class="clear"></div>
559
  </form>
575
  <table class="table-importer">
576
  <tr>
577
  <td>
578
+ <h3><?php echo __("Summary",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
579
  <div id='reportLog' class='postbox' style='display:none;'>
580
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
581
  <div id="logtabs" class="logcontainer">
modules/export/templates/export.php CHANGED
@@ -488,12 +488,26 @@ class WPCSVProExportData {
488
  public function WPImpPROExportData($request) {
489
  #print('<pre>'); print_r($this->getACFvalues()); die;
490
  global $wpdb;
491
- $export_delimiter = ',';
492
  $exporttype = $_POST['export'];
493
- $wpcsvsettings=get_option('wpcsvprosettings');
494
- if(isset($wpcsvsettings['export_delimiter'])){
495
- $export_delimiter = $wpcsvsettings['export_delimiter'];
496
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
497
  if($_POST['export_filename'])
498
  $csv_file_name =$_POST['export_filename'].'.csv';
499
  else
@@ -1059,12 +1073,26 @@ class WPCSVProExportData {
1059
  */
1060
  public function WPImpExportCategories($request) {
1061
  global $wpdb;
1062
- $export_delimiter = ',';
1063
  $exporttype = $request['export'];
1064
- $wpcsvsettings=get_option('wpcsvprosettings');
1065
- if(isset($wpcsvsettings['export_delimiter'])){
1066
- $export_delimiter = $wpcsvsettings['export_delimiter'];
 
 
 
 
 
 
 
 
 
 
1067
  }
 
 
 
 
 
1068
  if($_POST['export_filename'])
1069
  $csv_file_name =$_POST['export_filename'].'.csv';
1070
  else
@@ -1125,12 +1153,26 @@ class WPCSVProExportData {
1125
  */
1126
  public function WPImpExportTags($request) {
1127
  global $wpdb;
1128
- $export_delimiter = ',';
1129
  $exporttype = $request['export'];
1130
- $wpcsvsettings=get_option('wpcsvprosettings');
1131
- if(isset($wpcsvsettings['export_delimiter'])){
1132
- $export_delimiter = $wpcsvsettings['export_delimiter'];
1133
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1134
  if($_POST['export_filename'])
1135
  $csv_file_name =$_POST['export_filename'].'.csv';
1136
  else
@@ -1186,11 +1228,25 @@ class WPCSVProExportData {
1186
  */
1187
  public function WPImpExportTaxonomies($request) {
1188
  global $wpdb;
1189
- $export_delimiter = ',';
1190
  $exporttype = $request['export'];
1191
- $wpcsvsettings=get_option('wpcsvprosettings');
1192
- if(isset($wpcsvsettings['export_delimiter'])){
1193
- $export_delimiter = $wpcsvsettings['export_delimiter'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1194
  }
1195
  if($_POST['export_filename'])
1196
  $csv_file_name =$_POST['export_filename'].'.csv';
@@ -1253,12 +1309,26 @@ class WPCSVProExportData {
1253
  */
1254
  public function WPImpExportCustomerReviews($request) {
1255
  global $wpdb;
1256
- $export_delimiter = ',';
1257
  $exporttype = $request['export'];
1258
- $wpcsvsettings=get_option('wpcsvprosettings');
1259
- if(isset($wpcsvsettings['export_delimiter'])){
1260
- $export_delimiter = $wpcsvsettings['export_delimiter'];
1261
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1262
  if($_POST['export_filename'])
1263
  $csv_file_name =$_POST['export_filename'].'.csv';
1264
  else
@@ -1307,11 +1377,25 @@ class WPCSVProExportData {
1307
  */
1308
  public function WPImpExportComments($request) {
1309
  global $wpdb;
1310
- $export_delimiter = ',';
1311
  $exporttype = $request['export'];
1312
- $wpcsvsettings=get_option('wpcsvprosettings');
1313
- if(isset($wpcsvsettings['export_delimiter'])){
1314
- $export_delimiter = $wpcsvsettings['export_delimiter'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1315
  }
1316
  if($_POST['export_filename'])
1317
  $csv_file_name =$_POST['export_filename'].'.csv';
@@ -1342,11 +1426,25 @@ class WPCSVProExportData {
1342
  */
1343
  public function WPImpExportUsers($request) {
1344
  global $wpdb;
1345
- $export_delimiter = ',';
1346
  $exporttype = $request['export'];
1347
- $wpcsvsettings=get_option('wpcsvprosettings');
1348
- if(isset($wpcsvsettings['export_delimiter'])){
1349
- $export_delimiter = $wpcsvsettings['export_delimiter'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1350
  }
1351
  if($_POST['export_filename'])
1352
  $csv_file_name =$_POST['export_filename'].'.csv';
488
  public function WPImpPROExportData($request) {
489
  #print('<pre>'); print_r($this->getACFvalues()); die;
490
  global $wpdb;
 
491
  $exporttype = $_POST['export'];
492
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
493
+ if($_POST['postwithdelimiter'] == "{Space}")
494
+ $export_delimiter = " ";
495
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
496
+ $export_delimiter = "\t";
497
+ else
498
+ $export_delimiter = $_POST['postwithdelimiter'];
499
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
500
+
501
+ $export_delimiter = $_POST['others_delimiter'];
502
+ }else{
503
+
504
+ $export_delimiter = ',';
505
+ }
506
+ /*if(isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
507
+ $export_delimiter = $_POST['delimeterstatus'];
508
+ }else{
509
+ $export_delimiter = ',';
510
+ }*/
511
  if($_POST['export_filename'])
512
  $csv_file_name =$_POST['export_filename'].'.csv';
513
  else
1073
  */
1074
  public function WPImpExportCategories($request) {
1075
  global $wpdb;
 
1076
  $exporttype = $request['export'];
1077
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
1078
+ if($_POST['postwithdelimiter'] == "{Space}")
1079
+ $export_delimiter = " ";
1080
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
1081
+ $export_delimiter = "\t";
1082
+ else
1083
+ $export_delimiter = $_POST['postwithdelimiter'];
1084
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
1085
+
1086
+ $export_delimiter = $_POST['others_delimiter'];
1087
+ }else{
1088
+
1089
+ $export_delimiter = ',';
1090
  }
1091
+ /*if(isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
1092
+ $export_delimiter = $_POST['delimeterstatus'];
1093
+ }else{
1094
+ $export_delimiter = ',';
1095
+ }*/
1096
  if($_POST['export_filename'])
1097
  $csv_file_name =$_POST['export_filename'].'.csv';
1098
  else
1153
  */
1154
  public function WPImpExportTags($request) {
1155
  global $wpdb;
 
1156
  $exporttype = $request['export'];
1157
+ /*if(isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
1158
+ $export_delimiter = $_POST['delimeterstatus'];
1159
+ }else{
1160
+ $export_delimiter = ',';
1161
+ }*/
1162
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
1163
+ if($_POST['postwithdelimiter'] == "{Space}")
1164
+ $export_delimiter = " ";
1165
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
1166
+ $export_delimiter = "\t";
1167
+ else
1168
+ $export_delimiter = $_POST['postwithdelimiter'];
1169
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
1170
+
1171
+ $export_delimiter = $_POST['others_delimiter'];
1172
+ }else{
1173
+
1174
+ $export_delimiter = ',';
1175
+ }
1176
  if($_POST['export_filename'])
1177
  $csv_file_name =$_POST['export_filename'].'.csv';
1178
  else
1228
  */
1229
  public function WPImpExportTaxonomies($request) {
1230
  global $wpdb;
 
1231
  $exporttype = $request['export'];
1232
+ /* if(isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
1233
+ $export_delimiter = $_POST['delimeterstatus'];
1234
+ }else{
1235
+ $export_delimiter = ',';
1236
+ }*/
1237
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
1238
+ if($_POST['postwithdelimiter'] == "{Space}")
1239
+ $export_delimiter = " ";
1240
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
1241
+ $export_delimiter = "\t";
1242
+ else
1243
+ $export_delimiter = $_POST['postwithdelimiter'];
1244
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
1245
+
1246
+ $export_delimiter = $_POST['others_delimiter'];
1247
+ }else{
1248
+
1249
+ $export_delimiter = ',';
1250
  }
1251
  if($_POST['export_filename'])
1252
  $csv_file_name =$_POST['export_filename'].'.csv';
1309
  */
1310
  public function WPImpExportCustomerReviews($request) {
1311
  global $wpdb;
 
1312
  $exporttype = $request['export'];
1313
+ /*if(isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
1314
+ $export_delimiter = $_POST['delimeterstatus'];
1315
+ }else{
1316
+ $export_delimiter = ',';
1317
+ }*/
1318
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
1319
+ if($_POST['postwithdelimiter'] == "{Space}")
1320
+ $export_delimiter = " ";
1321
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
1322
+ $export_delimiter = "\t";
1323
+ else
1324
+ $export_delimiter = $_POST['postwithdelimiter'];
1325
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
1326
+
1327
+ $export_delimiter = $_POST['others_delimiter'];
1328
+ }else{
1329
+
1330
+ $export_delimiter = ',';
1331
+ }
1332
  if($_POST['export_filename'])
1333
  $csv_file_name =$_POST['export_filename'].'.csv';
1334
  else
1377
  */
1378
  public function WPImpExportComments($request) {
1379
  global $wpdb;
 
1380
  $exporttype = $request['export'];
1381
+ /*if( isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
1382
+ $export_delimiter = $_POST['delimeterstatus'];
1383
+ }else{
1384
+ $export_delimiter = ',';
1385
+ }*/
1386
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
1387
+ if($_POST['postwithdelimiter'] == "{Space}")
1388
+ $export_delimiter = " ";
1389
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
1390
+ $export_delimiter = "\t";
1391
+ else
1392
+ $export_delimiter = $_POST['postwithdelimiter'];
1393
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
1394
+
1395
+ $export_delimiter = $_POST['others_delimiter'];
1396
+ }else{
1397
+
1398
+ $export_delimiter = ',';
1399
  }
1400
  if($_POST['export_filename'])
1401
  $csv_file_name =$_POST['export_filename'].'.csv';
1426
  */
1427
  public function WPImpExportUsers($request) {
1428
  global $wpdb;
 
1429
  $exporttype = $request['export'];
1430
+ /*if( isset($_POST['getdatawithdelimeter']) && isset($_POST['delimeterstatus'])){
1431
+ $export_delimiter = $_POST['delimeterstatus'];
1432
+ }else{
1433
+ $export_delimiter = ',';
1434
+ }*/
1435
+ if(isset($_POST['getdatawithdelimiter']) && isset($_POST['postwithdelimiter']) && $_POST['postwithdelimiter'] != 'Select'){
1436
+ if($_POST['postwithdelimiter'] == "{Space}")
1437
+ $export_delimiter = " ";
1438
+ elseif($_POST['postwithdelimiter'] == "{Tab}")
1439
+ $export_delimiter = "\t";
1440
+ else
1441
+ $export_delimiter = $_POST['postwithdelimiter'];
1442
+ }elseif(isset($_POST['getdatawithdelimiter']) && !empty($_POST['others_delimiter'])){
1443
+
1444
+ $export_delimiter = $_POST['others_delimiter'];
1445
+ }else{
1446
+
1447
+ $export_delimiter = ',';
1448
  }
1449
  if($_POST['export_filename'])
1450
  $csv_file_name =$_POST['export_filename'].'.csv';
modules/export/templates/index.php CHANGED
@@ -30,6 +30,23 @@ $noncedata = $skinnyData['wp_nonce'];
30
  <table style='width:100%;' class='table exportmodule'>
31
  <th colspan='2'><label class='h-exportmodule'><h3 id="innertitle"> To export data based on the filters</h3></label></th>
32
  <tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  <td><label><input type='checkbox' name='getdataforspecificperiod' id='getdataforspecificperiod' value='getdataforspecificperiod' onclick='addexportfilter(this.id);' /><span id="align"> Export data for the specific period</span></label>
34
  <div id='specificperiodexport' style='padding:10px;display:none;'>
35
  <label id='periodstartfrom'><b> Start From </b></label>
30
  <table style='width:100%;' class='table exportmodule'>
31
  <th colspan='2'><label class='h-exportmodule'><h3 id="innertitle"> To export data based on the filters</h3></label></th>
32
  <tr>
33
+ <td><label><input type='checkbox' name='getdatawithdelimiter' id='getdatawithdelimiter' value='getdatawithdelimeter' onclick='addexportfilter(this.id);' /><span id="align"> Export data with auto delimiter</span></label>
34
+ <div id='delimeter' style='padding:10px;display:none;'>
35
+ <label id='delistatus'><b> Delimiters </b></label>
36
+ <select name='postwithdelimiter' id='postwithdelimiter'>
37
+ <option>Select</option>
38
+ <option>,</option>
39
+ <option>:</option>
40
+ <option>;</option>
41
+ <option>{Tab}</option>
42
+ <option>{Space}</option>
43
+ </select>
44
+ <label><b>Other Delimiters</b> </label><input type = 'text' name='others_delimiter' id ='others_delimiter' size=6>
45
+ </select>
46
+ </div>
47
+ </td>
48
+ </tr>
49
+ <tr>
50
  <td><label><input type='checkbox' name='getdataforspecificperiod' id='getdataforspecificperiod' value='getdataforspecificperiod' onclick='addexportfilter(this.id);' /><span id="align"> Export data for the specific period</span></label>
51
  <div id='specificperiodexport' style='padding:10px;display:none;'>
52
  <label id='periodstartfrom'><b> Start From </b></label>
modules/page/templates/index.php CHANGED
@@ -44,7 +44,7 @@ $nonce_Key = $impCE->create_nonce_key();
44
  <table class="table-importer">
45
  <tr>
46
  <td>
47
- <h3>CSV Import Options</h3>
48
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
49
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
50
  if (!is_writable($impCE->getUploadDirectory('default'))) {
@@ -79,15 +79,15 @@ $nonce_Key = $impCE->create_nonce_key();
79
  <tr>
80
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
81
  <select disabled>
82
- <option value ='select template' /> select template </option>
83
  </select>
84
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
85
  </div>
86
  </div>
87
  <div style="float:right;">
88
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
89
  class='btn btn-warning' style="margin-right:15px"/>
90
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
91
  class='btn btn-primary' style="margin-right:15px"/>
92
  </div>
93
  </tr>
@@ -178,11 +178,11 @@ $nonce_Key = $impCE->create_nonce_key();
178
  $custom_key = array();
179
  $wpcsvsettings=get_option('wpcsvfreesettings');
180
  ?>
181
- <h3>Map CSV to WP fields/attributes</h3>
182
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings') { ?>
183
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
184
  <div class='mappingsection'>
185
- <h2><div class="secondformheader">Import Data Configuration</div></h2>
186
  <?php
187
  if(isset($_FILES['inlineimages'])) {
188
  if(isset($_POST['uploadfilename']) && $_POST['uploadfilename'] != ''){
@@ -194,23 +194,27 @@ $nonce_Key = $impCE->create_nonce_key();
194
  $basename_zipfile = $get_basename_zipfile[0];
195
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
196
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
 
197
  $zip = new ZipArchive;
198
- if ($zip->open($uploaded_compressedFile) === TRUE) {
199
- $zip->extractTo($location_to_extract);
200
- $zip->close();
201
- $extracted_status = 1;
202
- } else {
203
- $extracted_status = 0;
204
- }
 
 
 
205
  }
206
  ?>
207
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
208
  <div class='importstatus' style='display:true;'>
209
  <input type="hidden" id="customposts" name="customposts" value="">
210
- <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
211
  <div style = 'float:left;margin-right:10px'>
212
  <select name='custompostlist' id='custompostlist'>
213
- <option value='select'>---Select---</option>
214
  <?php
215
  foreach (get_post_types() as $key => $value) {
216
  if (($value != 'featured_image') && ($value != 'attachment') && ($value != 'wpsc-product') && ($value != 'wpsc-product-file') && ($value != 'revision') && ($value != 'nav_menu_item') && ($value != 'post') && ($value != 'page') && ($value != 'wp-types-group') && ($value != 'wp-types-user-group')) {?>
@@ -224,7 +228,7 @@ $nonce_Key = $impCE->create_nonce_key();
224
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
225
  <span class="tooltipCustompost">
226
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
227
- <strong>Select your custompost type</strong>
228
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
229
  </span>
230
  </a>
@@ -283,11 +287,11 @@ $nonce_Key = $impCE->create_nonce_key();
283
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
284
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])) { echo $_REQUEST['step']; } ?>' />
285
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
286
- <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php echo $extracted_image_location; ?>' />
287
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
288
- <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
289
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
290
- <label id="importalign" style="margin-right:8px;"> Go To Row #</label><input type='text' id='goto_element' name='goto_element' />
291
  <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"/>
292
  </div>
293
  </td>
@@ -300,7 +304,7 @@ $nonce_Key = $impCE->create_nonce_key();
300
  unset($impCE->defCols['post_format']);
301
  }
302
  ?>
303
- <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>
304
  <?php
305
  $mappingFields_arr = array();
306
  foreach ($impCE->headers as $key => $value)
@@ -308,7 +312,7 @@ $nonce_Key = $impCE->create_nonce_key();
308
  <tr>
309
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
310
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
311
- <option id = "select"> -- Select -- </option>
312
  <?php
313
  foreach ($impCE->defCols as $key1 => $value1)
314
  {
@@ -344,7 +348,7 @@ $nonce_Key = $impCE->create_nonce_key();
344
  }
345
  }
346
  ?>
347
- <option value="add_custom<?php print($count); ?>">Add Custom Field</option>
348
  </select>
349
  <script type="text/javascript">
350
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
@@ -371,12 +375,12 @@ $nonce_Key = $impCE->create_nonce_key();
371
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
372
  <span class="tooltipPostStatus">
373
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
374
- <strong>Give a name for your new custom field</strong>
375
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
376
  </span>
377
  </a>
378
  </span>
379
- <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>">Replace the custom value</span>
380
  </td>
381
  </tr>
382
  <?php
@@ -392,20 +396,20 @@ $nonce_Key = $impCE->create_nonce_key();
392
  <div>
393
  <div class="goto_import_options" align=center>
394
  <div class="mappingactions" style="margin-top:26px;">
395
- <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
396
  <span style = ''>
397
  <a href="#" class="tooltip tooltip_smack" style = ''>
398
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
399
  <span class="tooltipClearMapping">
400
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
401
- <strong>Refresh to re-map fields</strong>
402
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
403
  </span>
404
  </a>
405
  </span>
406
  </div>
407
  <div class="mappingactions" >
408
- <input type='submit' id='goto_importer_setting' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='Next >>' />
409
  </div>
410
  </div>
411
  </div>
@@ -417,7 +421,7 @@ $nonce_Key = $impCE->create_nonce_key();
417
  </tr>
418
  <tr>
419
  <td>
420
- <h3>Settings and Performance</h3>
421
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
422
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
423
  <?php //$prevoptionindex='';?>
@@ -447,8 +451,8 @@ $nonce_Key = $impCE->create_nonce_key();
447
  <div class="postbox" id="options" style=" margin-bottom:0px;">
448
  <!-- <h4 class="hndle">Search settings</h4>-->
449
  <div class="inside">
450
- <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
451
- <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
452
  <div id='schedule' style='display:none'>
453
  <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'] ; } ?>'>
454
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -477,32 +481,32 @@ $nonce_Key = $impCE->create_nonce_key();
477
  </select><br>
478
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
479
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
480
- <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
481
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
482
- <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
483
- <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>
484
- <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>
485
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
486
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
487
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
488
- <label id="innertitle">Inline image options</label><br />
489
- <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
490
- <div id='inlineimageoption' style="display:none;" >
491
  <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
492
  <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>
493
- </div>
494
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
495
  </li>
496
  <!--<li>
497
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
498
  </li>-->
499
  </ul>
500
- <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
501
- <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
502
- <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();">
503
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
504
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
505
- <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
506
  <div class="clear"></div>
507
  </form>
508
  </div>
@@ -523,7 +527,7 @@ $nonce_Key = $impCE->create_nonce_key();
523
  <table class="table-importer">
524
  <tr>
525
  <td>
526
- <h3><?php echo __("Summary"); ?></h3>
527
  <div id='reportLog' class='postbox' style='display:none;'>
528
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
529
  <div id="logtabs" class="logcontainer">
44
  <table class="table-importer">
45
  <tr>
46
  <td>
47
+ <h3><?php echo __('CSV Import Options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
48
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
49
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
50
  if (!is_writable($impCE->getUploadDirectory('default'))) {
79
  <tr>
80
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
81
  <select disabled>
82
+ <option value ='select template' /> <?php echo __('select template',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
83
  </select>
84
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
85
  </div>
86
  </div>
87
  <div style="float:right;">
88
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' onclick="Reload();"
89
  class='btn btn-warning' style="margin-right:15px"/>
90
+ <input type='submit' name='importfile' id='importfile' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); echo __(" >>");?>' disabled
91
  class='btn btn-primary' style="margin-right:15px"/>
92
  </div>
93
  </tr>
178
  $custom_key = array();
179
  $wpcsvsettings=get_option('wpcsvfreesettings');
180
  ?>
181
+ <h3><?php echo __('Map CSV to WP fields/attributes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
182
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings') { ?>
183
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
184
  <div class='mappingsection'>
185
+ <h2><div class="secondformheader"><?php echo __('Import Data Configuration',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></h2>
186
  <?php
187
  if(isset($_FILES['inlineimages'])) {
188
  if(isset($_POST['uploadfilename']) && $_POST['uploadfilename'] != ''){
194
  $basename_zipfile = $get_basename_zipfile[0];
195
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
196
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
197
+ if(class_exists(ZipArchive)){
198
  $zip = new ZipArchive;
199
+ if(!empty($uploaded_compressedFile)){
200
+ if ($zip->open($uploaded_compressedFile) === TRUE) {
201
+ $zip->extractTo($location_to_extract);
202
+ $zip->close();
203
+ $extracted_status = 1;
204
+ } else {
205
+ $extracted_status = 0;
206
+ }
207
+ }
208
+ }
209
  }
210
  ?>
211
  <?php if(isset($_REQUEST['__module']) && $_REQUEST['__module']=='custompost'){ ?>
212
  <div class='importstatus' style='display:true;'>
213
  <input type="hidden" id="customposts" name="customposts" value="">
214
+ <div style = 'float:left'> <label id="importalign"> <?php echo __('Select Post Type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label> <span class="mandatory"> * </span> </div>
215
  <div style = 'float:left;margin-right:10px'>
216
  <select name='custompostlist' id='custompostlist'>
217
+ <option value='select'><?php echo __('---Select---',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
218
  <?php
219
  foreach (get_post_types() as $key => $value) {
220
  if (($value != 'featured_image') && ($value != 'attachment') && ($value != 'wpsc-product') && ($value != 'wpsc-product-file') && ($value != 'revision') && ($value != 'nav_menu_item') && ($value != 'post') && ($value != 'page') && ($value != 'wp-types-group') && ($value != 'wp-types-user-group')) {?>
228
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
229
  <span class="tooltipCustompost">
230
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
231
+ <strong><?php echo __('Select your custompost type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
232
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
233
  </span>
234
  </a>
287
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
288
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])) { echo $_REQUEST['step']; } ?>' />
289
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
290
+ <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php if(isset($extracted_image_location)){ echo $extracted_image_location; }?>' />
291
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
292
+ <label style="padding-right:10px;" id='preview_of_row'><?php echo __('Showing preview of row # 1',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
293
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
294
+ <label id="importalign" style="margin-right:8px;"> <?php echo __('Go To Row #',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label><input type='text' id='goto_element' name='goto_element' />
295
  <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"/>
296
  </div>
297
  </td>
304
  unset($impCE->defCols['post_format']);
305
  }
306
  ?>
307
+ <tr><td class="left_align columnheader"> <b><?php echo __('CSV HEADER',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('WP FIELDS',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td > <b><?php echo __('CSV ROW',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td></td></tr>
308
  <?php
309
  $mappingFields_arr = array();
310
  foreach ($impCE->headers as $key => $value)
312
  <tr>
313
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
314
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
315
+ <option id = "select"> <?php echo __('-- Select --',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
316
  <?php
317
  foreach ($impCE->defCols as $key1 => $value1)
318
  {
348
  }
349
  }
350
  ?>
351
+ <option value="add_custom<?php print($count); ?>"><?php echo __('Add Custom Field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
352
  </select>
353
  <script type="text/javascript">
354
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
375
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
376
  <span class="tooltipPostStatus">
377
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
378
+ <strong><?php echo __('Give a name for your new custom field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
379
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
380
  </span>
381
  </a>
382
  </span>
383
+ <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>"><?php echo __('Replace the custom value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
384
  </td>
385
  </tr>
386
  <?php
396
  <div>
397
  <div class="goto_import_options" align=center>
398
  <div class="mappingactions" style="margin-top:26px;">
399
+ <input type='button' id='clear_mapping' title = '<?php echo __("clear Mapping",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='clear_mapping btn btn-warning' name='clear_mapping' value='<?php echo __('Clear',WP_CONST_ULTIMATE_CSV_IMP_SLUG);echo ' ';echo $impCE->reduceStringLength(__(' Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Mapping'); ?>' onclick='clearMapping();' style = 'float:left'/>
400
  <span style = ''>
401
  <a href="#" class="tooltip tooltip_smack" style = ''>
402
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
403
  <span class="tooltipClearMapping">
404
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
405
+ <strong><?php echo __('Refresh to re-map fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
406
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
407
  </span>
408
  </a>
409
  </span>
410
  </div>
411
  <div class="mappingactions" >
412
+ <input type='submit' id='goto_importer_setting' title = '<?php echo __('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG);?>' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='<?php echo $impCE->reduceStringLength(__('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); ?> >>' />
413
  </div>
414
  </div>
415
  </div>
421
  </tr>
422
  <tr>
423
  <td>
424
+ <h3><?php echo __('Settings and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
425
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
426
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
427
  <?php //$prevoptionindex='';?>
451
  <div class="postbox" id="options" style=" margin-bottom:0px;">
452
  <!-- <h4 class="hndle">Search settings</h4>-->
453
  <div class="inside">
454
+ <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
455
+ <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
456
  <div id='schedule' style='display:none'>
457
  <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'] ; } ?>'>
458
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
481
  </select><br>
482
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
483
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
484
+ <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> <?php echo __('Detect duplicate post content',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
485
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
486
+ <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > <?php echo __('Detect duplicate post title',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
487
+ <label id="importalign"><?php echo __('No. of posts/rows per server request',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
488
+ <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;"><?php echo __('You can set upto ',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?><?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> <?php echo __('per request.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
489
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
490
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
491
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
492
+ <label id="innertitle"><?php echo __('Inline image options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label><br />
493
+ <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = ''> <?php echo __('Insert Inline Images',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label><br>
494
+ <!-- <div id='inlineimageoption' style="display:none;" >
495
  <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
496
  <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>
497
+ </div> -->
498
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
499
  </li>
500
  <!--<li>
501
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
502
  </li>-->
503
  </ul>
504
+ <input id="startbutton" class="btn btn-primary" type="button" value="<?php echo __('Import Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
505
+ <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="<?php echo __('Terminate Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;" onclick="terminateProcess();" />
506
+ <input class="btn btn-warning" type="button" value="<?php echo __('Reload',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" id="importagain" style="display:none" onclick="import_again();">
507
+ <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="<?php echo __('Continue',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;color: #ffffff;" onclick="continueprocess();">
508
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
509
+ <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> <?php echo __('Processing...',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
510
  <div class="clear"></div>
511
  </form>
512
  </div>
527
  <table class="table-importer">
528
  <tr>
529
  <td>
530
+ <h3><?php echo __("Summary",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
531
  <div id='reportLog' class='postbox' style='display:none;'>
532
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
533
  <div id="logtabs" class="logcontainer">
modules/post/templates/index.php CHANGED
@@ -42,7 +42,7 @@ $nonce_Key = $impCE->create_nonce_key();
42
  <table class="table-importer">
43
  <tr>
44
  <td>
45
- <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
  <?php if(is_dir($impCE->getUploadDirectory('default'))) {
48
  if (!is_writable($impCE->getUploadDirectory('default'))) {
@@ -78,7 +78,7 @@ $nonce_Key = $impCE->create_nonce_key();
78
  <tr>
79
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
80
  <select disabled/>
81
- <option value ='select template' > select template </option>
82
  </select>
83
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
84
  </div>
@@ -88,9 +88,9 @@ $nonce_Key = $impCE->create_nonce_key();
88
  </div>
89
 
90
  <div style="float:right;">
91
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();" class='btn btn-warning' style="margin-right:15px;"/>
92
 
93
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled class='btn btn-primary' style="margin-right:15px;"/>
94
  </div>
95
  </tr>
96
  </table>
@@ -195,13 +195,17 @@ $nonce_Key = $impCE->create_nonce_key();
195
  $basename_zipfile = $get_basename_zipfile[0];
196
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
197
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
 
198
  $zip = new ZipArchive;
199
- if ($zip->open($uploaded_compressedFile) === TRUE) {
200
- $zip->extractTo($location_to_extract);
201
- $zip->close();
202
- $extracted_status = 1;
203
- } else {
204
- $extracted_status = 0;
 
 
 
205
  }
206
  }
207
  ?>
@@ -211,7 +215,7 @@ $nonce_Key = $impCE->create_nonce_key();
211
  <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
212
  <div style = 'float:left;margin-right:10px'>
213
  <select name='custompostlist' id='custompostlist'>
214
- <option value='select'>---Select---</option>
215
  <?php
216
  foreach (get_post_types() as $key => $value) {
217
  if (($value != 'featured_image') && ($value != 'attachment') && ($value != 'wpsc-product') && ($value != 'wpsc-product-file') && ($value != 'revision') && ($value != 'nav_menu_item') && ($value != 'post') && ($value != 'page') && ($value != 'wp-types-group') && ($value != 'wp-types-user-group')) {?>
@@ -225,7 +229,7 @@ $nonce_Key = $impCE->create_nonce_key();
225
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
226
  <span class="tooltipCustompost">
227
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
228
- <strong>Select your custompost type</strong>
229
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
230
  </span>
231
  </a>
@@ -287,11 +291,11 @@ $nonce_Key = $impCE->create_nonce_key();
287
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
288
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])){ echo $_REQUEST['step']; } ?>' />
289
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
290
- <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php echo $extracted_image_location; ?>' />
291
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
292
- <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1 </label>
293
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
294
- <label id="importalign" style="margin-right:8px;">Go To Row # </label> <input type='text' id='goto_element' name='goto_element' />
295
  <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"/>
296
  </div>
297
  </td>
@@ -307,14 +311,14 @@ $nonce_Key = $impCE->create_nonce_key();
307
  unset($impCE->defCols['wp_page_template']);
308
  }
309
  ?>
310
- <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>
311
  <?php
312
  foreach ($impCE->headers as $key => $value)
313
  { ?>
314
  <tr>
315
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
316
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
317
- <option id = "select"> -- Select -- </option>
318
  <?php
319
  foreach ($impCE->defCols as $key1 => $value1)
320
  {
@@ -351,7 +355,7 @@ $nonce_Key = $impCE->create_nonce_key();
351
  }
352
  }
353
  ?>
354
- <option value="add_custom<?php print($count); ?>">Add Custom Field</option>
355
  </select>
356
  <script type="text/javascript">
357
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
@@ -377,12 +381,12 @@ $nonce_Key = $impCE->create_nonce_key();
377
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
378
  <span class="tooltipPostStatus">
379
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
380
- <strong>Give a name for your new custom field</strong>
381
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
382
  </span>
383
  </a>
384
  </span>
385
- <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>">Replace the custom value</span>
386
  </td>
387
  </tr>
388
  <?php
@@ -398,20 +402,20 @@ $nonce_Key = $impCE->create_nonce_key();
398
  <div>
399
  <div class="goto_import_options" align=center>
400
  <div class="mappingactions" style="margin-top:26px;" >
401
- <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
402
  <span style = ''>
403
  <a href="#" class="tooltip tooltip_smack" style = ''>
404
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
405
  <span class="tooltipClearMapping">
406
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
407
- <strong>Refresh to re-map fields</strong>
408
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
409
  </span>
410
  </a>
411
  </span>
412
  </div>
413
  <div class="mappingactions" >
414
- <input type='submit' id='goto_importer_setting' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='Next >>' />
415
  </div>
416
  </div>
417
  </div>
@@ -423,7 +427,7 @@ $nonce_Key = $impCE->create_nonce_key();
423
  </tr>
424
  <tr>
425
  <td>
426
- <h3>Settings and Performance</h3>
427
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
428
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
429
  <?php //$prevoptionindex='';?>
@@ -453,8 +457,8 @@ $nonce_Key = $impCE->create_nonce_key();
453
  <div class="postbox" id="options" style=" margin-bottom:0px;">
454
  <!-- <h4 class="hndle">Search settings</h4>-->
455
  <div class="inside">
456
- <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
457
- <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
458
  <div id='schedule' style='display:none'>
459
  <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'] ; } ?>'>
460
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -484,20 +488,20 @@ $nonce_Key = $impCE->create_nonce_key();
484
  </select><br>
485
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
486
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
487
- <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
488
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
489
- <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
490
- <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>
491
- <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>
492
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
493
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
494
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
495
- <label id="innertitle">Inline image options</label><br />
496
- <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = '' onclick="enableinlineimageoption();"> Insert Inline Images </label><br>
497
- <div id='inlineimageoption' style="display:none;" >
498
  <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
499
  <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>
500
- </div>
501
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
502
  </li>
503
  <!-- <li>
@@ -505,12 +509,12 @@ $nonce_Key = $impCE->create_nonce_key();
505
  </li>-->
506
  </ul>
507
  <!-- <input id="goto_back" name="goto_back" class="btn btn-warning" type="button" value="<< Back" onclick="gotoback();" /> -->
508
- <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
509
- <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
510
- <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
511
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
512
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
513
- <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
514
 
515
  <div class="clear"></div>
516
  </form>
@@ -532,7 +536,7 @@ $nonce_Key = $impCE->create_nonce_key();
532
  <table class="table-importer">
533
  <tr>
534
  <td>
535
- <h3><?php echo __("Summary"); ?></h3>
536
  <div id='reportLog' class='postbox' style='display:none;'>
537
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
538
  <div id="logtabs" class="logcontainer">
42
  <table class="table-importer">
43
  <tr>
44
  <td>
45
+ <h3><?php echo __('CSV Import Options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
  <?php if(is_dir($impCE->getUploadDirectory('default'))) {
48
  if (!is_writable($impCE->getUploadDirectory('default'))) {
78
  <tr>
79
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
80
  <select disabled/>
81
+ <option value ='select template' > <?php echo __('select template',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
82
  </select>
83
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
84
  </div>
88
  </div>
89
 
90
  <div style="float:right;">
91
+ <input type='button' name='clearform' id='clearform' title = '<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo $impCE->reduceStringLength(__("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Clear'); ?>' onclick="Reload();" class='btn btn-warning' style="margin-right:15px;"/>
92
 
93
+ <input type='submit' name='importfile' id='importfile' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next');?> >>' disabled class='btn btn-primary' style="margin-right:15px;"/>
94
  </div>
95
  </tr>
96
  </table>
195
  $basename_zipfile = $get_basename_zipfile[0];
196
  $location_to_extract = $uploadDir['basedir'] . '/smack_inline_images/' . $filehashkey;
197
  $extracted_image_location = $uploadDir['baseurl'] . '/smack_inline_images/' . $filehashkey;
198
+ if(class_exists(ZipArchive)){
199
  $zip = new ZipArchive;
200
+ if(!empty($uploaded_compressedFile)){
201
+ if ($zip->open($uploaded_compressedFile) === TRUE) {
202
+ $zip->extractTo($location_to_extract);
203
+ $zip->close();
204
+ $extracted_status = 1;
205
+ } else {
206
+ $extracted_status = 0;
207
+ }
208
+ }
209
  }
210
  }
211
  ?>
215
  <div style = 'float:left'> <label id="importalign"> Select Post Type </label> <span class="mandatory"> * </span> </div>
216
  <div style = 'float:left;margin-right:10px'>
217
  <select name='custompostlist' id='custompostlist'>
218
+ <option value='select'><?php echo __('---Select---',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
219
  <?php
220
  foreach (get_post_types() as $key => $value) {
221
  if (($value != 'featured_image') && ($value != 'attachment') && ($value != 'wpsc-product') && ($value != 'wpsc-product-file') && ($value != 'revision') && ($value != 'nav_menu_item') && ($value != 'post') && ($value != 'page') && ($value != 'wp-types-group') && ($value != 'wp-types-user-group')) {?>
229
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
230
  <span class="tooltipCustompost">
231
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
232
+ <strong><?php echo __('Select your custompost type',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
233
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
234
  </span>
235
  </a>
291
  <input type='hidden' id='select_delimeter' name='select_delimeter' value="<?php if(isset($delimeter)) { echo $delimeter; } ?>" />
292
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])){ echo $_REQUEST['step']; } ?>' />
293
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
294
+ <input type='hidden' id='inline_image_location' name='inline_image_location' value='<?php if(isset($extracted_image_location)){ echo $extracted_image_location;} ?>' />
295
  <input type='button' id='prev_record' name='prev_record' class="btn btn-primary" value='<<' onclick='gotoelement(this.id);' />
296
+ <label style="padding-right:10px;" id='preview_of_row'><?php echo __('Showing preview of row # 1',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
297
  <input type='button' id='next_record' name='next_record' class="btn btn-primary" value='>>' onclick='gotoelement(this.id);' />
298
+ <label id="importalign" style="margin-right:8px;"><?php echo __('Go To Row #',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label> <input type='text' id='goto_element' name='goto_element' />
299
  <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"/>
300
  </div>
301
  </td>
311
  unset($impCE->defCols['wp_page_template']);
312
  }
313
  ?>
314
+ <tr><td class="left_align columnheader"> <b><?php echo __('CSV HEADER',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('WP FIELDS',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('CSV ROW',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td></td></tr>
315
  <?php
316
  foreach ($impCE->headers as $key => $value)
317
  { ?>
318
  <tr>
319
  <td class="left_align csvheader"> <label> <?php print($value);?> </label> </td>
320
  <td class="left_align"> <select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
321
+ <option id = "select"> <?php echo __('-- Select --',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
322
  <?php
323
  foreach ($impCE->defCols as $key1 => $value1)
324
  {
355
  }
356
  }
357
  ?>
358
+ <option value="add_custom<?php print($count); ?>"><?php echo __('Add Custom Field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
359
  </select>
360
  <script type="text/javascript">
361
  jQuery("select#mapping<?php print($count); ?>").find('option').each(function() {
381
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
382
  <span class="tooltipPostStatus">
383
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
384
+ <strong><?php echo __('Give a name for your new custom field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
385
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
386
  </span>
387
  </a>
388
  </span>
389
+ <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>"><?php echo __('Replace the custom value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
390
  </td>
391
  </tr>
392
  <?php
402
  <div>
403
  <div class="goto_import_options" align=center>
404
  <div class="mappingactions" style="margin-top:26px;" >
405
+ <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' title = '<?php echo __("Clear Mapping",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo __('Clear',WP_CONST_ULTIMATE_CSV_IMP_SLUG);echo ' '; echo $impCE->reduceStringLength(__(' Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Mapping'); ?>' onclick='clearMapping();' style = 'float:left'/>
406
  <span style = ''>
407
  <a href="#" class="tooltip tooltip_smack" style = ''>
408
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
409
  <span class="tooltipClearMapping">
410
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
411
+ <strong><?php echo __('Refresh to re-map fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
412
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
413
  </span>
414
  </a>
415
  </span>
416
  </div>
417
  <div class="mappingactions" >
418
+ <input type='submit' id='goto_importer_setting' title = '<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='<?php echo $impCE->reduceStringLength(__('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); ?> >>' />
419
  </div>
420
  </div>
421
  </div>
427
  </tr>
428
  <tr>
429
  <td>
430
+ <h3><?php echo __('Settings and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
431
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
432
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
433
  <?php //$prevoptionindex='';?>
457
  <div class="postbox" id="options" style=" margin-bottom:0px;">
458
  <!-- <h4 class="hndle">Search settings</h4>-->
459
  <div class="inside">
460
+ <label id="importalign"><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
461
+ <label id="importalign"><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
462
  <div id='schedule' style='display:none'>
463
  <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'] ; } ?>'>
464
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
488
  </select><br>
489
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
490
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
491
+ <label id="importalign"><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> <?php echo __('Detect duplicate post content',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
492
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
493
+ <label id="importalign"><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > <?php echo __('Detect duplicate post title',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
494
+ <label id="importalign"><?php echo __('No. of posts/rows per server request',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
495
+ <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;"><?php echo __('You can set upto',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> <?php echo __('per request.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
496
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
497
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
498
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
499
+ <label id="innertitle"><?php echo __('Inline image options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label><br />
500
+ <label id='importalign'> <input type ='checkbox' id='multiimage' name='multiimage' value = ''> <?php echo __('Insert Inline Images',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label><br>
501
+ <!-- <div id='inlineimageoption' style="display:none;" >
502
  <label id="importalign"><input type="radio" name="inlineimage_location" id="imagewithextension" value="imagewithextension" onclick="inline_image_option(this.value);" /> Image name with extension </label>
503
  <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>
504
+ </div>-->
505
  <input type='hidden' id='inlineimagevalue' name='inlineimagevalue' value='none' />
506
  </li>
507
  <!-- <li>
509
  </li>-->
510
  </ul>
511
  <!-- <input id="goto_back" name="goto_back" class="btn btn-warning" type="button" value="<< Back" onclick="gotoback();" /> -->
512
+ <input id="startbutton" class="btn btn-primary" type="button" value="<?php echo __('Import Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
513
+ <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="<?php echo __('Terminate Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;" onclick="terminateProcess();" />
514
+ <input class="btn btn-warning" type="button" value="<?php echo __('Reload',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" id="importagain" style="display:none" onclick="import_again();" />
515
+ <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="<?php echo __('Continue',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;color: #ffffff;" onclick="continueprocess();">
516
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
517
+ <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> <?php echo __('Processing...',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
518
 
519
  <div class="clear"></div>
520
  </form>
536
  <table class="table-importer">
537
  <tr>
538
  <td>
539
+ <h3><?php echo __("Summary",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
540
  <div id='reportLog' class='postbox' style='display:none;'>
541
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
542
  <div id="logtabs" class="logcontainer">
modules/settings/templates/index.php CHANGED
@@ -39,10 +39,10 @@ $nonce_Key = $impCE->create_nonce_key();
39
  if(! wp_verify_nonce($nonce_Key, 'smack_nonce'))
40
  die('You are not allowed to do this operation.Please contact your admin.');
41
  ?>
42
- <div style ='text-align:center;margin:0;color:red;font-size:smaller;'> Your Required Settings Configuration Please Select Security and Performance tab </div></br>
43
  <div id="ShowMsg" style="display:none;"><p id="warning-msg" class="alert alert-warning"><?php echo $skinnyData['plugStatus'];?></p></div>
44
  <?php if(isset($skinnyData['savesettings']) && $skinnyData['savesettings'] == 'done'){ ?>
45
- <div id="deletesuccess"><p class="alert alert-success">Settings Saved</p></div>
46
  <?php
47
  $skinnyData['savesettings'] == 'notdone';
48
  ?>
@@ -60,50 +60,50 @@ global $wpdb; ?>
60
  <form class="add:the-list: validate" action="" name="importerSettings" method="post" enctype="multipart/form-data">
61
  <div id="settingheader">
62
  <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>
63
- <span><label id="activemenu">General Settings</label></span>
64
- <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>
65
  </div>
66
  <div id="settingsholder">
67
  <div id="sidebar">
68
  <ul>
69
  <li id="1" class="bg-sidebar selected" onclick="showsettingsoption(this.id);">
70
  <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>
71
- <span id="settingmenu1" >General Settings</span>
72
  <span id="arrow1" class="list-arrow"></span>
73
  </li>
74
  <li id="2" class="bg-sidebar" onclick="showsettingsoption(this.id);">
75
  <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>
76
- <span id="settingmenu2" >Custom Posts & Taxonomy</span>
77
  <span id="arrow2" class="list-arrow" style="display:none;" ></span>
78
  </li>
79
  <li id="3" class="bg-sidebar" onclick="showsettingsoption(this.id);">
80
  <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>
81
- <span id="settingmenu3" >Custom Fields</span>
82
  <span id="arrow3" class="list-arrow" style="display:none;" ></span>
83
  </li>
84
  <li id="4" class="bg-sidebar" onclick="showsettingsoption(this.id);">
85
  <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>
86
- <span id="settingmenu4" >Ecommerce Settings</span>
87
  <span id="arrow4" class="list-arrow" style="display:none;" ></span>
88
  </li>
89
  <li id="5" class="bg-sidebar" onclick="showsettingsoption(this.id);">
90
  <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>
91
- <span id="settingmenu5" >SEO Settings</span>
92
  <span id="arrow5" class="list-arrow" style="display:none;" ></span>
93
  </li>
94
  <li id="6" class="bg-sidebar" onclick="showsettingsoption(this.id);">
95
  <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>
96
- <span id="settingmenu6" >Additional Features</span>
97
  <span id="arrow6" class="list-arrow" style="display:none;" ></span>
98
  </li>
99
  <li id="7" class="bg-sidebar" onclick="showsettingsoption(this.id);">
100
  <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>
101
- <span id="settingmenu7" >Database Optimization</span>
102
  <span id="arrow7" class="list-arrow" style="display:none;" ></span>
103
  </li>
104
  <li id="8" class="bg-sidebar" onclick="showsettingsoption(this.id);">
105
  <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>
106
- <span id="settingmenu8" >Security and Performance</span>
107
  <span id="arrow8" class="list-arrow" style="display:none;" ></span>
108
  </li>
109
  <!--<li id="9" class="bg-sidebar" onclick="showsettingsoption(this.id);">
@@ -117,131 +117,131 @@ global $wpdb; ?>
117
  <!-- div-1-->
118
  <div id="section1" class="generalsettings">
119
  <div class="title">
120
- <h3>Enabled Modules</h3>
121
  <span style="float:right;margin-right:92px;margin-top:-34px;">
122
- <a href="#" id='checkallModules' value = 'Check All' name='checkallModules' onclick="selectModules(this.id);">Check All</a>
123
  </span>
124
  <span style="float:right;margin-right:5px;margin-top:-34px;">
125
- <a href="#" id='uncheckallModules' name='checkallModules' value = 'Un Check All' onclick='selectModules(this.id);'> / Uncheck All</a>
126
  </span>
127
  </div>
128
  <div id="data">
129
  <table>
130
  <tr><td>
131
- <h3 id="innertitle">Post</h3>
132
  <label>
133
- <div>Enables to import posts with custompost and customfields.</div>
134
- <div>Enable to import posts with attributes from csv.</div>
135
  </label>
136
  </td><td>
137
  </td><td style="width:112px">
138
- <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>
139
  <input type="hidden" name="post" id="post" value="post" />
140
- <label id="nopostlabel" class="<?php echo $skinnyData['nopost']; ?>"><input type='checkbox' name='post' onclick="postsetting(this.id);" checked disabled style="display:none">Disable</label>
141
  </td></tr>
142
  <tr><td>
143
- <h3 id="innertitle">Page</h3>
144
- <label><div>Enables to import pages with custompost and customfields.</div>
145
- <div>Enable to import pages with attributes from csv.</div></label>
146
  </td><td>
147
  </td><td style="width:112px">
148
- <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>
149
  <input type="hidden" name="page" id="page" value="page" />
150
- <label id="nopagelabel" class="<?php echo $skinnyData['nopage']; ?>"><input type='checkbox' name='page' style="display:none" onclick="pagesetting(this.id);" checked disabled >Disable</label>
151
  </td></tr>
152
  <tr><td>
153
- <h3 id="innertitle">Users</h3>
154
- <label>Enable to import users with attributes from csv.</label>
155
  </td><td>
156
  </td><td style="width:112px">
157
- <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>
158
- <label id="nouserlabel" class="<?php echo $skinnyData['nousers']; ?>" ><input type='checkbox' name='users' style="display:none" onclick="usersetting(this.id);" >Disable</label>
159
  </td></tr>
160
  <tr><td>
161
- <h3 id="innertitle">Comments</h3>
162
- <label><div>Enables to import posts with custompost and customfields.</div>
163
- <div>Enable to import comments for post ids from csv.</div>
164
  </label>
165
  </td><td>
166
  </td><td style="width:112px">
167
- <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>
168
- <label id="nocommentslabel" class="<?php echo $skinnyData['nocomments']; ?>"><input type='checkbox' name='comments' style="display:none" onclick="commentsetting(this.id);" >Disable </label>
169
  </td></tr>
170
  <tr><td>
171
- <h3 id="innertitle">Custom Post</h3>
172
- <label><div>Enables to import Customposts.</div>
173
- <div>Enable to import custom posts with attributes from csv</div></label></td><td>
174
  </td><td style="width:112px">
175
- <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>
176
  <input type="hidden" name="custompost" id="custompost" value="custompost" />
177
- <label id="nocplabel" class="<?php echo $skinnyData['nocustompost']; ?>"><input type='checkbox' name='custompost' style="display:none" onclick="cpsetting(this.id);" checked disabled >Disable</label>
178
  </td></tr>
179
  <tr><td>
180
- <h3 id="innertitle">Custom Taxonomy</h3>
181
- <label><div>Enables to import Custom taxonomy.</div>
182
- <div>Enable to import nested custom taxonomies with description and slug for each from csv</div></label>
183
  </td><td>
184
  </td><td style="width:112px">
185
- <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>
186
- <label id="nocustaxlabel" class="<?php echo $skinnyData['nocustomtaxonomy']; ?>" ><input type='checkbox' name='customtaxonomy' style="display:none" onclick="check_if_avail(this.name);" >Disable</label>
187
  </td></tr>
188
  <tr><td>
189
- <h3 id="innertitle">Categories/Tags</h3>
190
- <label><div>Enables to import Categories.</div>
191
- <div>Enable to import nested categories with description and slug for each from csv.</div></label></td><td>
192
  </td><td style="width:112px">
193
- <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>
194
- <label id="nocatlabel" class="<?php echo $skinnyData['nocategories']; ?>"><input type='checkbox' name='categories' style="display:none" onclick="check_if_avail(this.name);" >Disable</label>
195
  </td></tr>
196
  <tr><td>
197
- <h3 id="innertitle">Customer Reviews</h3>
198
- <label><div>Enables to import Customer reviews.</div>
199
- <div>Enable to import customer reviews with attributes from csv.</div></label></td><td>
200
  </td><td style="width:112px">
201
- <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>
202
- <label id="nocustrevlabel" class="<?php echo $skinnyData['nocustomerreviews'];?>" ><input type ='checkbox' name = 'rcustomfield' style="display:none" onclick="check_if_avail(this.name);" >Disable</label>
203
  <span id="pluginavail" class="moduleavail <?php echo $skinnyData['customerreviewstd'] ?>"> </span>
204
  </td></tr>
205
  </tbody></table><br />
206
- <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>
207
  </div>
208
  </div>
209
  <!--div-2 -->
210
  <div id="section2" class="custompost" style="display:none;">
211
  <div class="title" class="databorder" >
212
- <h3>Custom Posts & Taxonomy </h3>
213
  </div>
214
  <div id="data">
215
  <table>
216
  <tbody>
217
  <tr><td>
218
- <h3 id="innertitle" >Default</h3>
219
- <label>Custom post types that are coded within wordpress codex apart from plugins.</label>
220
  </td><td>
221
  <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>
222
  </td></tr>
223
  <tr><td>
224
- <h3 id="innertitle">Custom Post Type UI</h3>
225
- <label>Import support for Custom Post Type UI data.</label></td><td>
226
  <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>
227
  <div id="pluginavail" class="<?php echo $skinnyData['cptutd'] ?>"> </div>
228
  </td></tr>
229
  <tr><td>
230
- <h3 id="innertitle">Types Custom Posts & Taxonomy</h3>
231
- <label>Import support for Types Custom Post Type and taxonomies data.</label> </td><td>
232
  <label id="custompostsetting3" class="<?php echo $skinnyData['cctm'];?>" >
233
  <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>
234
  <div id="pluginavail" class="<?php echo $skinnyData['wptypestd'] ?>"> </div>
235
  </td></tr>
236
  <tr><td>
237
- <h3 id="innertitle">CCTM Custom Posts</h3>
238
- <label>Import support for CCTM Custom Posts from csv.</label> </td><td>
239
  <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>
240
  <div id="pluginavail" class="<?php echo $skinnyData['cctmtd'] ?>"> </div>
241
  </td></tr>
242
  <tr><td>
243
- <h3 id="innertitle">PODS Custom Posts & Taxonomy</h3>
244
- <label>Import support for PODS Custom Posts.</label> </td><td>
245
  <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>
246
  <div id="pluginavail" class="<?php echo $skinnyData['podstd'] ?>"> </div>
247
  </td></tr>
@@ -252,45 +252,45 @@ global $wpdb; ?>
252
  <!--div-3-->
253
  <div id="section3" class="Customfields" style="display:none;">
254
  <div class="title">
255
- <h3>Custom Fields</h3>
256
- <span id="resetcustfield"><a id="resetopt" href="#" value="reset" name="resetcustfield" onclick="resetOption(this.id);">Reset Custom Field</a> </span>
257
  </div>
258
  <div id="data" class="databorder custom-fields" >
259
  <table>
260
  <tbody>
261
  <tr><td>
262
- <h3 id="innertitle">WP-Members for Users</h3>
263
- <label>Enable to add import support WP-Members user fields.</label> </td><td>
264
- <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>
265
- <label id="wpuseruncheck" class="<?php echo $skinnyData['uncheckuser'];?>" ><input type ='radio' name = 'rwpmembers' style="display:none" onclick="check_if_avail(this.id);" >Disabled</label>
266
  </td></tr>
267
  <tr><td>
268
- <h3 id="innertitle">WP e-Commerce Custom Fields </h3>
269
- <label>Enable to add import support for WP e-Commerce custom fields.</label> </td>
270
  <td style="padding-left: 20px;">
271
  <input type='checkbox' name='recommerce' id='wpcommerce' value='wpcommerce' <?php echo $skinnyData['wpcommerce']; ?> class = 'ecommerce' onclick='check_if_avail(this.id);'>
272
  </td></tr>
273
  <tr><td>
274
- <h3 id="innertitle">ACF Custom Fields</h3>
275
- <label>Enable to add import support for ACF Custom Fields.</label> </td><td>
276
  <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>
277
  <div id="pluginavail" class="<?php echo $skinnyData['acftd'] ?>"> </div>
278
  </td></tr>
279
  <tr><td>
280
- <h3 id="innertitle">CCTM Custom Fields</h3>
281
- <label>Enable to add import support for CCTM Custom Fields.</label> </td><td>
282
  <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>
283
  <div id="pluginavail" class="<?php echo $skinnyData['cctmtd'] ?>"> </div>
284
  </td></tr>
285
  <tr><td>
286
- <h3 id="innertitle">Types Custom Fields</h3>
287
- <label>Enable to add import support for Types custom fields.</label> </td><td>
288
  <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>
289
  <div id="pluginavail" class="<?php echo $skinnyData['wptypestd'] ?>"> </div>
290
  </td></tr>
291
  <tr><td>
292
- <h3 id="innertitle">PODS Custom Fields </h3>
293
- <label>Enable to add import support for PODS custom fields.</label> </td><td>
294
  <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>
295
  <div id="pluginavail" class="<?php echo $skinnyData['podstd'] ?>"> </div>
296
  </td></tr>
@@ -301,38 +301,38 @@ global $wpdb; ?>
301
  <!--div-4 -->
302
  <div id="section4" class="ecommercesettings" style="display:none;">
303
  <div class="title">
304
- <h3>Ecommerce Settings</h3>
305
  </div>
306
  <div id="data" class="databorder" >
307
  <table>
308
  <tbody>
309
  <tr><td>
310
- <h3 id="innertitle">None</h3>
311
- <label>Ecommerce import is disabled.</label> </td><td>
312
  <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>
313
  </td></tr>
314
  <tr><td>
315
- <h3 id="innertitle">Eshop </h3>
316
- <label>Enable ecommerce import for Eshop.</label> </td><td>
317
  <label id="ecommercesetting2" class="<?php echo $skinnyData['eshop']; ?>">
318
  <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>
319
  <div id="pluginavail" class="<?php echo $skinnyData['eshoptd'] ?>"> </div>
320
  </td></tr>
321
  <tr><td>
322
- <h3 id="innertitle">Marketpress Lite</h3>
323
- <label>Enable ecommerce import for marketpress Lite.</label> </td><td>
324
  <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>
325
  <div id="pluginavail" class="<?php echo $skinnyData['marketpresslitetd'] ?>"> </div>
326
  </td></tr>
327
  <tr><td>
328
- <h3 id="innertitle">Woocommerce </h3>
329
- <label>Enable ecommerce import for Woocommerce.</label> </td><td>
330
  <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>
331
  <div id="pluginavail" class="<?php echo $skinnyData['woocomtd'] ?>"> </div>
332
  </td></tr>
333
  <tr><td>
334
- <h3 id="innertitle"> WP e-Commerce</h3>
335
- <label>Enable ecommerce import for WP e-Commerce.</label> </td><td>
336
  <label id="ecommercesetting5" class="<?php echo $skinnyData['wpcommerce']; ?>">
337
  <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>
338
  <div id="pluginavail" class="<?php echo $skinnyData['wpcomtd'] ?>"> </div>
@@ -344,25 +344,25 @@ global $wpdb; ?>
344
  <!--div-5-->
345
  <div id="section5" class="seosettings" style="display:none;">
346
  <div class="title">
347
- <h3>SEO Settings</h3>
348
  </div>
349
  <div id="data" class="databorder" >
350
  <table>
351
  <tbody>
352
  <tr><td>
353
- <h3 id="innertitle">None</h3>
354
- <label>SEO Meta import is disabled.</label> </td><td>
355
  <label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php #echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="seosetting(this.id);" style="display:none"><span id="seosetting1text"> <?php echo $skinnyData['none_status']; ?> </span> </label>
356
  </td></tr>
357
  <tr><td>
358
- <h3 id="innertitle">All-in-one SEO </h3>
359
- <label>Enable All-in-one SEO import.</label> </td><td>
360
  <label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> onclick="seosetting(this.id);" style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
361
  <div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
362
  </td></tr>
363
  <tr><td>
364
- <h3 id="innertitle"> Yoast SEO</h3>
365
- <label>Enable Wordpress SEO by Yoast support.</label> </td><td>
366
  <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>
367
  <div id="pluginavail" class="<?php echo $skinnyData['yoasttd'] ?>" > </div>
368
  </td></tr>
@@ -374,17 +374,17 @@ global $wpdb; ?>
374
  <!--div-6-->
375
  <div id="section6" class="additionalfeatures" style="display:none;">
376
  <div class="title">
377
- <h3>Additional Features</h3>
378
  </div>
379
  <div id="data">
380
  <table class="enablefeatures">
381
  <tbody>
382
  <tr><td>
383
  <label class=$automapping>
384
- <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>
385
  </td></tr>
386
  <tr><td>
387
- <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>
388
  </td></tr>
389
  <!--<tr class="databorder"><td>
390
  <label id="align">Export Delimiter
@@ -395,29 +395,29 @@ global $wpdb; ?>
395
  </label>
396
  </td></tr>-->
397
  <tr class="databorder"><td>
398
- <h3 id="innertitle">Debug Mode</h3>
399
- <label>You can enable/disable the debug mode.</label> </td><td>
400
- <label id="debugmode_enable" class="<?php echo $skinnyData['debugmode_enable']; ?>"><input type='radio' name='debug_mode' value='enable_debug' <?php echo $skinnyData['debugmode_enable']; ?> id="enabled" style="display:none" onclick="debugmode_check(this.id);" > On </label>
401
- <label id="debugmode_disable" class="<?php echo $skinnyData['debugmode_disable']; ?>"><input type='radio' name='debug_mode' value='disable_debug' <?php echo $skinnyData['debugmode_disable']; ?> id="disabled" style="display:none" onclick="debugmode_check(this.id);" > Off </label>
402
  </td></tr>
403
  <tr class="databorder"><td>
404
- <h3 id="innertitle">Scheduled log mails</h3>
405
- <label>Enable to get scheduled log mails.</label> </td><td>
406
- <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>
407
- <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>
408
  </td></tr>
409
  <tr><td>
410
- <h3 id="innertitle">Drop Table</h3>
411
- <label>If enabled plugin deactivation will remove plugin data, this cannot be restored.</label></td>
412
- <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>
413
- <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>
414
  </td></tr>
415
  <tr><td>
416
- <h3 id="innertitle" >Category Icons:</h3>
417
- <label>Enable to import category icons for category.</label>
418
  </td><td>
419
- <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>
420
- <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>
421
  </td>
422
  </tr>
423
  </tbody>
@@ -427,52 +427,52 @@ global $wpdb; ?>
427
  <!--div-7-->
428
  <div id="section7" class="databaseoptimization" style="display:none;">
429
  <div class="title">
430
- <h3>Database Optimization <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/pro_icon.gif" title='PRO Feature' /></h3>
431
  <span style="float:right;margin-right:168px;margin-top:-35px;">
432
- <a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> Check All </a>
433
  </span>
434
  <span style="float:right;margin-right:81px;margin-top:-35px;">
435
- <a id="uncheckOpt" onclick="check_if_avail(this.id);" href="#"> / Uncheck All </a>
436
  </span>
437
  </div>
438
  <div id="data" class="database">
439
  <table class="databaseoptimization">
440
  <tbody>
441
  <tr><td>
442
- <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>
443
  </td><td>
444
- <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>
445
  </td></tr>
446
  <tr><td>
447
- <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>
448
  </td><td>
449
- <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>
450
  </td></tr>
451
  <tr><td>
452
- <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>
453
  </td><td>
454
- <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>
455
  </td></tr>
456
  <tr><td>
457
- <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>
458
  </td><td>
459
- <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>
460
  </td></tr>
461
  <tr><td>
462
- <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>
463
  </td><td>
464
- <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>
465
  </td></tr>
466
  </tbody>
467
  </table>
468
  <div style="float:right;padding:17px;margin-top:-2px;">
469
- <input id="database_optimization" class="action btn btn-warning" type="button" onclick="check_if_avail();" value="Run DB Optimizer" name="database_optimization">
470
  </div>
471
  <div id="optimizelog" style="margin-top:40px;display:none;">
472
- <h4>Database Optimization Log</h4>
473
  <div id="optimizationlog" class="optimizerlog">
474
  <div id="log" class="log">
475
- <p style="margin:15px;color:red;" id="align">NO LOGS YET NOW.</p>
476
  </div>
477
  </div>
478
  </div>
@@ -481,78 +481,78 @@ global $wpdb; ?>
481
  <!--div-8-->
482
  <div id="section8" class="securityperformance" style="display:none;">
483
  <div class="title">
484
- <h3>Security and Performance</h3>
485
  </div>
486
  <div id="data" class="databorder security-perfoemance" >
487
  <table class="securityfeatures">
488
  <tr><td>
489
- <h3 id="innertitle">Allow authors/editors to import</h3>
490
- <label><div>It helps authors/editors can import using importer.</div>
491
- <div>It does not support users.</div></label></td><td>
492
 
493
  <!--<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>-->
494
 
495
 
496
- <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>
497
- <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>
498
  </td></tr>
499
  </table>
500
  <table class="table table-striped">
501
  <tr><th colspan="3" >
502
- <h3 id="innertitle">Minimum required php.ini values (Ini configured values)</h3>
503
  </th></tr>
504
  <tr><th>
505
- <label>Variables</label>
506
  </th><th class='ini-configured-values'>
507
- <label>System values</label>
508
  </th><th class='min-requirement-values'>
509
- <label>Minimum Requirements</label>
510
  </th></tr>
511
- <tr><td>post_max_size </td><td class='ini-configured-values'><?php echo ini_get('post_max_size') ?></td><td class='min-requirement-values'>10M</td></tr>
512
- <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>
513
- <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>
514
- <tr><td>upload_max_filesize </td><td class='ini-configured-values'><?php echo ini_get('upload_max_filesize') ?></td><td class='min-requirement-values'>2M</td></tr>
515
- <tr><td>file_uploads </td><td class='ini-configured-values'><?php echo ini_get('file_uploads') ?></td><td class='min-requirement-values'>1</td></tr>
516
- <tr><td>allow_url_fopen </td><td class='ini-configured-values'><?php echo ini_get('allow_url_fopen') ?></td><td class='min-requirement-values'>1</td></tr>
517
- <tr><td>max_execution_time </td><td class='ini-configured-values'><?php echo ini_get('max_execution_time') ?></td><td class='min-requirement-values'>3000</td></tr>
518
- <tr><td>max_input_time </td><td class='ini-configured-values'><?php echo ini_get('max_input_time') ?></td><td class='min-requirement-values'>3000</td></tr>
519
- <tr><td>max_input_vars </td><td class='ini-configured-values'><?php echo ini_get('max_input_vars') ?></td><td class='min-requirement-values'>3000</td></tr>
520
- <tr><td>memory_limit </td><td class='ini-configured-values'><?php echo ini_get('memory_limit') ?></td><td class='min-requirement-values'>99M</td></tr>
521
  </table>
522
- <h3 id="innertitle" colspan="2" >Required Loaders and Extentions:</h3>
523
  <table class="table table-striped">
524
  <?php $loaders_extensions = get_loaded_extensions();
525
  if(function_exists('apache_get_modules'))
526
  $mod_security = apache_get_modules();
527
  ?>
528
- <tr><td>IonCube Loader </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
529
- echo '<label style="color:green;">Yes</label>';
530
  } else {
531
- echo '<label style="color:red;">No</label>';
532
  } ?> </td><td></td></tr>
533
  <tr><td>PDO </td><td><?php if(in_array('PDO', $loaders_extensions)) {
534
- echo '<label style="color:green;">Yes</label>';
535
  } else {
536
- echo '<label style="color:red;">No</label>';
537
  } ?></td><td></td></tr>
538
- <tr><td>Curl </td><td><?php if(in_array('curl', $loaders_extensions)) {
539
- echo '<label style="color:green;">Yes</label>';
540
  } else {
541
- echo '<label style="color:red;">No</label>';
542
  } ?></td><td></td></tr>
543
- <tr><td>Mod Security </td><td><?php if(isset($mod_security) && in_array('mod_security.c', $mod_security)) {
544
- echo '<label style="color:green;">Yes</label>';
545
  } else {
546
- echo '<label style="color:red;">No</label>';
547
  } ?></td><td>
548
  <div style='float:left'>
549
  <a href="#" class="tooltip">
550
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-left:-74px;"/>
551
  <span style="margin-left:20px;margin-top:-10px;width:150px;">
552
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif"/>
553
- <strong>htaccess settings:</strong>
554
- <p>Locate the .htaccess file in Apache web root,if not create a new file named .htaccess and add the following:</p>
555
- <b><?php echo '<IfModule mod_security.c>';?> SecFilterEngine Off SecFilterScanPOST Off <?php echo ' </IfModule>';?></b>
556
 
557
  </span>
558
  </a>
@@ -560,34 +560,34 @@ global $wpdb; ?>
560
  </td></tr>
561
 
562
  </table>
563
- <h3 id="innertitle" colspan="2" >Debug Information:</h3>
564
  <table class="table table-striped">
565
- <tr><td class='debug-info-name'>WordPress Version</td><td><?php echo $wp_version; ?></td><td></td></tr>
566
- <tr><td class='debug-info-name'>PHP Version</td><td><?php echo phpversion(); ?></td><td></td></tr>
567
- <tr><td class='debug-info-name'>MySQL Version</td><td><?php echo $wpdb->db_version(); ?></td><td></td></tr>
568
- <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>
569
- <tr><td class='debug-info-name'>WPDB Prefix</td><td><?php echo $wpdb->prefix; ?></td><td></td></tr>
570
- <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>
571
- <tr><td class='debug-info-name'>WP Memory Limit</td><td><?php echo (int) ini_get('memory_limit'); ?></td><td></td></tr>
572
  </table>
573
  </div>
574
  </div>
575
  <div id="section9" class="documentation" style="display:none;">
576
  <div class="title">
577
- <h3>Documentation</h3>
578
  </div>
579
  <div id="data">
580
  <div id="video">
581
  <iframe width="560" height="315" src="//www.youtube.com/embed/FhTUXE5zk0o?list=PL2k3Ck1bFtbRli9VdJaqwtzTSzzkOrH4j" frameborder="0" allowfullscreen></iframe>
582
  </div>
583
  <div id="relatedpages">
584
- <h2 id="doctitle">Smackcoders Guidelines </h2 >
585
- <p> <a href="https://www.smackcoders.com/blog/category/web-development-news/" target="_blank"> Development News </a> </p>
586
- <p> <a href="http://www.wpultimatecsvimporter.com/" target="_blank"> Whats New? </a> </p>
587
- <p> <a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Pro" target="_blank"> Documentation </a> </p>
588
- <p> <a href="https://www.smackcoders.com/blog/csv-importer-a-simple-and-easy-csv-importer-tutorial.html" target="_blank"> Tutorials </a> </p>
589
- <p> <a href="http://www.youtube.com/user/smackcoders/channels" target="_blank"> Youtube Channel </a> </p>
590
- <p> <a href="https://www.smackcoders.com/store/products-46/wordpress.html" target="_blank"> Other Plugins </a> </p>
591
  </div>
592
  </div>
593
  </div>
@@ -600,7 +600,7 @@ global $wpdb; ?>
600
  <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>
601
  </span>-->
602
  <span style="float:right" >
603
- <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>
604
  </span>
605
  </div>
606
  </form>
39
  if(! wp_verify_nonce($nonce_Key, 'smack_nonce'))
40
  die('You are not allowed to do this operation.Please contact your admin.');
41
  ?>
42
+ <div style ='text-align:center;margin:0;color:red;font-size:smaller;'> <?php echo __('Your Required Settings Configuration Please Select Security and Performance tab',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </div></br>
43
  <div id="ShowMsg" style="display:none;"><p id="warning-msg" class="alert alert-warning"><?php echo $skinnyData['plugStatus'];?></p></div>
44
  <?php if(isset($skinnyData['savesettings']) && $skinnyData['savesettings'] == 'done'){ ?>
45
+ <div id="deletesuccess"><p class="alert alert-success"><?php echo __('Settings Saved',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></p></div>
46
  <?php
47
  $skinnyData['savesettings'] == 'notdone';
48
  ?>
60
  <form class="add:the-list: validate" action="" name="importerSettings" method="post" enctype="multipart/form-data">
61
  <div id="settingheader">
62
  <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>
63
+ <span><label id="activemenu"><?php echo __('General Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label></span>
64
+ <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"><?php echo __('Save Changes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </button>
65
  </div>
66
  <div id="settingsholder">
67
  <div id="sidebar">
68
  <ul>
69
  <li id="1" class="bg-sidebar selected" onclick="showsettingsoption(this.id);">
70
  <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>
71
+ <span id="settingmenu1" ><?php echo __('General Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
72
  <span id="arrow1" class="list-arrow"></span>
73
  </li>
74
  <li id="2" class="bg-sidebar" onclick="showsettingsoption(this.id);">
75
  <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>
76
+ <span id="settingmenu2" ><?php echo __('Custom Posts & Taxonomy',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
77
  <span id="arrow2" class="list-arrow" style="display:none;" ></span>
78
  </li>
79
  <li id="3" class="bg-sidebar" onclick="showsettingsoption(this.id);">
80
  <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>
81
+ <span id="settingmenu3" ><?php echo __('Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
82
  <span id="arrow3" class="list-arrow" style="display:none;" ></span>
83
  </li>
84
  <li id="4" class="bg-sidebar" onclick="showsettingsoption(this.id);">
85
  <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>
86
+ <span id="settingmenu4" ><?php echo __('Ecommerce Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
87
  <span id="arrow4" class="list-arrow" style="display:none;" ></span>
88
  </li>
89
  <li id="5" class="bg-sidebar" onclick="showsettingsoption(this.id);">
90
  <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>
91
+ <span id="settingmenu5" ><?php echo __('SEO Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
92
  <span id="arrow5" class="list-arrow" style="display:none;" ></span>
93
  </li>
94
  <li id="6" class="bg-sidebar" onclick="showsettingsoption(this.id);">
95
  <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>
96
+ <span id="settingmenu6" ><?php echo __('Additional Features',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
97
  <span id="arrow6" class="list-arrow" style="display:none;" ></span>
98
  </li>
99
  <li id="7" class="bg-sidebar" onclick="showsettingsoption(this.id);">
100
  <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>
101
+ <span id="settingmenu7" ><?php echo __('Database Optimization',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
102
  <span id="arrow7" class="list-arrow" style="display:none;" ></span>
103
  </li>
104
  <li id="8" class="bg-sidebar" onclick="showsettingsoption(this.id);">
105
  <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>
106
+ <span id="settingmenu8" ><?php echo __('Security and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
107
  <span id="arrow8" class="list-arrow" style="display:none;" ></span>
108
  </li>
109
  <!--<li id="9" class="bg-sidebar" onclick="showsettingsoption(this.id);">
117
  <!-- div-1-->
118
  <div id="section1" class="generalsettings">
119
  <div class="title">
120
+ <h3><?php echo __('Enabled Modules',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
121
  <span style="float:right;margin-right:92px;margin-top:-34px;">
122
+ <a href="#" id='checkallModules' title = <?php echo __('Check All',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>value = 'Check All' name='checkallModules' onclick="selectModules(this.id);"><?php echo $impCE->reduceStringLength(__('Check All',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Check All'); ?></a>
123
  </span>
124
  <span style="float:right;margin-right:5px;margin-top:-34px;">
125
+ <a href="#" id='uncheckallModules' name='checkallModules' title = <?php echo __('Uncheck All',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> value = 'Un Check All' onclick='selectModules(this.id);'> / <?php echo $impCE->reduceStringLength(__('Uncheck All',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Uncheck All'); ?></a>
126
  </span>
127
  </div>
128
  <div id="data">
129
  <table>
130
  <tr><td>
131
+ <h3 id="innertitle"><?php echo __('Post',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
132
  <label>
133
+ <div><?php echo __('Enables to import posts with custompost and customfields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
134
+ <div><?php echo __('Enable to import posts with attributes from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
135
  </label>
136
  </td><td>
137
  </td><td style="width:112px">
138
+ <label id="postlabel" title="<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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"><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?></label>
139
  <input type="hidden" name="post" id="post" value="post" />
140
+ <label id="nopostlabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nopost']; ?>"><input type='checkbox' name='post' onclick="postsetting(this.id);" checked disabled style="display:none"><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
141
  </td></tr>
142
  <tr><td>
143
+ <h3 id="innertitle"><?php echo __('Page',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
144
+ <label><div><?php echo __('Enables to import pages with custompost and customfields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
145
+ <div><?php echo __('Enable to import pages with attributes from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></label>
146
  </td><td>
147
  </td><td style="width:112px">
148
+ <label id="pagelabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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 ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?></label>
149
  <input type="hidden" name="page" id="page" value="page" />
150
+ <label id="nopagelabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nopage']; ?>"><input type='checkbox' name='page' style="display:none" onclick="pagesetting(this.id);" checked disabled ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
151
  </td></tr>
152
  <tr><td>
153
+ <h3 id="innertitle"><?php echo __('Users',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
154
+ <label><?php echo __('Enable to import users with attributes from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
155
  </td><td>
156
  </td><td style="width:112px">
157
+ <label id="userlabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);" ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?></label>
158
+ <label id="nouserlabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nousers']; ?>" ><input type='checkbox' name='users' style="display:none" onclick="usersetting(this.id);" ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
159
  </td></tr>
160
  <tr><td>
161
+ <h3 id="innertitle"><?php echo __('Comments',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
162
+ <label><div><?php echo __('Enables to import posts with custompost and customfields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
163
+ <div><?php echo __('Enable to import comments for post ids from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
164
  </label>
165
  </td><td>
166
  </td><td style="width:112px">
167
+ <label id="commentslabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);" ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?> </label>
168
+ <label id="nocommentslabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nocomments']; ?>"><input type='checkbox' name='comments' style="display:none" onclick="commentsetting(this.id);" ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?> </label>
169
  </td></tr>
170
  <tr><td>
171
+ <h3 id="innertitle"><?php echo __('Custom Post',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
172
+ <label><div><?php echo __('Enables to import Customposts.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
173
+ <div><?php echo __('Enable to import custom posts with attributes from csv',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></label></td><td>
174
  </td><td style="width:112px">
175
+ <label id="cplabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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 ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?> </label>
176
  <input type="hidden" name="custompost" id="custompost" value="custompost" />
177
+ <label id="nocplabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nocustompost']; ?>"><input type='checkbox' name='custompost' style="display:none" onclick="cpsetting(this.id);" checked disabled ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
178
  </td></tr>
179
  <tr><td>
180
+ <h3 id="innertitle"><?php echo __('Custom Taxonomy',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
181
+ <label><div><?php echo __('Enables to import Custom taxonomy.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
182
+ <div><?php echo __('Enable to import nested custom taxonomies with description and slug for each from csv',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></label>
183
  </td><td>
184
  </td><td style="width:112px">
185
+ <label id="custaxlabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);" ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?></label>
186
+ <label id="nocustaxlabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nocustomtaxonomy']; ?>" ><input type='checkbox' name='customtaxonomy' style="display:none" onclick="check_if_avail(this.name);" ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
187
  </td></tr>
188
  <tr><td>
189
+ <h3 id="innertitle"><?php echo __('Categories/Tags',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
190
+ <label><div><?php echo __('Enables to import Categories.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
191
+ <div><?php echo __('Enable to import nested categories with description and slug for each from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></label></td><td>
192
  </td><td style="width:112px">
193
+ <label id="catlabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);" ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?></label>
194
+ <label id="nocatlabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nocategories']; ?>"><input type='checkbox' name='categories' style="display:none" onclick="check_if_avail(this.name);" ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
195
  </td></tr>
196
  <tr><td>
197
+ <h3 id="innertitle"><?php echo __('Customer Reviews',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
198
+ <label><div><?php echo __('Enables to import Customer reviews.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
199
+ <div><?php echo __('Enable to import customer reviews with attributes from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></label></td><td>
200
  </td><td style="width:112px">
201
+ <label id="custrevlabel" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);" ><?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?></label>
202
+ <label id="nocustrevlabel" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['nocustomerreviews'];?>" ><input type ='checkbox' name = 'rcustomfield' style="display:none" onclick="check_if_avail(this.name);" ><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
203
  <span id="pluginavail" class="moduleavail <?php echo $skinnyData['customerreviewstd'] ?>"> </span>
204
  </td></tr>
205
  </tbody></table><br />
206
+ <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",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
207
  </div>
208
  </div>
209
  <!--div-2 -->
210
  <div id="section2" class="custompost" style="display:none;">
211
  <div class="title" class="databorder" >
212
+ <h3><?php echo __('Custom Posts & Taxonomy',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h3>
213
  </div>
214
  <div id="data">
215
  <table>
216
  <tbody>
217
  <tr><td>
218
+ <h3 id="innertitle" ><?php echo __('Default',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
219
+ <label><?php echo __('Custom post types that are coded within wordpress codex apart from plugins.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
220
  </td><td>
221
  <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>
222
  </td></tr>
223
  <tr><td>
224
+ <h3 id="innertitle"><?php echo __('Custom Post Type UI',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
225
+ <label><?php echo __('Import support for Custom Post Type UI data.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label></td><td>
226
  <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>
227
  <div id="pluginavail" class="<?php echo $skinnyData['cptutd'] ?>"> </div>
228
  </td></tr>
229
  <tr><td>
230
+ <h3 id="innertitle"><?php echo __('Types Custom Posts & Taxonomy',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
231
+ <label><?php echo __('Import support for Types Custom Post Type and taxonomies data.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
232
  <label id="custompostsetting3" class="<?php echo $skinnyData['cctm'];?>" >
233
  <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>
234
  <div id="pluginavail" class="<?php echo $skinnyData['wptypestd'] ?>"> </div>
235
  </td></tr>
236
  <tr><td>
237
+ <h3 id="innertitle"><?php echo __('CCTM Custom Posts',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
238
+ <label><?php echo __('Import support for CCTM Custom Posts from csv.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
239
  <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>
240
  <div id="pluginavail" class="<?php echo $skinnyData['cctmtd'] ?>"> </div>
241
  </td></tr>
242
  <tr><td>
243
+ <h3 id="innertitle"><?php echo __('PODS Custom Posts & Taxonomy',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
244
+ <label><?php echo __('Import support for PODS Custom Posts.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
245
  <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>
246
  <div id="pluginavail" class="<?php echo $skinnyData['podstd'] ?>"> </div>
247
  </td></tr>
252
  <!--div-3-->
253
  <div id="section3" class="Customfields" style="display:none;">
254
  <div class="title">
255
+ <h3><?php echo __('Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
256
+ <span id="resetcustfield"><a id="resetopt" href="#" value="reset" name="resetcustfield" onclick="resetOption(this.id);"><?php echo __('Reset Custom Field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></a> </span>
257
  </div>
258
  <div id="data" class="databorder custom-fields" >
259
  <table>
260
  <tbody>
261
  <tr><td>
262
+ <h3 id="innertitle"><?php echo __('WP-Members for Users',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
263
+ <label><?php echo __('Enable to add import support WP-Members user fields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
264
+ <label id="wpusercheck" title = "<?php echo __('Enabled',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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"><?php echo $impCE->reduceStringLength(__('Enabled',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enabled'); ?></span></label>
265
+ <label id="wpuseruncheck" title = "<?php echo __('Disabled',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['uncheckuser'];?>" ><input type ='radio' name = 'rwpmembers' style="display:none" onclick="check_if_avail(this.id);" ><?php echo $impCE->reduceStringLength(__('Disabled',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disabled'); ?></label>
266
  </td></tr>
267
  <tr><td>
268
+ <h3 id="innertitle"><?php echo __('WP e-Commerce Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h3>
269
+ <label><?php echo __('Enable to add import support for WP e-Commerce custom fields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td>
270
  <td style="padding-left: 20px;">
271
  <input type='checkbox' name='recommerce' id='wpcommerce' value='wpcommerce' <?php echo $skinnyData['wpcommerce']; ?> class = 'ecommerce' onclick='check_if_avail(this.id);'>
272
  </td></tr>
273
  <tr><td>
274
+ <h3 id="innertitle"><?php echo __('ACF Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
275
+ <label><?php echo __('Enable to add import support for ACF Custom Fields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
276
  <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>
277
  <div id="pluginavail" class="<?php echo $skinnyData['acftd'] ?>"> </div>
278
  </td></tr>
279
  <tr><td>
280
+ <h3 id="innertitle"><?php echo __('CCTM Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
281
+ <label><?php echo __('Enable to add import support for CCTM Custom Fields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
282
  <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>
283
  <div id="pluginavail" class="<?php echo $skinnyData['cctmtd'] ?>"> </div>
284
  </td></tr>
285
  <tr><td>
286
+ <h3 id="innertitle"><?php echo __('Types Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
287
+ <label><?php echo __('Enable to add import support for Types custom fields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
288
  <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>
289
  <div id="pluginavail" class="<?php echo $skinnyData['wptypestd'] ?>"> </div>
290
  </td></tr>
291
  <tr><td>
292
+ <h3 id="innertitle"><?php echo __('PODS Custom Fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h3>
293
+ <label><?php echo __('Enable to add import support for PODS custom fields.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
294
  <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>
295
  <div id="pluginavail" class="<?php echo $skinnyData['podstd'] ?>"> </div>
296
  </td></tr>
301
  <!--div-4 -->
302
  <div id="section4" class="ecommercesettings" style="display:none;">
303
  <div class="title">
304
+ <h3><?php echo __('Ecommerce Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
305
  </div>
306
  <div id="data" class="databorder" >
307
  <table>
308
  <tbody>
309
  <tr><td>
310
+ <h3 id="innertitle"><?php echo __('None',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
311
+ <label><?php echo __('Ecommerce import is disabled.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
312
  <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>
313
  </td></tr>
314
  <tr><td>
315
+ <h3 id="innertitle"><?php echo __('Eshop',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h3>
316
+ <label><?php echo __('Enable ecommerce import for Eshop.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
317
  <label id="ecommercesetting2" class="<?php echo $skinnyData['eshop']; ?>">
318
  <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>
319
  <div id="pluginavail" class="<?php echo $skinnyData['eshoptd'] ?>"> </div>
320
  </td></tr>
321
  <tr><td>
322
+ <h3 id="innertitle"><?php echo __('Marketpress Lite',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
323
+ <label><?php echo __('Enable ecommerce import for marketpress Lite.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
324
  <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>
325
  <div id="pluginavail" class="<?php echo $skinnyData['marketpresslitetd'] ?>"> </div>
326
  </td></tr>
327
  <tr><td>
328
+ <h3 id="innertitle"><?php echo __('Woocommerce',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h3>
329
+ <label><?php echo __('Enable ecommerce import for Woocommerce.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
330
  <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>
331
  <div id="pluginavail" class="<?php echo $skinnyData['woocomtd'] ?>"> </div>
332
  </td></tr>
333
  <tr><td>
334
+ <h3 id="innertitle"> <?php echo __('WP e-Commerce',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
335
+ <label><?php echo __('Enable ecommerce import for WP e-Commerce.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
336
  <label id="ecommercesetting5" class="<?php echo $skinnyData['wpcommerce']; ?>">
337
  <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>
338
  <div id="pluginavail" class="<?php echo $skinnyData['wpcomtd'] ?>"> </div>
344
  <!--div-5-->
345
  <div id="section5" class="seosettings" style="display:none;">
346
  <div class="title">
347
+ <h3><?php echo __('SEO Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
348
  </div>
349
  <div id="data" class="databorder" >
350
  <table>
351
  <tbody>
352
  <tr><td>
353
+ <h3 id="innertitle"><?php echo __('None',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
354
+ <label><?php echo __('SEO Meta import is disabled.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
355
  <label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php #echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="seosetting(this.id);" style="display:none"><span id="seosetting1text"> <?php echo $skinnyData['none_status']; ?> </span> </label>
356
  </td></tr>
357
  <tr><td>
358
+ <h3 id="innertitle"><?php echo __('All-in-one SEO',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h3>
359
+ <label><?php echo __('Enable All-in-one SEO import.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
360
  <label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> onclick="seosetting(this.id);" style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
361
  <div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
362
  </td></tr>
363
  <tr><td>
364
+ <h3 id="innertitle"> <?php echo __('Yoast SEO',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
365
+ <label><?php echo __('Enable Wordpress SEO by Yoast support.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
366
  <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>
367
  <div id="pluginavail" class="<?php echo $skinnyData['yoasttd'] ?>" > </div>
368
  </td></tr>
374
  <!--div-6-->
375
  <div id="section6" class="additionalfeatures" style="display:none;">
376
  <div class="title">
377
+ <h3><?php echo __('Additional Features',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
378
  </div>
379
  <div id="data">
380
  <table class="enablefeatures">
381
  <tbody>
382
  <tr><td>
383
  <label class=$automapping>
384
+ <input type='checkbox' name='automapping' id='automapping' value='automapping' checked disabled onclick="check_if_avail(this.id);" ><span id="align"><?php echo __('Enable Auto Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></label>
385
  </td></tr>
386
  <tr><td>
387
+ <label class=$utfsupport><input type='checkbox' name='rutfsupport' id='utfsupport' value='utfsupport' checked disabled onclick="check_if_avail(this.id);" ><span id="align"><?php echo __('Enable UTF Support',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></label>
388
  </td></tr>
389
  <!--<tr class="databorder"><td>
390
  <label id="align">Export Delimiter
395
  </label>
396
  </td></tr>-->
397
  <tr class="databorder"><td>
398
+ <h3 id="innertitle"><?php echo __('Debug Mode',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
399
+ <label><?php echo __('You can enable/disable the debug mode.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
400
+ <label id="debugmode_enable" class="<?php echo $skinnyData['debugmode_enable']; ?>"><input type='radio' name='debug_mode' value='enable_debug' <?php echo $skinnyData['debugmode_enable']; ?> id="enabled" style="display:none" onclick="debugmode_check(this.id);" > <?php echo __('On',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
401
+ <label id="debugmode_disable" class="<?php echo $skinnyData['debugmode_disable']; ?>"><input type='radio' name='debug_mode' value='disable_debug' <?php echo $skinnyData['debugmode_disable']; ?> id="disabled" style="display:none" onclick="debugmode_check(this.id);" > <?php echo __('Off',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
402
  </td></tr>
403
  <tr class="databorder"><td>
404
+ <h3 id="innertitle"><?php echo __('Scheduled log mails',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
405
+ <label><?php echo __('Enable to get scheduled log mails.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> </td><td>
406
+ <label id="schedulecheck" title = "<?php echo __('Yes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);" > <?php echo $impCE->reduceStringLength(__('Yes',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Yes'); ?> </label>
407
+ <label id="scheduleuncheck" title = "<?php echo __('No',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['schedulenolog']; ?>"><input type='radio' name='send_log_email' id="noscheduled" style="display:none" onclick="check_if_avail(this.id);" > <?php echo $impCE->reduceStringLength(__('No',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'No'); ?> </label>
408
  </td></tr>
409
  <tr><td>
410
+ <h3 id="innertitle"><?php echo __('Drop Table',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
411
+ <label><?php echo __('If enabled plugin deactivation will remove plugin data, this cannot be restored.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label></td>
412
+ <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);" > <?php echo __('On',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
413
+ <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);" > <?php echo __('Off',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
414
  </td></tr>
415
  <tr><td>
416
+ <h3 id="innertitle" ><?php echo __('Category Icons:',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
417
+ <label><?php echo __('Enable to import category icons for category.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
418
  </td><td>
419
+ <label id="catenable" title = "<?php echo __('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);"> <?php echo $impCE->reduceStringLength(__('Enable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Enable'); ?> </label>
420
+ <label id="catdisable" title = "<?php echo __('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);"><?php echo $impCE->reduceStringLength(__('Disable',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Disable'); ?></label>
421
  </td>
422
  </tr>
423
  </tbody>
427
  <!--div-7-->
428
  <div id="section7" class="databaseoptimization" style="display:none;">
429
  <div class="title">
430
+ <h3><?php echo __('Database Optimization',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/pro_icon.gif" title='PRO Feature' /></h3>
431
  <span style="float:right;margin-right:168px;margin-top:-35px;">
432
+ <a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> <?php echo $impCE->reduceStringLength(__('Check All',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Check All'); ?> </a>
433
  </span>
434
  <span style="float:right;margin-right:81px;margin-top:-35px;">
435
+ <a id="uncheckOpt" onclick="check_if_avail(this.id);" href="#"> / <?php echo $impCE->reduceStringLength(__('Uncheck All',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Uncheck All'); ?> </a>
436
  </span>
437
  </div>
438
  <div id="data" class="database">
439
  <table class="databaseoptimization">
440
  <tbody>
441
  <tr><td>
442
+ <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 /></label><td><span id="align"> <?php echo __('Delete all orphaned Post/Page Meta',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
443
  </td><td>
444
+ <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/></label><td><span id="align"> <?php echo __('Delete all unassigned tags',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
445
  </td></tr>
446
  <tr><td>
447
+ <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 /></label><td><span id="align"> <?php echo __('Delete all Post/Page revisions',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
448
  </td><td>
449
+ <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 /></label><td><span id="align"> <?php echo __('Delete all auto drafted Post/Page',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
450
  </td></tr>
451
  <tr><td>
452
+ <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 /></label><td><span id="align"> <?php echo __('Delete all Post/Page in trash',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
453
  </td><td>
454
+ <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 /></label><td><span id="align"> <?php echo __('Delete all Spam Comments',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
455
  </td></tr>
456
  <tr><td>
457
+ <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 /></label><td><span id="align"> <?php echo __('Delete all Comments in trash',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
458
  </td><td>
459
+ <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 /></label><td><span id="align"> <?php echo __('Delete all Unapproved Comments',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
460
  </td></tr>
461
  <tr><td>
462
+ <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 /></label><td><span id="align"> <?php echo __('Delete all Pingback Comments',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
463
  </td><td>
464
+ <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 /> </label><td><span id="align"> <?php echo __('Delete all Trackback Comments',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span></td>
465
  </td></tr>
466
  </tbody>
467
  </table>
468
  <div style="float:right;padding:17px;margin-top:-2px;">
469
+ <input id="database_optimization" class="action btn btn-warning" type="button" onclick="check_if_avail();" value="<?php echo __('Run DB Optimizer',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" name="database_optimization">
470
  </div>
471
  <div id="optimizelog" style="margin-top:40px;display:none;">
472
+ <h4><?php echo __('Database Optimization Log',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h4>
473
  <div id="optimizationlog" class="optimizerlog">
474
  <div id="log" class="log">
475
+ <p style="margin:15px;color:red;" id="align"><?php echo __('NO LOGS YET NOW.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></p>
476
  </div>
477
  </div>
478
  </div>
481
  <!--div-8-->
482
  <div id="section8" class="securityperformance" style="display:none;">
483
  <div class="title">
484
+ <h3><?php echo __('Security and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
485
  </div>
486
  <div id="data" class="databorder security-perfoemance" >
487
  <table class="securityfeatures">
488
  <tr><td>
489
+ <h3 id="innertitle"><?php echo __('Allow authors/editors to import',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
490
+ <label><div><?php echo __('It helps authors/editors can import using importer.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
491
+ <div><?php echo __('It does not support users.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></label></td><td>
492
 
493
  <!--<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>-->
494
 
495
 
496
+ <label id="allowimport" title = "<?php echo __('Check',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" 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);"/><?php echo $impCE->reduceStringLength(__('Check',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Check All'); ?></label>
497
+ <label id="donallowimport" title = "<?php echo __('Uncheck',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" class="<?php echo $skinnyData['noauthorimport']; ?>" > <input type='radio' name='enable_plugin_access_for_author' class="importauthor" style="display:none" onclick="authorimportsetting(this.id);"><?php echo $impCE->reduceStringLength(__('Uncheck',WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Uncheck All'); ?></label>
498
  </td></tr>
499
  </table>
500
  <table class="table table-striped">
501
  <tr><th colspan="3" >
502
+ <h3 id="innertitle"><?php echo __('Minimum required php.ini values (Ini configured values)',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
503
  </th></tr>
504
  <tr><th>
505
+ <label><?php echo __('Variables',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
506
  </th><th class='ini-configured-values'>
507
+ <label><?php echo __('System values',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
508
  </th><th class='min-requirement-values'>
509
+ <label><?php echo __('Minimum Requirements',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
510
  </th></tr>
511
+ <tr><td><?php echo __('post_max_size',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('post_max_size') ?></td><td class='min-requirement-values'>10M</td></tr>
512
+ <tr><td><?php echo __('auto_append_file',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td class='ini-configured-values'>-<?php echo ini_get('auto_append_file') ?></td><td class='min-requirement-values'>-</td></tr>
513
+ <tr><td><?php echo __('auto_prepend_file',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'>-<?php echo ini_get('auto_prepend_file') ?></td><td class='min-requirement-values'>-</td></tr>
514
+ <tr><td><?php echo __('upload_max_filesize',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('upload_max_filesize') ?></td><td class='min-requirement-values'>2M</td></tr>
515
+ <tr><td><?php echo __('file_uploads',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('file_uploads') ?></td><td class='min-requirement-values'>1</td></tr>
516
+ <tr><td><?php echo __('allow_url_fopen',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('allow_url_fopen') ?></td><td class='min-requirement-values'>1</td></tr>
517
+ <tr><td><?php echo __('max_execution_time',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('max_execution_time') ?></td><td class='min-requirement-values'>3000</td></tr>
518
+ <tr><td><?php echo __('max_input_time',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('max_input_time') ?></td><td class='min-requirement-values'>3000</td></tr>
519
+ <tr><td><?php echo __('max_input_vars',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('max_input_vars') ?></td><td class='min-requirement-values'>3000</td></tr>
520
+ <tr><td><?php echo __('memory_limit',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td class='ini-configured-values'><?php echo ini_get('memory_limit') ?></td><td class='min-requirement-values'>99M</td></tr>
521
  </table>
522
+ <h3 id="innertitle" colspan="2" ><?php echo __('Required Loaders and Extentions:',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
523
  <table class="table table-striped">
524
  <?php $loaders_extensions = get_loaded_extensions();
525
  if(function_exists('apache_get_modules'))
526
  $mod_security = apache_get_modules();
527
  ?>
528
+ <tr><td><?php echo __('IonCube Loader',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
529
+ echo '<label style="color:green;">'.__("Yes",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
530
  } else {
531
+ echo '<label style="color:red;">'.__("No",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
532
  } ?> </td><td></td></tr>
533
  <tr><td>PDO </td><td><?php if(in_array('PDO', $loaders_extensions)) {
534
+ echo '<label style="color:green;">'.__("Yes",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
535
  } else {
536
+ echo '<label style="color:red;">'.__("No",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
537
  } ?></td><td></td></tr>
538
+ <tr><td><?php echo __('Curl',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td><?php if(in_array('curl', $loaders_extensions)) {
539
+ echo '<label style="color:green;">'.__('Yes',WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
540
  } else {
541
+ echo '<label style="color:red;">' . __("No",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
542
  } ?></td><td></td></tr>
543
+ <tr><td><?php echo __('Mod Security',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </td><td><?php if(isset($mod_security) && in_array('mod_security.c', $mod_security)) {
544
+ echo '<label style="color:green;">'.__("Yes",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
545
  } else {
546
+ echo '<label style="color:red;">' .__("No",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>';
547
  } ?></td><td>
548
  <div style='float:left'>
549
  <a href="#" class="tooltip">
550
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-left:-74px;"/>
551
  <span style="margin-left:20px;margin-top:-10px;width:150px;">
552
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif"/>
553
+ <strong><?php echo __('htaccess settings:',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
554
+ <p><?php echo __('Locate the .htaccess file in Apache web root,if not create a new file named .htaccess and add the following:',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></p>
555
+ <b><?php echo '<IfModule mod_security.c>';?> <?php echo __('SecFilterEngine Off SecFilterScanPOST Off',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <?php echo ' </IfModule>';?></b>
556
 
557
  </span>
558
  </a>
560
  </td></tr>
561
 
562
  </table>
563
+ <h3 id="innertitle" colspan="2" ><?php echo __('Debug Information:',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
564
  <table class="table table-striped">
565
+ <tr><td class='debug-info-name'><?php echo __('WordPress Version',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo $wp_version; ?></td><td></td></tr>
566
+ <tr><td class='debug-info-name'><?php echo __('PHP Version',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo phpversion(); ?></td><td></td></tr>
567
+ <tr><td class='debug-info-name'><?php echo __('MySQL Version',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo $wpdb->db_version(); ?></td><td></td></tr>
568
+ <tr><td class='debug-info-name'><?php echo __('Server SoftWare',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo $_SERVER[ 'SERVER_SOFTWARE' ]; ?></td><td></td></tr> <tr><td class='debug-info-name'><?php echo __('Your User Agent',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo $_SERVER['HTTP_USER_AGENT']; ?></td><td></td></tr>
569
+ <tr><td class='debug-info-name'><?php echo __('WPDB Prefix',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo $wpdb->prefix; ?></td><td></td></tr>
570
+ <tr><td class='debug-info-name'><?php echo __('WP Multisite Mode',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php if ( is_multisite() ) { echo '<label style="color:green;">'.__("Enabled",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>'; } else { echo '<label style="color:red;">' .__("Disabled",WP_CONST_ULTIMATE_CSV_IMP_SLUG).'</label>'; } ?> </td><td></td></tr>
571
+ <tr><td class='debug-info-name'><?php echo __('WP Memory Limit',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></td><td><?php echo (int) ini_get('memory_limit'); ?></td><td></td></tr>
572
  </table>
573
  </div>
574
  </div>
575
  <div id="section9" class="documentation" style="display:none;">
576
  <div class="title">
577
+ <h3><?php echo __('Documentation',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
578
  </div>
579
  <div id="data">
580
  <div id="video">
581
  <iframe width="560" height="315" src="//www.youtube.com/embed/FhTUXE5zk0o?list=PL2k3Ck1bFtbRli9VdJaqwtzTSzzkOrH4j" frameborder="0" allowfullscreen></iframe>
582
  </div>
583
  <div id="relatedpages">
584
+ <h2 id="doctitle"><?php echo __('Smackcoders Guidelines',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h2 >
585
+ <p> <a href="https://www.smackcoders.com/blog/category/web-development-news/" target="_blank"> <?php echo __('Development News',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
586
+ <p> <a href="http://www.wpultimatecsvimporter.com/" target="_blank"> <?php echo __('Whats New?',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
587
+ <p> <a href="http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Pro" target="_blank"> <?php echo __('Documentation',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
588
+ <p> <a href="https://www.smackcoders.com/blog/csv-importer-a-simple-and-easy-csv-importer-tutorial.html" target="_blank"> <?php echo __('Tutorials',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
589
+ <p> <a href="http://www.youtube.com/user/smackcoders/channels" target="_blank"> <?php echo __('Youtube Channel',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
590
+ <p> <a href="https://www.smackcoders.com/store/products-46/wordpress.html" target="_blank"> <?php echo __('Other Plugins',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
591
  </div>
592
  </div>
593
  </div>
600
  <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>
601
  </span>-->
602
  <span style="float:right" >
603
+ <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"><?php echo __('Save Changes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </button>
604
  </span>
605
  </div>
606
  </form>
modules/support/templates/index.php CHANGED
@@ -43,7 +43,7 @@ $impCE = new WPImporter_includes_helper();
43
 
44
  <div class= "contactus" id="contactus" style="height:480px">
45
  <div class="title">
46
- <h3>Video Walk Through</h3>
47
  </div>
48
  <div id="data" >
49
  <div id="video">
@@ -51,14 +51,14 @@ $impCE = new WPImporter_includes_helper();
51
  </div>
52
 
53
  <div id="relatedpages" style='position:relative;left:630px;bottom:345px;'>
54
- <h2 id="doctitle">Smackcoders Support </h2 >
55
- <p style="line-height:20px;padding-top:20px">Click <a href="https://www.smackcoders.com/blog/category/web-development-news/" target="_blank"> here </a> for Development News </p>
56
- <p style="line-height:20px">View <a href="http://www.wpultimatecsvimporter.com/" target="_blank">Recent News </a> </p>
57
- <p style="line-height:20px">Refer <a href="http://www.wpultimatecsvimporter.com/documentation" target="_blank"> Detailed Document </a> </p>
58
- <p style="line-height:20px">For<a href="https://www.smackcoders.com/blog/csv-importer-a-simple-and-easy-csv-importer-tutorial.html" target="_blank"> Tutorials </a> </p>
59
- <p style="line-height:20px">For <a href="http://www.youtube.com/user/smackcoders/channels" target="_blank"> Youtube Channel </a> </p>
60
- <p style="line-height:20px">To <a href="http://www.wpultimatecsvimporter.com/contact-us" target="_blank">Get Support</a></p>
61
- <p style="line-height:20px">To Know the detail of <a href="https://www.smackcoders.com/store/products-46/wordpress.html" target="_blank"> Other Plugins </a> </p>
62
 
63
  </div>
64
  </div>
43
 
44
  <div class= "contactus" id="contactus" style="height:480px">
45
  <div class="title">
46
+ <h3><?php echo __('Video Walk Through',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
47
  </div>
48
  <div id="data" >
49
  <div id="video">
51
  </div>
52
 
53
  <div id="relatedpages" style='position:relative;left:630px;bottom:345px;'>
54
+ <h2 id="doctitle"><?php echo __('Smackcoders Support',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </h2 >
55
+ <p style="line-height:20px;padding-top:20px"><?php echo __('Click',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <a href="https://www.smackcoders.com/blog/category/web-development-news/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank"> <?php __('here',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></a> <?php echo __('for Development News',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </p>
56
+ <p style="line-height:20px"><?php echo __('View',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <a href="http://www.wpultimatecsvimporter.com/?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank"><?php echo __('Recent News',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></a> </p>
57
+ <p style="line-height:20px"><?php echo __('Refer',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <a href="http://www.wpultimatecsvimporter.com/documentation?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank"><?php echo __('Detailed Document',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></a> </p>
58
+ <p style="line-height:20px"><?php echo __('For',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?><a href="https://www.smackcoders.com/blog/csv-importer-a-simple-and-easy-csv-importer-tutorial.html?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank"> <?php echo __('Tutorials',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
59
+ <p style="line-height:20px"><?php echo __('For',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <a href="http://www.youtube.com/user/smackcoders/channels" target="_blank"> <?php echo __('Youtube Channel',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
60
+ <p style="line-height:20px"><?php echo __('To',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <a href="http://www.wpultimatecsvimporter.com/contact-us" target="_blank"><?php echo __('Get Support',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></a></p>
61
+ <p style="line-height:20px"><?php echo __('To Know the detail of',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <a href="https://www.smackcoders.com/store/products-46/wordpress.html?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic" target="_blank"> <?php echo __('Other Plugins',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </a> </p>
62
 
63
  </div>
64
  </div>
modules/users/templates/index.php CHANGED
@@ -47,7 +47,7 @@ $nonce_Key = $impCE->create_nonce_key();
47
  <table class="table-importer">
48
  <tr>
49
  <td>
50
- <h3>CSV Import Options</h3>
51
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
52
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
53
  if (!is_writable($impCE->getUploadDirectory('default'))) {
@@ -82,16 +82,16 @@ $nonce_Key = $impCE->create_nonce_key();
82
  <tr>
83
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
84
  <select disabled/>
85
- <option value ='select template' /> select template </option>
86
  </select>
87
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
88
  </div>
89
 
90
  </div>
91
  <div style="float:right;">
92
- <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear"); ?>' onclick="Reload();"
93
  class='btn btn-warning' style="margin-right:15px"/>
94
- <input type='submit' name='importfile' id='importfile' value='<?php echo __("Next >>");?>' disabled
95
  class='btn btn-primary' style="margin-right:15px"/>
96
  </div>
97
  </tr>
@@ -185,11 +185,11 @@ $custom_key=array();
185
  $mappingFields_arr = array();
186
  $wpcsvsettings=get_option('wpcsvfreesettings');
187
  ?>
188
- <h3>Map CSV to WP fields/attributes</h3>
189
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings' ) { ?>
190
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
191
  <div class='mappingsection'>
192
- <h2><div class="secondformheader">Import Data Configuration</div></h2>
193
  <div class='importstatus'>
194
  </div>
195
  <div id='mappingheader' class='mappingheader' >
@@ -239,9 +239,9 @@ $allcustomposts.=$value.',';
239
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])) { echo $_REQUEST['step']; } ?>' />
240
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
241
  <input type='button' id='prev_record' name='prev_record' value='<<' class="btn btn-primary" onclick='gotoelement(this.id);' />
242
- <label style="padding-right:10px;" id='preview_of_row'>Showing preview of row # 1</label>
243
  <input type='button' id='next_record' name='next_record' value='>>' class="btn btn-primary" onclick='gotoelement(this.id);' />
244
- <label id="importalign" style="margin-right:8px;"> Go To Row # </label><input type='text' id='goto_element' name='goto_element' />
245
  <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"/>
246
  </div>
247
  </td>
@@ -250,14 +250,14 @@ $allcustomposts.=$value.',';
250
  $count = 0;
251
  $usersObj = new UsersActions();
252
  ?>
253
- <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>
254
  <?php
255
  foreach ($impCE->headers as $key => $value) {
256
  ?>
257
  <tr>
258
  <td class="left_align csvheader"><label><?php print($value);?></label></td>
259
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
260
- <option id="select">-- Select --</option>
261
  <?php
262
  foreach ($usersObj->defCols as $key1 => $value1) {
263
  if ($key1 == 'post_name')
@@ -300,18 +300,18 @@ $usersObj = new UsersActions();
300
  <span id='elementVal_<?php echo $key; ?>' > <?php echo $getrecords[0][$value]; ?> </span>
301
  </td>
302
  <td width = "180px;">
303
- <input class="customfieldtext" type="text" id="textbox<?php print($count); ?>" name="textbox<?php print($count); ?>" TITLE="Replace the default value" style="display: none;" value="<?php echo $value ?>"/>
304
  <span style="display: none;" id="customspan<?php echo $count ?>">
305
  <a href="#" class="tooltip">
306
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
307
  <span class="tooltipFour">
308
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
309
- <strong>Give a name for your new custom field</strong>
310
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
311
  </span>
312
  </a>
313
  </span>
314
- <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>">Replace the custom value</span>
315
  </td>
316
  </tr>
317
  <?php
@@ -328,20 +328,20 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
328
  <div>
329
  <div class="goto_import_options" align=center>
330
  <div class="mappingactions" style="margin-top:26px;" >
331
- <input type='button' id='clear_mapping' class='clear_mapping btn btn-warning' name='clear_mapping' value='Clear Mapping' onclick='clearMapping();' style = 'float:left'/>
332
  <span style = ''>
333
  <a href="#" class="tooltip tooltip_smack" style = ''>
334
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
335
  <span class="tooltipClearMapping">
336
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
337
- <strong>Refresh to re-map fields</strong>
338
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
339
  </span>
340
  </a>
341
  </span>
342
  </div>
343
  <div class="mappingactions" >
344
- <input type='submit' id='goto_importer_setting' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='Next >>' />
345
  </div>
346
  </div>
347
  </div>
@@ -352,7 +352,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
352
  </tr>
353
  <tr>
354
  <td>
355
- <h3>Settings and Performance</h3>
356
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
357
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
358
  <?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES'])) { ?>
@@ -375,8 +375,8 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
375
  <div class="postbox" id="options" style=" margin-bottom:0px;">
376
  <!-- <h4 class="hndle">Search settings</h4>-->
377
  <div class="inside">
378
- <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away"); ?> </label>
379
- <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now"); ?> </label>
380
  <div id='schedule' style='display:none'>
381
  <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'] ; } ?>'>
382
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
@@ -407,12 +407,12 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
407
  </select><br>
408
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
409
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
410
- <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> Detect duplicate post content</label> <br>
411
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
412
- <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > Detect duplicate post title</label> <br>
413
 
414
- <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>
415
- <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>
416
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
417
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
418
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
@@ -421,12 +421,12 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
421
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
422
  </li>-->
423
  </ul>
424
- <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
425
- <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
426
- <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none;" onclick="import_again();" />
427
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
428
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
429
- <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
430
  <div class="clear"></div>
431
  </form>
432
  </div>
@@ -447,7 +447,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
447
  <table class="table-importer">
448
  <tr>
449
  <td>
450
- <h3><?php echo __("Summary"); ?></h3>
451
  <div id='reportLog' class='postbox' style='display:none;'>
452
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
453
  <div id="logtabs" class="logcontainer">
47
  <table class="table-importer">
48
  <tr>
49
  <td>
50
+ <h3><?php echo __('CSV Import Options',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
51
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
52
  <?php if(is_dir($impCE->getUploadDirectory('default'))){
53
  if (!is_writable($impCE->getUploadDirectory('default'))) {
82
  <tr>
83
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
84
  <select disabled/>
85
+ <option value ='select template' /> <?php echo __('select template',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </option>
86
  </select>
87
  <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
88
  </div>
89
 
90
  </div>
91
  <div style="float:right;">
92
+ <input type='button' name='clearform' id='clearform' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' onclick="Reload();"
93
  class='btn btn-warning' style="margin-right:15px"/>
94
+ <input type='submit' name='importfile' id='importfile' title = '<?php echo __('Next',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next');echo (" >>");?>' disabled
95
  class='btn btn-primary' style="margin-right:15px"/>
96
  </div>
97
  </tr>
185
  $mappingFields_arr = array();
186
  $wpcsvsettings=get_option('wpcsvfreesettings');
187
  ?>
188
+ <h3><?php echo __('Map CSV to WP fields/attributes',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
189
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'mapping_settings' ) { ?>
190
  <div id='sec-two' <?php if($_REQUEST['step']!= 'mapping_settings'){ ?> style='display:none;' <?php } ?> >
191
  <div class='mappingsection'>
192
+ <h2><div class="secondformheader"><?php echo __('Import Data Configuration',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div></h2>
193
  <div class='importstatus'>
194
  </div>
195
  <div id='mappingheader' class='mappingheader' >
239
  <input type='hidden' id='stepstatus' name='stepstatus' value='<?php if(isset($_REQUEST['step'])) { echo $_REQUEST['step']; } ?>' />
240
  <input type='hidden' id='mappingArr' name='mappingArr' value='' />
241
  <input type='button' id='prev_record' name='prev_record' value='<<' class="btn btn-primary" onclick='gotoelement(this.id);' />
242
+ <label style="padding-right:10px;" id='preview_of_row'><?php echo __('Showing preview of row # 1',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
243
  <input type='button' id='next_record' name='next_record' value='>>' class="btn btn-primary" onclick='gotoelement(this.id);' />
244
+ <label id="importalign" style="margin-right:8px;"> <?php echo __('Go To Row #',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label><input type='text' id='goto_element' name='goto_element' />
245
  <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"/>
246
  </div>
247
  </td>
250
  $count = 0;
251
  $usersObj = new UsersActions();
252
  ?>
253
+ <tr><td class="left_align columnheader"> <b><?php echo __('CSV HEADER',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('WP FIELDS',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td class="columnheader"> <b><?php echo __('CSV ROW',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></b> </td><td></td></tr>
254
  <?php
255
  foreach ($impCE->headers as $key => $value) {
256
  ?>
257
  <tr>
258
  <td class="left_align csvheader"><label><?php print($value);?></label></td>
259
  <td class="left_align"><select name="mapping<?php print($count); ?>" id="mapping<?php print($count); ?>" class="uiButton" onchange="addcustomfield(this.value,<?php echo $count; ?>);">
260
+ <option id="select"><?php echo __('-- Select --',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></option>
261
  <?php
262
  foreach ($usersObj->defCols as $key1 => $value1) {
263
  if ($key1 == 'post_name')
300
  <span id='elementVal_<?php echo $key; ?>' > <?php echo $getrecords[0][$value]; ?> </span>
301
  </td>
302
  <td width = "180px;">
303
+ <input class="customfieldtext" type="text" id="textbox<?php print($count); ?>" name="textbox<?php print($count); ?>" TITLE="<?php echo __('Replace the default value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display: none;" value="<?php echo $value ?>"/>
304
  <span style="display: none;" id="customspan<?php echo $count ?>">
305
  <a href="#" class="tooltip">
306
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" />
307
  <span class="tooltipFour">
308
  <img class="callout" src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/callout.gif" />
309
+ <strong><?php echo __('Give a name for your new custom field',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
310
  <img src="../wp-content/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/help.png" style="margin-top: 6px;float:right;" />
311
  </span>
312
  </a>
313
  </span>
314
+ <span style="display: none; color: red; margin-left: 5px;" id="customspan<?php echo $count ?>"><?php echo __('Replace the custom value',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
315
  </td>
316
  </tr>
317
  <?php
328
  <div>
329
  <div class="goto_import_options" align=center>
330
  <div class="mappingactions" style="margin-top:26px;" >
331
+ <input type='button' id='clear_mapping' title = '<?php echo __('clear Mapping',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>' class='clear_mapping btn btn-warning' name='clear_mapping' value='<?php echo __("Clear",WP_CONST_ULTIMATE_CSV_IMP_SLUG);echo ' ';echo $impCE->reduceStringLength(__(" Mapping",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Mapping'); ?>' onclick='clearMapping();' style = 'float:left'/>
332
  <span style = ''>
333
  <a href="#" class="tooltip tooltip_smack" style = ''>
334
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" />
335
  <span class="tooltipClearMapping">
336
  <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif" />
337
+ <strong><?php echo __('Refresh to re-map fields',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></strong>
338
  <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-top: 6px;float:right;" />
339
  </span>
340
  </a>
341
  </span>
342
  </div>
343
  <div class="mappingactions" >
344
+ <input type='submit' id='goto_importer_setting' title ='<?php echo __("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG);?>' class='goto_importer_setting btn btn-info' name='goto_importer_setting' value='<?php echo $impCE->reduceStringLength(__("Next",WP_CONST_ULTIMATE_CSV_IMP_SLUG),'Next'); ?> >>' />
345
  </div>
346
  </div>
347
  </div>
352
  </tr>
353
  <tr>
354
  <td>
355
+ <h3><?php echo __('Settings and Performance',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
356
  <?php if(isset($_REQUEST['step']) && $_REQUEST['step'] == 'importoptions') { ?>
357
  <div id='sec-three' <?php if($_REQUEST['step']!= 'importoptions'){ ?> style='display:none;' <?php } ?> >
358
  <?php if(isset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES'])) { ?>
375
  <div class="postbox" id="options" style=" margin-bottom:0px;">
376
  <!-- <h4 class="hndle">Search settings</h4>-->
377
  <div class="inside">
378
+ <label id='importalign'><input type ='radio' id='importNow' name='importMode' value='' onclick='choose_import_mode(this.id);' checked/> <?php echo __("Import right away",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
379
+ <label id='importalign'><input type ='radio' id='scheduleNow' name='importMode' value='' onclick='choose_import_mode(this.id);' disabled/> <?php echo __("Schedule now",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> </label>
380
  <div id='schedule' style='display:none'>
381
  <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'] ; } ?>'>
382
  <?php //echo WPImporter_includes_schedulehelper::generatescheduleHTML(); ?>
407
  </select><br>
408
  <input name="filterhtml" id="filterhtml" type="checkbox" value="1"> Filter out HTML-Tags while comparing <br>
409
  <input name="filterhtmlentities" id="filterhtmlentities" type="checkbox" value="1"> Decode HTML-Entities before comparing <br>-->
410
+ <label id='importalign'><input name='duplicatecontent' id='duplicatecontent' type="checkbox" value=""> <?php echo __('Detect duplicate post content',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
411
  <input type='hidden' name='wpnoncekey' id='wpnoncekey' value='<?php echo $nonce_Key; ?>' />
412
+ <label id='importalign'><input name='duplicatetitle' id='duplicatetitle' type="checkbox" value="" > <?php echo __('Detect duplicate post title',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label> <br>
413
 
414
+ <label id='importalign'><?php echo __('No. of posts/rows per server request',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></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>
415
+ <span class='msg' id='server_request_warning' style="display:none;color:red;margin-left:-10px;"><?php echo __('You can set upto',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?> <?php echo $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['totRecords']; ?> <?php echo __('per request.',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></span>
416
  <input type="hidden" id="currentlimit" name="currentlimit" value="0"/>
417
  <input type="hidden" id="tmpcount" name="tmpcount" value="0" />
418
  <input type="hidden" id="terminateaction" name="terminateaction" value="continue" />
421
  Ignore these words while comparing <input name="filterwords" id="filterwords" type="text" value="">
422
  </li>-->
423
  </ul>
424
+ <input id="startbutton" class="btn btn-primary" type="button" value="<?php echo __('Import Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
425
+ <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="<?php echo __('Terminate Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;" onclick="terminateProcess();" />
426
+ <input class="btn btn-warning" type="button" value="<?php echo __('Reload',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" id="importagain" style="display:none;" onclick="import_again();" />
427
+ <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="<?php echo __('Continue',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>" style="display:none;color: #ffffff;" onclick="continueprocess();">
428
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
429
+ <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> <?php echo __('Processing...',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></div>
430
  <div class="clear"></div>
431
  </form>
432
  </div>
447
  <table class="table-importer">
448
  <tr>
449
  <td>
450
+ <h3><?php echo __("Summary",WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></h3>
451
  <div id='reportLog' class='postbox' style='display:none;'>
452
  <input type='hidden' name = 'csv_version' id = 'csv_version' value = "<?php if(isset($_POST['uploaded_csv_name'])) { echo $_POST['uploaded_csv_name']; } ?>">
453
  <div id="logtabs" class="logcontainer">
modules/woocommerce/templates/index.php CHANGED
@@ -35,4 +35,4 @@
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
- echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>This feature is only available in PRO!.</p></div>";
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
+ echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>".__('This feature is only available in PRO!.',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</p></div>";
modules/wpcommerce/templates/index.php CHANGED
@@ -35,4 +35,4 @@
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
- echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>This feature is only available in PRO!.</p></div>";
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
 
38
+ echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>". __('This feature is only available in PRO!.',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</p></div>";
plugins/class.inlineimages.php CHANGED
@@ -6,14 +6,17 @@ class WPImporter_inlineImages {
6
  * @param $array
7
  * @param $postId
8
  */
9
- function importwithInlineImages ($recordID, $currentLimit, $data_array, $impObj, $import_image_method, $imgLoc, $sampleURL) {
10
  $helperObj = new WPImporter_includes_helper();
11
- $res_array = $this->process_multi_images($data_array, $helperObj, $currentLimit, $impObj, $import_image_method, $imgLoc, $sampleURL);
12
  # print_r($res_array); die('am from importwithInlineImages function');
13
- $data_array['post_content'] = $res_array;
14
- $post_id = wp_insert_post($data_array);
 
 
 
15
  $impObj->insPostCount++;
16
- $impObj->detailedLog[$currentLimit]['post_id'] = "<b>Created Post_ID - </b>" . $post_id . " - success";
17
  return $post_id;
18
  }
19
 
@@ -164,6 +167,137 @@ class WPImporter_inlineImages {
164
  return $tagcontent;
165
  }
166
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  }
168
 
169
  function scanDirectories($rootDir, $allData=array()) {
6
  * @param $array
7
  * @param $postId
8
  */
9
+ function importwithInlineImages ($postID, $currentLimit, $data_array, $impObj, $import_image_method, $imgLoc, $sampleURL) {
10
  $helperObj = new WPImporter_includes_helper();
11
+ //$res_array = $this->process_multi_images($data_array, $helperObj, $currentLimit, $impObj, $import_image_method, $imgLoc, $sampleURL);
12
  # print_r($res_array); die('am from importwithInlineImages function');
13
+ $updatearray = array();
14
+ $res_array = $this->capture_all_shortcodes($data_array['post_content'],$postID);
15
+ $updatearray['post_content'] = $res_array['post_content'];
16
+ $updatearray['ID'] = $postID;
17
+ $post_id = wp_update_post($updatearray);
18
  $impObj->insPostCount++;
19
+ $impObj->detailedLog[$currentLimit]['post_id'] = "<b>Created Post_ID - </b>" . $post_id . " - success , <b>Inline_images_shortcodes - </b>".$res_array['inlineimage_shortcode']."";
20
  return $post_id;
21
  }
22
 
167
  return $tagcontent;
168
  }
169
  }
170
+ public function capture_all_shortcodes( $post_content,$postID){
171
+ $result = array();
172
+ $pattern = "/([WPIMPINLINE:([\w]+)(.*?)(])/";
173
+ $shortcode_prefix = "[WPIMPINLINE:";
174
+ $post_content = str_replace("\n", "<br />", $post_content);
175
+ preg_match_all($pattern, $post_content, $results, PREG_PATTERN_ORDER);
176
+ $inlineimg_shortcodes = array();
177
+ $inline_shortcode_count = 0;
178
+ for($i=0; $i<count($results[0]); $i++){
179
+ # $get_shortcode_pos = strpos($results[0][$i], "[WPIMPINLINE:");
180
+ $get_shortcode_pos = strpos($results[0][$i], $shortcode_prefix);
181
+ //if($get_shortcode_pos != 0) {
182
+ $inlineimg_shortcodes[] = substr($results[0][$i], $get_shortcode_pos);
183
+ // }
184
+ }
185
+ $inline_shortcode_count = count($inlineimg_shortcodes);
186
+ // $string = "[WPIMPINLINE:rr.jpg|size=20|image=20]";
187
+ foreach($inlineimg_shortcodes as $shortkey => $shortcode){
188
+
189
+ $get_inlineimage_val = substr($shortcode, "13", -1);
190
+ $image_attribute = explode('|',$get_inlineimage_val);
191
+ $get_inlineimage_val = $image_attribute[0];
192
+ $uploadDir = wp_upload_dir();
193
+ $inlineimageDir = $uploadDir['basedir'] . '/smack_inline_images';
194
+ $inlineimageURL = $uploadDir['baseurl'] . '/smack_inline_images';
195
+ $wp_media_url = $uploadDir['baseurl'];
196
+
197
+ $get_media_settings = get_option('uploads_use_yearmonth_folders');
198
+ if ($get_media_settings == 1) {
199
+ $dirname = date('Y') . '/' . date('m');
200
+ $full_path = $uploadDir['basedir'] . '/' . $dirname;
201
+ $baseurl = $uploadDir['baseurl'] . '/' . $dirname;
202
+ } else {
203
+ $full_path = $uploadDir['basedir'];
204
+ $baseurl = $uploadDir['baseurl'];
205
+ }
206
+
207
+ $wp_media_path = $full_path;
208
+ $eventKey = $_POST['postdata']['uploadedFile'];
209
+ $inlineimageDirpath = $inlineimageDir . '/' . $eventKey;
210
+ $imagelist = scanDirectories($inlineimageDirpath);
211
+ if(!$imagelist) {
212
+ //echo 'Images not available!'; die;
213
+ $noimage = WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/noimage.png";
214
+ $oldWord = $shortcode;
215
+ $newWord = '<img src="' .$noimage . '" />';
216
+ $post_content = str_replace($oldWord , $newWord , $post_content);
217
+ $result['post_content'] = $post_content;
218
+ $result['inlineimage_shortcode'] = "No-Image-count:".$inline_shortcode_count;
219
+
220
+ }else{
221
+ foreach($imagelist as $imgwithloc) {
222
+ if(strpos($imgwithloc, $get_inlineimage_val))
223
+ $currentLoc = $imgwithloc;
224
+ }
225
+
226
+ $exploded_currentLoc = explode("$eventKey", $currentLoc);
227
+ if(!empty($exploded_currentLoc))
228
+ $inlimg_curr_loc = $exploded_currentLoc[1];
229
+
230
+ $inlineimageURL = $inlineimageURL . '/' . $eventKey . $inlimg_curr_loc;
231
+
232
+ //$impObj = new WPUltimateCSVImporter();
233
+ $helperObj = new WPImporter_includes_helper();
234
+ $helperObj->get_fimg_from_URL($inlineimageURL, $wp_media_path, $get_inlineimage_val, '','','');
235
+
236
+ $wp_media_path = $wp_media_path . "/" . $get_inlineimage_val;
237
+ if (@getimagesize($wp_media_path)) {
238
+ $img = wp_get_image_editor($wp_media_path);
239
+ if (!is_wp_error($img)) {
240
+ $sizes_array = array(
241
+ // #1 - resizes to 1024x768 pixel, square-cropped image
242
+ array('width' => 1024, 'height' => 768, 'crop' => true),
243
+ // #2 - resizes to 100px max width/height, non-cropped image
244
+ array('width' => 100, 'height' => 100, 'crop' => false),
245
+ // #3 - resizes to 100 pixel max height, non-cropped image
246
+ array('width' => 300, 'height' => 100, 'crop' => false),
247
+ // #3 - resizes to 624x468 pixel max width, non-cropped image
248
+ array('width' => 624, 'height' => 468, 'crop' => false)
249
+ );
250
+ $resize = $img->multi_resize($sizes_array);
251
+ }
252
+ $inline_file ['guid'] = $baseurl . "/" . $get_inlineimage_val;
253
+ $inline_file ['post_title'] = $get_inlineimage_val;
254
+ $inline_file ['post_content'] = '';
255
+ $inline_file ['post_status'] = 'attachment';
256
+ $wp_upload_dir = wp_upload_dir();
257
+ $attachment = array('guid' => $inline_file ['guid'], 'post_mime_type' => 'image/jpeg', 'post_title' => preg_replace('/\.[^.]+$/', '', @basename($inline_file ['guid'])), 'post_content' => '', 'post_status' => 'inherit');
258
+ if ($get_media_settings == 1) {
259
+ $generate_attachment = $dirname . '/' . $get_inlineimage_val;
260
+ } else {
261
+ $generate_attachment = $get_inlineimage_val;
262
+ }
263
+ $uploadedImage = $wp_upload_dir['path'] . '/' . $get_inlineimage_val;
264
+ //duplicate check
265
+ global $wpdb;
266
+ $existing_attachment = array();
267
+ $query = $wpdb->get_results("select post_title from $wpdb->posts where post_type = 'attachment' and post_mime_type = 'image/jpeg'");
268
+
269
+ foreach($query as $key){
270
+
271
+ $existing_attachment[] = $key->post_title;
272
+
273
+ }
274
+ //duplicate check
275
+ if(!in_array($attachment['post_title'] ,$existing_attachment)){
276
+ $attach_id = wp_insert_attachment($attachment, $generate_attachment, $postID);
277
+
278
+ $attach_data = wp_generate_attachment_metadata($attach_id, $uploadedImage);
279
+ wp_update_attachment_metadata($attach_id, $attach_data);
280
+ set_post_thumbnail($postID, $attach_id);
281
+ }
282
+ /*if ( function_exists( 'add_image_size' ) ) {
283
+ add_image_size( 'fullscreen-slider', $image_attribute[1], $image_attribute[2], true );
284
+ }*/
285
+ // if($shortcode_mode == 'Inline') {
286
+ $oldWord = $shortcode;
287
+ $newWord = '<img src="' . $inline_file['guid'] . '" '.$image_attribute[1].' '.$image_attribute[2].' '.$image_attribute[3].' />';
288
+ $post_content = str_replace($oldWord , $newWord , $post_content);
289
+ $result['post_content'] = $post_content;
290
+ $result['inlineimage_shortcode'] = $inline_shortcode_count;
291
+ // }
292
+ }
293
+ }
294
+
295
+ }
296
+ return $result;
297
+
298
+
299
+
300
+ }
301
  }
302
 
303
  function scanDirectories($rootDir, $allData=array()) {
templates/import.php CHANGED
@@ -103,6 +103,8 @@ if ($count < $totRecords) {
103
  $count = $totRecords;
104
  }
105
  $resultArr = array();
 
 
106
  $filename = $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['uploadedFile'];
107
  $delim = $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['select_delimeter'];
108
  $resultArr = $skinnyObj->csv_file_data($filename);
103
  $count = $totRecords;
104
  }
105
  $resultArr = array();
106
+ $res2 = array();
107
+ $res1 = array();
108
  $filename = $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['uploadedFile'];
109
  $delim = $_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['select_delimeter'];
110
  $resultArr = $skinnyObj->csv_file_data($filename);
templates/layout.php CHANGED
@@ -65,7 +65,7 @@ die('You are not allowed to do this operation.Please contact your admin.');
65
  }
66
  else
67
  {
68
- echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>This feature is only available in PRO!.</p></div>";
69
  }
70
 
71
  ?>
65
  }
66
  else
67
  {
68
+ echo "<div align='center' style='width:100%;'> <p class='warnings' style='width:50%;text-align:center;color:red;'>".__('This feature is only available in PRO!.',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</p></div>";
69
  }
70
 
71
  ?>
templates/menu.php CHANGED
@@ -65,41 +65,41 @@ $tab_inc = 1;
65
  $menuHTML = "<nav class='navbar navbar-default' role='navigation'>
66
  <div>
67
  <ul class='nav navbar-nav'>
68
- <li class = '{$dashboard}' ><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=dashboard' >Dashboard</a></li>
69
  <li class='dropdown {$module} '>
70
  <a href='#' data-toggle='dropdown'>
71
- Imports
72
  <b class='caret'></b>
73
  </a>
74
  <ul class='dropdown-menu'>
75
- <li class= '{$post}'><a href= 'admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=post&step=uploadfile'>Post</a></li>
76
- <li class = '{$page}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=page&step=uploadfile'>Page</a></li>
77
- <li class = '{$custompost}'><a href= 'admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=custompost&step=uploadfile'>Custom Post</a></li>";
78
  if($comments) {
79
- $menuHTML .= "<li class = '{$comments}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=comments&step=uploadfile'>Comments</a></li>";
80
  }
81
  if($users) {
82
- $menuHTML .= "<li class = '{$users}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=users&step=uploadfile'>Users</a></li>";
83
  }
84
  if($eshop) {
85
- $menuHTML .= "<li class = '{$eshop}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=eshop&step=uploadfile'>Eshop</a></li>";
86
  }
87
  $menuHTML .= "</ul>
88
  </li>
89
  <li class='dropdown {$manager}'>
90
  <a href='#' data-toggle='dropdown'> Managers <b class='caret'></b> </a>
91
  <ul class='dropdown-menu'>
92
- <li class = '{$filemanager}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=filemanager'>File Manager</a></li>
93
- <li class = '{$schedulemapping}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=schedulemapping'>Smart Scheduler</a></li>
94
- <li class = '{$mappingtemplate}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=mappingtemplate'>Templates</a></li>
95
  </ul>
96
  </li>";
97
- $menuHTML .= "<li class = '{$export}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=export'>Export</a></li>";
98
- $menuHTML .= "<li class= '{$settings}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=settings' />Settings</a></li>
99
- <li class = '{$support}'><a href= 'admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=support'>Support</a></li>
100
 
101
- <li ><a href='http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html' target='_blank'>Go Pro Now</a></li>
102
- <li ><a href='http://demo.smackcoders.com/demowpthree/wp-admin/admin.php?page=wp-ultimate-csv-importer-pro/index.php&__module=dashboard' target='_blank'>Try Live Demo Now</a></li>
103
  </ul>";
104
  $plugin_version = get_option('ULTIMATE_CSV_IMP_VERSION');
105
  $menuHTML .= "</div>";
65
  $menuHTML = "<nav class='navbar navbar-default' role='navigation'>
66
  <div>
67
  <ul class='nav navbar-nav'>
68
+ <li class = '{$dashboard}' ><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=dashboard' >".__('Dashboard',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
69
  <li class='dropdown {$module} '>
70
  <a href='#' data-toggle='dropdown'>
71
+ ". __('Imports',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."
72
  <b class='caret'></b>
73
  </a>
74
  <ul class='dropdown-menu'>
75
+ <li class= '{$post}'><a href= 'admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=post&step=uploadfile'>".__('Post',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
76
+ <li class = '{$page}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=page&step=uploadfile'>". __('Page',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
77
+ <li class = '{$custompost}'><a href= 'admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=custompost&step=uploadfile'>". __('Custom Post',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>";
78
  if($comments) {
79
+ $menuHTML .= "<li class = '{$comments}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=comments&step=uploadfile'>". __('Comments',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>";
80
  }
81
  if($users) {
82
+ $menuHTML .= "<li class = '{$users}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=users&step=uploadfile'>". __('Users',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>";
83
  }
84
  if($eshop) {
85
+ $menuHTML .= "<li class = '{$eshop}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=eshop&step=uploadfile'>". __('Eshop',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>";
86
  }
87
  $menuHTML .= "</ul>
88
  </li>
89
  <li class='dropdown {$manager}'>
90
  <a href='#' data-toggle='dropdown'> Managers <b class='caret'></b> </a>
91
  <ul class='dropdown-menu'>
92
+ <li class = '{$filemanager}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=filemanager'>". __('File Manager',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
93
+ <li class = '{$schedulemapping}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=schedulemapping'>". __('Smart Scheduler',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
94
+ <li class = '{$mappingtemplate}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=mappingtemplate'>". __('Templates',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
95
  </ul>
96
  </li>";
97
+ $menuHTML .= "<li class = '{$export}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=export'>". __('Export',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>";
98
+ $menuHTML .= "<li class= '{$settings}'><a href='admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=settings' />". __('Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
99
+ <li class = '{$support}'><a href= 'admin.php?page=" . WP_CONST_ULTIMATE_CSV_IMP_SLUG . "/index.php&__module=support'>". __('Support',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
100
 
101
+ <li ><a href='http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=WpPlugin&utm_medium=Free&utm_campaign=SupportTraffic' target='_blank'>". __('Go Pro Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
102
+ <li ><a href='http://demo.smackcoders.com/demowpthree/wp-admin/admin.php?page=wp-ultimate-csv-importer-pro/index.php&__module=dashboard' target='_blank'>" . __('Try Live Demo Now',WP_CONST_ULTIMATE_CSV_IMP_SLUG)."</a></li>
103
  </ul>";
104
  $plugin_version = get_option('ULTIMATE_CSV_IMP_VERSION');
105
  $menuHTML .= "</div>";
templates/readfile.php CHANGED
@@ -35,7 +35,6 @@
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
  $parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
38
-
39
  require_once($parse_uri[0]."wp-load.php");
40
  $impCheckobj = CallWPImporterObj::checkSecurity();
41
  if($impCheckobj != 'true')
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
  $parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
 
38
  require_once($parse_uri[0]."wp-load.php");
39
  $impCheckobj = CallWPImporterObj::checkSecurity();
40
  if($impCheckobj != 'true')
upgrade/migrationfreev3.6.php CHANGED
@@ -1,13 +1,13 @@
1
  <div align=center style="padding-top:220px;">
2
  <form name="upgrade_to_latest" method="post">
3
- <label style="font-size:2em;" id="step1">Upgrade to Latest Version 3.6</label>
4
- <input type="submit" class="btn btn-primary btn-sm" name="upgrade" id="upgrade" value="Click Here"/>
5
  </form>
6
  <form name="goto_plugin_page" method="post"
7
  action="admin.php?page=<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/index.php&__module=settings">
8
  <label style="font-size:2em;display:none;" id='upgrade_state'>Upgrade is inprogress...</label>
9
  <input type="submit" style="display:none;" class="btn btn-success" name="gotopluginpage" id="gotopluginpage"
10
- value="Goto Plugin Settings"/>
11
  </form>
12
  </div>
13
  <?php
1
  <div align=center style="padding-top:220px;">
2
  <form name="upgrade_to_latest" method="post">
3
+ <label style="font-size:2em;" id="step1"><?php echo __('Upgrade to Latest Version 3.6',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?></label>
4
+ <input type="submit" class="btn btn-primary btn-sm" name="upgrade" id="upgrade" value="<?php echo __('Click Here',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>"/>
5
  </form>
6
  <form name="goto_plugin_page" method="post"
7
  action="admin.php?page=<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/index.php&__module=settings">
8
  <label style="font-size:2em;display:none;" id='upgrade_state'>Upgrade is inprogress...</label>
9
  <input type="submit" style="display:none;" class="btn btn-success" name="gotopluginpage" id="gotopluginpage"
10
+ value="<?php echo __('Goto Plugin Settings',WP_CONST_ULTIMATE_CSV_IMP_SLUG); ?>"/>
11
  </form>
12
  </div>
13
  <?php