Changeset 2300273
- Timestamp:
- 05/07/2020 07:16:57 PM (6 years ago)
- Location:
- sheetdb/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
sheetdb.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sheetdb/trunk/readme.txt
r2255959 r2300273 6 6 Tested up to: 5.4.0 7 7 Requires PHP: 5.4 8 Stable tag: 1.0. 38 Stable tag: 1.0.4 9 9 License: GPLv2 or later 10 10 -
sheetdb/trunk/sheetdb.php
r2255953 r2300273 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. 38 Version: 1.0.4 9 9 Author: SheetDB 10 10 Author URI: https://sheetdb.io/ … … 37 37 add_shortcode('sheetdb', [$this, 'sheetdb_shortcode']); 38 38 add_shortcode('sheetdb-slot', [$this, 'sheetdb_slot_shortcode']); 39 wp_enqueue_script( 'sheetdb-js', plugins_url('assets/js/sheetdb-handlebars-1.1. 0.js', __FILE__) );39 wp_enqueue_script( 'sheetdb-js', plugins_url('assets/js/sheetdb-handlebars-1.1.1.js', __FILE__) ); 40 40 } 41 41 … … 49 49 isset($atts['offset']) ? $offset = $atts['offset'] : $offset = null; 50 50 isset($atts['search']) ? $search = $atts['search'] : $search = null; 51 isset($atts['search-mode']) ? $searchMode = $atts['search-mode'] : $searchMode = null; 51 52 isset($atts['sort-by']) ? $sortBy = $atts['sort-by'] : $sortBy = null; 52 53 isset($atts['sort-order']) ? $sortOrder = $atts['sort-order'] : $sortOrder = null; … … 55 56 if (!$url) return 'Use URL attribute with the SheetDB shortcode.'; 56 57 57 $additionalCode = $this->makeAdditionalCode($sheet, $limit, $offset, $search, $s ortBy, $sortOrder, $sortMethod, $save);58 $additionalCode = $this->makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $save); 58 59 59 60 return "<{$element} data-sheetdb-url=\"{$url}\"{$additionalCode}>{$content}</{$element}>"; … … 67 68 } 68 69 69 private function makeAdditionalCode($sheet, $limit, $offset, $search, $s ortBy, $sortOrder, $sortMethod, $save) {70 private function makeAdditionalCode($sheet, $limit, $offset, $search, $searchMode, $sortBy, $sortOrder, $sortMethod, $save) { 70 71 $additionalCode = ''; 71 72 if ($sheet) { … … 80 81 if ($search) { 81 82 $additionalCode .= ' data-sheetdb-search="' . $search . '"'; 83 } 84 if ($searchMode) { 85 $additionalCode .= ' data-sheetdb-search-mode="' . $searchMode . '"'; 82 86 } 83 87 if ($sortBy) {
Note: See TracChangeset
for help on using the changeset viewer.