Easy Table - Version 1.1.3

Version Description

  • Added: now you can use 'auto' for table width
  • Table width now use inline style ( internally, not affected to the plugin usage )
Download this release

Release Info

Developer takien
Plugin Icon wp plugin Easy Table
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

easy-table.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Easy Table
4
Plugin URI: http://takien.com/
5
Description: Create table in post, page, or widget in easy way.
6
Author: Takien
7
- Version: 1.1.2
8
Author URI: http://takien.com/
9
*/
10
@@ -19,9 +19,6 @@ Author URI: http://takien.com/
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
22
-
23
- For a copy of the GNU General Public License, write to the Free Software
24
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*/
26
27
if(!defined('ABSPATH')) die();
@@ -88,7 +85,7 @@ function __construct(){
88
private function easy_table_base($return){
89
$easy_table_base = Array(
90
'name' => 'Easy Table',
91
- 'version' => '1.1.2',
92
'plugin-domain' => 'easy-table'
93
);
94
return $easy_table_base[$return];
@@ -212,8 +209,15 @@ private function csv_to_table($data,$args){
212
* @since 0.4
213
*/
214
$tfpos = ($tf == 'last') ? count($data) : ($th?2:1);
215
216
- $width = (stripos($width,'%') === false) ? (int)$width.'px' : (int)$width.'%';
217
218
/*colalign & colwidth
219
@since 1.0
@@ -226,7 +230,9 @@ private function csv_to_table($data,$args){
226
}
227
228
$output = '<table '.($id ? 'id="'.$id.'"':'');
229
- $output .= ' width="'.$width.'" ';
230
$output .= ' style="'.((stripos($style,'width') === false) ? ('width:'.$width.';') : $style).'" ';
231
$output .= ' class="easy-table easy-table-'.$theme.' '.($tablesorter ? 'tablesorter __sortlist__ ':'').$class.'" '.
232
(($border !=='0') ? 'border="'.$border.'"' : '').
4
Plugin URI: http://takien.com/
5
Description: Create table in post, page, or widget in easy way.
6
Author: Takien
7
+ Version: 1.1.3
8
Author URI: http://takien.com/
9
*/
10
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
22
*/
23
24
if(!defined('ABSPATH')) die();
85
private function easy_table_base($return){
86
$easy_table_base = Array(
87
'name' => 'Easy Table',
88
+ 'version' => '1.1.3',
89
'plugin-domain' => 'easy-table'
90
);
91
return $easy_table_base[$return];
209
* @since 0.4
210
*/
211
$tfpos = ($tf == 'last') ? count($data) : ($th?2:1);
212
+
213
+ /**
214
+ * add auto width
215
+ * @since 1.1.3
216
+ */
217
218
+ if ( 'auto' !== $width ) {
219
+ $width = (stripos($width,'%') === false) ? (int)$width.'px' : (int)$width.'%';
220
+ }
221
222
/*colalign & colwidth
223
@since 1.0
230
}
231
232
$output = '<table '.($id ? 'id="'.$id.'"':'');
233
+
234
+ //$output .= ' width="'.$width.'" '; width attr not used, use style instead (see below) - since 1.1.3
235
+
236
$output .= ' style="'.((stripos($style,'width') === false) ? ('width:'.$width.';') : $style).'" ';
237
$output .= ' class="easy-table easy-table-'.$theme.' '.($tablesorter ? 'tablesorter __sortlist__ ':'').$class.'" '.
238
(($border !=='0') ? 'border="'.$border.'"' : '').
languages/easy-table-id_ID.mo CHANGED
Binary file
languages/easy-table-id_ID.po CHANGED
@@ -1,9 +1,9 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: easy-table 1.1.2\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2013-05-13 04:14+0700\n"
6
- "PO-Revision-Date: 2013-08-09 11:51+0700\n"
7
"Last-Translator: takien <imissuaja@yahoo.com>\n"
8
"Language-Team: takien.com <contact@takien.com>\n"
9
"Language: id_ID\n"
@@ -13,7 +13,7 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e\n"
14
"X-Poedit-Basepath: ../\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 1.5.5\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: easy-table.php:588
1
msgid ""
2
msgstr ""
3
+ "Project-Id-Version: easy-table 1.1.3\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2013-05-13 04:14+0700\n"
6
+ "PO-Revision-Date: 2013-08-12 11:50+0700\n"
7
"Last-Translator: takien <imissuaja@yahoo.com>\n"
8
"Language-Team: takien.com <contact@takien.com>\n"
9
"Language: id_ID\n"
13
"X-Poedit-KeywordsList: __;_e\n"
14
"X-Poedit-Basepath: ../\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 1.5.7\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: easy-table.php:588
languages/english.mo CHANGED
Binary file
languages/english.po CHANGED
@@ -1,9 +1,9 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: easy-table 1.1.2\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2013-05-13 04:13+0700\n"
6
- "PO-Revision-Date: 2013-08-09 11:50+0700\n"
7
"Last-Translator: takien <imissuaja@yahoo.com>\n"
8
"Language-Team: takien.com <contact@takien.com>\n"
9
"Language: en_US\n"
@@ -13,7 +13,7 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e\n"
14
"X-Poedit-Basepath: ../\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 1.5.5\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: easy-table.php:588
1
msgid ""
2
msgstr ""
3
+ "Project-Id-Version: easy-table 1.1.3\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2013-05-13 04:13+0700\n"
6
+ "PO-Revision-Date: 2013-08-12 11:50+0700\n"
7
"Last-Translator: takien <imissuaja@yahoo.com>\n"
8
"Language-Team: takien.com <contact@takien.com>\n"
9
"Language: en_US\n"
13
"X-Poedit-KeywordsList: __;_e\n"
14
"X-Poedit-Basepath: ../\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 1.5.7\n"
17
"X-Poedit-SearchPath-0: .\n"
18
19
#: easy-table.php:588
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://takien.com/donate
4
Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter
5
Requires at least: 3.0
6
Tested up to: 3.6
7
- Stable tag: 1.1.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -40,6 +40,16 @@ Year,Make,Model,Length
40
2000,Mercury,Cougar,2.38
41
[/table]`
42
43
* Table with colspan and other attribute in some cells
44
`[table]
45
no[attr style="width:20px"],head1,head2,head3
@@ -188,7 +198,6 @@ row4col1,row4col2,row4col3|
188
Or check out our video tutorial here http://www.youtube.com/watch?v=Th0_qSleyDI
189
190
= Other notes =
191
- * Data in each cell must not have line break, otherwise it will be detected as new row.
192
* If read from file, the file URL must not contain space.
193
194
== Installation ==
@@ -216,6 +225,10 @@ No
216
217
== Changelog ==
218
219
= 1.1.2 =
220
* Fixed bug limit param doesn't work on version 1.1.1
221
4
Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter
5
Requires at least: 3.0
6
Tested up to: 3.6
7
+ Stable tag: 1.1.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
40
2000,Mercury,Cougar,2.38
41
[/table]`
42
43
+ * Table with specific width
44
+ `[table width="500px"]
45
+ Year,Make,Model,Length
46
+ 1997,Ford,E350,2.34
47
+ 2000,Mercury,Cougar,2.38
48
+ [/table]`
49
+
50
+ Valid with value : auto, any number followed by % or px.
51
+ If width not set, it will use default width value ( can be changed via Plugin option )
52
+
53
* Table with colspan and other attribute in some cells
54
`[table]
55
no[attr style="width:20px"],head1,head2,head3
198
Or check out our video tutorial here http://www.youtube.com/watch?v=Th0_qSleyDI
199
200
= Other notes =
201
* If read from file, the file URL must not contain space.
202
203
== Installation ==
225
226
== Changelog ==
227
228
+ = 1.1.3 =
229
+ * Added: now you can use 'auto' for table width
230
+ * Table width now use inline style ( internally, not affected to the plugin usage )
231
+
232
= 1.1.2 =
233
* Fixed bug limit param doesn't work on version 1.1.1
234