Plugin Directory

Changeset 1426130


Ignore:
Timestamp:
05/28/2016 03:29:24 PM (10 years ago)
Author:
r0bsc0tt
Message:

update eazy_flickity_slider_shortcode.php to use a variable to store the array from wp_get_attachment_image_src

Location:
eazy-flickity-slider/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eazy-flickity-slider/trunk/eazy_flickity_slider.php

    r1424937 r1426130  
    44Plugin URI: http://robjscott.com/wordpress/
    55Description:  Easily create slides to use with responsive sliders. Add them to page or post. Displays them using flickity.js by metafizzy. 
    6 Version: 1.1
     6Version: 1.1.1
    77Author: Rob Scott, LLC
    88Author URI: http://robjscott.com
  • eazy-flickity-slider/trunk/readme.txt

    r1424937 r1426130  
    4646
    4747== Changelog ==
     48= 1.1.1 =
     49*Update eazy_flickity_slider_shortcode.php to use a variable to store the array from wp_get_attachment_image_src on line ~64.
     50
    4851= 1.1 =
    4952*Add flickity.shortcode.dimensions.js to insert the inline style for shortcodes height and width
  • eazy-flickity-slider/trunk/resources/eazy_flickity_slider_shortcode.php

    r1424937 r1426130  
    6262          $eazyquery->the_post();
    6363          $thumb_id = get_post_thumbnail_id();
     64          $eazyimage_attributes = wp_get_attachment_image_src($thumb_id,'full', true);
     65          print_r($image_attributes);
    6466          $flickity_slides[] = "
    6567          <div class='gallery-cell'>
    66           <img src='".wp_get_attachment_image_src($thumb_id,'full', true)[0]."'
     68          <img src='".$eazyimage_attributes[0]."'
    6769          alt='".get_post(get_post_thumbnail_id())->post_title."'>
    6870          </div>";
Note: See TracChangeset for help on using the changeset viewer.