Changeset 2710961
- Timestamp:
- 04/18/2022 09:03:41 AM (4 years ago)
- Location:
- pubydoc-data-tables-and-charts/trunk
- Files:
-
- 5 edited
-
common/css/admin.options.css (modified) (1 diff)
-
common/js/core.js (modified) (1 diff)
-
modules/tables/assets/js/common.tables.js (modified) (1 diff)
-
modules/tables/views/tpl/tablesEditTabOptions.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pubydoc-data-tables-and-charts/trunk/common/css/admin.options.css
r2658739 r2710961 7 7 padding-left: 18px !important; 8 8 text-align: left !important; 9 } 10 .pubydoc-table-list table td.dt-center { 11 text-align: center !important; 9 12 } 10 13 .pubydoc-table-list table { -
pubydoc-data-tables-and-charts/trunk/common/js/core.js
r2658739 r2710961 502 502 return (usePound?"#":"") + '0'.repeat(6 - res.length) + res; 503 503 } 504 function pytHexToRgbA(hex, alfa){ 505 var c, a = typeof alfa == 'undefined' ? 1 : alfa; 506 if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)){ 507 c= hex.substring(1).split(''); 508 if(c.length== 3){ 509 c= [c[0], c[0], c[1], c[1], c[2], c[2]]; 510 } 511 c= '0x'+c.join(''); 512 return 'rgba('+[(c>>16)&255, (c>>8)&255, c&255].join(',')+','+a+')'; 513 } 514 return hex; 515 } 504 516 function pytParseJSON(elem) { 505 517 try { -
pubydoc-data-tables-and-charts/trunk/modules/tables/assets/js/common.tables.js
r2674491 r2710961 523 523 524 524 if (tSettings.pagingSettings) { 525 var pageMenu = pytCheckSettings(tSettings.pagingSettings, 'menu'); 526 if (pageMenu.length) { 527 config.aLengthMenu = []; 528 config.aLengthMenu.push(pageMenu.replace('All', -1).split(',').map(Number)); 529 config.aLengthMenu.push(pageMenu.split(',')); 525 if (pytCheckSettings(tSettings.pagingSettings, 'dropdown') == '1') { 526 var pageMenu = pytCheckSettings(tSettings.pagingSettings, 'menu'); 527 if (pageMenu.length) { 528 config.aLengthMenu = []; 529 config.aLengthMenu.push(pageMenu.replace('All', -1).split(',').map(Number)); 530 config.aLengthMenu.push(pageMenu.split(',')); 531 } 532 config.bLengthChange = true; 533 } else { 534 config.bLengthChange = false; 535 config.pageLength = pytCheckSettings(tSettings.pagingSettings, 'rows', 10); 530 536 } 531 537 } -
pubydoc-data-tables-and-charts/trunk/modules/tables/views/tpl/tablesEditTabOptions.php
r2658739 r2710961 502 502 </div> 503 503 <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($classHidden); ?>" data-parent="options[paging]"> 504 <div class="pyt-option-label pubydoc-tooltip" title="<?php esc_attr_e('Show drop down list to select the number of rows on the page.', 'publish-your-table'); ?>"> 505 <?php esc_html_e('Pagination menu', 'publish-your-table'); ?> 506 </div> 507 <div class="pyt-option-value"> 508 <?php 509 HtmlPyt::checkbox('options[pages][dropdown]', array( 510 'checked' => UtilsPyt::getArrayValue($pages, 'dropdown', 0, 1), 511 )); 512 ?> 513 </div> 514 </div> 515 <?php 516 $parent = UtilsPyt::getArrayValue($pages, 'dropdown', 0, 1); 517 $subHidden = $parent ? '' : 'pytHidden'; 518 ?> 519 <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($subHidden); ?>" data-parent="options[pages][dropdown]"> 504 520 <div class="pyt-option-label pubydoc-tooltip" title="<?php esc_attr_e('Here you can set the number of rows to display on one Pagination page. Establish several numbers separated by comma to let users choose it personally. First number will be displayed by default. Since that the number of Pagination Pages will be recounted also.', 'publish-your-table'); ?>"> 505 521 <?php esc_html_e('Pagination list content', 'publish-your-table'); ?> … … 509 525 HtmlPyt::text('options[pages][menu]', array( 510 526 'value' => UtilsPyt::getArrayValue($pages, 'menu', '50,100,All'), 527 )); 528 ?> 529 </div> 530 </div> 531 <?php 532 $subHidden = $parent ? 'pytHidden' : ''; 533 ?> 534 <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($subHidden); ?>" data-parent-reverse="options[pages][dropdown]"> 535 <div class="pyt-option-label pubydoc-tooltip" title="<?php esc_attr_e('Here you can set the number of rows to display on one Pagination page.', 'publish-your-table'); ?>"> 536 <?php esc_html_e('Rows per page', 'publish-your-table'); ?> 537 </div> 538 <div class="pyt-option-value"> 539 <?php 540 HtmlPyt::number('options[pages][rows]', array( 541 'value' => UtilsPyt::getArrayValue($pages, 'rows', 5, 1), 542 'attrs' => 'min="0"' 511 543 )); 512 544 ?> … … 613 645 <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($classHidden); ?>" data-parent="options[searching]"> 614 646 <div class="pyt-option-label pubydoc-tooltip" title="<?php esc_attr_e('Hide table by default and show only if search has a result', 'publish-your-table'); ?>"> 615 <?php esc_html_e('Show Only Search Results', 'publish-your-table'); ?>647 <?php esc_html_e('Show only search results', 'publish-your-table'); ?> 616 648 </div> 617 649 <div class="pyt-option-value"> … … 625 657 <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($sClassHidden); ?>" data-parent="options[searches][result_only]"> 626 658 <div class="pyt-option-label pubydoc-tooltip" title="<?php esc_attr_e('Table will not be hidden by default, but will be empty', 'publish-your-table'); ?>"> 627 <?php esc_html_e('Show Empty Table', 'publish-your-table'); ?>659 <?php esc_html_e('Show empty table', 'publish-your-table'); ?> 628 660 </div> 629 661 <div class="pyt-option-value"> … … 637 669 <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($classHidden); ?>" data-parent="options[searching]"> 638 670 <div class="pyt-option-label pubydoc-tooltip" title="<?php esc_attr_e('Display only entries with matching characters in the beginning of words', 'publish-your-table'); ?>"> 639 <?php esc_html_e('Strict Matching', 'publish-your-table'); ?>671 <?php esc_html_e('Strict matching', 'publish-your-table'); ?> 640 672 </div> 641 673 <div class="pyt-option-value"> -
pubydoc-data-tables-and-charts/trunk/readme.txt
r2694967 r2710961 4 4 Requires at least: 3.4.0 5 5 Tested up to: 5.9 6 Stable tag: 1. 0.16 Stable tag: 1.1 7 7 8 8 Create responsive data tables & charts with Table Builder, Excel spreadsheet or CSV. Searching, pagination, custom table design, media support
Note: See TracChangeset
for help on using the changeset viewer.