Changeset 2946351
- Timestamp:
- 08/02/2023 01:57:05 AM (3 years ago)
- Location:
- cinza-grid
- Files:
-
- 27 added
- 3 edited
-
tags/1.1.4 (added)
-
tags/1.1.4/assets (added)
-
tags/1.1.4/assets/css (added)
-
tags/1.1.4/assets/css/animate.min.css (added)
-
tags/1.1.4/assets/css/backend-admin.css (added)
-
tags/1.1.4/assets/css/backend-dashicon.css (added)
-
tags/1.1.4/assets/css/backend-style.css (added)
-
tags/1.1.4/assets/css/frontend-style.css (added)
-
tags/1.1.4/assets/fonts (added)
-
tags/1.1.4/assets/fonts/icomoon.eot (added)
-
tags/1.1.4/assets/fonts/icomoon.svg (added)
-
tags/1.1.4/assets/fonts/icomoon.ttf (added)
-
tags/1.1.4/assets/fonts/icomoon.woff (added)
-
tags/1.1.4/assets/fonts/icomoon.woff2 (added)
-
tags/1.1.4/assets/images (added)
-
tags/1.1.4/assets/images/cinza-icon-pink.png (added)
-
tags/1.1.4/assets/images/metafizzy-icon.png (added)
-
tags/1.1.4/assets/images/razorfrog-icon-turquoise.png (added)
-
tags/1.1.4/assets/js (added)
-
tags/1.1.4/assets/js/backend-script.js (added)
-
tags/1.1.4/assets/js/frontend-script.js (added)
-
tags/1.1.4/assets/js/isotope.pkgd.min.js (added)
-
tags/1.1.4/cinza-grid.php (added)
-
tags/1.1.4/includes (added)
-
tags/1.1.4/includes/backend-cpts.php (added)
-
tags/1.1.4/includes/backend-shortcodes.php (added)
-
tags/1.1.4/readme.txt (added)
-
trunk/cinza-grid.php (modified) (1 diff)
-
trunk/includes/backend-shortcodes.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cinza-grid/trunk/cinza-grid.php
r2931927 r2946351 5 5 * Plugin URI: https://cinza.io/plugin/cinza-grid/ 6 6 * Description: A minimal grid plugin. 7 * Version: 1.1. 37 * Version: 1.1.4 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 7.2 -
cinza-grid/trunk/includes/backend-shortcodes.php
r2931927 r2946351 171 171 foreach ($filter_lines as $filter_line) { 172 172 if(!empty($filter_line)) { 173 $filter_atts = explode ("/", $filter_line); 174 $filters .= '<div class="cinza-grid-button-group" data-filter-group="'. str_replace(" ", "-", trim(strtolower($filter_atts[1]))) .'">'; 173 174 $filter_first_split = explode('/', $filter_line, 2); 175 $filter_second_split = explode('/', $filter_first_split[1], 2); 176 $filter_substring1 = $filter_first_split[0]; 177 $filter_substring2 = $filter_second_split[0]; 178 $filter_substring3 = $filter_second_split[1]; 179 180 $filters .= '<div class="cinza-grid-button-group" data-filter-group="'. str_replace(" ", "-", trim(strtolower($filter_substring2))) .'">'; 175 181 176 182 // First button 177 $filters .= '<button class="button is-checked" data-filter="*">'. trim($filter_ atts[1]) .'</button>';183 $filters .= '<button class="button is-checked" data-filter="*">'. trim($filter_substring2) .'</button>'; 178 184 179 185 // All other buttons 180 $filter_buttons = explode (",", $filter_ atts[2]);186 $filter_buttons = explode (",", $filter_substring3); 181 187 foreach ($filter_buttons as $filter_button) { 182 $characters = array("&", " ", "---" );188 $characters = array("&", " ", "---", "/"); 183 189 $encoded_classes = str_replace($characters, '-', trim(strtolower($filter_button))); 184 190 $filters .= '<button class="button" id="'. $encoded_classes .'" data-filter=".'. $encoded_classes .'">'. trim($filter_button) .'</button>'; … … 564 570 ); 565 571 566 $characters = array("&", "---" );572 $characters = array("&", "---", "/"); 567 573 $encoded_classes = str_replace($characters, '-', strtolower($filter_classes)); 568 574 $grid .= '<div class="cinza-grid-item cinza-grid-'. $post->ID . $encoded_classes.'">'. str_replace($code1, $code2, $grid_item) .'</div>'; -
cinza-grid/trunk/readme.txt
r2931927 r2946351 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.2 7 Stable tag: 1.1. 37 Stable tag: 1.1.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 24 24 25 25 == Changelog == 26 27 = 1.1.4 = 28 *Release Date - 1st August, 2023* 29 30 * Fixed filter support for button with slashes 26 31 27 32 = 1.1.3 =
Note: See TracChangeset
for help on using the changeset viewer.