Changeset 1075116
- Timestamp:
- 01/25/2015 02:07:08 AM (11 years ago)
- Location:
- jellyfish-backdrop/trunk
- Files:
-
- 2 edited
-
jellyfish-backdrop.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jellyfish-backdrop/trunk/jellyfish-backdrop.php
r1064293 r1075116 5 5 Description: Add fullscreen background images and background slideshows to any WordPress page element. 6 6 Author: Robert Miller <rob@strawberryjellyfish.com> 7 Version: 0.6. 67 Version: 0.6.7 8 8 Author URI: http://strawberryjellyfish.com/ 9 9 */ … … 89 89 $slide_duration = is_numeric( $options['slide_duration'] ) ? $options['slide_duration'] : 5; 90 90 91 $container = $options['container']? $options['container'] : 'body';91 $container = isset($options['container']) ? $options['container'] : 'body'; 92 92 93 93 $image_array = array(); … … 105 105 } 106 106 107 $post_container = get_post_meta( get_the_ID(), '_jellyfish_backdrop_container', true ); 108 if ( $post_container ) $container = $post_container; 107 if ( !empty( $image_array ) ) { 108 $post_container = get_post_meta( get_the_ID(), '_jellyfish_backdrop_container', true ); 109 if ( $post_container ) $container = $post_container; 109 110 110 $post_fade_speed = get_post_meta( get_the_ID(), '_jellyfish_backdrop_fade_speed', true );111 if ( $post_fade_speed ) $fade_speed = $post_fade_speed;111 $post_fade_speed = get_post_meta( get_the_ID(), '_jellyfish_backdrop_fade_speed', true ); 112 if ( $post_fade_speed ) $fade_speed = $post_fade_speed; 112 113 113 $post_slide_duration = get_post_meta( get_the_ID(), '_jellyfish_backdrop_slide_duration', true ); 114 if ( $post_slide_duration ) $slide_duration = $post_slide_duration; 114 $post_slide_duration = get_post_meta( get_the_ID(), '_jellyfish_backdrop_slide_duration', true ); 115 if ( $post_slide_duration ) $slide_duration = $post_slide_duration; 116 } 115 117 } 116 118 -
jellyfish-backdrop/trunk/readme.txt
r1064293 r1075116 7 7 Requires at least: 3.0 8 8 Tested up to: 4.1 9 Stable tag: 0.6. 69 Stable tag: 0.6.7 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 78 78 By default images are shown as the main page background (body), however you 79 79 can make the images appear as backgrounds to other areas of the page by 80 supplying any valid element id or class name in the Container field on the80 supplying any valid element id or class name in the Container field on the 81 81 admin page. eg. #main, .header 82 82 … … 105 105 106 106 == Changelog == 107 108 = 0.6.7 = 109 * Bugfix: Global settings were being overridden by post type settings when 110 there were no images. Now correctly uses global settings for container, 111 duration etc. 107 112 108 113 = 0.6.6 =
Note: See TracChangeset
for help on using the changeset viewer.