Changeset 335395
- Timestamp:
- 01/21/2011 04:54:09 AM (15 years ago)
- Location:
- gecka-bgstretcher/trunk
- Files:
-
- 2 edited
-
bgstretcher.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gecka-bgstretcher/trunk/bgstretcher.php
r317416 r335395 5 5 Plugin URI: http://gecka-apps.com/wordpress-plugins/geka-submenu/ 6 6 Description: Implements the bgstretcher jquery script 7 Version: 0. 17 Version: 0.2 8 8 Author: Gecka 9 9 Author URI: http://gecka-apps.com … … 53 53 'slideShow' => 'true', 54 54 'background' => '', 55 'pageWrapper' => '#wrapper' ); 55 'background_cb' => null, 56 'pageWrapper' => '#wrapper', 57 'shuffle' => false ); 56 58 57 59 $options = wp_parse_args( $options, $defaults ); … … 59 61 60 62 /* no function level defined background */ 61 if(!$background ) {63 if(!$background && !$background_cb) { 62 64 63 65 $repeat = get_theme_mod( 'background_repeat', 'repeat' ); … … 83 85 extract( $GLOBALS['bgstretcher_options'], EXTR_SKIP ); 84 86 85 if( !is_array($background) ) $background = array($background); 87 if($background_cb) $background = call_user_func( $background_cb ); 88 89 if( !is_array($background) && $background ) $background = array($background); 90 91 if(!sizeof($background)) return; 86 92 87 93 $_bg = array(); 88 94 foreach ($background as $bg) 89 95 $_bg[] = "'$bg'"; 96 97 if($shuffle) shuffle($_bg); 90 98 91 99 $background = implode(', ', $_bg); -
gecka-bgstretcher/trunk/readme.txt
r317416 r335395 1 1 === Gecka BgStretcher === 2 Contributors: Laurent Dinclaux,Gecka3 Tags: background, background stretch, image, bgstretcher, jquery 2 Contributors: Gecka 3 Tags: background, background stretch, image, bgstretcher, jquery, streched background 4 4 Requires at least: 3.0 5 Tested up to: 3. 0.16 Stable tag: 0. 15 Tested up to: 3.1 6 Stable tag: 0.2 7 7 Donate link: http://gecka-apps.com/wordpress-plugins/bgstretcher/ 8 8 … … 35 35 == Changelog == 36 36 37 = 0.2 = 38 * News background_cb and shuffle parameters. 39 37 40 = 0.1 = 38 41 * First version.
Note: See TracChangeset
for help on using the changeset viewer.