Ultimate CSV Importer - Version 5.3.4

Version Description

Download this release

Release Info

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

Code changes from version 5.3.3 to 5.3.4

Readme.txt CHANGED
@@ -1,12 +1,12 @@
1
- === CSV Importer & Exporter ===
2
  Contributors: smackcoders, smacksupport
3
  Donate link: https://www.paypal.me/smackcoders
4
  Tags: csv, csv import, csv importer, import, import csv, import seo, import woocommerce, acf, excel, spreadsheet
5
  Requires at least: 4.1
6
- Tested up to: 4.9
7
  Requires PHP: 5.2.4 or above
8
- Stable tag: 5.3.3
9
- Version: 5.3.3
10
  Author: smackcoders
11
  Author URI: http://profiles.wordpress.org/smackcoders/
12
  License: GPLv2 or later
@@ -123,7 +123,9 @@ For more FAQ, you can refer [here](http://www.smackcoders.com/wordpress-products
123
 
124
  == Changelog ==
125
 
126
-
 
 
127
  = 5.3.3 =
128
  * Added: Compatibility for WordPress 4.9
129
  * Moved: User import as add-on.
@@ -481,6 +483,8 @@ For more FAQ, you can refer [here](http://www.smackcoders.com/wordpress-products
481
  * Initial release version. Tested and found works well without any issues.
482
 
483
  == Upgrade Notice ==
 
 
484
  = 5.3.3 =
485
  * Upgrade now for WordPress 4.9 compatibility.
486
  = 5.3.2 =
1
+ === Ultimate CSV Importer ===
2
  Contributors: smackcoders, smacksupport
3
  Donate link: https://www.paypal.me/smackcoders
4
  Tags: csv, csv import, csv importer, import, import csv, import seo, import woocommerce, acf, excel, spreadsheet
5
  Requires at least: 4.1
6
+ Tested up to: 4.9.1
7
  Requires PHP: 5.2.4 or above
8
+ Stable tag: 5.3.4
9
+ Version: 5.3.4
10
  Author: smackcoders
11
  Author URI: http://profiles.wordpress.org/smackcoders/
12
  License: GPLv2 or later
123
 
124
  == Changelog ==
125
 
126
+ = 5.3.4 =
127
+ * Improved: Notifications in mapping
128
+ * Fixed: Export menu issue.
129
  = 5.3.3 =
130
  * Added: Compatibility for WordPress 4.9
131
  * Moved: User import as add-on.
483
  * Initial release version. Tested and found works well without any issues.
484
 
485
  == Upgrade Notice ==
486
+ = 5.3.4 =
487
+ * Upgrade now for Export issue fix.
488
  = 5.3.3 =
489
  * Upgrade now for WordPress 4.9 compatibility.
490
  = 5.3.2 =
admin/class-uci-admin.php CHANGED
@@ -62,11 +62,14 @@ class SmackUCIAdmin extends SmackUCIHelper {
62
  */
63
  public static function admin_menus() {
64
  global $submenu;
 
65
  add_menu_page(SM_UCI_SETTINGS, SM_UCI_NAME, 'manage_options', SM_UCI_SLUG, array(__CLASS__, 'sm_uci_screens'),plugins_url("assets/images/wp-ultimate-csv-importer.png",dirname(__FILE__)));
66
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Dashboard', 'wp-ultimate-csv-importer') , 'manage_options', 'sm-uci-dashboard', array(__CLASS__, 'sm_uci_screens'));
67
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Import / Update','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-import', array(__CLASS__, 'sm_uci_screens'));
68
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Managers','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-managers', array(__CLASS__, 'sm_uci_screens'));
69
- #add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Export','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-export', array(__CLASS__, 'sm_uci_screens'));
 
 
70
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Settings','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-settings', array(__CLASS__, 'sm_uci_screens'));
71
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Addons','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-addons', array(__CLASS__, 'sm_uci_screens'));
72
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Support','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-support', array(__CLASS__, 'sm_uci_screens'));
@@ -75,11 +78,14 @@ class SmackUCIAdmin extends SmackUCIHelper {
75
 
76
  public static function admin_menus_for_other_roles() {
77
  global $submenu;
 
78
  add_menu_page(SM_UCI_SETTINGS, SM_UCI_NAME, '2', SM_UCI_SLUG, array(__CLASS__, 'sm_uci_screens'),plugins_url("assets/images/wp-ultimate-csv-importer.png",dirname(__FILE__)));
79
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Dashboard', '2', 'sm-uci-dashboard', array(__CLASS__, 'sm_uci_screens'));
80
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Import / Update', '2', 'sm-uci-import', array(__CLASS__, 'sm_uci_screens'));
81
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Managers', '2', 'sm-uci-managers', array(__CLASS__, 'sm_uci_screens'));
82
- #add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Export', '2', 'sm-uci-export', array(__CLASS__, 'sm_uci_screens'));
 
 
83
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Addons', '2', 'sm-uci-addons', array(__CLASS__, 'sm_uci_screens'));
84
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Support', '2', 'sm-uci-support', array(__CLASS__, 'sm_uci_screens'));
85
  unset($submenu[SM_UCI_SLUG][0]);
62
  */
63
  public static function admin_menus() {
64
  global $submenu;
65
+ $active_plugins = get_option( "active_plugins" );
66
  add_menu_page(SM_UCI_SETTINGS, SM_UCI_NAME, 'manage_options', SM_UCI_SLUG, array(__CLASS__, 'sm_uci_screens'),plugins_url("assets/images/wp-ultimate-csv-importer.png",dirname(__FILE__)));
67
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Dashboard', 'wp-ultimate-csv-importer') , 'manage_options', 'sm-uci-dashboard', array(__CLASS__, 'sm_uci_screens'));
68
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Import / Update','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-import', array(__CLASS__, 'sm_uci_screens'));
69
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Managers','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-managers', array(__CLASS__, 'sm_uci_screens'));
70
+ if(in_array('wp-ultimate-exporter/index.php', $active_plugins)){
71
+ add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Export','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-export', array(__CLASS__, 'sm_uci_screens'));
72
+ }
73
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Settings','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-settings', array(__CLASS__, 'sm_uci_screens'));
74
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Addons','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-addons', array(__CLASS__, 'sm_uci_screens'));
75
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, esc_html__('Support','wp-ultimate-csv-importer'), 'manage_options', 'sm-uci-support', array(__CLASS__, 'sm_uci_screens'));
78
 
79
  public static function admin_menus_for_other_roles() {
80
  global $submenu;
81
+ $active_plugins = get_option( "active_plugins" );
82
  add_menu_page(SM_UCI_SETTINGS, SM_UCI_NAME, '2', SM_UCI_SLUG, array(__CLASS__, 'sm_uci_screens'),plugins_url("assets/images/wp-ultimate-csv-importer.png",dirname(__FILE__)));
83
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Dashboard', '2', 'sm-uci-dashboard', array(__CLASS__, 'sm_uci_screens'));
84
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Import / Update', '2', 'sm-uci-import', array(__CLASS__, 'sm_uci_screens'));
85
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Managers', '2', 'sm-uci-managers', array(__CLASS__, 'sm_uci_screens'));
86
+ if(in_array('wp-ultimate-exporter/index.php', $active_plugins)){
87
+ add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Export', '2', 'sm-uci-export', array(__CLASS__, 'sm_uci_screens'));
88
+ }
89
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Addons', '2', 'sm-uci-addons', array(__CLASS__, 'sm_uci_screens'));
90
  add_submenu_page(SM_UCI_SLUG, SM_UCI_NAME, 'Support', '2', 'sm-uci-support', array(__CLASS__, 'sm_uci_screens'));
91
  unset($submenu[SM_UCI_SLUG][0]);
admin/views/form-mapping-configuration.php CHANGED
@@ -121,17 +121,25 @@ if(isset($_REQUEST['mapping_type']) && $_REQUEST['mapping_type'] == 'normal') {
121
  <?php $import_mode = $get_records[sanitize_key($_REQUEST['eventkey'])]['import_file']['import_mode']; ?>
122
  <div class="mapping_table">
123
  <?php
 
124
  $integrations = $uci_admin->available_widgets($import_type, $importAs);
125
  if(!empty($integrations)) :
126
  foreach($integrations as $widget_name => $plugin_file) {
127
  $widget_slug = strtolower(str_replace(' ', '_', $widget_name));
128
- $fields = $uci_admin->get_widget_fields($widget_name, $import_type, $importAs);
 
 
 
 
 
 
129
  ?>
130
  <div class="panel-group" id='accordion'>
131
  <div class='panel panel-default' data-target="#<?php echo $widget_slug;?>" data-parent="#accordion">
132
  <div id='<?php echo $widget_slug;?>' class='panel-heading' style='width:100%' onclick="toggle_func('<?php echo $widget_slug;?>');">
133
  <div id= "corehead" class="panel-title"> <b style=""> <?php if($widget_name == 'Core Fields'){ echo 'WordPress Fields'; } else { echo $widget_name; } ?> </b>
134
  <span class = 'glyphicon glyphicon-plus' id = '<?php echo 'icon'.$widget_slug ?>' style="float:right;"> </span>
 
135
  </div>
136
  </div>
137
  <div id= '<?php echo $widget_slug;?>toggle' style="height:auto;">
121
  <?php $import_mode = $get_records[sanitize_key($_REQUEST['eventkey'])]['import_file']['import_mode']; ?>
122
  <div class="mapping_table">
123
  <?php
124
+ $profeatures = array('acf_pro_fields','acf_fields','acf_repeater_fields','types_custom_fields','cctm_custom_fields','pods_custom_fields','yoast_seo_fields');
125
  $integrations = $uci_admin->available_widgets($import_type, $importAs);
126
  if(!empty($integrations)) :
127
  foreach($integrations as $widget_name => $plugin_file) {
128
  $widget_slug = strtolower(str_replace(' ', '_', $widget_name));
129
+ if(in_array($widget_slug,$profeatures)){
130
+ $upgrade_pro = '<span style="background-color: #ec3939 !important;float:right;font-size:14px;" class="new badge">Upgrade to Pro</span>';
131
+ $fields = '';
132
+ }else{
133
+ $upgrade_pro = '';
134
+ $fields = $uci_admin->get_widget_fields($widget_name, $import_type, $importAs);
135
+ }
136
  ?>
137
  <div class="panel-group" id='accordion'>
138
  <div class='panel panel-default' data-target="#<?php echo $widget_slug;?>" data-parent="#accordion">
139
  <div id='<?php echo $widget_slug;?>' class='panel-heading' style='width:100%' onclick="toggle_func('<?php echo $widget_slug;?>');">
140
  <div id= "corehead" class="panel-title"> <b style=""> <?php if($widget_name == 'Core Fields'){ echo 'WordPress Fields'; } else { echo $widget_name; } ?> </b>
141
  <span class = 'glyphicon glyphicon-plus' id = '<?php echo 'icon'.$widget_slug ?>' style="float:right;"> </span>
142
+ <?php echo $upgrade_pro; ?>
143
  </div>
144
  </div>
145
  <div id= '<?php echo $widget_slug;?>toggle' style="height:auto;">
assets/js/ultimate-importer.js CHANGED
@@ -458,9 +458,11 @@ function server_method(){
458
  }
459
 
460
  function toggle_func(id){
461
- jQuery('#'+id+'toggle').slideToggle('slow');
462
- jQuery('#icon'+id).toggleClass("icon-circle-down").toggleClass("icon-circle-up");
463
- jQuery('#'+id).toggleClass("text-primary");
 
 
464
  }
465
 
466
  /** VAlidate Custom Field Choice Text **/
458
  }
459
 
460
  function toggle_func(id){
461
+ if(id != 'types_custom_fields' && id != 'acf_fields' && id != 'pods_custom_fields' && id != 'cctm_custom_fields' && id != 'acf_repeater_fields' && id != 'acf_pro_fields' && id != 'yoast_seo_fields'){
462
+ jQuery('#'+id+'toggle').slideToggle('slow');
463
+ jQuery('#icon'+id).toggleClass("icon-circle-down").toggleClass("icon-circle-up");
464
+ jQuery('#'+id).toggleClass("text-primary");
465
+ }
466
  }
467
 
468
  /** VAlidate Custom Field Choice Text **/
index.php CHANGED
@@ -2,7 +2,7 @@
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: Seamlessly create posts, custom posts, pages, media, SEO and more from your CSV data with ease.
5
- * Version: 5.3.3
6
  * Author: smackcoders
7
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_pro&utm_medium=wordpress
8
  * Text Domain: wp-ultimate-csv-importer
@@ -56,7 +56,7 @@ if ( ! class_exists( 'SM_WPUltimateCSVImporter' ) ) :
56
  */
57
  class SM_WPUltimateCSVImporter {
58
 
59
- public $version = '5.3.3';
60
 
61
  /**
62
  * The single instance of the class.
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: Seamlessly create posts, custom posts, pages, media, SEO and more from your CSV data with ease.
5
+ * Version: 5.3.4
6
  * Author: smackcoders
7
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_pro&utm_medium=wordpress
8
  * Text Domain: wp-ultimate-csv-importer
56
  */
57
  class SM_WPUltimateCSVImporter {
58
 
59
+ public $version = '5.3.4';
60
 
61
  /**
62
  * The single instance of the class.