Changeset 2878694
- Timestamp:
- 03/12/2023 02:52:29 PM (3 years ago)
- Location:
- wp-table-editor/trunk
- Files:
-
- 10 edited
-
assets/css/front.css (modified) (1 diff)
-
includes/admin/function.php (modified) (2 diffs)
-
includes/admin/row_action.php (modified) (1 diff)
-
includes/admin/table_action.php (modified) (1 diff)
-
includes/init.php (modified) (1 diff)
-
includes/load.php (modified) (5 diffs)
-
includes/public/row_action.php (modified) (1 diff)
-
includes/public/shortcode.php (modified) (3 diffs)
-
main.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-table-editor/trunk/assets/css/front.css
r2875095 r2878694 42 42 } 43 43 /*new*/ 44 .xscontainer table, td, th { 45 border: unset; 46 } 44 47 .xscontainer .xs-row { 45 48 padding:10px !important; -
wp-table-editor/trunk/includes/admin/function.php
r2875422 r2878694 148 148 table_jsonnametemp varchar(250) NOT NULL, 149 149 table_jsonsavedate varchar(250) NOT NULL, 150 table_datasources enum('default','javascript') NOT NULL, 150 151 table_note text NOT NULL, 151 152 table_keytable enum('no','yes') NOT NULL, … … 1200 1201 $html_id = "wptableeditor_$table_id"; 1201 1202 $dataSet = ''; 1202 if($serverSide === 'false' && $table_type === 'json' && empty($column_index) ){1203 if($serverSide === 'false' && $table_type === 'json' && empty($column_index) && $table_filter !== 'yes'){ 1203 1204 $dataSet = wptableeditor_load::put_action($table_id, false, true); 1204 1205 } -
wp-table-editor/trunk/includes/admin/row_action.php
r2869143 r2878694 110 110 }elseif($order_types[$x] === 'id'){ 111 111 $sub_array[] = $row['column_id']; 112 }elseif($order_types[$x] === 'select'){ 113 if($value === 'dashicons dashicons-yes'){ 114 $sub_array[] = html_entity_decode('<span class="dashicons dashicons-yes" style="color: green;font-weight: 600;font-size: 25px"></span>'); 115 }elseif($value === 'dashicons dashicons-no'){ 116 $sub_array[] = html_entity_decode('<span class="dashicons dashicons-no" style="color: red;font-size: 25px"></span>'); 117 }else{ 118 $sub_array[] = html_entity_decode($value); 119 } 112 120 }else{ 113 121 $sub_array[] = html_entity_decode($value); -
wp-table-editor/trunk/includes/admin/table_action.php
r2871178 r2878694 50 50 wptableeditor_init::add_column(WPTABLEEDITOR_TABLE, 'table_staterestore', "text", 'table_predefinedstates'); 51 51 wptableeditor_init::rename_column(WPTABLEEDITOR_TABLE, 'table_responsive', 'table_responsive', "enum('collapse','scroll','flip','stack')"); 52 wptableeditor_init::add_column(WPTABLEEDITOR_TABLE, 'table_datasources', "enum('default', 'javascript')", 'table_jsonsavedate'); 52 53 $query = "SELECT * FROM `{$WPTABLEEDITOR_TABLE}` "; 53 54 $result = $wpdb->get_results($query); -
wp-table-editor/trunk/includes/init.php
r2862840 r2878694 23 23 }elseif($table === 'table_createdrow'){ 24 24 $$table = stripslashes(maybe_unserialize('')); 25 }elseif($table === 'table_datasources'){ 26 $$table = 'default'; 25 27 } 26 28 } -
wp-table-editor/trunk/includes/load.php
r2875095 r2878694 105 105 'table_prefilter', 106 106 'table_jsonsave', 107 'table_autosave' 107 'table_autosave', 108 'table_datasources' 108 109 ); 109 110 } … … 125 126 $result = $wpdb->get_results($wpdb->prepare($query, $table_id)); 126 127 if($result){ 128 $license = self::license(); 127 129 $output = array(); 128 130 for($i = 1; $i <= 44; $i++){ … … 180 182 } 181 183 $output14[] = $row->column_names; 184 $column_names = '"title": "'.$row->column_names.'",'; 182 185 if($row->column_width > 0){ 183 $output15[] = '{ "width": "'.$row->column_width.'%" }';184 $output36[] = '{ "width": "'.$row->column_width.'%","data": "'.str_replace('column_', '', $row->column_name).'" }';186 $output15[] = '{ '.$column_names.'"width": "'.$row->column_width.'%" }'; 187 $output36[] = '{ '.$column_names.'"width": "'.$row->column_width.'%","data": "'.str_replace('column_', '', $row->column_name).'" }'; 185 188 }else{ 186 $output15[] = ' null';187 $output36[] = '{ "data": "'.str_replace('column_', '', $row->column_name).'" }';189 $output15[] = '{ "title": "'.$row->column_names.'" }'; 190 $output36[] = '{ '.$column_names.'"data": "'.str_replace('column_', '', $row->column_name).'" }'; 188 191 } 189 192 if(!empty($row->column_backgroundcolor)){ … … 205 208 $output18[$row->column_order] = $row->column_customtype; 206 209 } 207 if($ row->column_index === 'yes'){210 if($license !== false && $row->column_index === 'yes'){ 208 211 $output19[] = $row->column_order; 209 212 } … … 325 328 } 326 329 } 327 if( self::license()=== false){330 if($license === false){ 328 331 $outputs19 = array(); 329 332 $outputs21 = array(); -
wp-table-editor/trunk/includes/public/row_action.php
r2869143 r2878694 102 102 }elseif($order_types[$x] === 'id'){ 103 103 $sub_array[] = $row['column_id']; 104 }elseif($order_types[$x] === 'select'){ 105 if($value === 'dashicons dashicons-yes'){ 106 $sub_array[] = html_entity_decode('<span class="dashicons dashicons-yes" style="color: green;font-weight: 600;font-size: 25px"></span>'); 107 }elseif($value === 'dashicons dashicons-no'){ 108 $sub_array[] = html_entity_decode('<span class="dashicons dashicons-no" style="color: red;font-size: 25px"></span>'); 109 }else{ 110 $sub_array[] = html_entity_decode($value); 111 } 104 112 }else{ 105 113 $sub_array[] = html_entity_decode($value); -
wp-table-editor/trunk/includes/public/shortcode.php
r2875422 r2878694 366 366 } 367 367 $dataSet = ''; 368 if($ serverSide === 'false' && empty($column_index)){368 if($table_type === 'json'){ 369 369 $dataSet = wptableeditor_load::put_action($table_id, false, true); 370 370 } … … 555 555 $output .= '<table class="stripe xs-w-100 xs-b-spacing xs-m-bottom" id="'.$html_id.'">'; 556 556 $output .= '<thead class="'.$html_id.'_thead"><tr class="'.$html_id.'_head">'; 557 if(empty($dataSet)){ 557 558 $i = 0; 558 559 $output .= '<th class="'.$html_id.'_head_'.$i.'">ID</th>'; … … 564 565 $output .= '<th class="'.$html_id.'_head_'.$i.'"></th>'; 565 566 } 567 } 566 568 $output .= '</tr></thead>'; 567 569 $output .= '<tbody class="'.$html_id.'_tbody"></tbody>'; 568 if($table_footer === 'yes' ){570 if($table_footer === 'yes' && empty($dataSet)){ 569 571 $i = 0; 570 572 $output .= '<tfoot class="'.$html_id.'_tfoot"><tr class="'.$html_id.'_foot">'; -
wp-table-editor/trunk/main.php
r2875422 r2878694 4 4 Plugin URI: https://wptableeditor.com/documentation/ 5 5 Description: Table Editor is a WordPress plugin used to quickly create tables from Excel, CSV, JSON and other data sources. Allows you to create beautiful sortable and responsive tables inside your posts, pages, custom post types or widget area. 6 Version: 1.3. 16 Version: 1.3.2 7 7 Author: wptableeditor.com 8 8 Author URI: https://wptableeditor.com/ … … 15 15 if ( ! defined( 'WPTABLEEDITOR_ASSETS' ) ) define( 'WPTABLEEDITOR_ASSETS', plugins_url( 'assets/', __FILE__ ) ); 16 16 if ( ! defined( 'WPTABLEEDITOR_VENDOR' ) ) define( 'WPTABLEEDITOR_VENDOR', plugins_url( 'vendor/', __FILE__ ) ); 17 if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.3. 1' );17 if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.3.2' ); 18 18 if ( ! defined( 'WPTABLEEDITOR_SLUG' ) ) define( 'WPTABLEEDITOR_SLUG', basename( plugin_dir_path( __FILE__ ) ) ); 19 19 if ( ! defined( 'WPTABLEEDITOR_MAIN' ) ) define( 'WPTABLEEDITOR_MAIN', plugin_basename( __FILE__ ) ); -
wp-table-editor/trunk/readme.txt
r2875422 r2878694 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 15 15 Table Editor is a WordPress plugin used to quickly create tables from Excel, CSV, JSON and other data sources. Allows you to create beautiful sortable and responsive tables inside your posts, pages, custom post types or widget area. 16 16 [Live Demo](https://wptableeditor.com/demos/) 17 17 [Live Admin](https://tastewp.com/plugins/wp-table-editor?ni=true) 18 18 … … 27 27 - Google Sheets 28 28 29 Please visit the plugin website at [wptableeditor.com](https://wptableeditor.com/documentation/) for more information or a [demo](https://wptableeditor.com/demo ).29 Please visit the plugin website at [wptableeditor.com](https://wptableeditor.com/documentation/) for more information or a [demo](https://wptableeditor.com/demos). 30 30 31 31 Here is the list of the [feature](https://wptableeditor.com/features/) … … 74 74 75 75 == Changelog == 76 77 = 1.3.2 = 78 * Small bug fixes 76 79 77 80 = 1.3.1 =
Note: See TracChangeset
for help on using the changeset viewer.