Plugin Directory

Changeset 2305571


Ignore:
Timestamp:
05/15/2020 11:23:57 AM (6 years ago)
Author:
sheetdb
Message:

1.1.3 version of the js library

Location:
sheetdb/trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • sheetdb/trunk/readme.txt

    r2304167 r2305571  
    66Tested up to: 5.4.0
    77Requires PHP: 5.4
    8 Stable tag: 1.0.5
     8Stable tag: 1.0.6
    99License: GPLv2 or later
    1010
  • sheetdb/trunk/sheetdb.php

    r2304167 r2305571  
    66Plugin name: SheetDB
    77Description: The SheetDB wordpress plugin allows you to easily add content from Google Spreadsheet to your wordpress site.
    8 Version: 1.0.5
     8Version: 1.0.6
    99Author: SheetDB
    1010Author URI: https://sheetdb.io/
     
    5353            isset($atts['sort-order']) ? $sortOrder = $atts['sort-order'] : $sortOrder = null;
    5454            isset($atts['sort-method']) ? $sortMethod = $atts['sort-method'] : $sortMethod = null;
     55            isset($atts['sort-date-format']) ? $sortDateFormat = $atts['sort-date-format'] : $sortDateFormat = null;
    5556
    5657            if (!$url) return 'Use URL attribute with the SheetDB shortcode.';
    5758
    58             $additionalCode = $this->makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $save);
     59            $additionalCode = $this->makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $sortDateFormat, $save);
    5960
    6061            return "<{$element} data-sheetdb-url=\"{$url}\"{$additionalCode}>{$content}</{$element}>";
     
    6869        }
    6970
    70         private function makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $save) {
     71        private function makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $sortDateFormat, $save) {
    7172            $additionalCode = '';
    7273            if ($sheet) {
     
    9495                $additionalCode .= ' data-sheetdb-sort-method="' . $sortMethod . '"';
    9596            }
     97            if ($sortDateFormat) {
     98                $additionalCode .= ' data-sheetdb-sort-date-format="' . $sortDateFormat . '"';
     99            }
    96100            if ($save) {
    97101                $additionalCode .= ' data-sheetdb-save="' . $save . '"';
Note: See TracChangeset for help on using the changeset viewer.