Version Description
Download this release
Release Info
Developer | TobiasBg |
Plugin | WP-Table Reloaded |
Version | 1.4.2a |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.2a
- admin/admin-script.dev.js +9 -9
- admin/admin-script.js +1 -1
- php/parsecsv.class.php +1 -0
- php/wp-table-reloaded-export.class.php +2 -2
- php/wp-table-reloaded-import.class.php +6 -4
- readme.txt +7 -2
- wp-table-reloaded-admin.php +2 -2
- wp-table-reloaded-frontend.php +1 -1
- wp-table-reloaded.php +1 -1
admin/admin-script.dev.js
CHANGED
@@ -60,9 +60,9 @@ jQuery(document).ready( function( $ ) {
|
|
60 |
// show export delimiter selectbox only if export format is csv
|
61 |
$( '#export_format' ).change( function () {
|
62 |
if ( 'csv' == $(this).val() )
|
63 |
-
$('.tr-export-delimiter').
|
64 |
else
|
65 |
-
$('.tr-export-delimiter').
|
66 |
})
|
67 |
.change();
|
68 |
|
@@ -80,20 +80,20 @@ jQuery(document).ready( function( $ ) {
|
|
80 |
// show select box for table to replace only if needed
|
81 |
$( '.tr-import-addreplace input' ).click( function () {
|
82 |
if( 'replace' == $( '.tr-import-addreplace input:checked' ).val() )
|
83 |
-
$( '.tr-import-addreplace-table' ).
|
84 |
else
|
85 |
-
$( '.tr-import-addreplace-table' ).
|
86 |
} );
|
87 |
$( '.tr-import-addreplace input:checked' ).click();
|
88 |
|
89 |
// show only checked import fields depending on radio button
|
90 |
$( '.tr-import-from input' ).click( function () {
|
91 |
-
$('.tr-import-file-upload').
|
92 |
-
$('.tr-import-url').
|
93 |
-
$('.tr-import-form-field').
|
94 |
-
$('.tr-import-server').
|
95 |
|
96 |
-
$( '.tr-import-' + $( '.tr-import-from input:checked' ).val() ).
|
97 |
} );
|
98 |
$('.tr-import-from input:checked').click();
|
99 |
|
60 |
// show export delimiter selectbox only if export format is csv
|
61 |
$( '#export_format' ).change( function () {
|
62 |
if ( 'csv' == $(this).val() )
|
63 |
+
$('.tr-export-delimiter').show();
|
64 |
else
|
65 |
+
$('.tr-export-delimiter').hide();
|
66 |
})
|
67 |
.change();
|
68 |
|
80 |
// show select box for table to replace only if needed
|
81 |
$( '.tr-import-addreplace input' ).click( function () {
|
82 |
if( 'replace' == $( '.tr-import-addreplace input:checked' ).val() )
|
83 |
+
$( '.tr-import-addreplace-table' ).show();
|
84 |
else
|
85 |
+
$( '.tr-import-addreplace-table' ).hide();
|
86 |
} );
|
87 |
$( '.tr-import-addreplace input:checked' ).click();
|
88 |
|
89 |
// show only checked import fields depending on radio button
|
90 |
$( '.tr-import-from input' ).click( function () {
|
91 |
+
$('.tr-import-file-upload').hide();
|
92 |
+
$('.tr-import-url').hide();
|
93 |
+
$('.tr-import-form-field').hide();
|
94 |
+
$('.tr-import-server').hide();
|
95 |
|
96 |
+
$( '.tr-import-' + $( '.tr-import-from input:checked' ).val() ).show();
|
97 |
} );
|
98 |
$('.tr-import-from input:checked').click();
|
99 |
|
admin/admin-script.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(f){jQuery.each({TBtoggleClass:function(j,i){if(typeof i!=="boolean"){i=!jQuery.className.has(this,j)}jQuery.className[i?"add":"remove"](this,j)}},function(i,j){jQuery.fn[i]=function(){return this.each(j,arguments)}});var e,a;f("#table_contents tbody :checkbox").change(function(){f("#table_contents tbody :checkbox").each(function(){e=f(this).attr("id");a=(-1!=e.search(/row/))?"row-hidden":"column-hidden";f("#table_contents ."+e).TBtoggleClass(a,f(this).attr("checked"))})});f("#table_contents textarea").focus(function(){f("#table_contents .focus").removeClass("focus");f(this).parents("tr").find("textarea").addClass("focus")});f("#export_format").change(function(){if("csv"==f(this).val()){f(".tr-export-delimiter").
|
1 |
+
jQuery(document).ready(function(f){jQuery.each({TBtoggleClass:function(j,i){if(typeof i!=="boolean"){i=!jQuery.className.has(this,j)}jQuery.className[i?"add":"remove"](this,j)}},function(i,j){jQuery.fn[i]=function(){return this.each(j,arguments)}});var e,a;f("#table_contents tbody :checkbox").change(function(){f("#table_contents tbody :checkbox").each(function(){e=f(this).attr("id");a=(-1!=e.search(/row/))?"row-hidden":"column-hidden";f("#table_contents ."+e).TBtoggleClass(a,f(this).attr("checked"))})});f("#table_contents textarea").focus(function(){f("#table_contents .focus").removeClass("focus");f(this).parents("tr").find("textarea").addClass("focus")});f("#export_format").change(function(){if("csv"==f(this).val()){f(".tr-export-delimiter").show()}else{f(".tr-export-delimiter").hide()}}).change();var h=f(".wp-table-reloaded-table-information #table_id").val();f(".wp-table-reloaded-table-information #table_id").change(function(){if(h!=f(this).val()){if(confirm(WP_Table_Reloaded_Admin.str_ChangeTableID)){h=f(this).val()}else{f(this).val(h)}}});f(".tr-import-addreplace input").click(function(){if("replace"==f(".tr-import-addreplace input:checked").val()){f(".tr-import-addreplace-table").show()}else{f(".tr-import-addreplace-table").hide()}});f(".tr-import-addreplace input:checked").click();f(".tr-import-from input").click(function(){f(".tr-import-file-upload").hide();f(".tr-import-url").hide();f(".tr-import-form-field").hide();f(".tr-import-server").hide();f(".tr-import-"+f(".tr-import-from input:checked").val()).show()});f(".tr-import-from input:checked").click();f("#options_use_custom_css").change(function(){if(f(this).attr("checked")){f("#options_custom_css").removeAttr("disabled")}else{f("#options_custom_css").attr("disabled",true)}});f("#options_enable_tablesorter").change(function(){if(f(this).attr("checked")){f("#options_use_tablesorter_extended").removeAttr("disabled")}else{f("#options_use_tablesorter_extended").attr("disabled",true)}});f("#table_options_first_row_th").change(function(){if(f(this).attr("checked")&&f("#tablesorter_enabled").val()){f("#table_options_use_tablesorter").removeAttr("disabled")}else{f("#table_options_use_tablesorter").attr("disabled",true)}});f("#options_uninstall_upon_deactivation").click(function(){if(f(this).attr("checked")){return confirm(WP_Table_Reloaded_Admin.str_UninstallCheckboxActivation)}});var b="";function d(){var i=f(this).val();f(this).val(i+b);f("#table_contents textarea").unbind("click",d)}f("#a-insert-link").click(function(){var j=prompt(WP_Table_Reloaded_Admin.str_DataManipulationLinkInsertURL+":","http://");if(j){var i=prompt(WP_Table_Reloaded_Admin.str_DataManipulationLinkInsertText+":",WP_Table_Reloaded_Admin.str_DataManipulationLinkInsertText);if(i){b='<a href="'+j+'">'+i+"</a>";if(confirm(WP_Table_Reloaded_Admin.str_DataManipulationLinkInsertExplain+"\n\n"+b)){f("#table_contents textarea").bind("click",d)}}}return false});function g(){edCanvas=this;f("#table_contents textarea").unbind("click",g);var i=f("#a-insert-image");tb_show(i.attr("title"),i.attr("href"),i.attr("rel"));f(this).blur()}function c(){f(this).unbind("click");f(this).bind("click",c);if(true==confirm(WP_Table_Reloaded_Admin.str_DataManipulationImageInsertThickbox)){f("#table_contents textarea").bind("click",g)}}f("#a-insert-image").unbind("click").bind("click",c);f("#insert_custom_field_name").keyup(function(){f(this).val(f(this).val().toLowerCase().replace(/[^a-z0-9_-]/g,""))});f(".focus-blur-change").focus(function(){if(f(this).attr("title")==f(this).val()){f(this).val("")}}).blur(function(){if(""==f(this).val()){f(this).val(f(this).attr("title"))}});f("#table_custom_fields textarea").focus(function(){f("#table_custom_fields .focus").removeClass("focus");f(this).addClass("focus")});f("input.bulk_copy_tables").click(function(){return confirm(WP_Table_Reloaded_Admin.str_BulkCopyTablesLink)});f("input.bulk_delete_tables").click(function(){return confirm(WP_Table_Reloaded_Admin.str_BulkDeleteTablesLink)});f("input.bulk_wp_table_import_tables").click(function(){return confirm(WP_Table_Reloaded_Admin.str_BulkImportwpTableTablesLink)});f("a.copy_table_link").click(function(){return confirm(WP_Table_Reloaded_Admin.str_CopyTableLink)});f(" a.delete_row_link").click(function(){return confirm(WP_Table_Reloaded_Admin.str_DeleteRowLink)});f("a.delete_column_link").click(function(){return confirm(WP_Table_Reloaded_Admin.str_DeleteColumnLink)});f("a.import_wptable_link").click(function(){return confirm(WP_Table_Reloaded_Admin.str_ImportwpTableLink)});f("a.uninstall_plugin_link").click(function(){if(confirm(WP_Table_Reloaded_Admin.str_UninstallPluginLink_1)){return confirm(WP_Table_Reloaded_Admin.str_UninstallPluginLink_2)}else{return false}});f("a.cf_shortcode_link").click(function(){var i=prompt(WP_Table_Reloaded_Admin.str_CFShortcodeMessage,f(this).attr("title"));return false});f("a.table_shortcode_link").click(function(){var i=prompt(WP_Table_Reloaded_Admin.str_TableShortcodeMessage,f(this).attr("title"));return false});f(".postbox h3, .postbox .handlediv").click(function(){f(f(this).parent().get(0)).toggleClass("closed")})});
|
php/parsecsv.class.php
CHANGED
@@ -225,6 +225,7 @@ class parseCSV {
|
|
225 |
function output ($filename = null, $data = array(), $fields = array(), $delimiter = null) {
|
226 |
if ( empty($filename) ) $filename = $this->output_filename;
|
227 |
if ( $delimiter === null ) $delimiter = $this->output_delimiter;
|
|
|
228 |
$data = $this->unparse($data, $fields, null, null, $delimiter);
|
229 |
if ( $filename !== null ) {
|
230 |
header('Content-type: application/csv');
|
225 |
function output ($filename = null, $data = array(), $fields = array(), $delimiter = null) {
|
226 |
if ( empty($filename) ) $filename = $this->output_filename;
|
227 |
if ( $delimiter === null ) $delimiter = $this->output_delimiter;
|
228 |
+
$this->delimiter = $delimiter;
|
229 |
$data = $this->unparse($data, $fields, null, null, $delimiter);
|
230 |
if ( $filename !== null ) {
|
231 |
header('Content-type: application/csv');
|
php/wp-table-reloaded-export.class.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
File Name: WP-Table Reloaded - Export Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: This plugin allows you to create and manage tables in the admin-area of WordPress. You can then show them in your posts or on your pages by using a shortcode. The plugin is greatly influenced by the plugin "wp-Table" by Alex Rabe, but was completely rewritten and uses the state-of-the-art WordPress techniques which makes it faster and lighter than the original plugin.
|
6 |
-
Version: 1.4
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
*/
|
@@ -12,7 +12,7 @@ Author URI: http://tobias.baethge.com/
|
|
12 |
class WP_Table_Reloaded_Export {
|
13 |
|
14 |
// ###################################################################################################################
|
15 |
-
var $export_class_version = '1.4';
|
16 |
|
17 |
var $export_formats = array();
|
18 |
var $delimiters = array();
|
3 |
File Name: WP-Table Reloaded - Export Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: This plugin allows you to create and manage tables in the admin-area of WordPress. You can then show them in your posts or on your pages by using a shortcode. The plugin is greatly influenced by the plugin "wp-Table" by Alex Rabe, but was completely rewritten and uses the state-of-the-art WordPress techniques which makes it faster and lighter than the original plugin.
|
6 |
+
Version: 1.4.2
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
*/
|
12 |
class WP_Table_Reloaded_Export {
|
13 |
|
14 |
// ###################################################################################################################
|
15 |
+
var $export_class_version = '1.4.2';
|
16 |
|
17 |
var $export_formats = array();
|
18 |
var $delimiters = array();
|
php/wp-table-reloaded-import.class.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
File Name: WP-Table Reloaded - Import Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: This plugin allows you to create and manage tables in the admin-area of WordPress. You can then show them in your posts or on your pages by using a shortcode. The plugin is greatly influenced by the plugin "wp-Table" by Alex Rabe, but was completely rewritten and uses the state-of-the-art WordPress techniques which makes it faster and lighter than the original plugin.
|
6 |
-
Version: 1.4
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
*/
|
@@ -12,7 +12,7 @@ Author URI: http://tobias.baethge.com/
|
|
12 |
class WP_Table_Reloaded_Import {
|
13 |
|
14 |
// ###################################################################################################################
|
15 |
-
var $import_class_version = '1.4';
|
16 |
|
17 |
// possible import formats
|
18 |
var $import_formats = array();
|
@@ -61,8 +61,10 @@ class WP_Table_Reloaded_Import {
|
|
61 |
default:
|
62 |
$this->imported_table = array();
|
63 |
}
|
64 |
-
|
65 |
-
|
|
|
|
|
66 |
|
67 |
}
|
68 |
|
3 |
File Name: WP-Table Reloaded - Import Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: This plugin allows you to create and manage tables in the admin-area of WordPress. You can then show them in your posts or on your pages by using a shortcode. The plugin is greatly influenced by the plugin "wp-Table" by Alex Rabe, but was completely rewritten and uses the state-of-the-art WordPress techniques which makes it faster and lighter than the original plugin.
|
6 |
+
Version: 1.4.2
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
*/
|
12 |
class WP_Table_Reloaded_Import {
|
13 |
|
14 |
// ###################################################################################################################
|
15 |
+
var $import_class_version = '1.4.2';
|
16 |
|
17 |
// possible import formats
|
18 |
var $import_formats = array();
|
61 |
default:
|
62 |
$this->imported_table = array();
|
63 |
}
|
64 |
+
|
65 |
+
// only check this, if needed functions are available (needs PHP library "mbstring")
|
66 |
+
if ( function_exists('mb_detect_encoding') && function_exists('mb_check_encoding') && function_exists('utf8_encode') )
|
67 |
+
$this->fix_table_encoding();
|
68 |
|
69 |
}
|
70 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: TobiasBg
|
|
3 |
Donate link: http://tobias.baethge.com/donate/
|
4 |
Tags: html,table,data,editor,csv,import,export,excel,widget,admin,sidebar
|
5 |
Requires at least: 2.6
|
6 |
-
Tested up to: 2.8.
|
7 |
-
Stable tag: 1.4.
|
8 |
|
9 |
WP-Table Reloaded enables you to create and manage tables in your WP's admin area. No HTML knowledge is needed. A comfortable backend allows to easily edit table data. You can include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
10 |
|
@@ -111,6 +111,11 @@ I'm also happy about [donations](http://tobias.baethge.com/donate/) or something
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
114 |
= Version 1.4.1 =
|
115 |
* fixed small bug that led to occasional JavaScript timeout errors when editing large tables
|
116 |
|
3 |
Donate link: http://tobias.baethge.com/donate/
|
4 |
Tags: html,table,data,editor,csv,import,export,excel,widget,admin,sidebar
|
5 |
Requires at least: 2.6
|
6 |
+
Tested up to: 2.8.6
|
7 |
+
Stable tag: 1.4.2a
|
8 |
|
9 |
WP-Table Reloaded enables you to create and manage tables in your WP's admin area. No HTML knowledge is needed. A comfortable backend allows to easily edit table data. You can include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
10 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= Version 1.4.2a =
|
115 |
+
* fixed bug: JavaScript errors in IE6 and 7 on Import screen
|
116 |
+
* fixed bug: escapaping of delimiter when exporting was broken
|
117 |
+
* added check for functions from mbstring library
|
118 |
+
|
119 |
= Version 1.4.1 =
|
120 |
* fixed small bug that led to occasional JavaScript timeout errors when editing large tables
|
121 |
|
wp-table-reloaded-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
File Name: WP-Table Reloaded - Admin Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: Description: This plugin allows you to create and easily manage tables in the admin-area of WordPress. A comfortable backend allows an easy manipulation of table data. You can then include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
6 |
-
Version: 1.4.
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
Donate URI: http://tobias.baethge.com/donate/
|
@@ -14,7 +14,7 @@ define( 'WP_TABLE_RELOADED_TEXTDOMAIN', 'wp-table-reloaded' );
|
|
14 |
class WP_Table_Reloaded_Admin {
|
15 |
|
16 |
// ###################################################################################################################
|
17 |
-
var $plugin_version = '1.4.
|
18 |
// nonce for security of links/forms, try to prevent "CSRF"
|
19 |
var $nonce_base = 'wp-table-reloaded-nonce';
|
20 |
var $page_slug = 'wp_table_reloaded';
|
3 |
File Name: WP-Table Reloaded - Admin Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: Description: This plugin allows you to create and easily manage tables in the admin-area of WordPress. A comfortable backend allows an easy manipulation of table data. You can then include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
6 |
+
Version: 1.4.2a
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
Donate URI: http://tobias.baethge.com/donate/
|
14 |
class WP_Table_Reloaded_Admin {
|
15 |
|
16 |
// ###################################################################################################################
|
17 |
+
var $plugin_version = '1.4.2a';
|
18 |
// nonce for security of links/forms, try to prevent "CSRF"
|
19 |
var $nonce_base = 'wp-table-reloaded-nonce';
|
20 |
var $page_slug = 'wp_table_reloaded';
|
wp-table-reloaded-frontend.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
File Name: WP-Table Reloaded - Frontend Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: Description: This plugin allows you to create and easily manage tables in the admin-area of WordPress. A comfortable backend allows an easy manipulation of table data. You can then include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
6 |
-
Version: 1.4.
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
Donate URI: http://tobias.baethge.com/donate/
|
3 |
File Name: WP-Table Reloaded - Frontend Class (see main file wp-table-reloaded.php)
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: Description: This plugin allows you to create and easily manage tables in the admin-area of WordPress. A comfortable backend allows an easy manipulation of table data. You can then include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
6 |
+
Version: 1.4.2
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
Donate URI: http://tobias.baethge.com/donate/
|
wp-table-reloaded.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-Table Reloaded
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: This plugin allows you to create and easily manage tables in the admin-area of WordPress. A comfortable backend allows an easy manipulation of table data. You can then include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
6 |
-
Version: 1.4.
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
Author eMail: wordpress@tobias.baethge.com
|
3 |
Plugin Name: WP-Table Reloaded
|
4 |
Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/
|
5 |
Description: This plugin allows you to create and easily manage tables in the admin-area of WordPress. A comfortable backend allows an easy manipulation of table data. You can then include the tables into your posts, on your pages or in text widgets by using a shortcode or a template tag function. Tables can be imported and exported from/to CSV, XML and HTML.
|
6 |
+
Version: 1.4.2a
|
7 |
Author: Tobias Bäthge
|
8 |
Author URI: http://tobias.baethge.com/
|
9 |
Author eMail: wordpress@tobias.baethge.com
|