Version Description
Download this release
Release Info
Developer | smackcoders |
Plugin | Ultimate CSV Importer |
Version | 3.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.2.0 to 3.2.1
- Readme.txt +12 -9
- SmackImpCE.php +100 -32
- SmackWpHandler.php +74 -38
- class.rendercsv.php +47 -9
- class.settings.php +36 -1
- css/custom-style.css +304 -805
- languages/en_us.php +79 -45
- plugin_config.php +36 -1
- stats.php +161 -83
- wp_ultimate_csv_importer.js +245 -215
- wp_ultimate_csv_importer.php +47 -36
Readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== WP Ultimate CSV Importer Plugin ===
|
2 |
-
Contributors:
|
3 |
Donate link: http://www.smackcoders.com/donate.html
|
4 |
Tags: batch, excel, import, spreadsheet, plugin, admin, csv, importer,
|
5 |
Requires at least: 3.4.0
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 3.2.
|
8 |
-
Version: 3.2.
|
9 |
Author: smackcoders
|
10 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
11 |
License: GPLv2 or later
|
@@ -15,12 +15,11 @@ A plugin that turns your offline data as wordpress post, page or custom post dat
|
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
-
|
19 |
-
more flexible import options and added powerful features.
|
20 |
|
21 |
WP Ultimate CSV Importer Plugin helps you to import any CSV file as post, page or even as custom post type. Convert your offline database maintained for years into your valuable website content. Also do periodical content changes, maintenance, content update, prices, offers, coupons and inventory etc.
|
22 |
|
23 |
-
This simple but ultimate plugin as you can import everything needed to create as any WP post types from admin as simple as CSV file. Just in few clicks to map your CSV data set to match the Wordpress fields to import. That�s all, now your imports are turned as Wordpress site content in matter of seconds. No more pain of creating post content one by one of converting your offline data. You can import all the essential data as Wordpress post and skip unwanted things. Or you can import as many as custom fields without missing even a single data. Provided you should have a theme that supports custom fields. So you can now make use of your offline data, inventory, price catalog, information data, database and any other excel data sheet for online content distribution to your valuable visitor or customers.
|
24 |
|
25 |
1. Admin can import the data's from any CSV file.
|
26 |
2. Can import as post, page or custom post.
|
@@ -71,7 +70,6 @@ Please create issues only in our tracker http://forge.smackcoders.com/projects/w
|
|
71 |
For guides and tutorials, visit http://forge.smackcoders.com/projects/wp-ultimate-csv-importer-free .
|
72 |
|
73 |
|
74 |
-
|
75 |
== Installation ==
|
76 |
|
77 |
|
@@ -88,10 +86,15 @@ Or view our hoe to guide video guide in our [Youtube Channel](www.youtube.com/us
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
= 3.2.0 = WordPress 3.6 compatibility added, Much Improved UI.
|
92 |
-- Featured image issues fixed for WordPress-3.6.
|
93 |
-
--
|
94 |
-
-- Custom Post issue fixed.
|
95 |
|
96 |
= 3.1.0 = Much Improved Featured Image feature
|
97 |
-- Image url for featured image issues fixed
|
1 |
=== WP Ultimate CSV Importer Plugin ===
|
2 |
+
Contributors: smackcoders
|
3 |
Donate link: http://www.smackcoders.com/donate.html
|
4 |
Tags: batch, excel, import, spreadsheet, plugin, admin, csv, importer,
|
5 |
Requires at least: 3.4.0
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 3.2.1
|
8 |
+
Version: 3.2.1
|
9 |
Author: smackcoders
|
10 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
11 |
License: GPLv2 or later
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
+
Version 3.2.1 is out now with performance improvements and added powerful features.
|
|
|
19 |
|
20 |
WP Ultimate CSV Importer Plugin helps you to import any CSV file as post, page or even as custom post type. Convert your offline database maintained for years into your valuable website content. Also do periodical content changes, maintenance, content update, prices, offers, coupons and inventory etc.
|
21 |
|
22 |
+
This simple but ultimate plugin as you can import everything needed to create as any WP post types from admin as simple as CSV file. Just in few clicks to map your CSV data set to match the Wordpress fields to import. That�s all, now your imports are turned as Wordpress site content in matter of seconds. No more pain of creating post content one by one of converting your offline data. You can import all the essential data as Wordpress post and skip unwanted things. Or you can import as many as custom fields without missing even a single data. Provided you should have a theme that supports custom fields. So you can now make use of your offline data, inventory, price catalog, information data, database and any other excel data sheet for online content distribution to your valuable visitor or customers.
|
23 |
|
24 |
1. Admin can import the data's from any CSV file.
|
25 |
2. Can import as post, page or custom post.
|
70 |
For guides and tutorials, visit http://forge.smackcoders.com/projects/wp-ultimate-csv-importer-free .
|
71 |
|
72 |
|
|
|
73 |
== Installation ==
|
74 |
|
75 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 3.2.1 = Performance improvements on SQL and CSV parsing
|
90 |
+
-- [resolved] require_once(plugin_deactivate.php): failed to open stream
|
91 |
+
-- [resolved] Links in the cells makes problems with the "quote"
|
92 |
+
-- [resolved] Loading content from more than one colunm
|
93 |
+
-- [resolved] Custom Post Plugin Not Found
|
94 |
+
|
95 |
= 3.2.0 = WordPress 3.6 compatibility added, Much Improved UI.
|
96 |
-- Featured image issues fixed for WordPress-3.6.
|
97 |
+
-- User interface improvements
|
|
|
98 |
|
99 |
= 3.1.0 = Much Improved Featured Image feature
|
100 |
-- Image url for featured image issues fixed
|
SmackImpCE.php
CHANGED
@@ -1,8 +1,39 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
*
|
4 |
-
*
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
require_once ("SmackWpHandler.php");
|
7 |
|
8 |
class SmackImpCE extends SmackWpHandler
|
@@ -72,11 +103,20 @@ class SmackImpCE extends SmackWpHandler
|
|
72 |
$this->getKeyVals();
|
73 |
}
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
/**
|
76 |
* Manage duplicates
|
77 |
*
|
78 |
-
* @param
|
79 |
-
*
|
80 |
*/
|
81 |
function duplicateChecks($type = 'title', $text, $gettype)
|
82 |
{
|
@@ -86,9 +126,9 @@ class SmackImpCE extends SmackWpHandler
|
|
86 |
$htmlDecode = html_entity_decode($text);
|
87 |
$strippedText = strip_tags($htmlDecode);
|
88 |
$contentLength = strlen($strippedText);
|
89 |
-
$allPosts_count = $wpdb->get_results("SELECT COUNT(ID) as count FROM $wpdb->posts WHERE post_status IN('publish','future','draft','pending','private')");
|
90 |
$allPosts_count = $allPosts_count[0]->count;
|
91 |
-
$allPosts = $wpdb->get_results("SELECT ID,post_title,post_date,post_content FROM $wpdb->posts WHERE post_status IN('publish','future','draft','pending','private')");
|
92 |
foreach ($allPosts as $allPost) {
|
93 |
$htmlDecodePCont = html_entity_decode($allPost->post_content);
|
94 |
$strippedTextPCont = strip_tags($htmlDecodePCont);
|
@@ -213,20 +253,30 @@ class SmackImpCE extends SmackWpHandler
|
|
213 |
ini_set("auto_detect_line_endings", true);
|
214 |
|
215 |
$data_rows = array();
|
216 |
-
|
217 |
-
|
218 |
-
$
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
}
|
226 |
-
$
|
|
|
|
|
|
|
|
|
|
|
227 |
}
|
228 |
-
fclose($resource);
|
229 |
-
ini_set("auto_detect_line_endings", false);
|
230 |
return $data_rows;
|
231 |
}
|
232 |
|
@@ -258,7 +308,6 @@ class SmackImpCE extends SmackWpHandler
|
|
258 |
}
|
259 |
|
260 |
foreach ($data_rows as $key => $value) {
|
261 |
-
|
262 |
for ($i = 0; $i < count($value); $i++) {
|
263 |
if (array_key_exists('mapping' . $i, $ret_array)) {
|
264 |
if ($ret_array ['mapping' . $i] != 'add_custom' . $i) {
|
@@ -269,13 +318,13 @@ class SmackImpCE extends SmackWpHandler
|
|
269 |
} else {
|
270 |
$new_post[$ret_array['mapping' . $i]] = $value[$i];
|
271 |
}
|
272 |
-
|
273 |
} else {
|
274 |
$new_post [$ret_array ['textbox' . $i]] = $value [$i];
|
275 |
$custom_array [$ret_array ['textbox' . $i]] = $value [$i];
|
276 |
}
|
277 |
}
|
278 |
}
|
|
|
279 |
for ($inc = 0; $inc < count($value); $inc++) {
|
280 |
foreach ($this->keys as $k => $v) {
|
281 |
if (array_key_exists($v, $new_post)) {
|
@@ -294,17 +343,27 @@ class SmackImpCE extends SmackWpHandler
|
|
294 |
}
|
295 |
}
|
296 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
if ($ckey != 'post_category' && $ckey != 'post_tag' && $ckey != 'featured_image' && $ckey != $smack_taxo [$ckey]) {
|
|
|
|
|
|
|
|
|
298 |
if (array_key_exists($ckey, $custom_array)) {
|
299 |
$darray [$ckey] = $new_post [$ckey];
|
300 |
} else {
|
301 |
if (array_key_exists($ckey, $smack_taxo)) {
|
|
|
302 |
} else {
|
303 |
-
$data_array
|
304 |
}
|
305 |
}
|
306 |
} else {
|
307 |
-
|
308 |
switch ($ckey) {
|
309 |
case 'post_tag' :
|
310 |
$tags [$ckey] = $new_post [$ckey];
|
@@ -324,6 +383,7 @@ class SmackImpCE extends SmackWpHandler
|
|
324 |
$file_type = explode('.', $filetype [$ckey]);
|
325 |
$count = count($file_type);
|
326 |
$type = $file_type [$count - 1];
|
|
|
327 |
if ($type == 'png') {
|
328 |
$file ['post_mime_type'] = 'image/png';
|
329 |
} else if ($type == 'jpg' || $type == 'jpeg') {
|
@@ -341,18 +401,17 @@ class SmackImpCE extends SmackWpHandler
|
|
341 |
else
|
342 |
$img_title .= '.' . $img_name[$r];
|
343 |
}
|
344 |
-
$img_name = $img_title;
|
345 |
} else {
|
346 |
$img_title = $img_name = $img_name [0];
|
347 |
}
|
348 |
-
$attachmentName = $img_title . '.' . $type;
|
349 |
$dir = wp_upload_dir();
|
350 |
$dirname = date('Y') . '/' . date('m');
|
351 |
$full_path = $dir ['basedir'] . '/' . $dirname;
|
352 |
$baseurl = $dir ['baseurl'] . '/' . $dirname;
|
353 |
$filename = explode('/', $file_url);
|
354 |
$file_split = count($filename);
|
355 |
-
$filepath = $full_path . '/' . $plain_filename;
|
356 |
$fileurl = $baseurl . '/' . $filename [$file_split - 1];
|
357 |
if (is_dir($full_path)) {
|
358 |
$smack_fileCopy = @copy($file_url, $filepath);
|
@@ -394,12 +453,17 @@ class SmackImpCE extends SmackWpHandler
|
|
394 |
$this->postFlag = $this->duplicateChecks('title', $data_array ['post_title'], $data_array ['post_type']);
|
395 |
|
396 |
if ($this->conDupCheck && $this->postFlag)
|
397 |
-
$this->postFlag = $this->duplicateChecks('content', $data_array ['post_content'], '');
|
|
|
398 |
|
399 |
if ($this->postFlag) {
|
400 |
unset ($sticky);
|
|
|
|
|
|
|
401 |
if ($_POST['importallwithps'] != 0)
|
402 |
$data_array['post_status'] = $_POST['importallwithps'];
|
|
|
403 |
switch ($data_array ['post_status']) {
|
404 |
case 1 :
|
405 |
$data_array['post_status'] = 'publish';
|
@@ -451,6 +515,7 @@ class SmackImpCE extends SmackWpHandler
|
|
451 |
$postuserid = $data_array ['post_author'];
|
452 |
$checkpostuserid = intval($data_array ['post_author']);
|
453 |
$postAuthorLen = strlen($checkpostuserid);
|
|
|
454 |
|
455 |
if ($authorLen == $postAuthorLen) {
|
456 |
$postauthor = $wpdb->get_results("select ID from $wpdb->users where ID = \"{$postuserid}\"");
|
@@ -458,7 +523,7 @@ class SmackImpCE extends SmackWpHandler
|
|
458 |
$postauthor = $wpdb->get_results("select ID from $wpdb->users where user_login = \"{$postuserid}\"");
|
459 |
}
|
460 |
|
461 |
-
if (!$postauthor
|
462 |
$data_array ['post_author'] = 1;
|
463 |
$this->noPostAuthCount++;
|
464 |
} else {
|
@@ -469,13 +534,14 @@ class SmackImpCE extends SmackWpHandler
|
|
469 |
if (!$data_array ['post_date'])
|
470 |
$data_array ['post_date'] = date('Y-m-d H:i:s');
|
471 |
$data_array ['post_date'] = date('Y-m-d H:i:s', strtotime($data_array ['post_date']));
|
|
|
472 |
if ($data_array)
|
473 |
$post_id = wp_insert_post($data_array);
|
474 |
unset($data_array);
|
475 |
unset($postauthor);
|
476 |
if ($post_id) {
|
477 |
$this->insPostCount++;
|
478 |
-
if ($sticky)
|
479 |
stick_post($post_id);
|
480 |
|
481 |
if (!empty ($custom_array)) {
|
@@ -487,8 +553,10 @@ class SmackImpCE extends SmackWpHandler
|
|
487 |
// Create custom taxonomy to post
|
488 |
if (!empty ($smack_taxo)) {
|
489 |
foreach ($smack_taxo as $taxo_key => $taxo_value) {
|
490 |
-
|
491 |
-
|
|
|
|
|
492 |
}
|
493 |
}
|
494 |
|
1 |
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
+
|
37 |
require_once ("SmackWpHandler.php");
|
38 |
|
39 |
class SmackImpCE extends SmackWpHandler
|
103 |
$this->getKeyVals();
|
104 |
}
|
105 |
|
106 |
+
/*
|
107 |
+
* Function to get the plugin row
|
108 |
+
* @$plugin_name as string
|
109 |
+
*/
|
110 |
+
public static function plugin_row($plugin_name)
|
111 |
+
{
|
112 |
+
echo '</tr><tr class="plugin-update-tr"><td colspan="3" class="plugin-update"><div class="update-message"> Upgrade to Pro Version Now for more features and 3rd party plugins (AIO, WP SEO YOAST, WooCommerce, WP e-Commerce, eShop, CCTM,ACF) support. <a href="http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html">Purchase pro version now!</a></div></td>';
|
113 |
+
}
|
114 |
+
|
115 |
/**
|
116 |
* Manage duplicates
|
117 |
*
|
118 |
+
* @param string type = (title|content), string content
|
119 |
+
* @return boolean
|
120 |
*/
|
121 |
function duplicateChecks($type = 'title', $text, $gettype)
|
122 |
{
|
126 |
$htmlDecode = html_entity_decode($text);
|
127 |
$strippedText = strip_tags($htmlDecode);
|
128 |
$contentLength = strlen($strippedText);
|
129 |
+
$allPosts_count = $wpdb->get_results("SELECT COUNT(ID) as count FROM $wpdb->posts WHERE post_type = \"{$gettype}\" and post_status IN('publish','future','draft','pending','private')");
|
130 |
$allPosts_count = $allPosts_count[0]->count;
|
131 |
+
$allPosts = $wpdb->get_results("SELECT ID,post_title,post_date,post_content FROM $wpdb->posts WHERE post_type = \"{$gettype}\" and post_status IN('publish','future','draft','pending','private')");
|
132 |
foreach ($allPosts as $allPost) {
|
133 |
$htmlDecodePCont = html_entity_decode($allPost->post_content);
|
134 |
$strippedTextPCont = strip_tags($htmlDecodePCont);
|
253 |
ini_set("auto_detect_line_endings", true);
|
254 |
|
255 |
$data_rows = array();
|
256 |
+
|
257 |
+
# Check whether file is present in the given file location
|
258 |
+
$fileexists = file_exists($file);
|
259 |
+
|
260 |
+
if ($fileexists) {
|
261 |
+
$resource = fopen($file, 'r');
|
262 |
+
|
263 |
+
$init = 0;
|
264 |
+
while ($keys = fgetcsv($resource, '', $this->delim, '"')) {
|
265 |
+
if ($init == 0) {
|
266 |
+
$this->headers = $keys;
|
267 |
+
} else {
|
268 |
+
if (!(($keys[0] == null) && (count($keys) == 1)))
|
269 |
+
array_push($data_rows, $keys);
|
270 |
+
}
|
271 |
+
$init++;
|
272 |
}
|
273 |
+
fclose($resource);
|
274 |
+
ini_set("auto_detect_line_endings", false);
|
275 |
+
} else {
|
276 |
+
# require_once "class.rendercsv.php";
|
277 |
+
# $impRen = new RenderCSVCE;
|
278 |
+
# echo $impRen->showMessage('error', "File Not Exists in this location $file");
|
279 |
}
|
|
|
|
|
280 |
return $data_rows;
|
281 |
}
|
282 |
|
308 |
}
|
309 |
|
310 |
foreach ($data_rows as $key => $value) {
|
|
|
311 |
for ($i = 0; $i < count($value); $i++) {
|
312 |
if (array_key_exists('mapping' . $i, $ret_array)) {
|
313 |
if ($ret_array ['mapping' . $i] != 'add_custom' . $i) {
|
318 |
} else {
|
319 |
$new_post[$ret_array['mapping' . $i]] = $value[$i];
|
320 |
}
|
|
|
321 |
} else {
|
322 |
$new_post [$ret_array ['textbox' . $i]] = $value [$i];
|
323 |
$custom_array [$ret_array ['textbox' . $i]] = $value [$i];
|
324 |
}
|
325 |
}
|
326 |
}
|
327 |
+
|
328 |
for ($inc = 0; $inc < count($value); $inc++) {
|
329 |
foreach ($this->keys as $k => $v) {
|
330 |
if (array_key_exists($v, $new_post)) {
|
343 |
}
|
344 |
}
|
345 |
}
|
346 |
+
|
347 |
+
$taxo_check = 0;
|
348 |
+
if (!isset($smack_taxo[$ckey])) {
|
349 |
+
$smack_taxo [$ckey] = null;
|
350 |
+
$taxo_check = 1;
|
351 |
+
}
|
352 |
if ($ckey != 'post_category' && $ckey != 'post_tag' && $ckey != 'featured_image' && $ckey != $smack_taxo [$ckey]) {
|
353 |
+
if ($taxo_check == 1) {
|
354 |
+
unset($smack_taxo[$ckey]);
|
355 |
+
$taxo_check = 0;
|
356 |
+
}
|
357 |
if (array_key_exists($ckey, $custom_array)) {
|
358 |
$darray [$ckey] = $new_post [$ckey];
|
359 |
} else {
|
360 |
if (array_key_exists($ckey, $smack_taxo)) {
|
361 |
+
$data_array[$ckey] = null;
|
362 |
} else {
|
363 |
+
$data_array[$ckey] = $new_post [$ckey];
|
364 |
}
|
365 |
}
|
366 |
} else {
|
|
|
367 |
switch ($ckey) {
|
368 |
case 'post_tag' :
|
369 |
$tags [$ckey] = $new_post [$ckey];
|
383 |
$file_type = explode('.', $filetype [$ckey]);
|
384 |
$count = count($file_type);
|
385 |
$type = $file_type [$count - 1];
|
386 |
+
|
387 |
if ($type == 'png') {
|
388 |
$file ['post_mime_type'] = 'image/png';
|
389 |
} else if ($type == 'jpg' || $type == 'jpeg') {
|
401 |
else
|
402 |
$img_title .= '.' . $img_name[$r];
|
403 |
}
|
|
|
404 |
} else {
|
405 |
$img_title = $img_name = $img_name [0];
|
406 |
}
|
407 |
+
$attachmentName = urldecode($img_title) . '.' . $type;
|
408 |
$dir = wp_upload_dir();
|
409 |
$dirname = date('Y') . '/' . date('m');
|
410 |
$full_path = $dir ['basedir'] . '/' . $dirname;
|
411 |
$baseurl = $dir ['baseurl'] . '/' . $dirname;
|
412 |
$filename = explode('/', $file_url);
|
413 |
$file_split = count($filename);
|
414 |
+
$filepath = $full_path . '/' . urldecode($plain_filename);
|
415 |
$fileurl = $baseurl . '/' . $filename [$file_split - 1];
|
416 |
if (is_dir($full_path)) {
|
417 |
$smack_fileCopy = @copy($file_url, $filepath);
|
453 |
$this->postFlag = $this->duplicateChecks('title', $data_array ['post_title'], $data_array ['post_type']);
|
454 |
|
455 |
if ($this->conDupCheck && $this->postFlag)
|
456 |
+
$this->postFlag = $this->duplicateChecks('content', $data_array ['post_content'], $data_array ['post_type']);
|
457 |
+
|
458 |
|
459 |
if ($this->postFlag) {
|
460 |
unset ($sticky);
|
461 |
+
if (empty($data_array['post_status']))
|
462 |
+
$data_array['post_status'] = null;
|
463 |
+
|
464 |
if ($_POST['importallwithps'] != 0)
|
465 |
$data_array['post_status'] = $_POST['importallwithps'];
|
466 |
+
|
467 |
switch ($data_array ['post_status']) {
|
468 |
case 1 :
|
469 |
$data_array['post_status'] = 'publish';
|
515 |
$postuserid = $data_array ['post_author'];
|
516 |
$checkpostuserid = intval($data_array ['post_author']);
|
517 |
$postAuthorLen = strlen($checkpostuserid);
|
518 |
+
$postauthor = array();
|
519 |
|
520 |
if ($authorLen == $postAuthorLen) {
|
521 |
$postauthor = $wpdb->get_results("select ID from $wpdb->users where ID = \"{$postuserid}\"");
|
523 |
$postauthor = $wpdb->get_results("select ID from $wpdb->users where user_login = \"{$postuserid}\"");
|
524 |
}
|
525 |
|
526 |
+
if (empty($postauthor) || !$postauthor[0]->ID) {
|
527 |
$data_array ['post_author'] = 1;
|
528 |
$this->noPostAuthCount++;
|
529 |
} else {
|
534 |
if (!$data_array ['post_date'])
|
535 |
$data_array ['post_date'] = date('Y-m-d H:i:s');
|
536 |
$data_array ['post_date'] = date('Y-m-d H:i:s', strtotime($data_array ['post_date']));
|
537 |
+
|
538 |
if ($data_array)
|
539 |
$post_id = wp_insert_post($data_array);
|
540 |
unset($data_array);
|
541 |
unset($postauthor);
|
542 |
if ($post_id) {
|
543 |
$this->insPostCount++;
|
544 |
+
if (isset($sticky) && $sticky)
|
545 |
stick_post($post_id);
|
546 |
|
547 |
if (!empty ($custom_array)) {
|
553 |
// Create custom taxonomy to post
|
554 |
if (!empty ($smack_taxo)) {
|
555 |
foreach ($smack_taxo as $taxo_key => $taxo_value) {
|
556 |
+
if (!empty($taxo_value)) {
|
557 |
+
$split_line = explode('|', $taxo_value);
|
558 |
+
wp_set_object_terms($post_id, $split_line, $taxo_key);
|
559 |
+
}
|
560 |
}
|
561 |
}
|
562 |
|
SmackWpHandler.php
CHANGED
@@ -1,42 +1,78 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
*
|
4 |
-
*
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
?>
|
1 |
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
+
|
37 |
+
class SmackWpHandler
|
38 |
+
{
|
39 |
+
|
40 |
+
/**
|
41 |
+
*/
|
42 |
+
function __construct()
|
43 |
+
{
|
44 |
+
|
45 |
+
// TODO - Not for now
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Smack translation
|
50 |
+
*/
|
51 |
+
function t($lstr)
|
52 |
+
{
|
53 |
+
global $slang;
|
54 |
+
return $slang [$lstr];
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Function to get user language
|
59 |
+
* TODO - Available on 3.0.x
|
60 |
+
*/
|
61 |
+
function user_language()
|
62 |
+
{
|
63 |
+
return "en_us";
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Exit operation
|
68 |
+
*
|
69 |
+
* @param $str string
|
70 |
+
* to display
|
71 |
+
*/
|
72 |
+
function freeze($str = "")
|
73 |
+
{
|
74 |
+
die ($str);
|
75 |
+
}
|
76 |
}
|
77 |
|
78 |
?>
|
class.rendercsv.php
CHANGED
@@ -1,10 +1,38 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
class RenderCSVCE
|
10 |
{
|
@@ -30,8 +58,13 @@ class RenderCSVCE
|
|
30 |
*/
|
31 |
function renderSettings()
|
32 |
{
|
|
|
|
|
|
|
|
|
|
|
33 |
$impCESett = new SmackImpCE();
|
34 |
-
|
35 |
$sett = $settobj->getSettings();
|
36 |
foreach ($sett as $key)
|
37 |
$$key = 'checked';
|
@@ -128,12 +161,17 @@ class RenderCSVCE
|
|
128 |
*/
|
129 |
function renderMenu()
|
130 |
{
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
132 |
$settings = $impSet->getSettings();
|
133 |
$impCEM = new SmackImpCE();
|
134 |
foreach ($settings as $key)
|
135 |
$$key = true;
|
136 |
-
if ($_POST['post_csv'] == 'Import')
|
137 |
$dashboard = 'selected';
|
138 |
else {
|
139 |
$action = $_REQUEST['action'];
|
1 |
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
|
37 |
class RenderCSVCE
|
38 |
{
|
58 |
*/
|
59 |
function renderSettings()
|
60 |
{
|
61 |
+
$selected_var = array('disable', 'enable', 'yoastseo', 'aioseo', 'nonerseooption', 'cctm', 'custompostuitype', 'wpcommerce', 'eshop', 'users', 'automapping', 'utfsupport', 'categories', 'customtaxonomy', 'comments', 'ecommerce');
|
62 |
+
foreach ($selected_var as $single_selected_var) {
|
63 |
+
$$single_selected_var = "";
|
64 |
+
}
|
65 |
+
|
66 |
$impCESett = new SmackImpCE();
|
67 |
+
$settobj = new IMPSettings();
|
68 |
$sett = $settobj->getSettings();
|
69 |
foreach ($sett as $key)
|
70 |
$$key = 'checked';
|
161 |
*/
|
162 |
function renderMenu()
|
163 |
{
|
164 |
+
$nav_var = array('post', 'page', 'custompost', 'settings', 'dashboard');
|
165 |
+
foreach ($nav_var as $single_navvar) {
|
166 |
+
$$single_navvar = "";
|
167 |
+
}
|
168 |
+
|
169 |
+
$impSet = new IMPSettings();
|
170 |
$settings = $impSet->getSettings();
|
171 |
$impCEM = new SmackImpCE();
|
172 |
foreach ($settings as $key)
|
173 |
$$key = true;
|
174 |
+
if (isset($_POST['post_csv']) && $_POST['post_csv'] == 'Import')
|
175 |
$dashboard = 'selected';
|
176 |
else {
|
177 |
$action = $_REQUEST['action'];
|
class.settings.php
CHANGED
@@ -1,4 +1,39 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
class IMPSettings
|
3 |
{
|
4 |
|
@@ -29,7 +64,7 @@ class IMPSettings
|
|
29 |
|
30 |
public function chkCustomTypePost()
|
31 |
{
|
32 |
-
|
33 |
}
|
34 |
|
35 |
public function isPluginPresent($plugin)
|
1 |
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
+
|
37 |
class IMPSettings
|
38 |
{
|
39 |
|
64 |
|
65 |
public function chkCustomTypePost()
|
66 |
{
|
67 |
+
return true;
|
68 |
}
|
69 |
|
70 |
public function isPluginPresent($plugin)
|
css/custom-style.css
CHANGED
@@ -1,973 +1,472 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
|
|
5 |
#helpatright li {
|
6 |
padding: 6px;
|
7 |
}
|
8 |
-
|
9 |
-
|
|
|
10 |
}
|
|
|
11 |
.success {
|
12 |
-
background
|
13 |
border: 1px solid #95A486 !important;
|
14 |
color: #3D6611 !important;
|
15 |
}
|
|
|
16 |
#dispLabel {
|
17 |
font-weight: bold;
|
18 |
text-align: center;
|
19 |
}
|
20 |
-
.mandatory{
|
21 |
-
color:red;
|
22 |
-
}
|
23 |
-
.addmarginright{
|
24 |
-
margin-right:30px;
|
25 |
-
}
|
26 |
-
.smack-wrap{
|
27 |
-
width:100%;
|
28 |
-
overflow:hidden;
|
29 |
-
}
|
30 |
-
.smack-postform{
|
31 |
-
width:50%;
|
32 |
-
float:left;
|
33 |
-
}
|
34 |
-
.module-desc{
|
35 |
-
width:50%;
|
36 |
-
float:right;
|
37 |
-
}
|
38 |
-
/*menu css*/
|
39 |
-
#header ul {
|
40 |
-
list-style: none;
|
41 |
-
padding: 0;
|
42 |
-
margin: 0;
|
43 |
-
}
|
44 |
-
.selected{
|
45 |
-
font-weight:bold;
|
46 |
-
border-bottom:1px solid white;
|
47 |
-
}
|
48 |
-
#header li {
|
49 |
-
float: left;
|
50 |
-
border: 2px solid #BCD5E1;
|
51 |
-
border-bottom-width: 0;
|
52 |
-
margin-left:5px;
|
53 |
-
-webkit-border-radius: 6px 6px 0 0;
|
54 |
-
-moz-border-radius: 6px 6px 0 0;
|
55 |
-
border-radius: 6px 6px 0 0;
|
56 |
-
}
|
57 |
-
|
58 |
-
#header a {
|
59 |
-
text-decoration: none;
|
60 |
-
display: block;
|
61 |
-
background: #E8F1F5;
|
62 |
-
padding: 7px 10px;
|
63 |
-
color: #103A4D;
|
64 |
-
text-align: center;
|
65 |
-
}
|
66 |
-
|
67 |
-
#header a:hover {
|
68 |
-
background: #D2E3EB;
|
69 |
-
}
|
70 |
-
|
71 |
-
#header #selected {
|
72 |
-
border-color: black;
|
73 |
-
}
|
74 |
-
|
75 |
-
#header #selected a {
|
76 |
-
position: relative;
|
77 |
-
top: 1px;
|
78 |
-
background: white;
|
79 |
-
color: black;
|
80 |
-
font-weight: bold;
|
81 |
-
}
|
82 |
-
|
83 |
-
#content {
|
84 |
-
border: 1px solid black;
|
85 |
-
clear: both;
|
86 |
-
padding: 0 1em;
|
87 |
-
}
|
88 |
-
.error {
|
89 |
-
background: #FAEBE7 !important;
|
90 |
-
border: 1px solid #F16048 !important;
|
91 |
-
color: #DF280A !important;
|
92 |
-
}
|
93 |
-
#topNavigation{
|
94 |
-
margin:20px;
|
95 |
-
font-size: 1.2em;
|
96 |
-
}
|
97 |
-
.success{
|
98 |
-
background-color:#EFF5EA;
|
99 |
-
border: 1px solid #95A486 !important;
|
100 |
-
color: #3D6611 !important;
|
101 |
-
}
|
102 |
-
.msg{
|
103 |
-
font-weight: bold !important;
|
104 |
-
margin: 0 auto !important;
|
105 |
-
width:60%;
|
106 |
-
text-align:center;
|
107 |
-
min-height: 23px !important;
|
108 |
-
padding: 8px 8px 2px 32px !important;
|
109 |
-
margin-top:5px !important;
|
110 |
-
}
|
111 |
-
.settingscontainer td input{
|
112 |
-
}
|
113 |
-
.settingscontainer td label{
|
114 |
-
margin:5px;
|
115 |
-
}
|
116 |
-
.error{
|
117 |
-
background-color:#FAEBE7 !important;
|
118 |
-
border: 1px solid #F16048 !important;
|
119 |
-
color: #DF280A !important;
|
120 |
-
}
|
121 |
-
.navigationMenu-link-active {
|
122 |
-
background-color: #808080;
|
123 |
-
border-top:1px solid #464646;
|
124 |
-
border-left:1px solid #464646;
|
125 |
-
border-right:1px solid #464646;
|
126 |
-
border-bottom:1px solid #FFFFFF;
|
127 |
-
padding: 5px;
|
128 |
-
margin: 3px;
|
129 |
-
border-top-left-radius: 6px;
|
130 |
-
border-top-right-radius: 6px;
|
131 |
-
color: #FFFFFF;
|
132 |
-
text-decoration: none;
|
133 |
-
}
|
134 |
-
|
135 |
-
.navigationMenu-link-active:hover {
|
136 |
-
color:#FFFFFF;
|
137 |
-
}
|
138 |
-
.formandhelp{
|
139 |
-
margin-top:20px;
|
140 |
-
}
|
141 |
-
.csv-top-navigation-wrapper {
|
142 |
-
padding-bottom: 6px;
|
143 |
-
display:block;
|
144 |
-
width:100%;
|
145 |
-
margin-top:20px;
|
146 |
-
margin-bottom:20px;
|
147 |
-
height:27px;
|
148 |
-
border-bottom:2px solid #BCD5E1;
|
149 |
-
}
|
150 |
-
#topNavigation .selected a{
|
151 |
-
background-color:#fff;
|
152 |
-
}
|
153 |
-
#topNavigation .selected{
|
154 |
-
border-bottom:2px solid white;
|
155 |
-
}
|
156 |
-
@media screen and (-webkit-min-device-pixel-ratio:0){
|
157 |
-
.csv-top-navigation-wrapper{
|
158 |
-
height:26px;
|
159 |
-
}
|
160 |
-
}
|
161 |
-
#pluginDetails h3,#overview-detail h3,#pluginManager h3{
|
162 |
-
padding: 7px;
|
163 |
-
font-weight:bold;
|
164 |
-
// color:#FFFFFF;
|
165 |
-
// border : 1px solid #21759B;
|
166 |
-
background-color: #F1F1F1;
|
167 |
-
font-style:oblique;
|
168 |
-
font-size:medium;
|
169 |
-
}
|
170 |
-
|
171 |
-
.dash-inside{
|
172 |
-
padding: 10px;
|
173 |
-
margin-top:-14px;
|
174 |
-
line-height:1.5;
|
175 |
-
border: 1px solid #EEEEEE;
|
176 |
-
}
|
177 |
-
|
178 |
-
.plugin-details{
|
179 |
-
height: 130px;
|
180 |
-
}
|
181 |
-
|
182 |
-
.company-detials{
|
183 |
-
// height:90px;
|
184 |
-
// margin-top:-25px;
|
185 |
-
}
|
186 |
-
|
187 |
-
.sociallinks{
|
188 |
-
float: right;
|
189 |
-
margin-top:-63px;
|
190 |
-
}
|
191 |
-
|
192 |
-
.poweredby{
|
193 |
-
margin-top:-30px;
|
194 |
-
float:right;
|
195 |
-
}
|
196 |
-
#csv_import{
|
197 |
-
float:left;
|
198 |
-
}
|
199 |
-
.rateus{
|
200 |
-
width:25%;
|
201 |
-
}
|
202 |
-
|
203 |
-
.dash-manager{
|
204 |
-
padding:7px;
|
205 |
-
}
|
206 |
-
|
207 |
-
.dashboard-box{
|
208 |
-
font-weight: normal;
|
209 |
-
line-height: 1;
|
210 |
-
margin: 0;
|
211 |
-
width:75%;
|
212 |
-
float:left;
|
213 |
-
padding: 7px 10px;
|
214 |
-
}
|
215 |
-
|
216 |
-
.dashboardbox {
|
217 |
-
width: 99%;
|
218 |
-
}
|
219 |
-
|
220 |
-
.smack-left{
|
221 |
-
font-size:1.2em;
|
222 |
-
font-style:oblique;
|
223 |
-
font-family:Georgia;
|
224 |
-
text-align:left;
|
225 |
-
}
|
226 |
-
|
227 |
-
.smack-right{
|
228 |
-
font-weight:bold;
|
229 |
-
font-style:oblique;
|
230 |
-
font-size:medium;
|
231 |
-
font-family:Georgia;
|
232 |
-
text-align:right;
|
233 |
-
}
|
234 |
-
|
235 |
-
.smack-thead{
|
236 |
-
font-size: 1em;
|
237 |
-
}
|
238 |
-
|
239 |
-
.t-head{
|
240 |
-
text-align:center;
|
241 |
-
font-weight:bold;
|
242 |
-
}
|
243 |
-
|
244 |
-
.t-small{
|
245 |
-
min-width: 13%;
|
246 |
-
}
|
247 |
-
|
248 |
-
.t-medium{
|
249 |
-
min-width: 20%;
|
250 |
-
}
|
251 |
-
|
252 |
-
.t-big{
|
253 |
-
min-width: 28%;
|
254 |
-
}
|
255 |
-
|
256 |
-
.t-tiny{
|
257 |
-
min-width: 6%;
|
258 |
-
padding:5px;
|
259 |
-
}
|
260 |
-
|
261 |
-
.dash-action{
|
262 |
-
cursor:pointer;
|
263 |
-
text-decoration:none;
|
264 |
-
}
|
265 |
-
|
266 |
-
.smackHeler{
|
267 |
-
font-weight: bold;
|
268 |
-
font-size: 1.2em;
|
269 |
-
text-align: center;
|
270 |
-
width: 100%;
|
271 |
-
color:red;
|
272 |
-
}
|
273 |
-
|
274 |
-
.smackaltrow{
|
275 |
-
background-color: #F9F9F9;
|
276 |
-
}
|
277 |
|
278 |
-
.
|
279 |
-
|
280 |
-
background-color: #E8F1F5;
|
281 |
-
text-decoration:none;
|
282 |
-
padding: 5px;
|
283 |
-
font-size: medium;
|
284 |
-
font-weight: bold;
|
285 |
-
padding: 7px;
|
286 |
-
min-width:600px;
|
287 |
-
}
|
288 |
-
.switchercontent{
|
289 |
-
border: 1px solid #EEEEEE;
|
290 |
-
background-color: #FFFFFF;
|
291 |
-
display: none;
|
292 |
-
padding: 5px;
|
293 |
-
}
|
294 |
-
|
295 |
-
.switchercontentodd{
|
296 |
-
border: 1px solid #EEEEEE;
|
297 |
-
background-color: #FFFFFF;
|
298 |
-
display: block;
|
299 |
-
font-style: oblique;
|
300 |
-
padding: 5px;
|
301 |
}
|
302 |
|
303 |
-
.
|
304 |
-
|
305 |
-
color:#515151;
|
306 |
-
width:100%;
|
307 |
}
|
308 |
|
309 |
-
.
|
310 |
-
|
311 |
-
|
312 |
-
.settingsicon {
|
313 |
-
margin-bottom: -4px;
|
314 |
-
}
|
315 |
-
.pluginAbsent:hover{
|
316 |
-
color:red;
|
317 |
-
}
|
318 |
-
.pluginPresent:hover{
|
319 |
-
color:red;
|
320 |
-
}
|
321 |
-
.pluginActive:hover{
|
322 |
-
color:green;
|
323 |
-
}
|
324 |
-
/*settings page*/
|
325 |
-
/* added now -- */
|
326 |
-
/*html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent;}body {line-height: 1;}ol, ul {list-style: none;}blockquote, q {quotes:none;}blockquote:before, blockquote:after, q:before, q:after {content: '';content: none;}:focus {outline: 0;}ins {text-decoration: none;}del {text-decoration: line-through;}table {border-collapse: collapse;border-spacing: 0;}
|
327 |
-
body {font-size:87.5%;font-family:"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;font-weight:300;color:#8c8a8b;text-align:center;line-height:1.7em;}
|
328 |
-
a:link, a:visited, strong {color:#e15d46;}
|
329 |
-
a:hover {text-decoration:none;}
|
330 |
-
h1 {font-size:6em;font-family: 'Engagement', cursive;line-height:1.89em;text-shadow:1px 1px 0px #fff, 2px 2px 0px rgba(0, 0, 0, 0.1), 3px 3px 0px #fff, 4px 4px 0px rgba(0, 0, 0, 0.1), 5px 5px 0px #fff;}
|
331 |
-
.left {float:left;}
|
332 |
-
.right {float:right;}
|
333 |
-
form {width:560px;margin:0px auto;text-align:left;}
|
334 |
-
p {border-top:1px dotted #c7c7c7;}
|
335 |
-
li {border-top:1px dotted #c7c7c7;min-height:27px;}
|
336 |
-
|
337 |
-
/*****************/
|
338 |
-
/* The actual form */
|
339 |
-
/*****************/
|
340 |
-
/*
|
341 |
-
label {
|
342 |
-
float:left;
|
343 |
-
width:180px;
|
344 |
-
}
|
345 |
-
|
346 |
-
input,
|
347 |
-
select,
|
348 |
-
textarea,
|
349 |
-
button {
|
350 |
-
background:#fff;
|
351 |
-
font-size:1em;
|
352 |
-
font-family:"HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
353 |
-
font-weight:300;
|
354 |
-
color:#8c8a8b;
|
355 |
-
}
|
356 |
-
|
357 |
-
input[type=text],
|
358 |
-
input[type=password],
|
359 |
-
input[type=email],
|
360 |
-
textarea {
|
361 |
-
border:1px solid #c7c7c7;
|
362 |
-
outline:5px solid rgba(0, 0, 0, 0.1);
|
363 |
-
padding:3px 5px;
|
364 |
-
}
|
365 |
-
|
366 |
-
input[type=text]:focus,
|
367 |
-
input[type=text]:active,
|
368 |
-
input[type=password]:active,
|
369 |
-
input[type=password]:focus,
|
370 |
-
input[type=email]:active,
|
371 |
-
input[type=email]:focus,
|
372 |
-
textarea:active,
|
373 |
-
textarea:focus {
|
374 |
-
outline:5px solid rgba(0, 0, 0, 0.2);
|
375 |
-
}
|
376 |
-
|
377 |
-
textarea {
|
378 |
-
height:174px;
|
379 |
-
}
|
380 |
-
|
381 |
-
button {
|
382 |
-
background: #f2f2f2;
|
383 |
-
background: -moz-linear-gradient(top, #f2f2f2 0%, #e8e8e8 100%);
|
384 |
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#e8e8e8));
|
385 |
-
background: -webkit-linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
386 |
-
background: -o-linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
387 |
-
background: -ms-linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
388 |
-
background: linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
389 |
-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#e8e8e8',GradientType=0 );
|
390 |
-
-webkit-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
|
391 |
-
-moz-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
|
392 |
-
box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
|
393 |
-
border-color: #eeeced #eeeced #9b9b9b;
|
394 |
-
border-style: solid;
|
395 |
-
border-width: 1px;
|
396 |
-
-webkit-border-radius: 20px;
|
397 |
-
-moz-border-radius: 20px;
|
398 |
-
border-radius: 20px;
|
399 |
-
padding:5px 30px;
|
400 |
-
font-weight:bold;
|
401 |
-
text-shadow:0px 1px 0px #fff;
|
402 |
-
cursor:pointer;
|
403 |
-
}
|
404 |
-
|
405 |
-
button:hover {
|
406 |
-
background:#f5f5f5;
|
407 |
-
}
|
408 |
-
|
409 |
-
button:focus,
|
410 |
-
button:active {
|
411 |
-
background:#e8e8e8;
|
412 |
-
}
|
413 |
-
|
414 |
-
button.action {
|
415 |
-
background: #fa765f;
|
416 |
-
background: -moz-linear-gradient(top, #fa765f 0%, #e15d46 100%);
|
417 |
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fa765f), color-stop(100%,#e15d46));
|
418 |
-
background: -webkit-linear-gradient(top, #fa765f 0%,#e15d46 100%);
|
419 |
-
background: -o-linear-gradient(top, #fa765f 0%,#e15d46 100%);
|
420 |
-
background: -ms-linear-gradient(top, #fa765f 0%,#e15d46 100%);
|
421 |
-
background: linear-gradient(top, #fa765f 0%,#e15d46 100%);
|
422 |
-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fa765f', endColorstr='#e15d46',GradientType=0 );
|
423 |
-
-webkit-box-shadow: inset 0px 1px 0px 0px rgba(255, 179, 166, 1);
|
424 |
-
-moz-box-shadow: inset 0px 1px 0px 0px rgba(255, 179, 166, 1);
|
425 |
-
box-shadow: inset 0px 1px 0px 0px rgba(255, 179, 166, 1);
|
426 |
-
border-color: #fc7f6b #fc7f6b #d0432f;
|
427 |
-
color:#b13e2d;
|
428 |
-
text-shadow:0px 1px 0px #ffb3a5;
|
429 |
-
float:right;
|
430 |
}
|
431 |
|
432 |
-
|
433 |
-
|
|
|
434 |
}
|
435 |
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
}
|
440 |
|
441 |
-
/*
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
License: Creative Commons Share Alike
|
447 |
-
---
|
448 |
-
For use with the Uniform plugin:
|
449 |
-
http://pixelmatrixdesign.com/uniform/
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
div.selector,
|
455 |
-
div.selector span,
|
456 |
-
div.checker span,
|
457 |
-
div.radio span,
|
458 |
-
div.uploader,
|
459 |
-
div.uploader span.action {
|
460 |
-
background-image: url(../images/sprite.png);
|
461 |
-
background-repeat: no-repeat;
|
462 |
-
}
|
463 |
-
|
464 |
-
.selector,
|
465 |
-
.radio,
|
466 |
-
.checker,
|
467 |
-
.uploader,
|
468 |
-
.selector *,
|
469 |
-
.radio *,
|
470 |
-
.checker *,
|
471 |
-
.uploader *{
|
472 |
-
margin: 0;
|
473 |
-
padding: 0;
|
474 |
-
}
|
475 |
-
|
476 |
-
/* SPRITES */
|
477 |
-
|
478 |
-
/* Select */
|
479 |
-
/*
|
480 |
-
div.selector {
|
481 |
-
background-position: -483px -160px;
|
482 |
-
line-height: 32px;
|
483 |
-
height: 32px;float:left;
|
484 |
}
|
485 |
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
line-height: 32px;
|
490 |
-
}
|
491 |
-
.selector option {padding:3px;border-bottom:1px dotted #ccc;}
|
492 |
-
div.selector select {
|
493 |
-
top:2px;
|
494 |
-
left:10px;border:1px solid #333;
|
495 |
}
|
496 |
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
500 |
}
|
501 |
|
502 |
-
|
503 |
-
|
504 |
-
|
|
|
|
|
|
|
|
|
505 |
}
|
506 |
|
507 |
-
|
508 |
-
|
509 |
}
|
510 |
|
511 |
-
|
512 |
-
|
513 |
}
|
514 |
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
|
|
520 |
}
|
521 |
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
background-position: right -96px;
|
527 |
}
|
528 |
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
}
|
534 |
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
background-position: right -128px;
|
539 |
}
|
540 |
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
}
|
546 |
|
547 |
-
|
548 |
-
|
549 |
-
|
|
|
|
|
|
|
|
|
|
|
550 |
}
|
551 |
|
552 |
-
|
553 |
-
background-position: 0px -320px;
|
554 |
-
height: 23px;
|
555 |
-
width: 23px;
|
556 |
}
|
557 |
|
558 |
-
|
559 |
-
|
560 |
-
background-position: -23px -320px;
|
561 |
}
|
562 |
|
563 |
-
|
564 |
-
|
565 |
-
|
|
|
566 |
}
|
567 |
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
}
|
574 |
|
575 |
-
|
576 |
-
|
577 |
}
|
578 |
|
579 |
-
|
580 |
-
|
581 |
-
background-position: -115px -320px;
|
582 |
}
|
583 |
|
584 |
-
|
585 |
-
|
586 |
-
|
|
|
|
|
|
|
|
|
|
|
587 |
}
|
588 |
|
589 |
-
|
590 |
-
|
591 |
-
div.checker.active:hover span.checked,
|
592 |
-
div.checker.active.focus span.checked {
|
593 |
-
background-position: -161px -320px;
|
594 |
}
|
595 |
|
596 |
-
|
597 |
-
|
598 |
-
div.checker.disabled.active span {
|
599 |
-
background-position: -184px -320px;
|
600 |
}
|
601 |
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
}
|
607 |
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
|
|
|
|
612 |
}
|
613 |
|
614 |
-
|
615 |
-
|
616 |
-
|
|
|
|
|
617 |
}
|
618 |
|
619 |
-
|
620 |
-
|
621 |
-
width: 23px;
|
622 |
-
background-position: 0px -343px;
|
623 |
}
|
624 |
|
625 |
-
|
626 |
-
div.radio.active span {
|
627 |
-
background-position: -23px -343px;
|
628 |
}
|
629 |
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
}
|
634 |
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
div.radio.active.focus span {
|
639 |
-
background-position: -69px -343px;
|
640 |
}
|
641 |
|
642 |
-
|
643 |
-
|
644 |
}
|
645 |
|
646 |
-
|
647 |
-
|
648 |
-
background-position: -115px -343px;
|
649 |
}
|
650 |
|
651 |
-
|
652 |
-
|
653 |
}
|
654 |
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
|
|
|
|
660 |
}
|
661 |
|
662 |
-
|
663 |
-
|
664 |
-
div.radio.disabled.active span {
|
665 |
-
background-position: -184px -343px;
|
666 |
}
|
667 |
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
|
|
672 |
}
|
673 |
|
674 |
-
|
675 |
-
|
676 |
-
|
|
|
|
|
|
|
677 |
}
|
678 |
|
679 |
-
|
680 |
-
|
681 |
-
height: 24px;
|
682 |
-
line-height: 24px;
|
683 |
}
|
684 |
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
margin: 4px 0px 4px 0px;
|
689 |
-
line-height: 24px;
|
690 |
}
|
691 |
|
692 |
-
|
693 |
-
|
694 |
-
div.uploader:hover {
|
695 |
-
background-position: 0px -430px;
|
696 |
}
|
697 |
|
698 |
-
|
699 |
-
|
700 |
-
div.uploader:hover span.action {
|
701 |
-
background:#f2f2f2;
|
702 |
}
|
703 |
|
704 |
-
|
705 |
-
|
706 |
-
background-position: right -558px;
|
707 |
}
|
708 |
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
div.uploader:focus:active span.action {
|
713 |
-
background-position: right -590px;
|
714 |
}
|
715 |
|
716 |
-
|
717 |
-
|
|
|
718 |
}
|
719 |
|
720 |
-
|
721 |
-
|
|
|
|
|
|
|
|
|
722 |
}
|
723 |
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
div.selector {
|
728 |
-
margin-bottom:0px;
|
729 |
-
width: 250px;
|
730 |
-
color: #464545;
|
731 |
-
font-size: 14px;cursor:pointer;
|
732 |
}
|
733 |
|
734 |
-
|
735 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
}
|
737 |
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
text-shadow: 0px 1px 0px #fff;
|
744 |
}
|
745 |
|
746 |
-
|
747 |
-
|
|
|
|
|
|
|
|
|
748 |
}
|
749 |
|
750 |
-
|
751 |
-
|
752 |
-
|
|
|
753 |
}
|
754 |
-
div.radio {
|
755 |
-
margin-right: 10px;
|
756 |
-
}
|
757 |
-
|
758 |
|
759 |
-
|
760 |
-
|
761 |
-
margin-bottom: 20px;
|
762 |
-
cursor: pointer;
|
763 |
-
outline:5px solid rgba(0, 0, 0, 0.1);
|
764 |
}
|
765 |
|
766 |
-
|
767 |
-
|
768 |
}
|
769 |
|
770 |
-
|
771 |
-
|
772 |
-
text-align: center;
|
773 |
-
text-shadow:#fff 0px 1px 0px;
|
774 |
-
font-weight: bold;
|
775 |
-
background: #f2f2f2;
|
776 |
-
background: -moz-linear-gradient(top, #f2f2f2 0%, #e8e8e8 100%);
|
777 |
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f2f2), color-stop(100%,#e8e8e8));
|
778 |
-
background: -webkit-linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
779 |
-
background: -o-linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
780 |
-
background: -ms-linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
781 |
-
background: linear-gradient(top, #f2f2f2 0%,#e8e8e8 100%);
|
782 |
-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#e8e8e8',GradientType=0 );
|
783 |
-
-webkit-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
|
784 |
-
-moz-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
|
785 |
-
box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 1);
|
786 |
-
border-right:1px solid #c7c7c7;
|
787 |
-
border-left:1px solid #c7c7c7;
|
788 |
}
|
789 |
|
790 |
-
|
791 |
-
|
792 |
}
|
793 |
|
794 |
-
|
795 |
-
|
796 |
}
|
797 |
|
798 |
-
|
799 |
-
|
|
|
800 |
}
|
801 |
|
802 |
-
|
803 |
-
|
804 |
}
|
805 |
|
806 |
-
|
807 |
-
|
808 |
-
color: #aaa;
|
809 |
}
|
810 |
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
Not advised to edit stuff below this line
|
815 |
-
-----------------------------------------------------
|
816 |
-
.selector select:focus, .radio input:focus, .checker input:focus, uploader input:focus {
|
817 |
-
outline: 0;
|
818 |
}
|
819 |
|
820 |
-
|
821 |
-
|
822 |
-
|
|
|
|
|
823 |
}
|
824 |
|
825 |
-
|
826 |
-
|
827 |
-
float: left;
|
828 |
}
|
829 |
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
}
|
834 |
|
835 |
-
|
836 |
-
|
837 |
-
position: relative;
|
838 |
-
float: left;
|
839 |
}
|
840 |
|
841 |
-
|
842 |
-
|
843 |
-
float: left;
|
844 |
-
text-align: center;
|
845 |
}
|
846 |
|
847 |
-
div.
|
848 |
-
|
849 |
-
|
850 |
}
|
851 |
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
float: left;
|
856 |
}
|
857 |
|
858 |
-
|
859 |
-
|
860 |
-
float: left;
|
861 |
-
text-align: center;
|
862 |
}
|
863 |
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
display: inline-block;
|
868 |
}
|
869 |
|
870 |
-
|
871 |
-
|
872 |
-
float: left;
|
873 |
-
overflow: hidden;
|
874 |
}
|
875 |
|
876 |
-
|
877 |
-
float: left;
|
878 |
-
display: inline;
|
879 |
-
margin:1px 0px;
|
880 |
-
overflow: hidden;
|
881 |
-
cursor: pointer;
|
882 |
-
padding:3px 0px;*//*
|
883 |
}
|
884 |
|
885 |
-
|
886 |
-
|
887 |
-
float: left;
|
888 |
-
display: block;
|
889 |
-
overflow: hidden;
|
890 |
-
text-overflow: ellipsis;
|
891 |
-
white-space: nowrap;
|
892 |
}
|
893 |
|
894 |
-
|
895 |
-
|
896 |
-
position: absolute;
|
897 |
-
top: 0;
|
898 |
-
right: 0;
|
899 |
-
bottom: 0;
|
900 |
-
float: right;
|
901 |
-
}
|
902 |
-
label.checked{
|
903 |
-
color:#203E7C;
|
904 |
-
#text-decoration:underline;
|
905 |
-
}*/
|
906 |
-
table.importform{
|
907 |
-
width:100%;
|
908 |
-
margin-top:25px;
|
909 |
-
}
|
910 |
-
.detectDup {
|
911 |
-
width: 220px;
|
912 |
-
}
|
913 |
-
.detectDup1 {
|
914 |
-
width: 150px;
|
915 |
}
|
916 |
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
.maperror{
|
921 |
-
position:fixed;
|
922 |
-
z-index:999;
|
923 |
-
width:250px;
|
924 |
-
right:200px;
|
925 |
-
}
|
926 |
-
.iconatright{
|
927 |
-
float:right;
|
928 |
-
}
|
929 |
-
.helpatright{
|
930 |
-
border: 1px solid #EEEEEE;
|
931 |
-
margin-top: 25px;
|
932 |
-
}
|
933 |
-
.helpatright li{
|
934 |
-
padding:15px;
|
935 |
-
}
|
936 |
-
.helpatright > ul{
|
937 |
-
margin-top:40px;
|
938 |
-
}
|
939 |
-
div.helpatright h4{
|
940 |
-
float:left;
|
941 |
-
padding:0 0 0 18px;
|
942 |
-
}
|
943 |
-
.tickWrongImg{
|
944 |
-
display: block;
|
945 |
-
padding-left: 10px;
|
946 |
-
}
|
947 |
-
#dashboard-wrap{
|
948 |
-
margin-bottom:20px;
|
949 |
-
}
|
950 |
-
.uploadlabel{
|
951 |
-
float:left;
|
952 |
-
width:100px;
|
953 |
-
}
|
954 |
-
.renameOrUpdate{
|
955 |
-
display:none;
|
956 |
-
}
|
957 |
-
.secondform{
|
958 |
-
}
|
959 |
-
#posttypecss td{
|
960 |
-
padding:10px;
|
961 |
-
}
|
962 |
-
#display_area td{
|
963 |
-
padding:10px;
|
964 |
-
}
|
965 |
-
.customfieldtext{
|
966 |
-
margin-left:25px;
|
967 |
}
|
968 |
|
969 |
.upgradetopro {
|
970 |
-
color: red;
|
971 |
-
|
972 |
-
|
973 |
}
|
1 |
+
/*********************************************************************************
|
2 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
3 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
4 |
+
*
|
5 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
6 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
7 |
+
* published by the Free Software Foundation with the addition of the following
|
8 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
9 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
10 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
11 |
+
* PARTY RIGHTS.
|
12 |
+
*
|
13 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
14 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
15 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
16 |
+
* more details.
|
17 |
+
*
|
18 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
19 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
20 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
21 |
+
* 02110-1301 USA.
|
22 |
+
*
|
23 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
24 |
+
*
|
25 |
+
* The interactive user interfaces in original and modified versions
|
26 |
+
* of this program must display Appropriate Legal Notices, as required under
|
27 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
28 |
+
*
|
29 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
30 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
31 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
32 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
33 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
34 |
+
********************************************************************************/
|
35 |
+
|
36 |
+
.navigationMenu {
|
37 |
+
float: left;
|
38 |
+
cursor: pointer;
|
39 |
}
|
40 |
+
|
41 |
#helpatright li {
|
42 |
padding: 6px;
|
43 |
}
|
44 |
+
|
45 |
+
.versionbox {
|
46 |
+
width: 100px;
|
47 |
}
|
48 |
+
|
49 |
.success {
|
50 |
+
background: #EFF5EA !important;
|
51 |
border: 1px solid #95A486 !important;
|
52 |
color: #3D6611 !important;
|
53 |
}
|
54 |
+
|
55 |
#dispLabel {
|
56 |
font-weight: bold;
|
57 |
text-align: center;
|
58 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
+
.mandatory {
|
61 |
+
color: red;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
|
64 |
+
.addmarginright {
|
65 |
+
margin-right: 30px;
|
|
|
|
|
66 |
}
|
67 |
|
68 |
+
.smack-wrap {
|
69 |
+
width: 100%;
|
70 |
+
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
+
.smack-postform {
|
74 |
+
width: 50%;
|
75 |
+
float: left;
|
76 |
}
|
77 |
|
78 |
+
.module-desc {
|
79 |
+
width: 50%;
|
80 |
+
float: right;
|
81 |
}
|
82 |
|
83 |
+
/*menu css*/
|
84 |
+
#header ul {
|
85 |
+
list-style: none;
|
86 |
+
padding: 0;
|
87 |
+
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
+
.selected {
|
91 |
+
font-weight: bold;
|
92 |
+
border-bottom: 1px solid white;
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
95 |
+
#header li {
|
96 |
+
float: left;
|
97 |
+
border: 2px solid #BCD5E1;
|
98 |
+
border-bottom-width: 0;
|
99 |
+
margin-left: 5px;
|
100 |
+
-webkit-border-radius: 6px 6px 0 0;
|
101 |
+
-moz-border-radius: 6px 6px 0 0;
|
102 |
+
border-radius: 6px 6px 0 0;
|
103 |
}
|
104 |
|
105 |
+
#header a {
|
106 |
+
text-decoration: none;
|
107 |
+
display: block;
|
108 |
+
background: #E8F1F5;
|
109 |
+
padding: 7px 10px;
|
110 |
+
color: #103A4D;
|
111 |
+
text-align: center;
|
112 |
}
|
113 |
|
114 |
+
#header a:hover {
|
115 |
+
background: #D2E3EB;
|
116 |
}
|
117 |
|
118 |
+
#header #selected {
|
119 |
+
border-color: black;
|
120 |
}
|
121 |
|
122 |
+
#header #selected a {
|
123 |
+
position: relative;
|
124 |
+
top: 1px;
|
125 |
+
background: white;
|
126 |
+
color: black;
|
127 |
+
font-weight: bold;
|
128 |
}
|
129 |
|
130 |
+
#content {
|
131 |
+
border: 1px solid black;
|
132 |
+
clear: both;
|
133 |
+
padding: 0 1em;
|
|
|
134 |
}
|
135 |
|
136 |
+
.error {
|
137 |
+
background: #FAEBE7 !important;
|
138 |
+
border: 1px solid #F16048 !important;
|
139 |
+
color: #DF280A !important;
|
140 |
}
|
141 |
|
142 |
+
#topNavigation {
|
143 |
+
margin: 20px;
|
144 |
+
font-size: 1.2em;
|
|
|
145 |
}
|
146 |
|
147 |
+
.success {
|
148 |
+
background-color: #EFF5EA;
|
149 |
+
border: 1px solid #95A486 !important;
|
150 |
+
color: #3D6611 !important;
|
151 |
}
|
152 |
|
153 |
+
.msg {
|
154 |
+
font-weight: bold !important;
|
155 |
+
margin: 0 auto !important;
|
156 |
+
width: 60%;
|
157 |
+
text-align: center;
|
158 |
+
min-height: 23px !important;
|
159 |
+
padding: 8px 8px 2px 32px !important;
|
160 |
+
margin-top: 5px !important;
|
161 |
}
|
162 |
|
163 |
+
.settingscontainer td input {
|
|
|
|
|
|
|
164 |
}
|
165 |
|
166 |
+
.settingscontainer td label {
|
167 |
+
margin: 5px;
|
|
|
168 |
}
|
169 |
|
170 |
+
.error {
|
171 |
+
background-color: #FAEBE7 !important;
|
172 |
+
border: 1px solid #F16048 !important;
|
173 |
+
color: #DF280A !important;
|
174 |
}
|
175 |
|
176 |
+
.navigationMenu-link-active {
|
177 |
+
background-color: #808080;
|
178 |
+
border-top: 1px solid #464646;
|
179 |
+
border-left: 1px solid #464646;
|
180 |
+
border-right: 1px solid #464646;
|
181 |
+
border-bottom: 1px solid #FFFFFF;
|
182 |
+
padding: 5px;
|
183 |
+
margin: 3px;
|
184 |
+
border-top-left-radius: 6px;
|
185 |
+
border-top-right-radius: 6px;
|
186 |
+
color: #FFFFFF;
|
187 |
+
text-decoration: none;
|
188 |
}
|
189 |
|
190 |
+
.navigationMenu-link-active:hover {
|
191 |
+
color: #FFFFFF;
|
192 |
}
|
193 |
|
194 |
+
.formandhelp {
|
195 |
+
margin-top: 20px;
|
|
|
196 |
}
|
197 |
|
198 |
+
.csv-top-navigation-wrapper {
|
199 |
+
padding-bottom: 6px;
|
200 |
+
display: block;
|
201 |
+
width: 100%;
|
202 |
+
margin-top: 20px;
|
203 |
+
margin-bottom: 20px;
|
204 |
+
height: 27px;
|
205 |
+
border-bottom: 2px solid #BCD5E1;
|
206 |
}
|
207 |
|
208 |
+
#topNavigation .selected a {
|
209 |
+
background-color: #fff;
|
|
|
|
|
|
|
210 |
}
|
211 |
|
212 |
+
#topNavigation .selected {
|
213 |
+
border-bottom: 2px solid white;
|
|
|
|
|
214 |
}
|
215 |
|
216 |
+
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
217 |
+
.csv-top-navigation-wrapper {
|
218 |
+
height: 26px;
|
219 |
+
}
|
220 |
}
|
221 |
|
222 |
+
#pluginDetails h3, #overview-detail h3, #pluginManager h3 {
|
223 |
+
padding: 7px;
|
224 |
+
font-weight: bold;
|
225 |
+
background-color: #F1F1F1;
|
226 |
+
font-style: oblique;
|
227 |
+
font-size: medium;
|
228 |
}
|
229 |
|
230 |
+
.dash-inside {
|
231 |
+
padding: 10px;
|
232 |
+
margin-top: -14px;
|
233 |
+
line-height: 1.5;
|
234 |
+
border: 1px solid #EEEEEE;
|
235 |
}
|
236 |
|
237 |
+
.plugin-details {
|
238 |
+
height: 130px;
|
|
|
|
|
239 |
}
|
240 |
|
241 |
+
.company-detials {
|
|
|
|
|
242 |
}
|
243 |
|
244 |
+
.sociallinks {
|
245 |
+
float: right;
|
246 |
+
margin-top: -63px;
|
247 |
}
|
248 |
|
249 |
+
.poweredby {
|
250 |
+
margin-top: -30px;
|
251 |
+
float: right;
|
|
|
|
|
252 |
}
|
253 |
|
254 |
+
#csv_import {
|
255 |
+
float: left;
|
256 |
}
|
257 |
|
258 |
+
.rateus {
|
259 |
+
width: 25%;
|
|
|
260 |
}
|
261 |
|
262 |
+
.dash-manager {
|
263 |
+
padding: 7px;
|
264 |
}
|
265 |
|
266 |
+
.dashboard-box {
|
267 |
+
font-weight: normal;
|
268 |
+
line-height: 1;
|
269 |
+
margin: 0;
|
270 |
+
width: 75%;
|
271 |
+
float: left;
|
272 |
+
padding: 7px 10px;
|
273 |
}
|
274 |
|
275 |
+
.dashboardbox {
|
276 |
+
width: 99%;
|
|
|
|
|
277 |
}
|
278 |
|
279 |
+
.smack-left {
|
280 |
+
font-size: 1.2em;
|
281 |
+
font-style: oblique;
|
282 |
+
font-family: Georgia;
|
283 |
+
text-align: left;
|
284 |
}
|
285 |
|
286 |
+
.smack-right {
|
287 |
+
font-weight: bold;
|
288 |
+
font-style: oblique;
|
289 |
+
font-size: medium;
|
290 |
+
font-family: Georgia;
|
291 |
+
text-align: right;
|
292 |
}
|
293 |
|
294 |
+
.smack-thead {
|
295 |
+
font-size: 1em;
|
|
|
|
|
296 |
}
|
297 |
|
298 |
+
.t-head {
|
299 |
+
text-align: center;
|
300 |
+
font-weight: bold;
|
|
|
|
|
301 |
}
|
302 |
|
303 |
+
.t-small {
|
304 |
+
min-width: 13%;
|
|
|
|
|
305 |
}
|
306 |
|
307 |
+
.t-medium {
|
308 |
+
min-width: 20%;
|
|
|
|
|
309 |
}
|
310 |
|
311 |
+
.t-big {
|
312 |
+
min-width: 28%;
|
|
|
313 |
}
|
314 |
|
315 |
+
.t-tiny {
|
316 |
+
min-width: 6%;
|
317 |
+
padding: 5px;
|
|
|
|
|
318 |
}
|
319 |
|
320 |
+
.dash-action {
|
321 |
+
cursor: pointer;
|
322 |
+
text-decoration: none;
|
323 |
}
|
324 |
|
325 |
+
.smackHeler {
|
326 |
+
font-weight: bold;
|
327 |
+
font-size: 1.2em;
|
328 |
+
text-align: center;
|
329 |
+
width: 100%;
|
330 |
+
color: red;
|
331 |
}
|
332 |
|
333 |
+
.smackaltrow {
|
334 |
+
background-color: #F9F9F9;
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
}
|
336 |
|
337 |
+
.smackhelpswitcher {
|
338 |
+
border-bottom: 1px solid #A2A29D;
|
339 |
+
background-color: #E8F1F5;
|
340 |
+
text-decoration: none;
|
341 |
+
font-size: medium;
|
342 |
+
font-weight: bold;
|
343 |
+
padding: 7px;
|
344 |
+
min-width: 600px;
|
345 |
}
|
346 |
|
347 |
+
.switchercontent {
|
348 |
+
border: 1px solid #EEEEEE;
|
349 |
+
background-color: #FFFFFF;
|
350 |
+
display: none;
|
351 |
+
padding: 5px;
|
|
|
352 |
}
|
353 |
|
354 |
+
.switchercontentodd {
|
355 |
+
border: 1px solid #EEEEEE;
|
356 |
+
background-color: #FFFFFF;
|
357 |
+
display: block;
|
358 |
+
font-style: oblique;
|
359 |
+
padding: 5px;
|
360 |
}
|
361 |
|
362 |
+
.smackhelpswitcher_anchor {
|
363 |
+
text-decoration: none;
|
364 |
+
color: #515151;
|
365 |
+
width: 100%;
|
366 |
}
|
|
|
|
|
|
|
|
|
367 |
|
368 |
+
.smackhelpswitcher_img {
|
369 |
+
float: right;
|
|
|
|
|
|
|
370 |
}
|
371 |
|
372 |
+
.settingsicon {
|
373 |
+
margin-bottom: -4px;
|
374 |
}
|
375 |
|
376 |
+
.pluginAbsent:hover {
|
377 |
+
color: red;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
}
|
379 |
|
380 |
+
.pluginPresent:hover {
|
381 |
+
color: red;
|
382 |
}
|
383 |
|
384 |
+
.pluginActive:hover {
|
385 |
+
color: green;
|
386 |
}
|
387 |
|
388 |
+
table.importform {
|
389 |
+
width: 100%;
|
390 |
+
margin-top: 25px;
|
391 |
}
|
392 |
|
393 |
+
.detectDup {
|
394 |
+
width: 220px;
|
395 |
}
|
396 |
|
397 |
+
.detectDup1 {
|
398 |
+
width: 150px;
|
|
|
399 |
}
|
400 |
|
401 |
+
table.importform td {
|
402 |
+
padding-top: 20px;
|
|
|
|
|
|
|
|
|
|
|
403 |
}
|
404 |
|
405 |
+
.maperror {
|
406 |
+
position: fixed;
|
407 |
+
z-index: 999;
|
408 |
+
width: 250px;
|
409 |
+
right: 200px;
|
410 |
}
|
411 |
|
412 |
+
.iconatright {
|
413 |
+
float: right;
|
|
|
414 |
}
|
415 |
|
416 |
+
.helpatright {
|
417 |
+
border: 1px solid #EEEEEE;
|
418 |
+
margin-top: 25px;
|
419 |
}
|
420 |
|
421 |
+
.helpatright li {
|
422 |
+
padding: 15px;
|
|
|
|
|
423 |
}
|
424 |
|
425 |
+
.helpatright > ul {
|
426 |
+
margin-top: 40px;
|
|
|
|
|
427 |
}
|
428 |
|
429 |
+
div.helpatright h4 {
|
430 |
+
float: left;
|
431 |
+
padding: 0 0 0 18px;
|
432 |
}
|
433 |
|
434 |
+
.tickWrongImg {
|
435 |
+
display: block;
|
436 |
+
padding-left: 10px;
|
|
|
437 |
}
|
438 |
|
439 |
+
#dashboard-wrap {
|
440 |
+
margin-bottom: 20px;
|
|
|
|
|
441 |
}
|
442 |
|
443 |
+
.uploadlabel {
|
444 |
+
float: left;
|
445 |
+
width: 100px;
|
|
|
446 |
}
|
447 |
|
448 |
+
.renameOrUpdate {
|
449 |
+
display: none;
|
|
|
|
|
450 |
}
|
451 |
|
452 |
+
.secondform {
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
}
|
454 |
|
455 |
+
#posttypecss td {
|
456 |
+
padding: 10px;
|
|
|
|
|
|
|
|
|
|
|
457 |
}
|
458 |
|
459 |
+
#display_area td {
|
460 |
+
padding: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
}
|
462 |
|
463 |
+
.customfieldtext {
|
464 |
+
margin-left: 15px;
|
465 |
+
width: 110px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
}
|
467 |
|
468 |
.upgradetopro {
|
469 |
+
color: red;
|
470 |
+
font-weight: bold;
|
471 |
+
text-align: center;
|
472 |
}
|
languages/en_us.php
CHANGED
@@ -1,53 +1,87 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
-
* @author fenzik
|
4 |
* Language file for English US
|
5 |
*/
|
6 |
|
7 |
$slang = Array(
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
53 |
?>
|
1 |
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
+
|
37 |
/**
|
|
|
38 |
* Language file for English US
|
39 |
*/
|
40 |
|
41 |
$slang = Array(
|
42 |
+
'ENABLE_DUPLICATION_POST_TITLE' => 'Detect Duplicate Post Title',
|
43 |
+
'ENABLE_DUPLICATION_POST_CONTENT' => 'Detect Duplicate Post Content',
|
44 |
+
'UPLOAD_PERMISSION_ERROR' => 'Your WordPress doesn\'t have the uploads folder. Please create the uploads folders and set write permission for that.',
|
45 |
+
'IMPORT_AGAIN' => 'Import Again',
|
46 |
+
'NOTE' => 'Note',
|
47 |
+
'NOTE_CONTENT_1' => 'Your CSV should contain "," or ";" as delimiters.',
|
48 |
+
'NOTE_CONTENT_2' => 'In CSV, tags should be seperated by "," to import mutiple tags and categories should be seperated by "|" to import multiple categories.',
|
49 |
+
'CHOOSE_ANOTHER_DELIMITER' => 'Your CSV file cannot be processed. It may contains wrong delimiter, kindly choose another delimiter.',
|
50 |
+
'THIRDPARTY' => 'Third Party Plugins',
|
51 |
+
'IMPORT_CSV_FILE' => 'Import CSV File',
|
52 |
+
'UPLOAD_FILE' => 'Upload file',
|
53 |
+
'DASHBOARD' => 'Dashboard',
|
54 |
+
'POST' => 'Post',
|
55 |
+
'PAGE' => 'Page',
|
56 |
+
'CUSTOMPOST' => 'Custom Post',
|
57 |
+
'CATEGORIESTAGS' => 'Categories/Tags',
|
58 |
+
'USERSROLES' => 'Users/Roles',
|
59 |
+
'CUSTOMTAXONOMY' => 'Custom Taxonomy',
|
60 |
+
'COMMENTS' => 'Comments',
|
61 |
+
'HELP' => 'Help',
|
62 |
+
'SETTINGS' => 'Settings',
|
63 |
+
'CUSTOMPOSTTYPE' => 'Custom Post Type UI',
|
64 |
+
'CCTM' => 'CCTM',
|
65 |
+
'PLUGINSUPPORT' => 'Plugin Support',
|
66 |
+
'NONE' => 'None',
|
67 |
+
'ESHOP' => 'EShop',
|
68 |
+
'PROMODULES' => 'Pro Modules',
|
69 |
+
'WPECOMMERCE' => 'WP e-Commerce',
|
70 |
+
'SEO_OPTIONS' => 'SEO Plugins',
|
71 |
+
'FEATURE' => 'Features',
|
72 |
+
'ECOMMERCE' => 'Ecommerce',
|
73 |
+
'ALLINONESEO' => 'All-in-one-SEO',
|
74 |
+
'YOASTSEO' => 'WordPress SEO by Yoast',
|
75 |
+
'CATEGORY_ICONS' => 'Category Icons',
|
76 |
+
'ENABLE_CATEGOTY_ICONS' => 'Enable',
|
77 |
+
'DISABLE_CATEGORY_ICONS' => 'Disable',
|
78 |
+
'PLUGINCHECK' => 'Active/In Active/Not Present',
|
79 |
+
'AUTOMAPPING' => 'Auto Mapping',
|
80 |
+
'ENABLEAUTOMAPPING' => 'Enable Auto-Mapping',
|
81 |
+
'UTFSUPPORT' => 'UTF-Support',
|
82 |
+
'ENABLEUTFSUPPORT' => 'Enable UTF-8 Support',
|
83 |
+
'UPDATE_WITH_POST_ID' => 'Update With Post Id',
|
84 |
+
'UPDATE_WITH_POST_TITLE' => 'Update With Post Title',
|
85 |
+
);
|
86 |
|
87 |
?>
|
plugin_config.php
CHANGED
@@ -1,9 +1,44 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
$settings = Array
|
3 |
(
|
4 |
'recommerce' => 'nonerecommerce',
|
5 |
'rcustompost' => 'nonercustompost',
|
6 |
'savesettings' => 'Save',
|
7 |
);
|
8 |
-
update_option('wpcsvprosettings', $settings
|
9 |
?>
|
1 |
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
+
|
37 |
$settings = Array
|
38 |
(
|
39 |
'recommerce' => 'nonerecommerce',
|
40 |
'rcustompost' => 'nonercustompost',
|
41 |
'savesettings' => 'Save',
|
42 |
);
|
43 |
+
update_option('wpcsvprosettings', $settings);
|
44 |
?>
|
stats.php
CHANGED
@@ -1,85 +1,163 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<div style="margin-left:-13px;width:95%;clear:both;">
|
3 |
-
<table id="Table_01" width="100%" height="873" border="0" cellpadding="0" cellspacing="0">
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
</div>
|
1 |
+
<?php
|
2 |
+
/*********************************************************************************
|
3 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
4 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
5 |
+
*
|
6 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
7 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
8 |
+
* published by the Free Software Foundation with the addition of the following
|
9 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
10 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
11 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
12 |
+
* PARTY RIGHTS.
|
13 |
+
*
|
14 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
15 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
17 |
+
* more details.
|
18 |
+
*
|
19 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
20 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
21 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
22 |
+
* 02110-1301 USA.
|
23 |
+
*
|
24 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
25 |
+
*
|
26 |
+
* The interactive user interfaces in original and modified versions
|
27 |
+
* of this program must display Appropriate Legal Notices, as required under
|
28 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
29 |
+
*
|
30 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
31 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
32 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
33 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
34 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
35 |
+
********************************************************************************/
|
36 |
+
?>
|
37 |
+
|
38 |
+
<div class='upgradetopro' id='upgradetopro' style=''>Dashboard feature is only available in Pro Version, Please <a
|
39 |
+
href='http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html' target='_blank'>UPGRADE TO PRO</a></div>
|
40 |
<div style="margin-left:-13px;width:95%;clear:both;">
|
41 |
+
<table id="Table_01" width="100%" height="873" border="0" cellpadding="0" cellspacing="0">
|
42 |
+
<tbody>
|
43 |
+
<tr>
|
44 |
+
<td colspan="11">
|
45 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_01.png"
|
46 |
+
width="100%" height="73" alt="" title="Upgrade to PRO Now"></td>
|
47 |
+
</tr>
|
48 |
+
<tr>
|
49 |
+
<td rowspan="6">
|
50 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_02.png"
|
51 |
+
width="142" height="799" alt="" title="Upgrade to PRO Now" style="margin-top:-22px;"></td>
|
52 |
+
<td colspan="3">
|
53 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/stats5263_03.png"
|
54 |
+
width="306" height="252" border="0" alt="Upgrade to Pro Now" title="Upgrade to PRO Now"
|
55 |
+
style="margin-top:-27px;cursor:pointer;"/></td>
|
56 |
+
<td colspan="2" rowspan="2">
|
57 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_04.png"
|
58 |
+
width="173" height="294" alt="" title="Upgrade to PRO Now" style="margin-top:-23px;"></td>
|
59 |
+
<td colspan="5">
|
60 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/stats5263_05.png"
|
61 |
+
width="580" height="252" border="0" alt="Upgrade to Pro Now" style="cursor:pointer;"
|
62 |
+
title="Upgrade to PRO Now"/></td>
|
63 |
+
</tr>
|
64 |
+
<tr>
|
65 |
+
<td colspan="3" rowspan="3">
|
66 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_06.png"
|
67 |
+
width="306" height="166" alt="" title="Upgrade to PRO Now" style="margin-top: -23px;"></td>
|
68 |
+
<td colspan="5">
|
69 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_07.png"
|
70 |
+
width="580" height="42" alt="" title="Upgrade to PRO Now" style="margin-top:-27px;"></td>
|
71 |
+
</tr>
|
72 |
+
<tr>
|
73 |
+
<td rowspan="4">
|
74 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_08.png"
|
75 |
+
width="105" height="505" alt="" title="Upgrade to PRO Now" style="margin-top: -3px;"></td>
|
76 |
+
<td colspan="6">
|
77 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/stats5263_09.png"
|
78 |
+
width="648" height="35" border="0" alt="Upgrade to Pro Now" title="Upgrade to PRO Now"
|
79 |
+
style="cursor:pointer;"/></td>
|
80 |
+
</tr>
|
81 |
+
<tr>
|
82 |
+
<td colspan="6">
|
83 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_10.png"
|
84 |
+
width="648" height="89" alt="" title="Upgrade to PRO Now" style="margin-top: -4px;"></td>
|
85 |
+
</tr>
|
86 |
+
<tr>
|
87 |
+
<td rowspan="2">
|
88 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_11.png"
|
89 |
+
width="111" height="381" alt="" title="Upgrade to PRO Now" style="margin-top: -7px;"></td>
|
90 |
+
<td>
|
91 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/stats5263_12.png"
|
92 |
+
width="171" height="359" border="0" alt="Upgrade to Pro Now" title="Upgrade to PRO Now"
|
93 |
+
style="margin-top: -4px;cursor:pointer;"/></td>
|
94 |
+
<td rowspan="2">
|
95 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_13.png"
|
96 |
+
width="24" height="381" alt="" title="Upgrade to PRO Now" style="margin-top: -7px;"></td>
|
97 |
+
<td colspan="2" rowspan="2">
|
98 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_14.png"
|
99 |
+
width="233" height="381" alt="" title="Upgrade to PRO Now" style="margin-top: -8px;"></td>
|
100 |
+
<td>
|
101 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/stats5263_15.png"
|
102 |
+
width="132" height="359" border="0" alt="Upgrade to Pro Now" title="Upgrade to PRO Now"
|
103 |
+
style="margin-top: -4px;cursor:pointer;"/></td>
|
104 |
+
<td rowspan="2">
|
105 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_16.png"
|
106 |
+
width="37" height="381" alt="" title="Upgrade to PRO Now" style="margin-top: -8px;"></td>
|
107 |
+
<td>
|
108 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/stats5263_17.png"
|
109 |
+
width="200" height="359" border="0" alt="Upgrade to Pro Now" title="Upgrade to PRO Now"
|
110 |
+
style="margin-top: -4px;cursor:pointer;"/></td>
|
111 |
+
<td rowspan="2">
|
112 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_18.png"
|
113 |
+
width="46" height="381" alt="" title="Upgrade to PRO Now" style="margin-top: -8px;"></td>
|
114 |
+
</tr>
|
115 |
+
<tr>
|
116 |
+
<td>
|
117 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_19.png"
|
118 |
+
width="171" alt="" title="Upgrade to PRO Now" style="margin-top:-8px;"></td>
|
119 |
+
<td>
|
120 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_20.png"
|
121 |
+
width="132" height="22" alt="" title="Upgrade to PRO Now" style="margin-top:-7px;"></td>
|
122 |
+
<td>
|
123 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/csv-pro_21.png"
|
124 |
+
width="200" height="22" alt="" title="Upgrade to PRO Now" style="margin-top: 0px;"></td>
|
125 |
+
</tr>
|
126 |
+
<tr>
|
127 |
+
<td>
|
128 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="142"
|
129 |
+
height="1" alt=""></td>
|
130 |
+
<td>
|
131 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="111"
|
132 |
+
height="1" alt=""></td>
|
133 |
+
<td>
|
134 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="171"
|
135 |
+
height="1" alt=""></td>
|
136 |
+
<td>
|
137 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="24"
|
138 |
+
height="1" alt=""></td>
|
139 |
+
<td>
|
140 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="105"
|
141 |
+
height="1" alt=""></td>
|
142 |
+
<td>
|
143 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="68"
|
144 |
+
height="1" alt=""></td>
|
145 |
+
<td>
|
146 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="165"
|
147 |
+
height="1" alt=""></td>
|
148 |
+
<td>
|
149 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="132"
|
150 |
+
height="1" alt=""></td>
|
151 |
+
<td>
|
152 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="37"
|
153 |
+
height="1" alt=""></td>
|
154 |
+
<td>
|
155 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="200"
|
156 |
+
height="1" alt=""></td>
|
157 |
+
<td>
|
158 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/spacer.gif" width="46"
|
159 |
+
height="1" alt=""></td>
|
160 |
+
</tr>
|
161 |
+
</tbody>
|
162 |
+
</table>
|
163 |
</div>
|
wp_ultimate_csv_importer.js
CHANGED
@@ -1,263 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
options = select.options;
|
13 |
-
for(var o=0;o<options.length;o++){
|
14 |
-
if(options[o].value == 'post_status'){
|
15 |
-
select.remove(o);
|
16 |
-
}
|
17 |
-
}
|
18 |
}
|
|
|
19 |
}
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
34 |
|
35 |
-
}
|
36 |
-
}//exits post_status show hide
|
37 |
-
if(selectedId == 3){
|
38 |
-
document.getElementById('postsPassword').style.display = "";
|
39 |
-
document.getElementById('passwordlabel').style.display = "";
|
40 |
-
document.getElementById('passwordhint').style.display = "";
|
41 |
-
}
|
42 |
-
else{
|
43 |
-
document.getElementById('postsPassword').style.display = "none";
|
44 |
-
document.getElementById('passwordlabel').style.display = "none";
|
45 |
-
document.getElementById('passwordhint').style.display = "none";
|
46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
-
function loadSelectedPost(selectedCateg,contenturl){
|
50 |
-
jQuery.ajax({
|
51 |
-
|
52 |
type: 'post',
|
53 |
-
data:selectedCateg,
|
54 |
-
success: function(response){
|
55 |
-
|
56 |
-
|
57 |
});
|
58 |
}
|
59 |
-
function showRadioSett(id){
|
60 |
-
var inputs = document.getElementsByClassName(id);
|
61 |
-
if(document.getElementById(id).checked){
|
62 |
-
for(var i = 0; i < inputs.length; i++) {
|
63 |
-
|
64 |
-
}
|
65 |
-
}
|
66 |
-
else{
|
67 |
-
for(var i = 0; i < inputs.length; i++) {
|
68 |
-
|
69 |
-
}
|
70 |
-
}
|
71 |
}
|
72 |
// Function for add customfield
|
73 |
|
74 |
-
function addcustomfield(myval,selected_id){
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
}
|
105 |
|
106 |
// Function for check file exist
|
107 |
|
108 |
-
function file_exist(){
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
}
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
}
|
128 |
|
129 |
//function show messages
|
130 |
-
function showMessages(alerttype,msg){
|
131 |
-
document.getElementById('showMsg').innerHTML = msg;
|
132 |
-
document.getElementById('showMsg').className += ' '+alerttype;
|
133 |
-
document.getElementById('showMsg').style.display = '';
|
134 |
}
|
135 |
|
136 |
-
function showMapMessages(alerttype,msg){
|
137 |
-
jQuery("#showMsg").addClass("maperror");
|
138 |
-
document.getElementById('showMsg').innerHTML = msg;
|
139 |
-
document.getElementById('showMsg').className += ' '+alerttype;
|
140 |
-
document.getElementById('showMsg').style.display = '';
|
141 |
-
jQuery("#showMsg").fadeOut(10000);
|
142 |
}
|
143 |
|
144 |
// Function for import csv
|
145 |
|
146 |
-
function import_csv(){
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
var getSelectedIndex = document.getElementById('csv_importer_cat');
|
159 |
var SelectedIndex = getSelectedIndex.value;
|
160 |
var chk_status_in_csv;
|
161 |
var post_status_msg;
|
162 |
-
|
163 |
-
if(chk_status_in_csv != 0)
|
164 |
-
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
}
|
196 |
|
197 |
// Select the Mapper for Post/Page
|
198 |
-
function selectType(id,adminurl){
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
}
|
233 |
|
234 |
function slideonlyone(thechosenone, content_url) {
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
|
246 |
-
|
247 |
-
|
248 |
}
|
249 |
|
250 |
// Function to save plugin settings
|
251 |
-
function savePluginSettings(){
|
252 |
-
|
253 |
-
|
254 |
}
|
255 |
|
256 |
-
function showSuccessMessage(){
|
257 |
-
|
258 |
}
|
259 |
|
260 |
-
function hideSuccessMessage(){
|
261 |
-
|
262 |
}
|
263 |
|
1 |
+
/*********************************************************************************
|
2 |
+
* WordPress ultimate CSV Importer is a Tool for importing CSV for the Wordpress
|
3 |
+
* plugin developed by Smackcoder. Copyright (C) 2013 Smackcoders.
|
4 |
+
*
|
5 |
+
* WordPress ultimate CSV Importer is free software; you can redistribute it and/or
|
6 |
+
* modify it under the terms of the GNU Affero General Public License version 3 as
|
7 |
+
* published by the Free Software Foundation with the addition of the following
|
8 |
+
* permission added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE
|
9 |
+
* COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WordPress ultimate CSV Importer,
|
10 |
+
* WordPress ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON INFRINGEMENT OF THIRD
|
11 |
+
* PARTY RIGHTS.
|
12 |
+
*
|
13 |
+
* WordPress ultimate CSV Importer is distributed in the hope that it will be useful,
|
14 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
15 |
+
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
16 |
+
* more details.
|
17 |
+
*
|
18 |
+
* You should have received a copy of the GNU Affero General Public License along with
|
19 |
+
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
20 |
+
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
21 |
+
* 02110-1301 USA.
|
22 |
+
*
|
23 |
+
* You can contact Smackcoders at email address info@smackcoders.com.
|
24 |
+
*
|
25 |
+
* The interactive user interfaces in original and modified versions
|
26 |
+
* of this program must display Appropriate Legal Notices, as required under
|
27 |
+
* Section 5 of the GNU Affero General Public License version 3.
|
28 |
+
*
|
29 |
+
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
30 |
+
* these Appropriate Legal Notices must retain the display of the WordPress ultimate
|
31 |
+
* CSV Importer copyright notice. If the display of the logo is not reasonably feasible
|
32 |
+
* for technical reasons, the Appropriate Legal Notices must display the words
|
33 |
+
* "Copyright Smackcoders. 2013. All rights reserved".
|
34 |
+
********************************************************************************/
|
35 |
|
36 |
+
function importAllPostStatus(selectedId, headerCount) {
|
37 |
+
var select;
|
38 |
+
var options;
|
39 |
+
if (selectedId != 0) {
|
40 |
+
for (var u = 0; u < headerCount; u++) {
|
41 |
+
select = document.getElementById('mapping' + u);
|
42 |
+
options = select.options;
|
43 |
+
for (var o = 0; o < options.length; o++) {
|
44 |
+
if (options[o].value == 'post_status') {
|
45 |
+
select.remove(o);
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
+
}
|
48 |
}
|
49 |
+
}
|
50 |
+
else {
|
51 |
+
for (var v = 0; v < headerCount; v++) {
|
52 |
+
select = document.getElementById('mapping' + v);
|
53 |
+
options = select.options;
|
54 |
+
poststatus = 0;
|
55 |
+
for (var o = 0; o < options.length; o++) {
|
56 |
+
if (options[o].value == 'post_status')
|
57 |
+
poststatus = 1;
|
58 |
+
}
|
59 |
+
if (poststatus == 0) {
|
60 |
+
var option = document.createElement("option");
|
61 |
+
option.text = "post_status";
|
62 |
+
select.add(option);
|
63 |
+
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
+
}//exits post_status show hide
|
67 |
+
if (selectedId == 3) {
|
68 |
+
document.getElementById('postsPassword').style.display = "";
|
69 |
+
document.getElementById('passwordlabel').style.display = "";
|
70 |
+
document.getElementById('passwordhint').style.display = "";
|
71 |
+
}
|
72 |
+
else {
|
73 |
+
document.getElementById('postsPassword').style.display = "none";
|
74 |
+
document.getElementById('passwordlabel').style.display = "none";
|
75 |
+
document.getElementById('passwordhint').style.display = "none";
|
76 |
+
}
|
77 |
}
|
78 |
|
79 |
+
function loadSelectedPost(selectedCateg, contenturl) {
|
80 |
+
jQuery.ajax({
|
81 |
+
url: contenturl + '/plugins/wp-ultimate-csv-importer/commentspost.php?categid=' + selectedCateg,
|
82 |
type: 'post',
|
83 |
+
data: selectedCateg,
|
84 |
+
success: function (response) {
|
85 |
+
jQuery("#showPosts").html(response);
|
86 |
+
}
|
87 |
});
|
88 |
}
|
89 |
+
function showRadioSett(id) {
|
90 |
+
var inputs = document.getElementsByClassName(id);
|
91 |
+
if (document.getElementById(id).checked) {
|
92 |
+
for (var i = 0; i < inputs.length; i++) {
|
93 |
+
inputs[i].disabled = false;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
else {
|
97 |
+
for (var i = 0; i < inputs.length; i++) {
|
98 |
+
inputs[i].disabled = true;
|
99 |
+
}
|
100 |
+
}
|
101 |
}
|
102 |
// Function for add customfield
|
103 |
|
104 |
+
function addcustomfield(myval, selected_id) {
|
105 |
+
var a = document.getElementById('h1').value;
|
106 |
+
var importer = document.getElementById('selectedImporter').value;
|
107 |
+
var aa = document.getElementById('h2').value;
|
108 |
+
var selected_value;
|
109 |
+
if (importer == 'custompost' || importer == 'post' || importer == 'page') {
|
110 |
+
for (var i = 0; i < aa; i++) {
|
111 |
+
var b = document.getElementById('mapping' + i).value;
|
112 |
+
if (b == 'add_custom' + i) {
|
113 |
+
document.getElementById('textbox' + i).style.display = "";
|
114 |
+
document.getElementById('customspan' + i).style.display = "";
|
115 |
+
}
|
116 |
+
else {
|
117 |
+
document.getElementById('textbox' + i).style.display = "none";
|
118 |
+
document.getElementById('customspan' + i).style.display = "none";
|
119 |
+
}
|
120 |
+
}
|
121 |
+
}
|
122 |
+
var header_count = document.getElementById('h2').value;
|
123 |
+
for (var j = 0; j < header_count; j++) {
|
124 |
+
var selected_value = document.getElementById('mapping' + j);
|
125 |
+
var value1 = selected_value.options[selected_value.selectedIndex].value;
|
126 |
+
if (j != selected_id) {
|
127 |
+
if (myval == value1 && myval != '-- Select --') {
|
128 |
+
var selected_dropdown = document.getElementById('mapping' + selected_id);
|
129 |
+
selected_dropdown.selectedIndex = '-- Select --';
|
130 |
+
showMapMessages('error', myval + ' is already selected!');
|
131 |
+
}
|
132 |
+
}
|
133 |
+
}
|
134 |
}
|
135 |
|
136 |
// Function for check file exist
|
137 |
|
138 |
+
function file_exist() {
|
139 |
+
var requestaction = document.getElementById('requestaction').value;
|
140 |
+
if (requestaction == 'post' || requestaction == 'custompost' || requestaction == 'page') {
|
141 |
+
if (document.getElementById('filenameupdate').checked) {
|
142 |
+
if ((!document.getElementById('updatewithpostid').checked) && (!document.getElementById('updatewithposttitle').checked)) {
|
143 |
+
showMessages('error', 'Select Update Based On.');
|
144 |
+
return false;
|
145 |
+
}
|
146 |
+
|
147 |
+
}
|
148 |
+
}
|
149 |
|
150 |
+
if (document.getElementById('csv_import').value == '') {
|
151 |
+
showMessages('error', "Please attach your CSV.");
|
152 |
+
return false;
|
153 |
+
}
|
154 |
+
else {
|
155 |
+
return true;
|
156 |
+
}
|
157 |
}
|
158 |
|
159 |
//function show messages
|
160 |
+
function showMessages(alerttype, msg) {
|
161 |
+
document.getElementById('showMsg').innerHTML = msg;
|
162 |
+
document.getElementById('showMsg').className += ' ' + alerttype;
|
163 |
+
document.getElementById('showMsg').style.display = '';
|
164 |
}
|
165 |
|
166 |
+
function showMapMessages(alerttype, msg) {
|
167 |
+
jQuery("#showMsg").addClass("maperror");
|
168 |
+
document.getElementById('showMsg').innerHTML = msg;
|
169 |
+
document.getElementById('showMsg').className += ' ' + alerttype;
|
170 |
+
document.getElementById('showMsg').style.display = '';
|
171 |
+
jQuery("#showMsg").fadeOut(10000);
|
172 |
}
|
173 |
|
174 |
// Function for import csv
|
175 |
|
176 |
+
function import_csv() {
|
177 |
+
var importer = document.getElementById('selectedImporter').value;
|
178 |
+
var header_count = document.getElementById('h2').value;
|
179 |
+
var array = new Array();
|
180 |
+
var val1, val2, val3, val4, val5, val6, val7, error_msg;
|
181 |
+
val1 = val2 = val3 = val4 = val5 = val6 = val7 = post_status_msg = 'Off';
|
182 |
+
for (var i = 0; i < header_count; i++) {
|
183 |
+
var e = document.getElementById("mapping" + i);
|
184 |
+
var value = e.options[e.selectedIndex].value;
|
185 |
+
array[i] = value;
|
186 |
+
}
|
187 |
+
if (importer == 'post' || importer == 'page' || importer == 'custompost') {
|
188 |
var getSelectedIndex = document.getElementById('csv_importer_cat');
|
189 |
var SelectedIndex = getSelectedIndex.value;
|
190 |
var chk_status_in_csv;
|
191 |
var post_status_msg;
|
192 |
+
chk_status_in_csv = document.getElementById('importallwithps').value;
|
193 |
+
if (chk_status_in_csv != 0)
|
194 |
+
post_status_msg = 'On';
|
195 |
|
196 |
+
for (var j = 0; j < array.length; j++) {
|
197 |
+
if (array[j] == 'post_title') {
|
198 |
+
val1 = 'On';
|
199 |
+
}
|
200 |
+
if (array[j] == 'post_content') {
|
201 |
+
val2 = 'On';
|
202 |
+
}
|
203 |
+
if (post_status_msg == 'Off') {
|
204 |
+
if (array[j] == 'post_status')
|
205 |
+
post_status_msg = 'On';
|
206 |
+
}
|
207 |
+
}
|
208 |
+
if (val1 == 'On' && val2 == 'On' && SelectedIndex != '-- Select --' && post_status_msg == 'On') {
|
209 |
+
return true;
|
210 |
+
}
|
211 |
+
else {
|
212 |
+
error_msg = '';
|
213 |
+
if (val1 == 'Off')
|
214 |
+
error_msg += " post_title,";
|
215 |
+
if (val2 == 'Off')
|
216 |
+
error_msg += " post_content,";
|
217 |
+
if (SelectedIndex == '-- Select --')
|
218 |
+
error_msg += " post type";
|
219 |
+
if (post_status_msg == 'Off')
|
220 |
+
error_msg += " post_status";
|
221 |
+
showMapMessages('error', 'Error: ' + error_msg + ' - Mandatory fields. Please map the fields to proceed.');
|
222 |
+
return false;
|
223 |
+
}
|
224 |
+
}
|
225 |
}
|
226 |
|
227 |
// Select the Mapper for Post/Page
|
228 |
+
function selectType(id, adminurl) {
|
229 |
+
var headercount = document.getElementById('h2').value;
|
230 |
+
var getdropdownvalue = document.getElementById(id);
|
231 |
+
var selectedvalue = getdropdownvalue.options[getdropdownvalue.selectedIndex].text;
|
232 |
+
for (var i = 0; i < headercount; i++) {
|
233 |
+
var x = document.getElementById("mapping" + i);
|
234 |
+
var myOpts = x.options;
|
235 |
+
var postCatePresent = false;
|
236 |
+
var postTagPresent = false;
|
237 |
+
if (selectedvalue == 'post') {
|
238 |
+
for (var j = 0; j < myOpts.length; j++) {
|
239 |
+
if (myOpts[j].value == 'post_category')
|
240 |
+
postCatePresent = true;
|
241 |
+
if (myOpts[j].value == 'post_tag')
|
242 |
+
postTagPresent = true;
|
243 |
+
}
|
244 |
+
if (!postCatePresent) {
|
245 |
+
var option = document.createElement("option");
|
246 |
+
option.value = "post_category";
|
247 |
+
option.text = "post_category";
|
248 |
+
x.add(option);
|
249 |
+
}
|
250 |
+
if (!postTagPresent) {
|
251 |
+
var option1 = document.createElement("option");
|
252 |
+
option1.value = 'post_tag';
|
253 |
+
option1.text = 'post_tag';
|
254 |
+
x.add(option1);
|
255 |
+
}
|
256 |
+
}
|
257 |
+
else {
|
258 |
+
jQuery("#mapping" + i + " option[value='post_category']").remove();
|
259 |
+
jQuery("#mapping" + i + " option[value='post_tag']").remove();
|
260 |
+
}
|
261 |
+
}
|
262 |
}
|
263 |
|
264 |
function slideonlyone(thechosenone, content_url) {
|
265 |
+
jQuery('.newboxes2').each(function (index) {
|
266 |
+
if (jQuery(this).attr("id") == thechosenone) {
|
267 |
+
jQuery(this).slideDown(200);
|
268 |
+
var id = jQuery(this).attr('id');
|
269 |
+
jQuery("#" + id + "_img").attr('src', content_url + "/plugins/wp-ultimate-csv-importer/images/arrow_down.gif");
|
270 |
+
}
|
271 |
+
else {
|
272 |
+
jQuery(this).slideUp(600);
|
273 |
+
var id = jQuery(this).attr('id');
|
274 |
+
jQuery("#" + id + "_img").attr('src', content_url + "/plugins/wp-ultimate-csv-importer/images/arrow_up.gif");
|
275 |
|
276 |
+
}
|
277 |
+
});
|
278 |
}
|
279 |
|
280 |
// Function to save plugin settings
|
281 |
+
function savePluginSettings() {
|
282 |
+
window.setTimeout("showSuccessMessage()", 100);
|
283 |
+
window.setTimeout("hideSuccessMessage()", 15000);
|
284 |
}
|
285 |
|
286 |
+
function showSuccessMessage() {
|
287 |
+
document.getElementById('upgradetopro').style.display = "";
|
288 |
}
|
289 |
|
290 |
+
function hideSuccessMessage() {
|
291 |
+
document.getElementById('upgradetopro').style.display = "none";
|
292 |
}
|
293 |
|
wp_ultimate_csv_importer.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
*Plugin Name: WP Ultimate CSV Importer
|
4 |
-
*Plugin URI: http://www.smackcoders.com/blog/how-to-guide-for-free-wordpress-ultimate-csv-importer-plugin.html
|
5 |
-
*Description: A plugin that helps to import the data's from a CSV file.
|
6 |
-
*Version: 3.2.
|
7 |
-
*Author: smackcoders.com
|
8 |
-
*Author URI: http://www.smackcoders.com
|
9 |
-
*
|
10 |
-
* Copyright (C) 2013 Smackcoders (www.smackcoders.com)
|
11 |
-
*
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License, version 2, as
|
14 |
published by the Free Software Foundation.
|
@@ -21,12 +21,10 @@ GNU General Public License for more details.
|
|
21 |
You should have received a copy of the GNU General Public License
|
22 |
along with this program; if not, write to the Free Software
|
23 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
-
*
|
25 |
-
* @link http://www.smackcoders.com/blog/category/free-wordpress-plugins
|
26 |
-
***********************************************************************************************
|
27 |
-
*/
|
28 |
-
|
29 |
-
//error_reporting(0);
|
30 |
|
31 |
ini_set('max_execution_time', 600);
|
32 |
ini_set('memory_limit', '128M');
|
@@ -70,20 +68,25 @@ function wp_ultimate_csv_importer()
|
|
70 |
*/
|
71 |
function LoadWpScript()
|
72 |
{
|
73 |
-
if ($_REQUEST['page']
|
74 |
-
|
|
|
|
|
75 |
}
|
76 |
-
wp_enqueue_script('wp_ultimate_scripts');
|
77 |
|
78 |
-
|
|
|
|
|
|
|
|
|
79 |
|
80 |
-
|
81 |
|
82 |
-
if ($_REQUEST['page'] == 'upload_csv_file') {
|
83 |
-
wp_enqueue_style('importer_styles', WP_CONTENT_URL . '/plugins/wp-ultimate-csv-importer/css/custom-style.css');
|
84 |
}
|
85 |
|
|
|
86 |
add_action("admin_menu", "wp_ultimate_csv_importer");
|
|
|
87 |
|
88 |
register_activation_hook(__FILE__, 'wp_ultimate_csv_importer_activate');
|
89 |
register_deactivation_hook(__FILE__, 'wp_ultimate_csv_importer_deactivate');
|
@@ -93,11 +96,11 @@ register_deactivation_hook(__FILE__, 'wp_ultimate_csv_importer_deactivate');
|
|
93 |
*/
|
94 |
function upload_csv_file()
|
95 |
{
|
96 |
-
global $impCE, $impRen;
|
97 |
global $custom_array;
|
98 |
global $wpdb;
|
99 |
|
100 |
-
if (!$_REQUEST['action']) {
|
101 |
?>
|
102 |
<script>
|
103 |
window.location.href = "<?php echo WP_PLUGIN_URL;?>/../../wp-admin/admin.php?page=upload_csv_file&action=post";
|
@@ -105,7 +108,7 @@ function upload_csv_file()
|
|
105 |
<?php
|
106 |
}
|
107 |
$importdir = $impCE->getUploadDirectory();
|
108 |
-
if (!$_REQUEST['action'] || $_POST['post_csv'])
|
109 |
echo "<input type = 'hidden' value ='dashboard' id='requestaction'>";
|
110 |
else
|
111 |
echo "<input type='hidden' value='" . $_REQUEST['action'] . "' id ='requestaction'>";
|
@@ -141,10 +144,13 @@ function upload_csv_file()
|
|
141 |
<form class="add:the-list: validate" name="secondform" method="post" onsubmit="return import_csv();"
|
142 |
class="secondform">
|
143 |
<div style="float: left; min-width: 45%">
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
148 |
<?php $cnt = count($impCE->defCols) + 2;
|
149 |
$cnt1 = count($impCE->headers); ?>
|
150 |
<input type="hidden" id="h1" name="h1" value="<?php echo $cnt; ?>"/>
|
@@ -333,11 +339,16 @@ function upload_csv_file()
|
|
333 |
</form>
|
334 |
</div>
|
335 |
<div style="min-width: 45%;float:right;margin-right:9px;">
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
|
|
|
|
|
|
|
|
|
|
341 |
</div>
|
342 |
<?php
|
343 |
} else {
|
@@ -371,7 +382,7 @@ function upload_csv_file()
|
|
371 |
<?php
|
372 |
echo $impRen->setDashboardAction();
|
373 |
$messageString = $impCE->insPostCount . " records are successfully Imported.";
|
374 |
-
if ($_POST['titleduplicatecheck'] == 1 || $_POST['contentduplicatecheck'] == 1)
|
375 |
$messageString .= $impCE->dupPostCount . " duplicate records found.";
|
376 |
if (($impCE->noPostAuthCount != 0) && (in_array('post_author', $_POST)))
|
377 |
$messageString .= '<br>' . $impCE->noPostAuthCount . " posts with no valid UserID/Name are assigned admin as author.";
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
*Plugin Name: WP Ultimate CSV Importer
|
4 |
+
*Plugin URI: http://www.smackcoders.com/blog/how-to-guide-for-free-wordpress-ultimate-csv-importer-plugin.html
|
5 |
+
*Description: A plugin that helps to import the data's from a CSV file.
|
6 |
+
*Version: 3.2.1
|
7 |
+
*Author: smackcoders.com
|
8 |
+
*Author URI: http://www.smackcoders.com
|
9 |
+
*
|
10 |
+
* Copyright (C) 2013 Smackcoders (www.smackcoders.com)
|
11 |
+
*
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License, version 2, as
|
14 |
published by the Free Software Foundation.
|
21 |
You should have received a copy of the GNU General Public License
|
22 |
along with this program; if not, write to the Free Software
|
23 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
+
*
|
25 |
+
* @link http://www.smackcoders.com/blog/category/free-wordpress-plugins
|
26 |
+
***********************************************************************************************
|
27 |
+
*/
|
|
|
|
|
28 |
|
29 |
ini_set('max_execution_time', 600);
|
30 |
ini_set('memory_limit', '128M');
|
68 |
*/
|
69 |
function LoadWpScript()
|
70 |
{
|
71 |
+
if (isset($_REQUEST['page'])) {
|
72 |
+
if ($_REQUEST['page'] == 'upload_csv_file') {
|
73 |
+
wp_register_script('wp_ultimate_scripts', WP_CONTENT_URL . "/plugins/wp-ultimate-csv-importer/wp_ultimate_csv_importer.js", array("jquery"));
|
74 |
+
}
|
75 |
}
|
|
|
76 |
|
77 |
+
if (isset($_REQUEST['page'])) {
|
78 |
+
if ($_REQUEST['page'] == 'upload_csv_file') {
|
79 |
+
wp_enqueue_style('importer_styles', WP_CONTENT_URL . '/plugins/wp-ultimate-csv-importer/css/custom-style.css');
|
80 |
+
}
|
81 |
+
}
|
82 |
|
83 |
+
wp_enqueue_script('wp_ultimate_scripts');
|
84 |
|
|
|
|
|
85 |
}
|
86 |
|
87 |
+
add_action('admin_enqueue_scripts', 'LoadWpScript');
|
88 |
add_action("admin_menu", "wp_ultimate_csv_importer");
|
89 |
+
add_action('after_plugin_row_wp-ultimate-csv-importer/wp_ultimate_csv_importer.php', array('SmackImpCE', 'plugin_row'));
|
90 |
|
91 |
register_activation_hook(__FILE__, 'wp_ultimate_csv_importer_activate');
|
92 |
register_deactivation_hook(__FILE__, 'wp_ultimate_csv_importer_deactivate');
|
96 |
*/
|
97 |
function upload_csv_file()
|
98 |
{
|
99 |
+
global $impCE, $impRen, $pluginActive, $custo_taxo;
|
100 |
global $custom_array;
|
101 |
global $wpdb;
|
102 |
|
103 |
+
if (!isset($_REQUEST['action']) || !$_REQUEST['action']) {
|
104 |
?>
|
105 |
<script>
|
106 |
window.location.href = "<?php echo WP_PLUGIN_URL;?>/../../wp-admin/admin.php?page=upload_csv_file&action=post";
|
108 |
<?php
|
109 |
}
|
110 |
$importdir = $impCE->getUploadDirectory();
|
111 |
+
if (!$_REQUEST['action'] || (isset($_POST['post_csv']) && $_POST['post_csv']))
|
112 |
echo "<input type = 'hidden' value ='dashboard' id='requestaction'>";
|
113 |
else
|
114 |
echo "<input type='hidden' value='" . $_REQUEST['action'] . "' id ='requestaction'>";
|
144 |
<form class="add:the-list: validate" name="secondform" method="post" onsubmit="return import_csv();"
|
145 |
class="secondform">
|
146 |
<div style="float: left; min-width: 45%">
|
147 |
+
<div style="float: left; margin-top: 11px; margin-right: 5px;"><img
|
148 |
+
src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/Importicon_24.png">
|
149 |
+
</div>
|
150 |
+
<div style="float:left;">
|
151 |
+
<h3>Import Data Configuration</h3>
|
152 |
+
</div>
|
153 |
+
</br>
|
154 |
<?php $cnt = count($impCE->defCols) + 2;
|
155 |
$cnt1 = count($impCE->headers); ?>
|
156 |
<input type="hidden" id="h1" name="h1" value="<?php echo $cnt; ?>"/>
|
339 |
</form>
|
340 |
</div>
|
341 |
<div style="min-width: 45%;float:right;margin-right:9px;">
|
342 |
+
<div style="width:100%;">
|
343 |
+
<div style="float:left;"><h3>CSV Mapping Headers Explained</h3></div>
|
344 |
+
<div style="float:right;margin-top:15px;margin-right:25px;"><a
|
345 |
+
href="http://www.smackcoders.com/blog/wordpress-ultimate-csv-importer-csv-sample-files-and-updates.html"
|
346 |
+
target="_blank">Download Sample Files Here</a></div>
|
347 |
+
</div>
|
348 |
+
<a href="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/HeadersExplained.jpeg"
|
349 |
+
target="_blank" title="Headers Explained"><img
|
350 |
+
src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-ultimate-csv-importer/images/HeadersExplained.jpeg"
|
351 |
+
width=600 style='border:1px solid;padding:2px;'/></a>
|
352 |
</div>
|
353 |
<?php
|
354 |
} else {
|
382 |
<?php
|
383 |
echo $impRen->setDashboardAction();
|
384 |
$messageString = $impCE->insPostCount . " records are successfully Imported.";
|
385 |
+
if ((isset($_POST['titleduplicatecheck']) && $_POST['titleduplicatecheck'] == 1) || (isset($_POST['contentduplicatecheck']) && $_POST['contentduplicatecheck'] == 1))
|
386 |
$messageString .= $impCE->dupPostCount . " duplicate records found.";
|
387 |
if (($impCE->noPostAuthCount != 0) && (in_array('post_author', $_POST)))
|
388 |
$messageString .= '<br>' . $impCE->noPostAuthCount . " posts with no valid UserID/Name are assigned admin as author.";
|