Changeset 1443219
- Timestamp:
- 06/25/2016 12:48:47 AM (10 years ago)
- Location:
- eazy-flickity-slider/trunk
- Files:
-
- 3 edited
-
eazy_flickity_slider.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
resources/js/flickity.shortcode.dimensions.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
eazy-flickity-slider/trunk/eazy_flickity_slider.php
r1442528 r1443219 4 4 Plugin URI: http://robjscott.com/wordpress/ 5 5 Description: Easily create slides to use with responsive sliders. Add them to page or post. Displays them using flickity.js by metafizzy. 6 Version: 1.2. 06 Version: 1.2.1 7 7 Author: Rob Scott, LLC 8 8 Author URI: http://robjscott.com … … 34 34 wp_enqueue_style( 'eazy-flickity-slider', EZ_FLICKITY_ELEMENTS_URL . 'resources/css/style.css' ); 35 35 wp_enqueue_script('flickity', EZ_FLICKITY_ELEMENTS_URL . 'resources/js/flickity.pkgd.min.js', array('jquery'), false, true ); 36 wp_enqueue_script('flickity-shortcode', EZ_FLICKITY_ELEMENTS_URL . 'resources/js/flickity.shortcode.js', array('jquery'), false, true ); 36 37 if (is_front_page() && function_exists('eazy_flickity_slider_homepage')) { 37 38 wp_enqueue_script('flickity-homepage', EZ_FLICKITY_ELEMENTS_URL . 'resources/js/flickity.homepage.js', array('jquery'), false, true ); 38 39 } 39 wp_enqueue_script('flickity-shortcode', EZ_FLICKITY_ELEMENTS_URL . 'resources/js/flickity.shortcode.js', array('jquery'), false, true );40 40 } -
eazy-flickity-slider/trunk/readme.txt
r1442528 r1443219 46 46 47 47 == Changelog == 48 = 1.2.1 = 49 *Update flickity.shortcode.dimensions.js to make height and width conditional 50 48 51 = 1.2.0 = 49 52 *Update shortcode function to declare width and height of shortcode -
eazy-flickity-slider/trunk/resources/js/flickity.shortcode.dimensions.js
r1426188 r1443219 5 5 * Licensed GPLv3 for open source use 6 6 */ 7 if (eazyoptions != null) { 8 var changeSliderSize = document.getElementById('slider-' + eazyoptions[0].sliderid); 9 changeSliderSize.style.maxWidth = eazyoptions[0].width; 10 changeSliderSize.style.maxHeight = eazyoptions[0].height; 7 8 if (eazyoptions !== null) { 9 var changeSliderSize = document.getElementById('slider-' + eazyoptions[0].sliderid); 10 if (typeof eazyoptions[0]['width'] !== 'undefined') { 11 changeSliderSize.style.maxWidth = eazyoptions[0].width; 12 } 13 if (typeof eazyoptions[0]['height'] !== 'undefined') { 14 changeSliderSize.style.maxHeight = eazyoptions[0].height; 15 } 11 16 }
Note: See TracChangeset
for help on using the changeset viewer.