Plugin Directory

Changeset 2710961


Ignore:
Timestamp:
04/18/2022 09:03:41 AM (4 years ago)
Author:
pubydoc
Message:

version 1.1

Location:
pubydoc-data-tables-and-charts/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pubydoc-data-tables-and-charts/trunk/common/css/admin.options.css

    r2658739 r2710961  
    77    padding-left: 18px !important;
    88    text-align: left !important;
     9}
     10.pubydoc-table-list table td.dt-center {
     11    text-align: center !important;
    912}
    1013.pubydoc-table-list table {
  • pubydoc-data-tables-and-charts/trunk/common/js/core.js

    r2658739 r2710961  
    502502    return (usePound?"#":"") + '0'.repeat(6 - res.length) + res;
    503503}
     504function 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}
    504516function pytParseJSON(elem) {
    505517    try {
  • pubydoc-data-tables-and-charts/trunk/modules/tables/assets/js/common.tables.js

    r2674491 r2710961  
    523523
    524524        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);
    530536            }
    531537        }
  • pubydoc-data-tables-and-charts/trunk/modules/tables/views/tpl/tablesEditTabOptions.php

    r2658739 r2710961  
    502502                        </div>
    503503                        <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]">
    504520                            <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'); ?>">
    505521                                <?php esc_html_e('Pagination list content', 'publish-your-table'); ?>
     
    509525                                    HtmlPyt::text('options[pages][menu]', array(
    510526                                        '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"'
    511543                                    ));
    512544                                    ?>
     
    613645                        <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($classHidden); ?>" data-parent="options[searching]">
    614646                            <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'); ?>
    616648                            </div>
    617649                            <div class="pyt-option-value">
     
    625657                        <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($sClassHidden); ?>" data-parent="options[searches][result_only]">
    626658                            <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'); ?>
    628660                            </div>
    629661                            <div class="pyt-option-value">
     
    637669                        <div class="pyt-option-wrapper pyt-option-sub <?php echo esc_attr($classHidden); ?>" data-parent="options[searching]">
    638670                            <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'); ?>
    640672                            </div>
    641673                            <div class="pyt-option-value">
  • pubydoc-data-tables-and-charts/trunk/readme.txt

    r2694967 r2710961  
    44Requires at least: 3.4.0
    55Tested up to: 5.9
    6 Stable tag: 1.0.1
     6Stable tag: 1.1
    77
    88Create 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.