Changeset 3200112
- Timestamp:
- 12/01/2024 07:18:05 AM (15 months ago)
- Location:
- wp-table-editor/trunk
- Files:
-
- 5 edited
-
includes/admin/function.php (modified) (3 diffs)
-
includes/load.php (modified) (4 diffs)
-
includes/public/shortcode.php (modified) (1 diff)
-
main.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-table-editor/trunk/includes/admin/function.php
r3087848 r3200112 183 183 column_filter enum('no','yes') NOT NULL, 184 184 column_hidden enum('no','yes') NOT NULL, 185 column_visibility enum('no','yes') NOT NULL, 185 186 column_total enum('no','yes') NOT NULL, 186 187 column_editable enum('yes','no') NOT NULL, … … 212 213 column_optionlimit int(2) NOT NULL, 213 214 column_characterlimit int(2) NOT NULL, 215 column_condition enum('','equals','not','empty','notempty') NOT NULL, 216 column_conditionvalue varchar(250) NOT NULL, 214 217 column_restrictiontitle varchar(250) NOT NULL, 215 218 column_render text NOT NULL, … … 1441 1444 'column_filters' => $column_filters, 1442 1445 'column_hiddens' => $column_hiddens, 1446 'column_visibility' => $column_visibility, 1443 1447 'column_none' => $column_none, 1444 1448 'column_orderable' => $column_orderable, -
wp-table-editor/trunk/includes/load.php
r3087848 r3200112 138 138 $license = self::license(); 139 139 $output = array(); 140 for($i = 1; $i <= 4 4; $i++){140 for($i = 1; $i <= 46; $i++){ 141 141 $variable = 'output'.$i; 142 142 $$variable = array(); … … 267 267 } 268 268 $outputs = array(); 269 for($i = 1; $i <= 4 4; $i++){269 for($i = 1; $i <= 46; $i++){ 270 270 $variables = 'outputs'.$i; 271 271 $$variables = array(); … … 273 273 $outputs2 = array(0); 274 274 foreach($output as $key => $value){ 275 for($i = 1; $i <= 4 4; $i++){275 for($i = 1; $i <= 46; $i++){ 276 276 $_output = 'output'.$i; 277 277 $_value = 'value'.$i; … … 370 370 $outputs['column_show'] = wp_json_encode($outputs13); 371 371 $outputs['column_hiddens'] = wp_json_encode($outputs8); 372 $outputs['column_visibility'] = wp_json_encode($outputs46); 372 373 $outputs['column_orderable'] = wp_json_encode($outputs3); 373 374 $outputs['column_searchable'] = wp_json_encode($outputs4); -
wp-table-editor/trunk/includes/public/shortcode.php
r3087848 r3200112 42 42 function xs_enqueue_style(){ 43 43 if(!is_admin()){ 44 wp_register_style( 'xsdatatables', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.css' );45 wp_register_style( 'xsstyle', WPTABLEEDITOR_ASSETS. 'css/style.css' );46 wp_register_style( 'xsfront', WPTABLEEDITOR_ASSETS. 'css/front.css' );47 wp_register_style( 'xstabs', WPTABLEEDITOR_ASSETS. 'css/tabs.css' );44 wp_register_style( 'xsdatatables', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.css', array(), WPTABLEEDITOR_VERSION ); 45 wp_register_style( 'xsstyle', WPTABLEEDITOR_ASSETS. 'css/style.css', array(), WPTABLEEDITOR_VERSION ); 46 wp_register_style( 'xsfront', WPTABLEEDITOR_ASSETS. 'css/front.css', array(), WPTABLEEDITOR_VERSION ); 47 wp_register_style( 'xstabs', WPTABLEEDITOR_ASSETS. 'css/tabs.css', array(), WPTABLEEDITOR_VERSION ); 48 48 wp_register_style( 'xsshortcode', false ); 49 wp_register_script( 'xsdatatables', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.js', array('jquery') );50 wp_register_script( 'xsmoment', WPTABLEEDITOR_VENDOR. 'moment/moment.min.js' );51 wp_register_script( 'xsshortcode', WPTABLEEDITOR_ASSETS. 'js/shortcode.js' );52 wp_register_script( 'xstabs', WPTABLEEDITOR_ASSETS. 'js/tabs.js', array('jquery') );49 wp_register_script( 'xsdatatables', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.js', array('jquery'), WPTABLEEDITOR_VERSION ); 50 wp_register_script( 'xsmoment', WPTABLEEDITOR_VENDOR. 'moment/moment.min.js', array(), WPTABLEEDITOR_VERSION ); 51 wp_register_script( 'xsshortcode', WPTABLEEDITOR_ASSETS. 'js/shortcode.js', array(), WPTABLEEDITOR_VERSION ); 52 wp_register_script( 'xstabs', WPTABLEEDITOR_ASSETS. 'js/tabs.js', array('jquery'), WPTABLEEDITOR_VERSION ); 53 53 } 54 54 } -
wp-table-editor/trunk/main.php
r3099993 r3200112 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.5. 06 Version: 1.5.1 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.5. 0' );17 if ( ! defined( 'WPTABLEEDITOR_VERSION' ) ) define( 'WPTABLEEDITOR_VERSION', '1.5.1' ); 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__ ) ); … … 192 192 global $pagenow; 193 193 if ( $pagenow === 'admin.php' && isset($_GET['page']) && in_array( $_GET['page'], array( 'wptableeditor' ) ) ) { 194 wp_enqueue_style( 'xsbootstrap', WPTABLEEDITOR_VENDOR. 'bootstrap/css/bootstrap.min.css' );195 wp_enqueue_style( 'xsstyle', WPTABLEEDITOR_ASSETS. 'css/style.css' );196 wp_enqueue_style( 'xsadmin', WPTABLEEDITOR_ASSETS. 'css/admin.css' );197 wp_enqueue_script( 'xsbootstrap', WPTABLEEDITOR_VENDOR. 'bootstrap/js/bootstrap.bundle.min.js' );194 wp_enqueue_style( 'xsbootstrap', WPTABLEEDITOR_VENDOR. 'bootstrap/css/bootstrap.min.css', array(), WPTABLEEDITOR_VERSION ); 195 wp_enqueue_style( 'xsstyle', WPTABLEEDITOR_ASSETS. 'css/style.css', array(), WPTABLEEDITOR_VERSION ); 196 wp_enqueue_style( 'xsadmin', WPTABLEEDITOR_ASSETS. 'css/admin.css', array(), WPTABLEEDITOR_VERSION ); 197 wp_enqueue_script( 'xsbootstrap', WPTABLEEDITOR_VENDOR. 'bootstrap/js/bootstrap.bundle.min.js', array(), WPTABLEEDITOR_VERSION ); 198 198 if($_GET['page'] === 'wptableeditor'){ 199 wp_enqueue_style( 'wptableeditor', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.css' );200 wp_enqueue_script( 'wptableeditor', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.js' );199 wp_enqueue_style( 'wptableeditor', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.css', array(), WPTABLEEDITOR_VERSION ); 200 wp_enqueue_script( 'wptableeditor', WPTABLEEDITOR_VENDOR. 'datatables/datatables.min.js', array(), WPTABLEEDITOR_VERSION ); 201 201 wp_enqueue_script( 'jquery-ui-sortable' ); 202 202 if(isset($_GET['tab']) && isset($_GET['table_id'])){ … … 205 205 if($tab === 'column'){ 206 206 $localize = wp_json_encode(wptableeditor_column::localize($table_id)); 207 wp_enqueue_script( 'xscolumn', WPTABLEEDITOR_ASSETS. 'js/column.js' );207 wp_enqueue_script( 'xscolumn', WPTABLEEDITOR_ASSETS. 'js/column.js', array(), WPTABLEEDITOR_VERSION ); 208 208 wp_add_inline_script( 'xscolumn', 'var xs_ajax_column = '. $localize, 'before' ); 209 209 wp_localize_script( 'xscolumn', 'xs_ajax_localize', wptableeditor_load::localize() ); 210 210 }elseif($tab === 'row'){ 211 wp_enqueue_script( 'xsmoment', WPTABLEEDITOR_VENDOR. 'moment/moment.min.js' );212 wp_enqueue_script( 'xsaudio', WPTABLEEDITOR_ASSETS. 'js/soundmanager.js' );211 wp_enqueue_script( 'xsmoment', WPTABLEEDITOR_VENDOR. 'moment/moment.min.js', array(), WPTABLEEDITOR_VERSION ); 212 wp_enqueue_script( 'xsaudio', WPTABLEEDITOR_ASSETS. 'js/soundmanager.js', array(), WPTABLEEDITOR_VERSION ); 213 213 $localize = wp_json_encode(wptableeditor_row::localize($table_id)); 214 wp_enqueue_script( 'xsrow', WPTABLEEDITOR_ASSETS. 'js/row.js' );214 wp_enqueue_script( 'xsrow', WPTABLEEDITOR_ASSETS. 'js/row.js', array(), WPTABLEEDITOR_VERSION ); 215 215 wp_add_inline_script( 'xsrow', 'var xs_ajax_row = '. $localize, 'before' ); 216 216 wp_localize_script( 'xsrow', 'xs_ajax_localize', wptableeditor_load::localize() ); 217 217 }elseif($tab === 'import'){ 218 218 $localize = wp_json_encode(wptableeditor_import::localize($table_id)); 219 wp_enqueue_script( 'xsimport', WPTABLEEDITOR_ASSETS. 'js/import.js' );219 wp_enqueue_script( 'xsimport', WPTABLEEDITOR_ASSETS. 'js/import.js', array(), WPTABLEEDITOR_VERSION ); 220 220 wp_add_inline_script( 'xsimport', 'var xs_ajax_import = '. $localize, 'before' ); 221 221 wp_localize_script( 'xsimport', 'xs_ajax_localize', wptableeditor_load::localize() ); … … 223 223 }else{ 224 224 $localize = wp_json_encode(wptableeditor_table::localize()); 225 wp_enqueue_script( 'xstable', WPTABLEEDITOR_ASSETS. 'js/table.js' );225 wp_enqueue_script( 'xstable', WPTABLEEDITOR_ASSETS. 'js/table.js', array(), WPTABLEEDITOR_VERSION ); 226 226 wp_add_inline_script( 'xstable', 'var xs_ajax_table = '. $localize, 'before' ); 227 227 wp_localize_script( 'xstable', 'xs_ajax_localize', wptableeditor_load::localize() ); -
wp-table-editor/trunk/readme.txt
r3099993 r3200112 3 3 Tags: table, table builder, table editor, datatables 4 4 Requires at least: 6.0 5 Tested up to: 6. 5.45 Tested up to: 6.7.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.5. 07 Stable tag: 1.5.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 75 75 == Changelog == 76 77 = 1.5.1 = 78 * Code Optimization 76 79 77 80 = 1.5.0 =
Note: See TracChangeset
for help on using the changeset viewer.