=== Easy Table === Contributors: takien Donate link: http://takien.com/donate Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter Requires at least: 3.0 Tested up to: 3.4.1 Stable tag: 0.8 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easy Table is WordPress plugin to create table in post, page, or widget in easy way using CSV format. This can also display table from CSV file. == Description == Easy Table is a WordPress plugin that allow you to insert table in easy way. Why it's easy? Because you don't need to write any complicated HTML syntax. Note that this plugin is not a graphical user interface table generator, so you can simply type your table data directly in your post while you writing. No need to switch to another window nor click any toolbar button. Easy Table using standard CSV format to generate table data, it's easiest way to build a table. = Some Features = * Easy to use, no advanced skill required * Display table in post, page or even in widget * Read data from CSV file and display the data in table * Sortable table column (using tablesorter jQuery plugin) * Fancy table design (using Twitter CSS bootstrap) * WYSIWYG safe, I mean you can switch HTML/View tab in WordPress editor without breaking the table data. = Example usage = * Basic table `[table] Year,Make,Model,Length 1997,Ford,E350,2.34 2000,Mercury,Cougar,2.38 [/table]` * Table with additional parameter `[table tablesorter="1" id="someid"] Year,Make,Model,Length 1997,Ford,E350,2.34 2000,Mercury,Cougar,2.38 [/table]` * Table with colspan and other attribute in some cells `[table] no[attr width="20"],head1,head2,head3 1,row1col1,row1col2,row1col3[attr class="someclass"] 2,row2col1,row2col2,row2col3 3,row3col1[attr colspan="2"],row3col3 4,row4col1,row4col2,row4col3 [/table]` * Table with initial sort order using table parameter, sort by first column descending `[table sort="desc"] no,head1,head2,head3 1,row1col1,row1col2,row1col3] 2,row2col1,row2col2,row2col3 3,row3col1,row3col2,row3col3 4,row4col1,row4col2,row4col3 [/table]` * Table with initial sort order using table parameter, sort by first column descending, and second column ascending `[table sort="desc,asc"] no,head1,head2,head3 1,row1col1,row1col2,row1col3] 2,row2col1,row2col2,row2col3 3,row3col1,row3col2,row3col3 4,row4col1,row4col2,row4col3 [/table]` * Table with initial sort order using cell attr, sort by second column descending `[table] no,head1[attr sort="desc"],head2,head3 1,row1col1,row1col2,row1col3] 2,row2col1,row2col2,row2col3 3,row3col1,row3col2,row3col3 4,row4col1,row4col2,row4col3 [/table]` * Disable sort for third column using cell attr `[table] no,head1,head2[attr sort="false"],head3 1,row1col1,row1col2,row1col3] 2,row2col1,row2col2,row2col3 3,row3col1,row3col2,row3col3 4,row4col1,row4col2,row4col3 [/table]` * Disable sort for third column using table parameter `[table sort=",,false"] no,head1,head2,head3 1,row1col1,row1col2,row1col3] 2,row2col1,row2col2,row2col3 3,row3col1,row3col2,row3col3 4,row4col1,row4col2,row4col3 [/table]` * Table with no heading `[table th="0"]some data here[/table]` * Table with no heading `[table th="0"]some data here[/table]` * Table with footer/tfoot, by default tfoot automatically picked up from second row. `[table tf="1"]some data here[/table]` * Table with picked up from last row. `[table tf="last"]some data here[/table]` * Table from CSV file `[table file="example.com/blog/wp-content/uploads/pricelist.csv"][/table]` [Look confusing? Please click here](http://takien.com/plugins/easy-table). = Other notes = * Data in each cell must not have line break, otherwise it will be detected as new row. * If read from file, the file URL must not contain space. == Installation == There are many ways to install this plugin, e.g: 1. Upload compressed (zip) plugin using WordPress plugin uploader. 2. Directly install from WordPress.org directory 3. Upload manually uncompressed plugin file using FTP. == Frequently Asked Questions == [See official plugin support here](http://takien.com/plugins/easy-table). == Screenshots == 1. Various table in a post 2. Easy Table options page 3. It's easy to display your uploaded CSV file as HTML table. 4. Easy Table in text widget == Upgrade Notice == No == Changelog == = 0.8 = * Fixed: Csvfile option * Fixed: Broken caption in Responsive theme * Removed: Clearfix class from the table * Changed: Now use wp_remote_get() instead of file_get_contents(); * Changed: Method name from get_easy_table_option() to option(), not affected to the usability * Changed: .header class for thead changed to .easy-table-header to minimize conflict possibility with other CSS. * Changed: path to jquery.tablesorter to /js and combined with jquery metadata * Added: jquery.metadata.js to set additional sorting option * Added: themes selector * Added: css/easy-table.css for general basic styling * Added: New sort parameter on table eg. [table sort="desc,asc"] * Added: New sort attr on cell for default sorting, attr sort="desc", attr sort="desc", attr sort="false" * Added: htaccess file to prevent directory listing on plugin path. * Added: Compatibility with WordPress 3.4.1 * Improved: CSS for arrow up/down, arrow now only visible on mouseover or if column is sorted. = 0.7 = * Fixed: Enclosure in the first column does not work. * Added: Compatibility with WordPress 3.4 * Fixed: Missing enclosure parameter in PHP < 5.3.0 = 0.6.1 = * Fixed: Accidentally add unused character to the table = 0.6 = * Fixed: Missing tbody opening tag on some condition * Fixed: Duplicate unit of width attribute = 0.5 = * Added: Ability to set attribute for each cell. * Added: Support and About tab in plugin options page. * Fixed: Table width attribute not work. * Removed: Equalize the number of columns in each row. = 0.4 = * Fixed: Option value can't override default value if option value is empty (if checkbox is unchecked). * Added: Optionally, tfoot now can be taken from last row. Example usage: [table tf="last"]somedata[/table] = 0.3 = * Improved: Option form now filled out with default value if there are no options saved in database and you don't need to save option to get the plugin to works. * Added: Option to select where script and style should be loaded, eg. if only in single page. * Added: tf parameter for tfoot, now you can set up tfoot for your table, tfoot picked up from 2nd row of the data, usage example [table tf="1"]data[/table] * Added: Credit link to Twitter Bootstrap and tablesorter jQuery plugin. = 0.2 = * Fixed: Backward compatibility of str_getcsv that just not work in the version 0.1, now plugin should runs on PHP 5.2 * Fixed: Table now has 'table' class even when 'tablesorter' is not enabled. = 0.1 = * First release