Plugin Directory

Changeset 2994474


Ignore:
Timestamp:
11/11/2023 03:48:00 PM (2 years ago)
Author:
wptableeditor
Message:

Code Optimization

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

Legend:

Unmodified
Added
Removed
  • wp-table-editor/trunk/assets/js/shortcode.js

    r2944715 r2994474  
    188188                }
    189189                function dataRecord(shortcode){
     190                    if(shortcode.table_footer === 'yes'){
     191                        $('#'+shortcode.html_id+'_tfoot').show();
     192                    }
     193                    if(shortcode.dataSet === ''){
     194                        $('#'+shortcode.html_id+'_head').show();
     195                    }
    190196                    if(JSON.parse(shortcode.responsive) !== true && JSON.parse(shortcode.scrollY) > 0 && JSON.parse(shortcode.paging) === true){
    191197                        $("#"+shortcode.html_id).addClass("nowrap");
  • wp-table-editor/trunk/includes/public/shortcode.php

    r2985570 r2994474  
    570570                $output .= '<table class="stripe xs-w-100 xs-b-spacing xs-m-bottom" id="'.$html_id.'">';
    571571                    $output .= '<thead class="'.$html_id.'_thead">';
    572                     /*
    573572                    if(empty($dataSet)){
    574                         $output .= '<tr class="'.$html_id.'_head">';
     573                        $output .= '<tr class="'.$html_id.'_head" id="'.$html_id.'_head" style="display:none">';
    575574                        $i = 0;
    576575                        $output .= '<th class="'.$html_id.'_head_'.$i.'">ID</th>';
     
    584583                        $output .= '</tr>';
    585584                    }
    586                     */
    587585                    $output .= '</thead>';
    588586                    $output .= '<tbody class="'.$html_id.'_tbody"></tbody>';
    589587                    if($table_footer === 'yes' && empty($dataSet)){
    590588                        $i = 0;
    591                         $output .= '<tfoot class="'.$html_id.'_tfoot"><tr class="'.$html_id.'_foot">';
     589                        $output .= '<tfoot class="'.$html_id.'_tfoot" id="'.$html_id.'_tfoot" style="display:none"><tr class="'.$html_id.'_foot">';
    592590                            $output .= '<th class="'.$html_id.'_foot_'.$i.'">ID</th>';
    593591                            foreach($column_names as $_names){
     
    608606                }
    609607                ob_get_clean();
    610                 //include 'non_ajax.php';
    611608                return $output;
    612609            }else{
  • wp-table-editor/trunk/main.php

    r2985570 r2994474  
    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.7
     6Version: 1.3.8
    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.7' );
     17if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.3.8' );
    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

    r2985570 r2994474  
    33Tags: table, table builder, table editor, datatables
    44Requires at least: 5.9.3
    5 Tested up to: 6.4
     5Tested up to: 6.4.1
    66Requires PHP: 7.4
    7 Stable tag: 1.3.7
     7Stable tag: 1.3.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474
    7575== Changelog ==
     76
     77= 1.3.8 =
     78* Code Optimization
    7679
    7780= 1.3.7 =
Note: See TracChangeset for help on using the changeset viewer.