Changeset 3173961
- Timestamp:
- 10/23/2024 02:08:53 AM (18 months ago)
- Location:
- cinza-grid
- Files:
-
- 27 added
- 4 edited
-
tags/1.2.1 (added)
-
tags/1.2.1/assets (added)
-
tags/1.2.1/assets/css (added)
-
tags/1.2.1/assets/css/animate.min.css (added)
-
tags/1.2.1/assets/css/backend-admin.css (added)
-
tags/1.2.1/assets/css/backend-dashicon.css (added)
-
tags/1.2.1/assets/css/backend-style.css (added)
-
tags/1.2.1/assets/css/frontend-style.css (added)
-
tags/1.2.1/assets/fonts (added)
-
tags/1.2.1/assets/fonts/icomoon.eot (added)
-
tags/1.2.1/assets/fonts/icomoon.svg (added)
-
tags/1.2.1/assets/fonts/icomoon.ttf (added)
-
tags/1.2.1/assets/fonts/icomoon.woff (added)
-
tags/1.2.1/assets/fonts/icomoon.woff2 (added)
-
tags/1.2.1/assets/images (added)
-
tags/1.2.1/assets/images/cinza-icon-pink.png (added)
-
tags/1.2.1/assets/images/metafizzy-icon.png (added)
-
tags/1.2.1/assets/images/razorfrog-icon-turquoise.png (added)
-
tags/1.2.1/assets/js (added)
-
tags/1.2.1/assets/js/backend-script.js (added)
-
tags/1.2.1/assets/js/frontend-script.js (added)
-
tags/1.2.1/assets/js/isotope.pkgd.min.js (added)
-
tags/1.2.1/cinza-grid.php (added)
-
tags/1.2.1/includes (added)
-
tags/1.2.1/includes/backend-cpts.php (added)
-
tags/1.2.1/includes/backend-shortcodes.php (added)
-
tags/1.2.1/readme.txt (added)
-
trunk/cinza-grid.php (modified) (1 diff)
-
trunk/includes/backend-cpts.php (modified) (2 diffs)
-
trunk/includes/backend-shortcodes.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cinza-grid/trunk/cinza-grid.php
r3091141 r3173961 5 5 * Plugin URI: https://cinza.io/plugin/cinza-grid/ 6 6 * Description: A minimal grid plugin. 7 * Version: 1.2. 07 * Version: 1.2.1 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 7.2 -
cinza-grid/trunk/includes/backend-cpts.php
r3091141 r3173961 384 384 </td> 385 385 </tr> 386 <tr class="tr-separator">387 <td colspan="4"></td>388 </tr>389 386 <tr> 390 387 <td class="cgrid-options" colspan="4"> 391 <p><strong> Notes:</strong></p>388 <p><strong>Instructions:</strong></p> 392 389 <ul> 393 390 <li>Breakpoints must be in ascending order.</li> … … 414 411 <textarea type="text" class="widefat cgrid-content" name="cgrid_sorting"><?php echo esc_html($temp_sorting); ?></textarea> 415 412 </td> 416 </tr> 417 <tr class="tr-separator"> 418 <td colspan="4"></td> 419 </tr> 413 </tr> 420 414 <tr> 421 415 <td class="cgrid-options" colspan="4"> 422 <p><strong> Notes:</strong></p>416 <p><strong>Instructions:</strong></p> 423 417 <ul> 424 <li>To sort by the 'color' meta field when you have the following element skin: <code><div class="element-color">Red</div></code></li> 425 <li>You should enter the following in the Sorting textarea: <code>element-color / Color</code></li> 418 <li>The sorting function sorts the grid based on the content of the element with the CSS class you choose.</li> 419 <li>Example: If you have this in your skin: <code><div class="element-color">%meta('color')%</div></code>, you would sort like this: <code>element-color / Color</code>.</li> 420 <li>To change the default button label, use the word 'default' where you would normally put the CSS class name, like this: <code>default / Custom Button Label</code>.</li> 426 421 </ul> 427 422 </td> -
cinza-grid/trunk/includes/backend-shortcodes.php
r3091141 r3173961 157 157 $sorts .= '<div id="cinza-grid-'.$grid_id.'-sorts" class="cinza-grid-button-group">'; 158 158 $sort_lines = preg_split("/\r\n|\n|\r/", $cgrid_sorting); 159 160 // First button 161 $sorts .= '<button class="button is-checked" data-sort-by="original-order">Default</button>'; 162 163 // All other buttons 159 $sorts_btns_temp = ''; 160 $original_order_flag = false; 161 164 162 foreach ($sort_lines as $sort_line) { 165 163 if(!empty($sort_line)) { 166 164 $sort_atts = explode ("/", $sort_line); 167 $sorts .= '<button class="button" data-sort-by="'. trim($sort_atts[0]) .'">'. trim($sort_atts[1]) .'</button>'; 168 $sorts_data .= '\'' . trim($sort_atts[0]) . '\': ' . '\'.' . trim($sort_atts[0]) . '\', '; 169 } 165 166 if(trim($sort_atts[0]) == 'default') { 167 $sorts_btns_temp .= '<button class="button is-checked" data-sort-by="original-order">'. trim($sort_atts[1]) .'</button>';; 168 $sorts_data .= ''; 169 $original_order_flag = true; 170 } else { 171 $sorts_btns_temp .= '<button class="button" data-sort-by="'. trim($sort_atts[0]) .'">'. trim($sort_atts[1]) .'</button>'; 172 $sorts_data .= '\'' . trim($sort_atts[0]) . '\': ' . '\'.' . trim($sort_atts[0]) . '\', '; 173 } 174 } 175 } 176 177 if($original_order_flag == false) { 178 $sorts .= '<button class="button is-checked" data-sort-by="original-order">Default</button>' . $sorts_btns_temp; 179 } else { 180 $sorts .= $sorts_btns_temp; 170 181 } 171 182 $sorts .= '</div>'; … … 565 576 min-height: ". $height ."px; 566 577 margin: 0px 0px ". $space ."px 0px; 567 }568 #cinza-grid-".$grid_id." .cinza-grid-item:last-child {569 margin-bottom: 0px;570 578 }"; 571 579 } else { … … 595 603 min-height: ". $height ."px; 596 604 margin: 0px 0px ". $space ."px 0px; 597 }598 #cinza-grid-".$grid_id." .cinza-grid-item:last-child {599 margin-bottom: 0px;600 605 }"; 601 606 } else { -
cinza-grid/trunk/readme.txt
r3091141 r3173961 3 3 Tags: grid, post grid, display post, metafizzy, isotope 4 4 Requires at least: 5.2 5 Tested up to: 6. 55 Tested up to: 6.6.2 6 6 Requires PHP: 7.2 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 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.2.1 = 28 *Release Date - 22nd October, 2024* 29 30 * Updated sorting functions 31 * WP 6.6.2 compatibility test 26 32 27 33 = 1.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.