Plugin Directory

Changeset 2878694


Ignore:
Timestamp:
03/12/2023 02:52:29 PM (3 years ago)
Author:
wptableeditor
Message:

Small bug fixes

Location:
wp-table-editor/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • wp-table-editor/trunk/assets/css/front.css

    r2875095 r2878694  
    4242}
    4343/*new*/
     44.xscontainer table, td, th {
     45    border: unset;
     46}
    4447.xscontainer .xs-row {
    4548    padding:10px !important;
  • wp-table-editor/trunk/includes/admin/function.php

    r2875422 r2878694  
    148148                table_jsonnametemp varchar(250) NOT NULL,
    149149                table_jsonsavedate varchar(250) NOT NULL,
     150                table_datasources enum('default','javascript') NOT NULL,
    150151                table_note text NOT NULL,
    151152                table_keytable enum('no','yes') NOT NULL,
     
    12001201            $html_id = "wptableeditor_$table_id";
    12011202            $dataSet = '';
    1202             if($serverSide === 'false' && $table_type === 'json' && empty($column_index)){
     1203            if($serverSide === 'false' && $table_type === 'json' && empty($column_index) && $table_filter !== 'yes'){
    12031204                $dataSet = wptableeditor_load::put_action($table_id, false, true);
    12041205            }
  • wp-table-editor/trunk/includes/admin/row_action.php

    r2869143 r2878694  
    110110                    }elseif($order_types[$x] === 'id'){
    111111                        $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                        }
    112120                    }else{
    113121                        $sub_array[] = html_entity_decode($value);
  • wp-table-editor/trunk/includes/admin/table_action.php

    r2871178 r2878694  
    5050        wptableeditor_init::add_column(WPTABLEEDITOR_TABLE, 'table_staterestore', "text", 'table_predefinedstates');
    5151        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');
    5253        $query = "SELECT * FROM `{$WPTABLEEDITOR_TABLE}` ";
    5354        $result = $wpdb->get_results($query);
  • wp-table-editor/trunk/includes/init.php

    r2862840 r2878694  
    2323            }elseif($table === 'table_createdrow'){
    2424                $$table = stripslashes(maybe_unserialize(''));
     25            }elseif($table === 'table_datasources'){
     26                $$table = 'default';
    2527            }
    2628        }
  • wp-table-editor/trunk/includes/load.php

    r2875095 r2878694  
    105105                    'table_prefilter',
    106106                    'table_jsonsave',
    107                     'table_autosave'
     107                    'table_autosave',
     108                    'table_datasources'
    108109                );
    109110            }
     
    125126            $result = $wpdb->get_results($wpdb->prepare($query, $table_id));
    126127            if($result){
     128                $license = self::license();
    127129                $output = array();
    128130                for($i = 1; $i <= 44; $i++){
     
    180182                        }
    181183                        $output14[] = $row->column_names;
     184                        $column_names = '"title": "'.$row->column_names.'",';
    182185                        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).'" }';
    185188                        }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).'" }';
    188191                        }
    189192                        if(!empty($row->column_backgroundcolor)){
     
    205208                            $output18[$row->column_order] = $row->column_customtype;
    206209                        }
    207                         if($row->column_index === 'yes'){
     210                        if($license !== false && $row->column_index === 'yes'){
    208211                            $output19[] = $row->column_order;
    209212                        }
     
    325328                    }
    326329                }
    327                 if(self::license() === false){
     330                if($license === false){
    328331                    $outputs19 = array();
    329332                    $outputs21 = array();
  • wp-table-editor/trunk/includes/public/row_action.php

    r2869143 r2878694  
    102102                            }elseif($order_types[$x] === 'id'){
    103103                                $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                                }
    104112                            }else{
    105113                                $sub_array[] = html_entity_decode($value);
  • wp-table-editor/trunk/includes/public/shortcode.php

    r2875422 r2878694  
    366366                }
    367367                $dataSet = '';
    368                 if($serverSide === 'false' && empty($column_index)){
     368                if($table_type === 'json'){
    369369                    $dataSet = wptableeditor_load::put_action($table_id, false, true);
    370370                }
     
    555555                $output .= '<table class="stripe xs-w-100 xs-b-spacing xs-m-bottom" id="'.$html_id.'">';
    556556                    $output .= '<thead class="'.$html_id.'_thead"><tr class="'.$html_id.'_head">';
     557                    if(empty($dataSet)){
    557558                        $i = 0;
    558559                        $output .= '<th class="'.$html_id.'_head_'.$i.'">ID</th>';
     
    564565                            $output .= '<th class="'.$html_id.'_head_'.$i.'"></th>';
    565566                        }
     567                    }
    566568                    $output .= '</tr></thead>';
    567569                    $output .= '<tbody class="'.$html_id.'_tbody"></tbody>';
    568                     if($table_footer === 'yes'){
     570                    if($table_footer === 'yes' && empty($dataSet)){
    569571                        $i = 0;
    570572                        $output .= '<tfoot class="'.$html_id.'_tfoot"><tr class="'.$html_id.'_foot">';
  • wp-table-editor/trunk/main.php

    r2875422 r2878694  
    44Plugin URI: https://wptableeditor.com/documentation/
    55Description: 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.1
     6Version: 1.3.2
    77Author: wptableeditor.com
    88Author URI: https://wptableeditor.com/
     
    1515if ( ! defined( 'WPTABLEEDITOR_ASSETS' ) ) define( 'WPTABLEEDITOR_ASSETS', plugins_url( 'assets/', __FILE__ ) );
    1616if ( ! defined( 'WPTABLEEDITOR_VENDOR' ) ) define( 'WPTABLEEDITOR_VENDOR', plugins_url( 'vendor/', __FILE__ ) );
    17 if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.3.1' );
     17if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.3.2' );
    1818if ( ! defined( 'WPTABLEEDITOR_SLUG' ) ) define( 'WPTABLEEDITOR_SLUG', basename( plugin_dir_path( __FILE__ ) ) );
    1919if ( ! defined( 'WPTABLEEDITOR_MAIN' ) ) define( 'WPTABLEEDITOR_MAIN', plugin_basename( __FILE__ ) );
  • wp-table-editor/trunk/readme.txt

    r2875422 r2878694  
    55Tested up to: 6.1.1
    66Requires PHP: 7.4
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414
    1515Table 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/)
    1717[Live Admin](https://tastewp.com/plugins/wp-table-editor?ni=true)
    1818
     
    2727- Google Sheets
    2828
    29 Please visit the plugin website at [wptableeditor.com](https://wptableeditor.com/documentation/) for more information or a [demo](https://wptableeditor.com/demo).
     29Please visit the plugin website at [wptableeditor.com](https://wptableeditor.com/documentation/) for more information or a [demo](https://wptableeditor.com/demos).
    3030
    3131Here is the list of the [feature](https://wptableeditor.com/features/)
     
    7474
    7575== Changelog ==
     76
     77= 1.3.2 =
     78* Small bug fixes
    7679
    7780= 1.3.1 =
Note: See TracChangeset for help on using the changeset viewer.