Plugin Directory

Changeset 2086420


Ignore:
Timestamp:
05/12/2019 11:35:47 PM (7 years ago)
Author:
db0112358
Message:

isotope

Location:
content-repeater/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • content-repeater/trunk/content-repeater.php

    r2084368 r2086420  
    33 * Plugin Name: Content Repeater
    44 * Description: Quickly set up custom content like Testimonials, Coupons, Products, Flipboxes, Portals, Portfolios, Before & Afters, etc. and display it in interesting ways: Ajax Reload, Masonry, Isotope, Slick Slider, Single Row.
    5  * Version: 1.0.12
     5 * Version: 1.0.13
    66 * Author: Denis Buka
    77 * Text Domain: content-repeater
  • content-repeater/trunk/readme.txt

    r2084368 r2086420  
    9898= 1.0.12 =
    9999add post__in argument to shortcodes
     100= 1.0.13 =
     101isotope: add child class
  • content-repeater/trunk/repeaters/isotope/isotope.php

    r2053059 r2086420  
    7575                    $output .= '<a href="#" class="all">'.__('All').'</a>';
    7676                    foreach($terms as $k=>$v) {
    77                         if($v['parent'] == 0) $output .= '<span class="isotope-separator"></span>';
    78                         $output .= '<a href="#" class="'.$v['slug'].'">'.$v['name'].'</a>';
     77                        if($v['parent'] == 0) {
     78                            $output .= '<span class="isotope-separator"></span>';
     79                            $class_child = '';
     80                        } else {
     81                            $class_child = ' child';
     82                        }
     83                        $output .= '<a href="#" class="'.$v['slug'].$class_child.'">'.$v['name'].'</a>';
    7984                    }
    8085                    $output .= '</div>';
Note: See TracChangeset for help on using the changeset viewer.