Data Tables Generator by Supsystic - Version 1.10.3

Version Description

/ 01.03.2021 = * Add fix for dataTables * Update kses * Fix for columnWidth feature * Add fix for notice

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Data Tables Generator by Supsystic
Version 1.10.3
Comparing to
See all releases

Code changes from version 1.10.2 to 1.10.3

app/SupsysticTables.php CHANGED
@@ -18,7 +18,7 @@ class SupsysticTables
18
 
19
  $menuSlug = 'supsystic-tables';
20
  $pluginPath = dirname(dirname(__FILE__));
21
- $environment = new Rsc_Environment('st', '1.10.2', $pluginPath);
22
 
23
  /* Configure */
24
  $environment->configure(
18
 
19
  $menuSlug = 'supsystic-tables';
20
  $pluginPath = dirname(dirname(__FILE__));
21
+ $environment = new Rsc_Environment('st', '1.10.3', $pluginPath);
22
 
23
  /* Configure */
24
  $environment->configure(
index.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Data Tables Generator by Supsystic
5
  * Plugin URI: http://supsystic.com
6
  * Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
7
- * Version: 1.10.2
8
  * Author: supsystic.com
9
  * Author URI: http://supsystic.com
10
  * Text Domain: supsystic_tables
4
  * Plugin Name: Data Tables Generator by Supsystic
5
  * Plugin URI: http://supsystic.com
6
  * Description: Create and manage beautiful data tables with custom design. No HTML knowledge is required
7
+ * Version: 1.10.3
8
  * Author: supsystic.com
9
  * Author URI: http://supsystic.com
10
  * Text Domain: supsystic_tables
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: supsystic.com
3
  Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
4
  Tested up to: 5.6
5
- Stable tag: 1.10.2
6
 
7
  Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
8
 
@@ -214,7 +214,13 @@ It's perfect for product [Price List](http://woo.supsystic.com/price-list "Price
214
  Create custom order forms which increase your conversion rate!
215
 
216
  == Changelog ==
217
- = 1.10.1 / 15.02.2021 =
 
 
 
 
 
 
218
  * Change <> in formula to @less@ @more@ for wp_kses only for JS now
219
  * Add fix for export @more@@less@
220
  * Replace < > symbols in import
2
  Contributors: supsystic.com
3
  Tags: data table, spreadsheet, table builder, charts, graphs, wordpress table plugin, excel, line chart, pie chart, visualise data
4
  Tested up to: 5.6
5
+ Stable tag: 1.10.3
6
 
7
  Create data tables with charts and graphs. Custom design, navigation, searching and ordering functions. Export to PDF, CSV, Print. Excel spreadsheet. WooCommerce Integration.
8
 
214
  Create custom order forms which increase your conversion rate!
215
 
216
  == Changelog ==
217
+ = 1.10.3 / 01.03.2021 =
218
+ * Add fix for dataTables
219
+ * Update kses
220
+ * Fix for columnWidth feature
221
+ * Add fix for notice
222
+
223
+ = 1.10.2 / 15.02.2021 =
224
  * Change <> in formula to @less@ @more@ for wp_kses only for JS now
225
  * Add fix for export @more@@less@
226
  * Replace < > symbols in import
src/SupsysticTables/Tables/Model/Tables.php CHANGED
@@ -303,6 +303,11 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
303
  'height' => 1,
304
  'id' => 1,
305
  'class' => 1,
 
 
 
 
 
306
  ),
307
  'video' => array(
308
  'src' => 1,
@@ -374,6 +379,8 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
374
  'media' => 1,
375
  'rel' => 1,
376
  'type' => 1,
 
 
377
  ),
378
  'hr' => array(
379
  'align' => 1,
@@ -386,6 +393,10 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
386
  'class' => 1,
387
  'id' => 1,
388
  ),
 
 
 
 
389
  );
390
  $allowedDiv = array(
391
  'div' => array(
@@ -647,7 +658,8 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
647
  'width' => 1,
648
  'height' => 1,
649
  'id' => 1,
650
-
 
651
  ) ,
652
  'a' => array(
653
  'style' => 1,
@@ -657,6 +669,7 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
657
  'width' => 1,
658
  'height' => 1,
659
  'id' => 1,
 
660
 
661
  ) ,
662
  'abbr' => array(
@@ -879,6 +892,19 @@ class SupsysticTables_Tables_Model_Tables extends SupsysticTables_Core_BaseModel
879
  'height' => 1,
880
  'id' => 1,
881
 
 
 
 
 
 
 
 
 
 
 
 
 
 
882
  'selected' => 1,
883
  'data-number' => 1,
884
  'value' => 1,
303
  'height' => 1,
304
  'id' => 1,
305
  'class' => 1,
306
+ 'alt' => 1,
307
+ 'class' => 1,
308
+ 'alignnone' => 1,
309
+ 'size-full' => 1,
310
+ 'wp-image-3300' => 1,
311
  ),
312
  'video' => array(
313
  'src' => 1,
379
  'media' => 1,
380
  'rel' => 1,
381
  'type' => 1,
382
+ 'link' => 1,
383
+ 'style' => 1,
384
  ),
385
  'hr' => array(
386
  'align' => 1,
393
  'class' => 1,
394
  'id' => 1,
395
  ),
396
+ 'sup' => array(
397
+ ),
398
+ 'sub' => array(
399
+ ),
400
  );
401
  $allowedDiv = array(
402
  'div' => array(
658
  'width' => 1,
659
  'height' => 1,
660
  'id' => 1,
661
+ 'src' => 1,
662
+ 'alt' => 1,
663
  ) ,
664
  'a' => array(
665
  'style' => 1,
669
  'width' => 1,
670
  'height' => 1,
671
  'id' => 1,
672
+ 'href' => 1,
673
 
674
  ) ,
675
  'abbr' => array(
892
  'height' => 1,
893
  'id' => 1,
894
 
895
+ 'selected' => 1,
896
+ 'data-number' => 1,
897
+ 'value' => 1,
898
+ ),
899
+ 'alt' => array(
900
+ 'style' => 1,
901
+ 'title' => 1,
902
+ 'align' => 1,
903
+ 'class' => 1,
904
+ 'width' => 1,
905
+ 'height' => 1,
906
+ 'id' => 1,
907
+
908
  'selected' => 1,
909
  'data-number' => 1,
910
  'value' => 1,
src/SupsysticTables/Tables/Model/widget.php CHANGED
@@ -75,7 +75,7 @@ class SupsysticTables_Widget extends WP_Widget {
75
  <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Select table: ' ); ?></label>
76
  <select id="<?php echo $this->get_field_id( 'id' ); ?>" class="widefat" name="<?php echo $this->get_field_name( 'id' ); ?>" type="text">
77
  <?php foreach($idTables as $element)
78
- if ($instance['id'] == $element['value'] && isset($element['value'])) {
79
  echo "<option value=" . $element['value'] . " selected>" . $element['name'] . "</option>";
80
  } else {
81
  echo "<option value=" . $element['value'] . ">" . $element['name'] . "</option>";
@@ -103,4 +103,4 @@ class SupsysticTables_Widget extends WP_Widget {
103
  $instance['id'] = ( ! empty( $new_instance['id'] ) ) ? strip_tags( $new_instance['id'] ) : '';
104
  return $instance;
105
  }
106
- }
75
  <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Select table: ' ); ?></label>
76
  <select id="<?php echo $this->get_field_id( 'id' ); ?>" class="widefat" name="<?php echo $this->get_field_name( 'id' ); ?>" type="text">
77
  <?php foreach($idTables as $element)
78
+ if (!empty($instance['id']) && $instance['id'] == $element['value'] && isset($element['value'])) {
79
  echo "<option value=" . $element['value'] . " selected>" . $element['name'] . "</option>";
80
  } else {
81
  echo "<option value=" . $element['value'] . ">" . $element['name'] . "</option>";
103
  $instance['id'] = ( ! empty( $new_instance['id'] ) ) ? strip_tags( $new_instance['id'] ) : '';
104
  return $instance;
105
  }
106
+ }
src/SupsysticTables/Tables/assets/css/tables.shortcode.css CHANGED
@@ -99,7 +99,7 @@ table.supsystic-table .ww-h {
99
  }
100
 
101
  table.supsystic-table {
102
- table-layout: auto!important;
103
  max-width: none;
104
  }
105
 
99
  }
100
 
101
  table.supsystic-table {
102
+ table-layout: fixed;;
103
  max-width: none;
104
  }
105
 
src/SupsysticTables/Tables/views/shortcode.php CHANGED
@@ -3,6 +3,7 @@
3
  global $cols, $compact;
4
  $compact = isset($table->settings['styling']['compact']);
5
  $cols = range('A', 'Z');
 
6
  if (!function_exists('json_encode_escape')) {
7
  function json_encode_escape($array) {
8
  return htmlspecialchars(json_encode($array), ENT_QUOTES, 'UTF-8');
3
  global $cols, $compact;
4
  $compact = isset($table->settings['styling']['compact']);
5
  $cols = range('A', 'Z');
6
+ array_walk($table->settings['styling'], create_function('&$item, $key', '$item .= " $key";'));
7
  if (!function_exists('json_encode_escape')) {
8
  function json_encode_escape($array) {
9
  return htmlspecialchars(json_encode($array), ENT_QUOTES, 'UTF-8');
src/SupsysticTables/Tables/views/shortcode.twig CHANGED
@@ -63,30 +63,30 @@
63
  data-order="{{ data | e }}"
64
  {% endif %}
65
 
66
- {# if 'auto_width' not in context.table.settings.features | keys
67
  and (context.table.settings.styling.compact is not defined
68
  or (context.table.settings.styling.compact is defined and context.table.settings.tableWidthType != 'auto'))
69
  and (rowIndex == '1' or context.widthForAll)
70
  %}
71
- {# if context.table.meta.columnsFixedWidth is defined
72
  and context.table.meta.columnsFixedWidth[cellIndex] is defined
73
  and context.table.meta.columnsFixedWidth[cellIndex] is not empty
74
  %}
75
  style="min-width: {{ context.table.meta.columnsFixedWidth[cellIndex] }}; width: {{ context.table.meta.columnsFixedWidth[cellIndex] }};"
76
- {# elseif context.table.meta.columnsWidth is defined
77
  and context.table.meta.columnsWidth[cellIndex] is defined
78
  and context.table.meta.columnsWidth[cellIndex] is not empty
79
  %}
80
- {#style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"#}
81
- {# if context.table.settings.responsiveMode == 2 %}
82
  style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"
83
- {# else %}
84
  style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; "
85
- {# endif %}
86
- {# else %}
87
  style="width: {{ cell.width }}px"
88
- {# endif %}
89
- {# endif %}
90
 
91
  {# cell.hidden is true if this cell was merged with another cell #}
92
  {% if cell.hidden == true %}
@@ -370,7 +370,6 @@
370
  {% set existHeaderRow = true %}
371
  {% endif %}
372
  {% endfor %}
373
-
374
  {% if existHeaderRow == true %}
375
  <tr>
376
  {% for cellIndex, cell in row.cells %}
@@ -391,7 +390,12 @@
391
  {% if cell.invisibleCell == true %}
392
  {% set fakeCellClass = 'invisibleCell' %}
393
  {% endif %}
394
- <th class="{{ fakeCellClass }}" style="width:{{ table.meta.columnsWidth[cellIndex] }}%; padding: 0 !important;"></th>
 
 
 
 
 
395
  {% endif %}
396
  {% endif %}
397
  {% endfor %}
63
  data-order="{{ data | e }}"
64
  {% endif %}
65
 
66
+ {% if 'auto_width' not in context.table.settings.features | keys
67
  and (context.table.settings.styling.compact is not defined
68
  or (context.table.settings.styling.compact is defined and context.table.settings.tableWidthType != 'auto'))
69
  and (rowIndex == '1' or context.widthForAll)
70
  %}
71
+ {% if context.table.meta.columnsFixedWidth is defined
72
  and context.table.meta.columnsFixedWidth[cellIndex] is defined
73
  and context.table.meta.columnsFixedWidth[cellIndex] is not empty
74
  %}
75
  style="min-width: {{ context.table.meta.columnsFixedWidth[cellIndex] }}; width: {{ context.table.meta.columnsFixedWidth[cellIndex] }};"
76
+ {% elseif context.table.meta.columnsWidth is defined
77
  and context.table.meta.columnsWidth[cellIndex] is defined
78
  and context.table.meta.columnsWidth[cellIndex] is not empty
79
  %}
80
+ {style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"#}
81
+ {% if context.table.settings.responsiveMode == 2 %}
82
  style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; width: {{ context.table.meta.columnsWidth[cellIndex] }}%;"
83
+ {% else %}
84
  style="min-width: {{ context.table.meta.columnsWidth[cellIndex] }}%; "
85
+ {% endif %}
86
+ {% else %}
87
  style="width: {{ cell.width }}px"
88
+ {% endif %}
89
+ {% endif %}
90
 
91
  {# cell.hidden is true if this cell was merged with another cell #}
92
  {% if cell.hidden == true %}
370
  {% set existHeaderRow = true %}
371
  {% endif %}
372
  {% endfor %}
 
373
  {% if existHeaderRow == true %}
374
  <tr>
375
  {% for cellIndex, cell in row.cells %}
390
  {% if cell.invisibleCell == true %}
391
  {% set fakeCellClass = 'invisibleCell' %}
392
  {% endif %}
393
+ {% if table.meta.columnsFixedWidth is not null %}
394
+ <th class="{{ fakeCellClass }}" style="width:{{ table.meta.columnsFixedWidth[cellIndex] }}; padding: 0 !important;"></th>
395
+ {% endif %}
396
+ {% if table.meta.columnsFixedWidth is null %}
397
+ <th class="{{ fakeCellClass }}" style="padding: 0 !important;"></th>
398
+ {% endif %}
399
  {% endif %}
400
  {% endif %}
401
  {% endfor %}