Changeset 2305571
- Timestamp:
- 05/15/2020 11:23:57 AM (6 years ago)
- Location:
- sheetdb/trunk
- Files:
-
- 1 added
- 1 deleted
- 2 edited
-
assets/js/sheetdb-handlebars-1.1.2.js (deleted)
-
assets/js/sheetdb-handlebars-1.1.3.js (added)
-
readme.txt (modified) (1 diff)
-
sheetdb.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sheetdb/trunk/readme.txt
r2304167 r2305571 6 6 Tested up to: 5.4.0 7 7 Requires PHP: 5.4 8 Stable tag: 1.0. 58 Stable tag: 1.0.6 9 9 License: GPLv2 or later 10 10 -
sheetdb/trunk/sheetdb.php
r2304167 r2305571 6 6 Plugin name: SheetDB 7 7 Description: The SheetDB wordpress plugin allows you to easily add content from Google Spreadsheet to your wordpress site. 8 Version: 1.0. 58 Version: 1.0.6 9 9 Author: SheetDB 10 10 Author URI: https://sheetdb.io/ … … 53 53 isset($atts['sort-order']) ? $sortOrder = $atts['sort-order'] : $sortOrder = null; 54 54 isset($atts['sort-method']) ? $sortMethod = $atts['sort-method'] : $sortMethod = null; 55 isset($atts['sort-date-format']) ? $sortDateFormat = $atts['sort-date-format'] : $sortDateFormat = null; 55 56 56 57 if (!$url) return 'Use URL attribute with the SheetDB shortcode.'; 57 58 58 $additionalCode = $this->makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $s ave);59 $additionalCode = $this->makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $sortDateFormat, $save); 59 60 60 61 return "<{$element} data-sheetdb-url=\"{$url}\"{$additionalCode}>{$content}</{$element}>"; … … 68 69 } 69 70 70 private function makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $s ave) {71 private function makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $sortDateFormat, $save) { 71 72 $additionalCode = ''; 72 73 if ($sheet) { … … 94 95 $additionalCode .= ' data-sheetdb-sort-method="' . $sortMethod . '"'; 95 96 } 97 if ($sortDateFormat) { 98 $additionalCode .= ' data-sheetdb-sort-date-format="' . $sortDateFormat . '"'; 99 } 96 100 if ($save) { 97 101 $additionalCode .= ' data-sheetdb-save="' . $save . '"';
Note: See TracChangeset
for help on using the changeset viewer.