Changeset 1585745
- Timestamp:
- 01/31/2017 01:21:56 PM (9 years ago)
- Location:
- zibbra/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (2 diffs)
-
templates/widget-category.php (modified) (4 diffs)
-
widgets/category-form.php (modified) (1 diff)
-
zibbra.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zibbra/trunk/readme.txt
r1581774 r1585745 1 1 === Zibbra === 2 2 Requires at least: 4.6.0 3 Tested up to: 4.7. 13 Tested up to: 4.7.2 4 4 Contributors: Zibbra 5 5 Tags: Ecommerce, Cloud 6 Stable tag: 1.7. 26 Stable tag: 1.7.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 1.7.4 = 55 56 * Bugfix clearfix in category widget for 6 and 12 products 57 58 = 1.7.3 = 59 60 * Fix maxval in category widget 61 * Auto clearfix in category widget 62 54 63 = 1.7.2 = 55 64 -
zibbra/trunk/templates/widget-category.php
r1491650 r1585745 4 4 5 5 $class = "col-xs-12"; 6 $cols = 1; 6 7 7 8 if($orientation === Zibbra_Plugin_Widget_Category::ORIENTATION_HORIZONTAL) { … … 9 10 switch($maxval) { 10 11 11 case 2: $class .= " col-md-6"; break;12 case 3: $class .= " col-md-4"; break;13 case 4: $class .= " col-md-3"; break;14 case 6: $class .= " col-md-2"; break;15 case 8: $class .= " col-md-3"; break;16 case 12: $class .= " col-md-2"; break;12 case 2: $class .= " col-md-6"; $cols = 2;break; 13 case 3: $class .= " col-md-4"; $cols = 3;break; 14 case 4: $class .= " col-md-3"; $cols = 4;break; 15 case 6: $class .= " col-md-2"; $cols = 6;break; 16 case 8: $class .= " col-md-3"; $cols = 4;break; 17 case 12: $class .= " col-md-2"; $cols = 6;break; 17 18 18 19 } // end switch … … 27 28 <div id="zibbra-category"> 28 29 <div class="row"> 29 <?php foreach($products as $ product): ?>30 <?php foreach($products as $i=>$product): ?> 30 31 <div class="<?php echo $class; ?>"> 31 32 <div class="thumbnail" id="zibbra-product-<?php echo $product->getProductid(); ?>"> … … 45 46 </div> 46 47 </div> 48 <?php if((($i + 1) % $cols) === 0): ?> 49 <div class="clearfix"></div> 50 <?php endif; ?> 47 51 <?php endforeach; ?> 48 52 </div> -
zibbra/trunk/widgets/category-form.php
r1491650 r1585745 11 11 <option <?php if(esc_attr( $maxval ) == 4) echo 'selected'; ?> value="4">4</option> 12 12 <option <?php if(esc_attr( $maxval ) == 6) echo 'selected'; ?> value="6">6</option> 13 <option <?php if(esc_attr( $maxval ) == 8) echo 'selected'; ?> value=" 3">8</option>13 <option <?php if(esc_attr( $maxval ) == 8) echo 'selected'; ?> value="8">8</option> 14 14 <option <?php if(esc_attr( $maxval ) == 12) echo 'selected'; ?> value="12">12</option> 15 15 </select> -
zibbra/trunk/zibbra.php
r1581774 r1585745 6 6 * Plugin URI: http://wordpress.org/plugins/zibbra/ 7 7 * Description: Zibbra integration plugin for Wordpress 8 * Version: 1.7. 28 * Version: 1.7.4 9 9 * Author: Zibbra 10 10 * Author URI: https://www.zibbra.com … … 100 100 const FORM_ACTION = "zibbra"; 101 101 const ROLE = "customer"; 102 const VERSION = "1.7. 2";102 const VERSION = "1.7.4"; 103 103 104 104 private $controller = null;
Note: See TracChangeset
for help on using the changeset viewer.