Easy Table - Version 0.5

Version Description

  • 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.
Download this release

Release Info

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

Code changes from version 0.4 to 0.5

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: 0.4
8
  Author URI: http://takien.com/
9
  */
10
 
@@ -36,6 +36,7 @@ class EasyTable {
36
  */
37
  var $settings = Array(
38
  'shortcodetag' => 'table',
 
39
  'tablewidget' => false,
40
  'scriptloadin' => Array('is_single','is_page'),
41
  'class' => 'table-striped',
@@ -46,6 +47,7 @@ var $settings = Array(
46
  'tf' => false,
47
  'border' => 0,
48
  'id' => false,
 
49
  'tablesorter' => false,
50
  'loadcss' => true,
51
  'delimiter' => ',',
@@ -73,6 +75,7 @@ function __construct(){
73
  add_action('admin_menu', array(&$this,'easy_table_add_page'));
74
  add_action('contextual_help', array(&$this,'easy_table_help'));
75
  add_shortcode($this->get_easy_table_option('shortcodetag'), array(&$this,'easy_table_short_code'));
 
76
  if($this->get_easy_table_option('tablewidget')){
77
  add_filter('widget_text', 'do_shortcode');
78
  }
@@ -82,7 +85,7 @@ function __construct(){
82
  private function easy_table_base($return){
83
  $easy_table_base = Array(
84
  'name' => 'Easy Table',
85
- 'version' => '0.4',
86
  'plugin-domain' => 'easy-table'
87
  );
88
  return $easy_table_base[$return];
@@ -98,6 +101,7 @@ function easy_table_short_code($atts, $content="") {
98
  'tf' => $this->get_easy_table_option('tf'),
99
  'border' => $this->get_easy_table_option('border'),
100
  'id' => $this->get_easy_table_option('id'),
 
101
  'tablesorter' => $this->get_easy_table_option('tablesorter'),
102
  'delimiter' => $this->get_easy_table_option('delimiter'),
103
  'enclosure' => $this->get_easy_table_option('enclosure'),
@@ -114,6 +118,14 @@ function easy_table_short_code($atts, $content="") {
114
  return $this->csv_to_table($content,$shortcode_atts);
115
  }
116
 
 
 
 
 
 
 
 
 
117
  /**
118
  * Convert CSV to table
119
  * @param array|string $data could be CSV string or array
@@ -139,18 +151,32 @@ private function csv_to_table($data,$args){
139
  * @since 0.4
140
  */
141
  $tfpos = ($tf == 'last') ? count($data)-1 : 2;
142
- $output = '<table '.($id ? 'id="'.$id.'"':'').' width="'.$width.'" align="'.$align.'" class="table '.($tablesorter ? 'tablesorter ':'').$class.'" '.(($border !=='0') ? 'border="'.$border.'"' : '').'>';
143
- $output .= ($caption !=='') ? '<caption>'.$caption.'</caption>' : '';
144
  $output .= $th ? '<thead>' : ($tf ? '' : '<tbody>');
145
 
146
- foreach($data as $k=>$v){ $i++;
147
- $v = array_pad($v,$max_cols,'');
 
148
  $output .= (($i==$tfpos) AND $tf) ? '<tfoot>': '';
149
  $output .= "\r\n".'<tr>';
150
 
151
  $thtd = ((($i==1) AND $th) OR (($i==$tfpos) AND $tf)) ? 'th' : 'td';
152
- $output .= "<$thtd>".implode("</$thtd><$thtd>",array_values($v))."</$thtd>";
153
-
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  $output .= '</tr>';
155
  $output .= (($i==1) AND $th) ? '</thead>' : '';
156
  $output .= (($i==$tfpos) AND $tf) ? '</tfoot>': '';
@@ -269,7 +295,7 @@ if($this->get_easy_table_option('tablesorter')) { ?>
269
  <script src="<?php echo plugins_url( 'jquery.tablesorter.min.js' , __FILE__);?>"></script>
270
  <?php }
271
  if($this->get_easy_table_option('loadcss')) { ?>
272
- <link rel="stylesheet" href="<?php echo plugins_url('easy-table-style.css', __FILE__);?> " />
273
  <?php } ?>
274
  <style type="text/css">
275
  .left,
@@ -281,12 +307,49 @@ if($this->get_easy_table_option('loadcss')) { ?>
281
  float:right;
282
  margin-right:20px;
283
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  </style>
285
  <script type="text/javascript">
286
  //<![CDATA[
287
  jQuery(document).ready(function($){
288
- $('.toggledesc a').click(function(e){
289
- $('span.description').toggle();
 
290
  e.preventDefault();
291
  });
292
  });
@@ -333,8 +396,14 @@ function easy_table_add_page() {
333
  * Plugin option page
334
  */
335
  function easy_table_page() { ?>
336
- <div class="wrap">
337
- <h2><?php printf(__('%s Option','easy-table'), $this->easy_table_base('name'));?></h2>
 
 
 
 
 
 
338
  <div class="left">
339
  <form method="post" action="options.php">
340
  <?php
@@ -342,7 +411,7 @@ wp_nonce_field('update-options');
342
  settings_fields('easy_table_option_field');
343
 
344
  ?>
345
- <span class="toggledesc"><em><a href="#"><?php _e('Show/hide description');?></a></em></span>
346
  <h3><?php _e('General options','easy-table');?></h3>
347
  <?php
348
  $fields = Array(
@@ -353,6 +422,14 @@ settings_fields('easy_table_option_field');
353
  'description' => __('Shortcode tag, type "table" if you want to use [table] short tag.','easy-table'),
354
  'value' => $this->get_easy_table_option('shortcodetag')
355
  )
 
 
 
 
 
 
 
 
356
  ,Array(
357
  'name' => 'easy_table_plugin_option[tablewidget]',
358
  'label' => __('Also render table in widget?','easy-table'),
@@ -489,11 +566,14 @@ settings_fields('easy_table_option_field');
489
  </div>
490
  <div class="right">
491
  <?php
492
- $defaulttableexample = '[table caption="Just test table"]
493
- row1col1,row1col2,row1col3
494
- row2col1,row2col2,row2col3
495
- row3col1,row3col2,row3col3
496
- [/table]';
 
 
 
497
  $tableexample = $defaulttableexample;
498
  if(isset($_POST['test-easy-table'])){
499
  $tableexample = $_POST['easy-table-test-area'];
@@ -504,7 +584,8 @@ if(isset($_POST['test-easy-table-reset'])){
504
  }
505
  ?>
506
  <h3><?php _e('Possible parameter','easy-table');?></h3>
507
- <p><?php _e('These parameters commonly can override global options in the left side of this page. Example usage:','easy-table');?></p><p> <code>[table param1="param-value1" param2="param-value2"]table data[/table]</code></p>
 
508
  <ol>
509
  <li><strong>class</strong>, <?php _e('default value','easy-table');?> <em>'table-striped'</em>, <?php _e('another value','easy-table');?> <em>table-bordered, table-striped, table-condensed</em></li>
510
  <li><strong>caption</strong>,<?php _e('default value','easy-table');?> <em>''</em></li>
@@ -517,6 +598,20 @@ if(isset($_POST['test-easy-table-reset'])){
517
  <li><strong>tablesorter</strong>, <?php _e('default value','easy-table');?> <em>'false'</em></li>
518
  <li><strong>file</strong>, <?php _e('default value','easy-table');?> <em>'false'</em></li>
519
  </ol>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
520
  <h3><?php _e('Test area:','easy-table');?></h3>
521
  <form action="" method="post">
522
  <textarea name="easy-table-test-area" style="width:500px;height:200px;border:1px solid #ccc"><?php echo trim(htmlentities(stripslashes($tableexample)));?>
@@ -531,13 +626,124 @@ if(isset($_POST['test-easy-table-reset'])){
531
 
532
  </div>
533
  <div class="clear"></div>
534
- <p><a target="_blank" href="http://takien.com/plugins/easy-table"><?php _e('Any question or suggestion? Click here!','easy-table');?></a></p>
535
- <h3><?php _e('Credit','easy-table');?>:</h3>
536
- <ul>
537
- <li><?php _e('Tablesorter by','easy-table');?> <a target="_blank" href="http://tablesorter.com">tablesorter</a></li>
538
- <li><?php _e('CSS by','easy-table');?> <a target="_blank" href="http://twitter.github.com/bootstrap">Twitter Bootstrap</a></li>
539
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
540
  </div><!--wrap-->
 
541
  <?php
542
  }
543
 
4
  Plugin URI: http://takien.com/
5
  Description: Create table in post, page, or widget in easy way.
6
  Author: Takien
7
+ Version: 0.5
8
  Author URI: http://takien.com/
9
  */
10
 
36
  */
37
  var $settings = Array(
38
  'shortcodetag' => 'table',
39
+ 'attrtag' => 'attr',
40
  'tablewidget' => false,
41
  'scriptloadin' => Array('is_single','is_page'),
42
  'class' => 'table-striped',
47
  'tf' => false,
48
  'border' => 0,
49
  'id' => false,
50
+ 'theme' => 'default',
51
  'tablesorter' => false,
52
  'loadcss' => true,
53
  'delimiter' => ',',
75
  add_action('admin_menu', array(&$this,'easy_table_add_page'));
76
  add_action('contextual_help', array(&$this,'easy_table_help'));
77
  add_shortcode($this->get_easy_table_option('shortcodetag'), array(&$this,'easy_table_short_code'));
78
+ add_shortcode($this->get_easy_table_option('attrtag'), array(&$this,'easy_table_short_code_attr'));
79
  if($this->get_easy_table_option('tablewidget')){
80
  add_filter('widget_text', 'do_shortcode');
81
  }
85
  private function easy_table_base($return){
86
  $easy_table_base = Array(
87
  'name' => 'Easy Table',
88
+ 'version' => '0.5',
89
  'plugin-domain' => 'easy-table'
90
  );
91
  return $easy_table_base[$return];
101
  'tf' => $this->get_easy_table_option('tf'),
102
  'border' => $this->get_easy_table_option('border'),
103
  'id' => $this->get_easy_table_option('id'),
104
+ 'theme' => $this->get_easy_table_option('theme'),
105
  'tablesorter' => $this->get_easy_table_option('tablesorter'),
106
  'delimiter' => $this->get_easy_table_option('delimiter'),
107
  'enclosure' => $this->get_easy_table_option('enclosure'),
118
  return $this->csv_to_table($content,$shortcode_atts);
119
  }
120
 
121
+ /**
122
+ * Just return to strip attr shortcode for table cell, since we use custom regex for attr shortcode.
123
+ * @since 0.5
124
+ */
125
+ function easy_table_short_code_attr($atts){
126
+ return;
127
+ }
128
+
129
  /**
130
  * Convert CSV to table
131
  * @param array|string $data could be CSV string or array
151
  * @since 0.4
152
  */
153
  $tfpos = ($tf == 'last') ? count($data)-1 : 2;
154
+ $output = '<table '.($id ? 'id="'.$id.'"':'').' style="width:'.$width.'px" width="'.$width.'" align="'.$align.'" class="table '.($tablesorter ? 'tablesorter ':'').$class.'" '.(($border !=='0') ? 'border="'.$border.'"' : '').'>';
155
+ $output .= $caption ? '<caption>'.$caption.'</caption>' : '';
156
  $output .= $th ? '<thead>' : ($tf ? '' : '<tbody>');
157
 
158
+ foreach($data as $k=>$cols){ $i++;
159
+ //$cols = array_pad($cols,$max_cols,'');
160
+
161
  $output .= (($i==$tfpos) AND $tf) ? '<tfoot>': '';
162
  $output .= "\r\n".'<tr>';
163
 
164
  $thtd = ((($i==1) AND $th) OR (($i==$tfpos) AND $tf)) ? 'th' : 'td';
165
+ foreach($cols as $col){
166
+ /**
167
+ * Add attribute for each cell
168
+ * @since 0.5
169
+ */
170
+ $attr = preg_match('/\['.$this->get_easy_table_option('attrtag').' ([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)/',$col,$matchattr);
171
+ $attr = isset($matchattr[1]) ? $matchattr[1] : '';
172
+ /**
173
+ * retrieve colspan value, not used at this time
174
+ $colspan = shortcode_parse_atts($attr);
175
+ $colspan = $colspan['colspan'];
176
+ */
177
+ $output .= "<$thtd $attr>".do_shortcode($col)."</$thtd>";
178
+ }
179
+
180
  $output .= '</tr>';
181
  $output .= (($i==1) AND $th) ? '</thead>' : '';
182
  $output .= (($i==$tfpos) AND $tf) ? '</tfoot>': '';
295
  <script src="<?php echo plugins_url( 'jquery.tablesorter.min.js' , __FILE__);?>"></script>
296
  <?php }
297
  if($this->get_easy_table_option('loadcss')) { ?>
298
+ <link rel="stylesheet" href="<?php echo plugins_url('easy-table-style.css', __FILE__);?> " />
299
  <?php } ?>
300
  <style type="text/css">
301
  .left,
307
  float:right;
308
  margin-right:20px;
309
  }
310
+ .action-button{
311
+ margin-bottom:20px
312
+ }
313
+ .action-button a{
314
+ padding:10px;
315
+ border:1px solid #cccccc;
316
+ -webkit-border-radius: 5px;
317
+ -moz-border-radius: 5px;
318
+ border-radius: 5px;
319
+ color:#fff;
320
+ font-weight:bold;
321
+ font-size:1.3em;
322
+ display: inline-block;
323
+ text-shadow: 0 -1px 1px rgba(19,65,88,.8);
324
+ }
325
+ .action-button a.green{
326
+ background:#48b826;
327
+ border-color:#1d7003;
328
+ background: #b4e391;
329
+ background: -moz-linear-gradient(top, #b4e391 0%, #61c419 50%, #b4e391 100%);
330
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b4e391), color-stop(50%,#61c419), color-stop(100%,#b4e391));
331
+ background: -webkit-linear-gradient(top, #b4e391 0%,#61c419 50%,#b4e391 100%);
332
+ background: -o-linear-gradient(top, #b4e391 0%,#61c419 50%,#b4e391 100%);
333
+ background: -ms-linear-gradient(top, #b4e391 0%,#61c419 50%,#b4e391 100%);
334
+ background: linear-gradient(top, #b4e391 0%,#61c419 50%,#b4e391 100%);
335
+ }
336
+ .action-button a.red{
337
+ background: #f85032;
338
+ background: -moz-linear-gradient(top, #f85032 0%, #f16f5c 35%, #f02f17 71%, #e73827 100%);
339
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f85032), color-stop(35%,#f16f5c), color-stop(71%,#f02f17), color-stop(100%,#e73827));
340
+ background: -webkit-linear-gradient(top, #f85032 0%,#f16f5c 35%,#f02f17 71%,#e73827 100%);
341
+ background: -o-linear-gradient(top, #f85032 0%,#f16f5c 35%,#f02f17 71%,#e73827 100%);
342
+ background: -ms-linear-gradient(top, #f85032 0%,#f16f5c 35%,#f02f17 71%,#e73827 100%);
343
+ background: linear-gradient(top, #f85032 0%,#f16f5c 35%,#f02f17 71%,#e73827 100%);
344
+ border-color:#cf3100;
345
+ }
346
  </style>
347
  <script type="text/javascript">
348
  //<![CDATA[
349
  jQuery(document).ready(function($){
350
+ $('.togglethis a').click(function(e){
351
+ var target = $(this).attr('data-target');
352
+ $(target).toggle();
353
  e.preventDefault();
354
  });
355
  });
396
  * Plugin option page
397
  */
398
  function easy_table_page() { ?>
399
+ <div class="wrap">
400
+ <div class="icon32"><img src="<?php echo plugins_url('/images/icon-table.png', __FILE__);?>" /></div>
401
+ <h2 class="nav-tab-wrapper">
402
+ <a href="options-general.php?page=<?php echo $this->easy_table_base('plugin-domain');?>" class="nav-tab <?php echo !isset($_GET['gettab']) ? 'nav-tab-active' : '';?>"><?php printf(__('%s Option','easy-table'), $this->easy_table_base('name'));?></a>
403
+ <a href="options-general.php?page=<?php echo $this->easy_table_base('plugin-domain');?>&gettab=support" class="nav-tab <?php echo (isset($_GET['gettab']) AND ($_GET['gettab'] == 'support')) ? 'nav-tab-active' : '';?>"><?php _e('Support','easy-table');?></a>
404
+ <a href="options-general.php?page=<?php echo $this->easy_table_base('plugin-domain');?>&gettab=about" class="nav-tab <?php echo (isset($_GET['gettab']) AND ($_GET['gettab'] == 'about')) ? 'nav-tab-active' : '';?>"><?php _e('About','easy-table');?></a>
405
+ </h2>
406
+ <?php if(!isset($_GET['gettab'])) : ?>
407
  <div class="left">
408
  <form method="post" action="options.php">
409
  <?php
411
  settings_fields('easy_table_option_field');
412
 
413
  ?>
414
+ <span class="togglethis toggledesc"><em><a href="#" data-target=".description"><?php _e('Show/hide description');?></a></em></span>
415
  <h3><?php _e('General options','easy-table');?></h3>
416
  <?php
417
  $fields = Array(
422
  'description' => __('Shortcode tag, type "table" if you want to use [table] short tag.','easy-table'),
423
  'value' => $this->get_easy_table_option('shortcodetag')
424
  )
425
+ ,
426
+ Array(
427
+ 'name' => 'easy_table_plugin_option[attrtag]',
428
+ 'label' => __('Cell attribute tag','easy-table'),
429
+ 'type' => 'text',
430
+ 'description' => __('Cell attribute tag, default is attr.','easy-table'),
431
+ 'value' => $this->get_easy_table_option('attrtag')
432
+ )
433
  ,Array(
434
  'name' => 'easy_table_plugin_option[tablewidget]',
435
  'label' => __('Also render table in widget?','easy-table'),
566
  </div>
567
  <div class="right">
568
  <?php
569
+ $defaulttableexample = '
570
+ [table caption="Just test table"]
571
+ no[attr width="20"],head1,head2,head3
572
+ 1,row1col1,row1col2,row1col3
573
+ 2,row2col1,row2col2,row2col3
574
+ 3,row3col1[attr colspan="2"],row3col3
575
+ 4,row4col1,row4col2,row4col3
576
+ [/table] ';
577
  $tableexample = $defaulttableexample;
578
  if(isset($_POST['test-easy-table'])){
579
  $tableexample = $_POST['easy-table-test-area'];
584
  }
585
  ?>
586
  <h3><?php _e('Possible parameter','easy-table');?></h3>
587
+ <p><?php _e('These parameters commonly can override global options in the left side of this page. Example usage:','easy-table');?></p>
588
+ <p> <code>[table param1="param-value1" param2="param-value2"]table data[/table]</code></p>
589
  <ol>
590
  <li><strong>class</strong>, <?php _e('default value','easy-table');?> <em>'table-striped'</em>, <?php _e('another value','easy-table');?> <em>table-bordered, table-striped, table-condensed</em></li>
591
  <li><strong>caption</strong>,<?php _e('default value','easy-table');?> <em>''</em></li>
598
  <li><strong>tablesorter</strong>, <?php _e('default value','easy-table');?> <em>'false'</em></li>
599
  <li><strong>file</strong>, <?php _e('default value','easy-table');?> <em>'false'</em></li>
600
  </ol>
601
+ <h3><?php _e('Cell attribute tag','easy-table');?></h3>
602
+ <ol>
603
+ <li><strong>attr</strong>, <?php _e('To set attribute for cell eg. class, colspan, rowspan, etc','easy-table');?>
604
+ <br /><?php _e('Usage','easy-table');?>: <br />
605
+
606
+ <pre><code>[table]
607
+ col1,col2[attr width="200" class="someclass"],col3
608
+ col4,col5,col6
609
+ [/table]
610
+ </code>
611
+ </pre>
612
+ </li>
613
+ </ol>
614
+
615
  <h3><?php _e('Test area:','easy-table');?></h3>
616
  <form action="" method="post">
617
  <textarea name="easy-table-test-area" style="width:500px;height:200px;border:1px solid #ccc"><?php echo trim(htmlentities(stripslashes($tableexample)));?>
626
 
627
  </div>
628
  <div class="clear"></div>
629
+
630
+ <?php elseif($_GET['gettab'] == 'support') : ?>
631
+ <p><a target="_blank" href="http://takien.com/plugins/easy-table"><?php _e('Full documentation, see here!','easy-table');?></a></p>
632
+ <p><?php _e('Or you can use this discussion to get support, request feature or reporting bug.','easy-table');?></p>
633
+ <div id="disqus_thread"></div>
634
+ <script type="text/javascript">
635
+ /* <![CDATA[ */
636
+ var disqus_url = 'http://takien.com/1126/easy-table-is-the-easiest-way-to-create-table-in-wordpress.php';
637
+ var disqus_identifier = '1126 http://takien.com/?p=1126';
638
+ var disqus_container_id = 'disqus_thread';
639
+ var disqus_domain = 'disqus.com';
640
+ var disqus_shortname = 'takien';
641
+ var disqus_title = "Easy Table is The Easiest Way to Create Table in WordPress";
642
+ var disqus_config = function () {
643
+ var config = this;
644
+ config.callbacks.preData.push(function() {
645
+ // clear out the container (its filled for SEO/legacy purposes)
646
+ document.getElementById(disqus_container_id).innerHTML = '';
647
+ });
648
+ config.callbacks.onReady.push(function() {
649
+ // sync comments in the background so we don't block the page
650
+ DISQUS.request.get('?cf_action=sync_comments&post_id=1126');
651
+ });
652
+ };
653
+ var facebookXdReceiverPath = 'http://takien.com/wp-content/plugins/disqus-comment-system/xd_receiver.htm';
654
+ /* ]]> */
655
+ </script>
656
+
657
+ <script type="text/javascript">
658
+ /* <![CDATA[ */
659
+ var DsqLocal = {
660
+ 'trackbacks': [
661
+ ],
662
+ 'trackback_url': "http:\/\/takien.com\/1126\/easy-table-is-the-easiest-way-to-create-table-in-wordpress.php\/trackback" };
663
+ /* ]]> */
664
+ </script>
665
+
666
+ <script type="text/javascript">
667
+ /* <![CDATA[ */
668
+ (function() {
669
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript';
670
+ dsq.async = true;
671
+ dsq.src = 'http' + '://' + disqus_shortname + '.' + disqus_domain + '/embed.js?pname=wordpress&pver=2.72';
672
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
673
+ })();
674
+ /* ]]> */
675
+ </script>
676
+ <?php elseif ($_GET['gettab'] == 'about') : ?>
677
+ <?php
678
+ require_once(ABSPATH.'wp-admin/includes/plugin-install.php');
679
+ $api = plugins_api('plugin_information', array('slug' => 'easy-table' ));
680
+ ?>
681
+ <div>
682
+ <h2 class="mainheader"><?php echo $this->easy_table_base('name') .' ' . $this->easy_table_base('version'); ?></h2>
683
+ <?php if ( ! empty($api->download_link) && ( current_user_can('install_plugins') || current_user_can('update_plugins') ) ) : ?>
684
+ <p class="action-button">
685
+ <?php
686
+ $status = install_plugin_install_status($api);
687
+ switch ( $status['status'] ) {
688
+ case 'install':
689
+ if ( $status['url'] )
690
+ echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Now') . '</a>';
691
+ break;
692
+ case 'update_available':
693
+ if ( $status['url'] )
694
+ echo '<a class="red" href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') .'</a>';
695
+ break;
696
+ case 'newer_installed':
697
+ echo '<a class="green">' . sprintf(__('Newer Version (%s) Installed'), $status['version']) . '</a>';
698
+ break;
699
+ case 'latest_installed':
700
+ echo '<a class="green">' . __('Latest Version Installed') . '</a>';
701
+ break;
702
+ }
703
+ ?>
704
+ </p>
705
+ <?php endif; ?>
706
+
707
+ <ul>
708
+ <?php if ( ! empty($api->version) ) : ?>
709
+ <li><strong><?php _e('Latest Version:','easy-table') ?></strong> <?php echo $api->version ?></li>
710
+ <?php endif; if ( ! empty($api->author) ) : ?>
711
+ <li><strong><?php _e('Author:') ?></strong> <?php echo links_add_target($api->author, '_blank') ?></li>
712
+ <?php endif; if ( ! empty($api->last_updated) ) : ?>
713
+ <li><strong><?php _e('Last Updated:') ?></strong> <span title="<?php echo $api->last_updated ?>"><?php
714
+ printf( __('%s ago'), human_time_diff(strtotime($api->last_updated)) ) ?></span></li>
715
+ <?php endif; if ( ! empty($api->requires) ) : ?>
716
+ <li><strong><?php _e('Requires WordPress Version:') ?></strong> <?php printf(__('%s or higher'), $api->requires) ?></li>
717
+ <?php endif; if ( ! empty($api->tested) ) : ?>
718
+ <li><strong><?php _e('Compatible up to:') ?></strong> <?php echo $api->tested ?></li>
719
+ <?php endif; if ( ! empty($api->downloaded) ) : ?>
720
+ <li><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li>
721
+ <?php endif; if ( ! empty($api->slug) && empty($api->external) ) : ?>
722
+ <li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page &#187;') ?></a></li>
723
+ <?php endif; if ( ! empty($api->homepage) ) : ?>
724
+ <li><a target="_blank" href="<?php echo $api->homepage ?>"><?php _e('Plugin Homepage &#187;') ?></a></li>
725
+ <?php endif; ?>
726
+ </ul>
727
+ <?php if ( ! empty($api->rating) ) : ?>
728
+ <h2><?php _e('Average Rating') ?></h2>
729
+ <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>">
730
+ <div class="star star-rating" style="width: <?php echo esc_attr($api->rating) ?>px"></div>
731
+ <div class="star star5"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('5 stars') ?>" /></div>
732
+ <div class="star star4"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('4 stars') ?>" /></div>
733
+ <div class="star star3"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('3 stars') ?>" /></div>
734
+ <div class="star star2"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('2 stars') ?>" /></div>
735
+ <div class="star star1"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('1 star') ?>" /></div>
736
+ </div>
737
+ <small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small>
738
+ <p><a target="_blank" href="http://wordpress.org/extend/plugins/easy-table/"><?php _e('Click here to rate','easy-table');?></a></p>
739
+ <h3><?php _e('Credit','easy-table');?>:</h3>
740
+ <p><?php _e('Tablesorter by','easy-table');?> <a target="_blank" href="http://tablesorter.com">tablesorter</a>, <?php _e('CSS by','easy-table');?> <a target="_blank" href="http://twitter.github.com/bootstrap">Twitter Bootstrap</a></p>
741
+ <?php endif; ?>
742
+ </div>
743
+ <?php endif; ?>
744
+
745
  </div><!--wrap-->
746
+
747
  <?php
748
  }
749
 
images/icon-table.png ADDED
Binary file
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 0.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-05-25 01:08+0700\n"
6
- "PO-Revision-Date: 2012-05-27 13:41+0700\n"
7
  "Last-Translator: takien <contact@takien.com>\n"
8
  "Language-Team: takien.com <contact@takien.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -16,239 +16,338 @@ msgstr ""
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: easy-table.php:298
20
  msgid "Settings"
21
  msgstr "Pengaturan"
22
 
23
- #: easy-table.php:310
24
  msgid "Instruction"
25
  msgstr "Petunjuk"
26
 
27
- #: easy-table.php:311
28
  msgid "Once plugin installed, go to plugin options page to configure some options"
29
  msgstr ""
30
 
31
- #: easy-table.php:312
32
  msgid "You are ready to write a table in post or page."
33
  msgstr ""
34
 
35
- #: easy-table.php:313
36
  msgid "To be able write table in widget you have to check <em>Enable render table in widget</em> option in the option page."
37
  msgstr ""
38
 
39
- #: easy-table.php:331
40
  #, php-format
41
  msgid "%s Option"
42
  msgstr "Pengaturan %s"
43
 
44
- #: easy-table.php:339
 
 
 
 
 
 
 
 
45
  msgid "Show/hide description"
46
  msgstr ""
47
 
48
- #: easy-table.php:340
49
  msgid "General options"
50
  msgstr "Pengaturan umum"
51
 
52
- #: easy-table.php:345
53
  msgid "Short code tag"
54
  msgstr ""
55
 
56
- #: easy-table.php:347
57
  msgid "Shortcode tag, type \"table\" if you want to use [table] short tag."
58
  msgstr ""
59
 
60
- #: easy-table.php:352
 
 
 
 
 
 
 
 
 
61
  msgid "Also render table in widget?"
62
  msgstr ""
63
 
64
- #: easy-table.php:354
65
  msgid "Check this if you want the table could be rendered in widget."
66
  msgstr ""
67
 
68
- #: easy-table.php:359
69
  msgid "Only load JS/CSS when in this condition"
70
  msgstr ""
71
 
72
- #: easy-table.php:360
73
  msgid "Please check in where JavaScript and CSS should be loaded"
74
  msgstr ""
75
 
76
- #: easy-table.php:364
77
  msgid "Single"
78
  msgstr ""
79
 
80
- #: easy-table.php:370
81
  msgid "Page"
82
  msgstr ""
83
 
84
- #: easy-table.php:376
85
  msgid "Front page"
86
  msgstr ""
87
 
88
- #: easy-table.php:382
89
  msgid "Archive page"
90
  msgstr ""
91
 
92
- #: easy-table.php:394
93
  msgid "Use tablesorter?"
94
  msgstr "Gunakan tablesorter?"
95
 
96
- #: easy-table.php:397
97
  msgid "Check this to use tablesorter jQuery plugin"
98
  msgstr "Ceklist ini jika ingin menggunakan jQuery plugin tablesorter"
99
 
100
- #: easy-table.php:401
101
  msgid "Use TH for the first row?"
102
  msgstr "Gunakan TH untuk baris pertama?"
103
 
104
- #: easy-table.php:404
105
  msgid "Check this if you want to use first row as table head (required by tablesorter)"
106
  msgstr ""
107
 
108
- #: easy-table.php:408
109
  msgid "Load CSS?"
110
  msgstr "Muat CSS?"
111
 
112
- #: easy-table.php:411
113
  msgid "Check this to use CSS included in this plugin to styling table, you may unceck if you want to write your own style."
114
  msgstr "Ceklist ini untuk menyertakan CSS untuk penataan tampilan tabel."
115
 
116
- #: easy-table.php:415
117
  msgid "Table class"
118
  msgstr "Class tabel"
119
 
120
- #: easy-table.php:417
121
  msgid "Table class attribute, if you use bootstrap CSS, you should add at least \"table\" class."
122
  msgstr "Atribut class pada tabel, jika Anda menggunakan CSS bootstrap, setidaknya harus menambahkan class \"table\""
123
 
124
- #: easy-table.php:421
125
  msgid "Table width"
126
  msgstr "Lebar tabel"
127
 
128
- #: easy-table.php:423
129
  msgid "Table width, in pixel or percent (may be overriden by CSS)"
130
  msgstr "Lebar tabel, dalam pixel atau persen (kemungkinan ditimpa oleh CSS)"
131
 
132
- #: easy-table.php:427
133
  msgid "Table align"
134
  msgstr "Perataan tabel"
135
 
136
- #: easy-table.php:429
137
  msgid "Table align, left/right/center (may be overriden by CSS)"
138
  msgstr "Perataan tabel, left/right/center (kemungkinan ditimpa oleh CSS)"
139
 
140
- #: easy-table.php:433
141
  msgid "Table border"
142
  msgstr "Garis tabel"
143
 
144
- #: easy-table.php:435
145
  msgid "Table border (may be overriden by CSS)"
146
  msgstr "Garis tabel (kemungkinan ditimpa oleh CSS)"
147
 
148
- #: easy-table.php:440
149
  msgid "Table options"
150
  msgstr "Pengaturan tabel"
151
 
152
- #: easy-table.php:445
153
  msgid "Parser Option"
154
  msgstr "Pengaturan parser"
155
 
156
- #: easy-table.php:446
157
  msgid "Do not change this unless you know what you're doing"
158
  msgstr "Jangan ganti bagian ini kecuali Anda mengetahuinya"
159
 
160
- #: easy-table.php:452
161
  msgid "Delimiter"
162
  msgstr "Pemisah"
163
 
164
- #: easy-table.php:455
165
  msgid "CSV delimiter (default is comma)"
166
  msgstr ""
167
 
168
- #: easy-table.php:458
169
  msgid "Enclosure"
170
  msgstr ""
171
 
172
- #: easy-table.php:461
173
  msgid "CSV enclosure (default is double quote)"
174
  msgstr ""
175
 
176
- #: easy-table.php:464
177
  msgid "Escape"
178
  msgstr ""
179
 
180
- #: easy-table.php:467
181
  msgid "CSV escape (default is backslash)"
182
  msgstr ""
183
 
184
- #: easy-table.php:470
185
  msgid "Allow read CSV from file?"
186
  msgstr "Bolehkan membaca CSV dari file?"
187
 
188
- #: easy-table.php:473
189
  msgid "Check this if you also want to convert CSV file to table"
190
  msgstr "Ceklist ini jika Anda juga ingin merubah file CSV ke tabel"
191
 
192
- #: easy-table.php:481
193
  msgid "Save"
194
  msgstr "Simpan"
195
 
196
- #: easy-table.php:500
197
  msgid "Possible parameter"
198
  msgstr "Parameter yang dimungkinkan"
199
 
200
- #: easy-table.php:501
201
  msgid "These parameters commonly can override global options in the left side of this page. Example usage:"
202
  msgstr "Parameter berikut ini secara umum dapat menggantikan setingan global yang ada di sebelah kiri halaman ini. Contoh penggunaan:"
203
 
204
- #: easy-table.php:503
205
- #: easy-table.php:504
206
- #: easy-table.php:505
207
- #: easy-table.php:506
208
- #: easy-table.php:507
209
- #: easy-table.php:508
210
- #: easy-table.php:509
211
- #: easy-table.php:510
212
- #: easy-table.php:511
213
- #: easy-table.php:512
214
  msgid "default value"
215
  msgstr "nilai bawaan"
216
 
217
- #: easy-table.php:503
218
  msgid "another value"
219
  msgstr "nilai lainnya"
220
 
221
- #: easy-table.php:514
 
 
 
 
 
 
 
 
222
  msgid "Test area:"
223
  msgstr "Area test:"
224
 
225
- #: easy-table.php:519
226
  msgid "Reset"
227
  msgstr "Reset"
228
 
229
- #: easy-table.php:520
230
  msgid "Update preview"
231
  msgstr "Perbaharui pratinjau"
232
 
233
- #: easy-table.php:522
234
  msgid "Preview"
235
  msgstr "Pratinjau"
236
 
237
- #: easy-table.php:528
238
- msgid "Any question or suggestion? Click here!"
239
- msgstr "Ada pertanyaan atau saran? Klik disini!"
240
 
241
- #: easy-table.php:529
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  msgid "Credit"
243
  msgstr "Kredit"
244
 
245
- #: easy-table.php:531
246
  msgid "Tablesorter by"
247
  msgstr "Tablesorter oleh"
248
 
249
- #: easy-table.php:532
250
  msgid "CSS by"
251
  msgstr "CSS oleh"
252
 
 
 
 
253
  #~ msgid "Use CSS bootstrap?"
254
  #~ msgstr "Gunakan CSS bootstrap?"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: easy-table 0.5\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-06-01 00:18+0700\n"
6
+ "PO-Revision-Date: 2012-06-01 00:18+0700\n"
7
  "Last-Translator: takien <contact@takien.com>\n"
8
  "Language-Team: takien.com <contact@takien.com>\n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: easy-table.php:367
20
  msgid "Settings"
21
  msgstr "Pengaturan"
22
 
23
+ #: easy-table.php:379
24
  msgid "Instruction"
25
  msgstr "Petunjuk"
26
 
27
+ #: easy-table.php:380
28
  msgid "Once plugin installed, go to plugin options page to configure some options"
29
  msgstr ""
30
 
31
+ #: easy-table.php:381
32
  msgid "You are ready to write a table in post or page."
33
  msgstr ""
34
 
35
+ #: easy-table.php:382
36
  msgid "To be able write table in widget you have to check <em>Enable render table in widget</em> option in the option page."
37
  msgstr ""
38
 
39
+ #: easy-table.php:402
40
  #, php-format
41
  msgid "%s Option"
42
  msgstr "Pengaturan %s"
43
 
44
+ #: easy-table.php:403
45
+ msgid "Support"
46
+ msgstr ""
47
+
48
+ #: easy-table.php:404
49
+ msgid "About"
50
+ msgstr ""
51
+
52
+ #: easy-table.php:414
53
  msgid "Show/hide description"
54
  msgstr ""
55
 
56
+ #: easy-table.php:415
57
  msgid "General options"
58
  msgstr "Pengaturan umum"
59
 
60
+ #: easy-table.php:420
61
  msgid "Short code tag"
62
  msgstr ""
63
 
64
+ #: easy-table.php:422
65
  msgid "Shortcode tag, type \"table\" if you want to use [table] short tag."
66
  msgstr ""
67
 
68
+ #: easy-table.php:428
69
+ #: easy-table.php:601
70
+ msgid "Cell attribute tag"
71
+ msgstr ""
72
+
73
+ #: easy-table.php:430
74
+ msgid "Cell attribute tag, default is attr."
75
+ msgstr ""
76
+
77
+ #: easy-table.php:435
78
  msgid "Also render table in widget?"
79
  msgstr ""
80
 
81
+ #: easy-table.php:437
82
  msgid "Check this if you want the table could be rendered in widget."
83
  msgstr ""
84
 
85
+ #: easy-table.php:442
86
  msgid "Only load JS/CSS when in this condition"
87
  msgstr ""
88
 
89
+ #: easy-table.php:443
90
  msgid "Please check in where JavaScript and CSS should be loaded"
91
  msgstr ""
92
 
93
+ #: easy-table.php:447
94
  msgid "Single"
95
  msgstr ""
96
 
97
+ #: easy-table.php:453
98
  msgid "Page"
99
  msgstr ""
100
 
101
+ #: easy-table.php:459
102
  msgid "Front page"
103
  msgstr ""
104
 
105
+ #: easy-table.php:465
106
  msgid "Archive page"
107
  msgstr ""
108
 
109
+ #: easy-table.php:477
110
  msgid "Use tablesorter?"
111
  msgstr "Gunakan tablesorter?"
112
 
113
+ #: easy-table.php:480
114
  msgid "Check this to use tablesorter jQuery plugin"
115
  msgstr "Ceklist ini jika ingin menggunakan jQuery plugin tablesorter"
116
 
117
+ #: easy-table.php:484
118
  msgid "Use TH for the first row?"
119
  msgstr "Gunakan TH untuk baris pertama?"
120
 
121
+ #: easy-table.php:487
122
  msgid "Check this if you want to use first row as table head (required by tablesorter)"
123
  msgstr ""
124
 
125
+ #: easy-table.php:491
126
  msgid "Load CSS?"
127
  msgstr "Muat CSS?"
128
 
129
+ #: easy-table.php:494
130
  msgid "Check this to use CSS included in this plugin to styling table, you may unceck if you want to write your own style."
131
  msgstr "Ceklist ini untuk menyertakan CSS untuk penataan tampilan tabel."
132
 
133
+ #: easy-table.php:498
134
  msgid "Table class"
135
  msgstr "Class tabel"
136
 
137
+ #: easy-table.php:500
138
  msgid "Table class attribute, if you use bootstrap CSS, you should add at least \"table\" class."
139
  msgstr "Atribut class pada tabel, jika Anda menggunakan CSS bootstrap, setidaknya harus menambahkan class \"table\""
140
 
141
+ #: easy-table.php:504
142
  msgid "Table width"
143
  msgstr "Lebar tabel"
144
 
145
+ #: easy-table.php:506
146
  msgid "Table width, in pixel or percent (may be overriden by CSS)"
147
  msgstr "Lebar tabel, dalam pixel atau persen (kemungkinan ditimpa oleh CSS)"
148
 
149
+ #: easy-table.php:510
150
  msgid "Table align"
151
  msgstr "Perataan tabel"
152
 
153
+ #: easy-table.php:512
154
  msgid "Table align, left/right/center (may be overriden by CSS)"
155
  msgstr "Perataan tabel, left/right/center (kemungkinan ditimpa oleh CSS)"
156
 
157
+ #: easy-table.php:516
158
  msgid "Table border"
159
  msgstr "Garis tabel"
160
 
161
+ #: easy-table.php:518
162
  msgid "Table border (may be overriden by CSS)"
163
  msgstr "Garis tabel (kemungkinan ditimpa oleh CSS)"
164
 
165
+ #: easy-table.php:523
166
  msgid "Table options"
167
  msgstr "Pengaturan tabel"
168
 
169
+ #: easy-table.php:528
170
  msgid "Parser Option"
171
  msgstr "Pengaturan parser"
172
 
173
+ #: easy-table.php:529
174
  msgid "Do not change this unless you know what you're doing"
175
  msgstr "Jangan ganti bagian ini kecuali Anda mengetahuinya"
176
 
177
+ #: easy-table.php:535
178
  msgid "Delimiter"
179
  msgstr "Pemisah"
180
 
181
+ #: easy-table.php:538
182
  msgid "CSV delimiter (default is comma)"
183
  msgstr ""
184
 
185
+ #: easy-table.php:541
186
  msgid "Enclosure"
187
  msgstr ""
188
 
189
+ #: easy-table.php:544
190
  msgid "CSV enclosure (default is double quote)"
191
  msgstr ""
192
 
193
+ #: easy-table.php:547
194
  msgid "Escape"
195
  msgstr ""
196
 
197
+ #: easy-table.php:550
198
  msgid "CSV escape (default is backslash)"
199
  msgstr ""
200
 
201
+ #: easy-table.php:553
202
  msgid "Allow read CSV from file?"
203
  msgstr "Bolehkan membaca CSV dari file?"
204
 
205
+ #: easy-table.php:556
206
  msgid "Check this if you also want to convert CSV file to table"
207
  msgstr "Ceklist ini jika Anda juga ingin merubah file CSV ke tabel"
208
 
209
+ #: easy-table.php:564
210
  msgid "Save"
211
  msgstr "Simpan"
212
 
213
+ #: easy-table.php:586
214
  msgid "Possible parameter"
215
  msgstr "Parameter yang dimungkinkan"
216
 
217
+ #: easy-table.php:587
218
  msgid "These parameters commonly can override global options in the left side of this page. Example usage:"
219
  msgstr "Parameter berikut ini secara umum dapat menggantikan setingan global yang ada di sebelah kiri halaman ini. Contoh penggunaan:"
220
 
221
+ #: easy-table.php:590
222
+ #: easy-table.php:591
223
+ #: easy-table.php:592
224
+ #: easy-table.php:593
225
+ #: easy-table.php:594
226
+ #: easy-table.php:595
227
+ #: easy-table.php:596
228
+ #: easy-table.php:597
229
+ #: easy-table.php:598
230
+ #: easy-table.php:599
231
  msgid "default value"
232
  msgstr "nilai bawaan"
233
 
234
+ #: easy-table.php:590
235
  msgid "another value"
236
  msgstr "nilai lainnya"
237
 
238
+ #: easy-table.php:603
239
+ msgid "To set attribute for cell eg. class, colspan, rowspan, etc"
240
+ msgstr ""
241
+
242
+ #: easy-table.php:604
243
+ msgid "Usage"
244
+ msgstr ""
245
+
246
+ #: easy-table.php:615
247
  msgid "Test area:"
248
  msgstr "Area test:"
249
 
250
+ #: easy-table.php:620
251
  msgid "Reset"
252
  msgstr "Reset"
253
 
254
+ #: easy-table.php:621
255
  msgid "Update preview"
256
  msgstr "Perbaharui pratinjau"
257
 
258
+ #: easy-table.php:623
259
  msgid "Preview"
260
  msgstr "Pratinjau"
261
 
262
+ #: easy-table.php:631
263
+ msgid "Full documentation, see here!"
264
+ msgstr ""
265
 
266
+ #: easy-table.php:632
267
+ msgid "Or you can use this discussion to get support, request feature or reporting bug."
268
+ msgstr ""
269
+
270
+ #: easy-table.php:690
271
+ msgid "Install Now"
272
+ msgstr ""
273
+
274
+ #: easy-table.php:694
275
+ msgid "Install Update Now"
276
+ msgstr ""
277
+
278
+ #: easy-table.php:697
279
+ #, php-format
280
+ msgid "Newer Version (%s) Installed"
281
+ msgstr ""
282
+
283
+ #: easy-table.php:700
284
+ msgid "Latest Version Installed"
285
+ msgstr ""
286
+
287
+ #: easy-table.php:709
288
+ msgid "Latest Version:"
289
+ msgstr ""
290
+
291
+ #: easy-table.php:711
292
+ msgid "Author:"
293
+ msgstr ""
294
+
295
+ #: easy-table.php:713
296
+ msgid "Last Updated:"
297
+ msgstr ""
298
+
299
+ #: easy-table.php:714
300
+ #, php-format
301
+ msgid "%s ago"
302
+ msgstr ""
303
+
304
+ #: easy-table.php:716
305
+ msgid "Requires WordPress Version:"
306
+ msgstr ""
307
+
308
+ #: easy-table.php:716
309
+ #, php-format
310
+ msgid "%s or higher"
311
+ msgstr ""
312
+
313
+ #: easy-table.php:718
314
+ msgid "Compatible up to:"
315
+ msgstr ""
316
+
317
+ #: easy-table.php:720
318
+ msgid "Downloaded:"
319
+ msgstr ""
320
+
321
+ #: easy-table.php:722
322
+ msgid "WordPress.org Plugin Page &#187;"
323
+ msgstr ""
324
+
325
+ #: easy-table.php:724
326
+ msgid "Plugin Homepage &#187;"
327
+ msgstr ""
328
+
329
+ #: easy-table.php:728
330
+ msgid "Average Rating"
331
+ msgstr ""
332
+
333
+ #: easy-table.php:738
334
+ msgid "Click here to rate"
335
+ msgstr ""
336
+
337
+ #: easy-table.php:739
338
  msgid "Credit"
339
  msgstr "Kredit"
340
 
341
+ #: easy-table.php:740
342
  msgid "Tablesorter by"
343
  msgstr "Tablesorter oleh"
344
 
345
+ #: easy-table.php:740
346
  msgid "CSS by"
347
  msgstr "CSS oleh"
348
 
349
+ #~ msgid "Any question or suggestion? Click here!"
350
+ #~ msgstr "Ada pertanyaan atau saran? Klik disini!"
351
+
352
  #~ msgid "Use CSS bootstrap?"
353
  #~ msgstr "Gunakan CSS bootstrap?"
languages/english.mo CHANGED
Binary file
languages/english.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: easy-table 0.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-05-27 13:40+0700\n"
6
- "PO-Revision-Date: 2012-05-27 13:40+0700\n"
7
  "Last-Translator: takien <contact@takien.com>\n"
8
  "Language-Team: takien.com <contact@takien.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -16,237 +16,333 @@ msgstr ""
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: easy-table.php:304
20
  msgid "Settings"
21
  msgstr ""
22
 
23
- #: easy-table.php:316
24
  msgid "Instruction"
25
  msgstr ""
26
 
27
- #: easy-table.php:317
28
  msgid "Once plugin installed, go to plugin options page to configure some options"
29
  msgstr ""
30
 
31
- #: easy-table.php:318
32
  msgid "You are ready to write a table in post or page."
33
  msgstr ""
34
 
35
- #: easy-table.php:319
36
  msgid "To be able write table in widget you have to check <em>Enable render table in widget</em> option in the option page."
37
  msgstr ""
38
 
39
- #: easy-table.php:337
40
  #, php-format
41
  msgid "%s Option"
42
  msgstr ""
43
 
44
- #: easy-table.php:345
 
 
 
 
 
 
 
 
45
  msgid "Show/hide description"
46
  msgstr ""
47
 
48
- #: easy-table.php:346
49
  msgid "General options"
50
  msgstr ""
51
 
52
- #: easy-table.php:351
53
  msgid "Short code tag"
54
  msgstr ""
55
 
56
- #: easy-table.php:353
57
  msgid "Shortcode tag, type \"table\" if you want to use [table] short tag."
58
  msgstr ""
59
 
60
- #: easy-table.php:358
 
 
 
 
 
 
 
 
 
61
  msgid "Also render table in widget?"
62
  msgstr ""
63
 
64
- #: easy-table.php:360
65
  msgid "Check this if you want the table could be rendered in widget."
66
  msgstr ""
67
 
68
- #: easy-table.php:365
69
  msgid "Only load JS/CSS when in this condition"
70
  msgstr ""
71
 
72
- #: easy-table.php:366
73
  msgid "Please check in where JavaScript and CSS should be loaded"
74
  msgstr ""
75
 
76
- #: easy-table.php:370
77
  msgid "Single"
78
  msgstr ""
79
 
80
- #: easy-table.php:376
81
  msgid "Page"
82
  msgstr ""
83
 
84
- #: easy-table.php:382
85
  msgid "Front page"
86
  msgstr ""
87
 
88
- #: easy-table.php:388
89
  msgid "Archive page"
90
  msgstr ""
91
 
92
- #: easy-table.php:400
93
  msgid "Use tablesorter?"
94
  msgstr ""
95
 
96
- #: easy-table.php:403
97
  msgid "Check this to use tablesorter jQuery plugin"
98
  msgstr ""
99
 
100
- #: easy-table.php:407
101
  msgid "Use TH for the first row?"
102
  msgstr ""
103
 
104
- #: easy-table.php:410
105
  msgid "Check this if you want to use first row as table head (required by tablesorter)"
106
  msgstr ""
107
 
108
- #: easy-table.php:414
109
  msgid "Load CSS?"
110
  msgstr ""
111
 
112
- #: easy-table.php:417
113
  msgid "Check this to use CSS included in this plugin to styling table, you may unceck if you want to write your own style."
114
  msgstr ""
115
 
116
- #: easy-table.php:421
117
  msgid "Table class"
118
  msgstr ""
119
 
120
- #: easy-table.php:423
121
  msgid "Table class attribute, if you use bootstrap CSS, you should add at least \"table\" class."
122
  msgstr ""
123
 
124
- #: easy-table.php:427
125
  msgid "Table width"
126
  msgstr ""
127
 
128
- #: easy-table.php:429
129
  msgid "Table width, in pixel or percent (may be overriden by CSS)"
130
  msgstr ""
131
 
132
- #: easy-table.php:433
133
  msgid "Table align"
134
  msgstr ""
135
 
136
- #: easy-table.php:435
137
  msgid "Table align, left/right/center (may be overriden by CSS)"
138
  msgstr ""
139
 
140
- #: easy-table.php:439
141
  msgid "Table border"
142
  msgstr ""
143
 
144
- #: easy-table.php:441
145
  msgid "Table border (may be overriden by CSS)"
146
  msgstr ""
147
 
148
- #: easy-table.php:446
149
  msgid "Table options"
150
  msgstr ""
151
 
152
- #: easy-table.php:451
153
  msgid "Parser Option"
154
  msgstr ""
155
 
156
- #: easy-table.php:452
157
  msgid "Do not change this unless you know what you're doing"
158
  msgstr ""
159
 
160
- #: easy-table.php:458
161
  msgid "Delimiter"
162
  msgstr ""
163
 
164
- #: easy-table.php:461
165
  msgid "CSV delimiter (default is comma)"
166
  msgstr ""
167
 
168
- #: easy-table.php:464
169
  msgid "Enclosure"
170
  msgstr ""
171
 
172
- #: easy-table.php:467
173
  msgid "CSV enclosure (default is double quote)"
174
  msgstr ""
175
 
176
- #: easy-table.php:470
177
  msgid "Escape"
178
  msgstr ""
179
 
180
- #: easy-table.php:473
181
  msgid "CSV escape (default is backslash)"
182
  msgstr ""
183
 
184
- #: easy-table.php:476
185
  msgid "Allow read CSV from file?"
186
  msgstr ""
187
 
188
- #: easy-table.php:479
189
  msgid "Check this if you also want to convert CSV file to table"
190
  msgstr ""
191
 
192
- #: easy-table.php:487
193
  msgid "Save"
194
  msgstr ""
195
 
196
- #: easy-table.php:506
197
  msgid "Possible parameter"
198
  msgstr ""
199
 
200
- #: easy-table.php:507
201
  msgid "These parameters commonly can override global options in the left side of this page. Example usage:"
202
  msgstr ""
203
 
204
- #: easy-table.php:509
205
- #: easy-table.php:510
206
- #: easy-table.php:511
207
- #: easy-table.php:512
208
- #: easy-table.php:513
209
- #: easy-table.php:514
210
- #: easy-table.php:515
211
- #: easy-table.php:516
212
- #: easy-table.php:517
213
- #: easy-table.php:518
214
  msgid "default value"
215
  msgstr ""
216
 
217
- #: easy-table.php:509
218
  msgid "another value"
219
  msgstr ""
220
 
221
- #: easy-table.php:520
 
 
 
 
 
 
 
 
222
  msgid "Test area:"
223
  msgstr ""
224
 
225
- #: easy-table.php:525
226
  msgid "Reset"
227
  msgstr ""
228
 
229
- #: easy-table.php:526
230
  msgid "Update preview"
231
  msgstr ""
232
 
233
- #: easy-table.php:528
234
  msgid "Preview"
235
  msgstr ""
236
 
237
- #: easy-table.php:534
238
- msgid "Any question or suggestion? Click here!"
239
  msgstr ""
240
 
241
- #: easy-table.php:535
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  msgid "Credit"
243
  msgstr ""
244
 
245
- #: easy-table.php:537
246
  msgid "Tablesorter by"
247
  msgstr ""
248
 
249
- #: easy-table.php:538
250
  msgid "CSS by"
251
  msgstr ""
252
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: easy-table 0.5\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-06-01 00:18+0700\n"
6
+ "PO-Revision-Date: 2012-06-01 00:18+0700\n"
7
  "Last-Translator: takien <contact@takien.com>\n"
8
  "Language-Team: takien.com <contact@takien.com>\n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: easy-table.php:367
20
  msgid "Settings"
21
  msgstr ""
22
 
23
+ #: easy-table.php:379
24
  msgid "Instruction"
25
  msgstr ""
26
 
27
+ #: easy-table.php:380
28
  msgid "Once plugin installed, go to plugin options page to configure some options"
29
  msgstr ""
30
 
31
+ #: easy-table.php:381
32
  msgid "You are ready to write a table in post or page."
33
  msgstr ""
34
 
35
+ #: easy-table.php:382
36
  msgid "To be able write table in widget you have to check <em>Enable render table in widget</em> option in the option page."
37
  msgstr ""
38
 
39
+ #: easy-table.php:402
40
  #, php-format
41
  msgid "%s Option"
42
  msgstr ""
43
 
44
+ #: easy-table.php:403
45
+ msgid "Support"
46
+ msgstr ""
47
+
48
+ #: easy-table.php:404
49
+ msgid "About"
50
+ msgstr ""
51
+
52
+ #: easy-table.php:414
53
  msgid "Show/hide description"
54
  msgstr ""
55
 
56
+ #: easy-table.php:415
57
  msgid "General options"
58
  msgstr ""
59
 
60
+ #: easy-table.php:420
61
  msgid "Short code tag"
62
  msgstr ""
63
 
64
+ #: easy-table.php:422
65
  msgid "Shortcode tag, type \"table\" if you want to use [table] short tag."
66
  msgstr ""
67
 
68
+ #: easy-table.php:428
69
+ #: easy-table.php:601
70
+ msgid "Cell attribute tag"
71
+ msgstr ""
72
+
73
+ #: easy-table.php:430
74
+ msgid "Cell attribute tag, default is attr."
75
+ msgstr ""
76
+
77
+ #: easy-table.php:435
78
  msgid "Also render table in widget?"
79
  msgstr ""
80
 
81
+ #: easy-table.php:437
82
  msgid "Check this if you want the table could be rendered in widget."
83
  msgstr ""
84
 
85
+ #: easy-table.php:442
86
  msgid "Only load JS/CSS when in this condition"
87
  msgstr ""
88
 
89
+ #: easy-table.php:443
90
  msgid "Please check in where JavaScript and CSS should be loaded"
91
  msgstr ""
92
 
93
+ #: easy-table.php:447
94
  msgid "Single"
95
  msgstr ""
96
 
97
+ #: easy-table.php:453
98
  msgid "Page"
99
  msgstr ""
100
 
101
+ #: easy-table.php:459
102
  msgid "Front page"
103
  msgstr ""
104
 
105
+ #: easy-table.php:465
106
  msgid "Archive page"
107
  msgstr ""
108
 
109
+ #: easy-table.php:477
110
  msgid "Use tablesorter?"
111
  msgstr ""
112
 
113
+ #: easy-table.php:480
114
  msgid "Check this to use tablesorter jQuery plugin"
115
  msgstr ""
116
 
117
+ #: easy-table.php:484
118
  msgid "Use TH for the first row?"
119
  msgstr ""
120
 
121
+ #: easy-table.php:487
122
  msgid "Check this if you want to use first row as table head (required by tablesorter)"
123
  msgstr ""
124
 
125
+ #: easy-table.php:491
126
  msgid "Load CSS?"
127
  msgstr ""
128
 
129
+ #: easy-table.php:494
130
  msgid "Check this to use CSS included in this plugin to styling table, you may unceck if you want to write your own style."
131
  msgstr ""
132
 
133
+ #: easy-table.php:498
134
  msgid "Table class"
135
  msgstr ""
136
 
137
+ #: easy-table.php:500
138
  msgid "Table class attribute, if you use bootstrap CSS, you should add at least \"table\" class."
139
  msgstr ""
140
 
141
+ #: easy-table.php:504
142
  msgid "Table width"
143
  msgstr ""
144
 
145
+ #: easy-table.php:506
146
  msgid "Table width, in pixel or percent (may be overriden by CSS)"
147
  msgstr ""
148
 
149
+ #: easy-table.php:510
150
  msgid "Table align"
151
  msgstr ""
152
 
153
+ #: easy-table.php:512
154
  msgid "Table align, left/right/center (may be overriden by CSS)"
155
  msgstr ""
156
 
157
+ #: easy-table.php:516
158
  msgid "Table border"
159
  msgstr ""
160
 
161
+ #: easy-table.php:518
162
  msgid "Table border (may be overriden by CSS)"
163
  msgstr ""
164
 
165
+ #: easy-table.php:523
166
  msgid "Table options"
167
  msgstr ""
168
 
169
+ #: easy-table.php:528
170
  msgid "Parser Option"
171
  msgstr ""
172
 
173
+ #: easy-table.php:529
174
  msgid "Do not change this unless you know what you're doing"
175
  msgstr ""
176
 
177
+ #: easy-table.php:535
178
  msgid "Delimiter"
179
  msgstr ""
180
 
181
+ #: easy-table.php:538
182
  msgid "CSV delimiter (default is comma)"
183
  msgstr ""
184
 
185
+ #: easy-table.php:541
186
  msgid "Enclosure"
187
  msgstr ""
188
 
189
+ #: easy-table.php:544
190
  msgid "CSV enclosure (default is double quote)"
191
  msgstr ""
192
 
193
+ #: easy-table.php:547
194
  msgid "Escape"
195
  msgstr ""
196
 
197
+ #: easy-table.php:550
198
  msgid "CSV escape (default is backslash)"
199
  msgstr ""
200
 
201
+ #: easy-table.php:553
202
  msgid "Allow read CSV from file?"
203
  msgstr ""
204
 
205
+ #: easy-table.php:556
206
  msgid "Check this if you also want to convert CSV file to table"
207
  msgstr ""
208
 
209
+ #: easy-table.php:564
210
  msgid "Save"
211
  msgstr ""
212
 
213
+ #: easy-table.php:586
214
  msgid "Possible parameter"
215
  msgstr ""
216
 
217
+ #: easy-table.php:587
218
  msgid "These parameters commonly can override global options in the left side of this page. Example usage:"
219
  msgstr ""
220
 
221
+ #: easy-table.php:590
222
+ #: easy-table.php:591
223
+ #: easy-table.php:592
224
+ #: easy-table.php:593
225
+ #: easy-table.php:594
226
+ #: easy-table.php:595
227
+ #: easy-table.php:596
228
+ #: easy-table.php:597
229
+ #: easy-table.php:598
230
+ #: easy-table.php:599
231
  msgid "default value"
232
  msgstr ""
233
 
234
+ #: easy-table.php:590
235
  msgid "another value"
236
  msgstr ""
237
 
238
+ #: easy-table.php:603
239
+ msgid "To set attribute for cell eg. class, colspan, rowspan, etc"
240
+ msgstr ""
241
+
242
+ #: easy-table.php:604
243
+ msgid "Usage"
244
+ msgstr ""
245
+
246
+ #: easy-table.php:615
247
  msgid "Test area:"
248
  msgstr ""
249
 
250
+ #: easy-table.php:620
251
  msgid "Reset"
252
  msgstr ""
253
 
254
+ #: easy-table.php:621
255
  msgid "Update preview"
256
  msgstr ""
257
 
258
+ #: easy-table.php:623
259
  msgid "Preview"
260
  msgstr ""
261
 
262
+ #: easy-table.php:631
263
+ msgid "Full documentation, see here!"
264
  msgstr ""
265
 
266
+ #: easy-table.php:632
267
+ msgid "Or you can use this discussion to get support, request feature or reporting bug."
268
+ msgstr ""
269
+
270
+ #: easy-table.php:690
271
+ msgid "Install Now"
272
+ msgstr ""
273
+
274
+ #: easy-table.php:694
275
+ msgid "Install Update Now"
276
+ msgstr ""
277
+
278
+ #: easy-table.php:697
279
+ #, php-format
280
+ msgid "Newer Version (%s) Installed"
281
+ msgstr ""
282
+
283
+ #: easy-table.php:700
284
+ msgid "Latest Version Installed"
285
+ msgstr ""
286
+
287
+ #: easy-table.php:709
288
+ msgid "Latest Version:"
289
+ msgstr ""
290
+
291
+ #: easy-table.php:711
292
+ msgid "Author:"
293
+ msgstr ""
294
+
295
+ #: easy-table.php:713
296
+ msgid "Last Updated:"
297
+ msgstr ""
298
+
299
+ #: easy-table.php:714
300
+ #, php-format
301
+ msgid "%s ago"
302
+ msgstr ""
303
+
304
+ #: easy-table.php:716
305
+ msgid "Requires WordPress Version:"
306
+ msgstr ""
307
+
308
+ #: easy-table.php:716
309
+ #, php-format
310
+ msgid "%s or higher"
311
+ msgstr ""
312
+
313
+ #: easy-table.php:718
314
+ msgid "Compatible up to:"
315
+ msgstr ""
316
+
317
+ #: easy-table.php:720
318
+ msgid "Downloaded:"
319
+ msgstr ""
320
+
321
+ #: easy-table.php:722
322
+ msgid "WordPress.org Plugin Page &#187;"
323
+ msgstr ""
324
+
325
+ #: easy-table.php:724
326
+ msgid "Plugin Homepage &#187;"
327
+ msgstr ""
328
+
329
+ #: easy-table.php:728
330
+ msgid "Average Rating"
331
+ msgstr ""
332
+
333
+ #: easy-table.php:738
334
+ msgid "Click here to rate"
335
+ msgstr ""
336
+
337
+ #: easy-table.php:739
338
  msgid "Credit"
339
  msgstr ""
340
 
341
+ #: easy-table.php:740
342
  msgid "Tablesorter by"
343
  msgstr ""
344
 
345
+ #: easy-table.php:740
346
  msgid "CSS by"
347
  msgstr ""
348
 
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.3.2
7
- Stable tag: 0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,6 +40,15 @@ Year,Make,Model,Length
40
  2000,Mercury,Cougar,2.38
41
  [/table]`
42
 
 
 
 
 
 
 
 
 
 
43
  * Table with no heading
44
  `[table th="0"]some data here[/table]`
45
 
@@ -57,7 +66,6 @@ Year,Make,Model,Length
57
 
58
  = Other notes =
59
  * In PHP version lower than 5.3, data in each cell must not have line break, otherwise it will be detected as new row.
60
- * No option for colspan and rowspan
61
 
62
  == Installation ==
63
 
@@ -69,9 +77,7 @@ There are many ways to install this plugin, e.g:
69
 
70
  == Frequently Asked Questions ==
71
 
72
- = Is there any question? =
73
-
74
- Not yet.
75
 
76
  == Screenshots ==
77
 
@@ -86,8 +92,14 @@ No
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
89
  = 0.4 =
90
- * Fixed: Option value can't override default value if option value is empty (if checkbox is uncecked).
91
  * Added: Optionally, tfoot now can be taken from last row. Example usage: [table tf="last"]somedata[/table]
92
 
93
  = 0.3 =
4
  Tags: table,csv,csv-to-table,post,excel,csv file,widget,tablesorter
5
  Requires at least: 3.0
6
  Tested up to: 3.3.2
7
+ Stable tag: 0.5
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 colspan and other attribute in some cells
44
+ `[table]
45
+ no[attr width="20"],head1,head2,head3
46
+ 1,row1col1,row1col2,row1col3[attr class="someclass"]
47
+ 2,row2col1,row2col2,row2col3
48
+ 3,row3col1[attr colspan="2"],row3col3
49
+ 4,row4col1,row4col2,row4col3
50
+ [/table]`
51
+
52
  * Table with no heading
53
  `[table th="0"]some data here[/table]`
54
 
66
 
67
  = Other notes =
68
  * In PHP version lower than 5.3, data in each cell must not have line break, otherwise it will be detected as new row.
 
69
 
70
  == Installation ==
71
 
77
 
78
  == Frequently Asked Questions ==
79
 
80
+ [See official plugin support here](http://takien.com/plugins/easy-table).
 
 
81
 
82
  == Screenshots ==
83
 
92
 
93
  == Changelog ==
94
 
95
+ = 0.5 =
96
+ * Added: Ability to set attribute for each cell.
97
+ * Added: Support and About tab in plugin options page.
98
+ * Fixed: Table width attribute not work.
99
+ * Removed: Equalize the number of columns in each row.
100
+
101
  = 0.4 =
102
+ * Fixed: Option value can't override default value if option value is empty (if checkbox is unchecked).
103
  * Added: Optionally, tfoot now can be taken from last row. Example usage: [table tf="last"]somedata[/table]
104
 
105
  = 0.3 =