Plugin Directory

Changeset 1585745


Ignore:
Timestamp:
01/31/2017 01:21:56 PM (9 years ago)
Author:
zibbra
Message:

Release version 1.7.4

Location:
zibbra/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zibbra/trunk/readme.txt

    r1581774 r1585745  
    11=== Zibbra ===
    22Requires at least: 4.6.0
    3 Tested up to: 4.7.1
     3Tested up to: 4.7.2
    44Contributors: Zibbra
    55Tags: Ecommerce, Cloud
    6 Stable tag: 1.7.2
     6Stable tag: 1.7.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     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
    5463= 1.7.2 =
    5564
  • zibbra/trunk/templates/widget-category.php

    r1491650 r1585745  
    44
    55$class = "col-xs-12";
     6$cols = 1;
    67
    78if($orientation === Zibbra_Plugin_Widget_Category::ORIENTATION_HORIZONTAL) {
     
    910    switch($maxval) {
    1011
    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;
    1718
    1819    } // end switch
     
    2728<div id="zibbra-category">
    2829    <div class="row">
    29         <?php foreach($products as $product): ?>
     30        <?php foreach($products as $i=>$product): ?>
    3031            <div class="<?php echo $class; ?>">
    3132                <div class="thumbnail" id="zibbra-product-<?php echo $product->getProductid(); ?>">
     
    4546                </div>
    4647            </div>
     48            <?php if((($i + 1) % $cols) === 0): ?>
     49                <div class="clearfix"></div>
     50            <?php endif; ?>
    4751        <?php endforeach; ?>
    4852    </div>
  • zibbra/trunk/widgets/category-form.php

    r1491650 r1585745  
    1111        <option <?php if(esc_attr( $maxval ) == 4) echo 'selected'; ?> value="4">4</option>
    1212        <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>
    1414        <option <?php if(esc_attr( $maxval ) == 12) echo 'selected'; ?> value="12">12</option>
    1515    </select>
  • zibbra/trunk/zibbra.php

    r1581774 r1585745  
    66 * Plugin URI: http://wordpress.org/plugins/zibbra/
    77 * Description: Zibbra integration plugin for Wordpress
    8  * Version: 1.7.2
     8 * Version: 1.7.4
    99 * Author: Zibbra
    1010 * Author URI: https://www.zibbra.com
     
    100100        const FORM_ACTION = "zibbra";
    101101        const ROLE = "customer";
    102         const VERSION = "1.7.2";
     102        const VERSION = "1.7.4";
    103103       
    104104        private $controller = null;
Note: See TracChangeset for help on using the changeset viewer.