function boom_nivo_slider_options() { extract(boom_slider_get_option()); $pauseOnHover = $hoverpause == 'on' ? 'true' : 'false'; $keyboardNav = $keyboard == 'on' ? 'true' : 'false'; $directionNav = $direction !== 'hide' ? 'true' : 'false'; $directionNavHide = $direction == 'rollover' ? 'true' : 'false'; $controlNav = $navcontrols == 'on' ? 'true' : 'false'; return "\n\t\teffect: '{$transition}',\n\t\tslices: {$slices},\n\t\tanimSpeed: {$speed},\n\t\tpauseTime: {$pause},\n\t\tpauseOnHover: {$pauseOnHover},\n\t\tkeyboardNav: {$keyboardNav},\n\t\tdirectionNav: {$directionNav},\n\t\tdirectionNavHide: {$directionNavHide},\n\t\tcontrolNav: {$controlNav}\n\t"; }
/** * Adds some scripts to the front-page to build the slider images. * This works only if your theme supports WP3.0 Custom Headers, * otherwise you have to use the boom_header_image() template tag. * * @since 0.2 * @return void */ function auto_insert() { if (boom_slider_get_option('autoinsert')) { ?> <script> jQuery(function(a){function b(b){imgs="";a.each(b,function(a,b){imgs+='<img src="'+b+'" alt="" />'});return'<div class="slider-wrapper theme-default"><div class="ribbon"></div><div class="nivoSlider headerSlider">'+imgs+"</div></div>"}var c=<?php echo str_replace("\\/", "/", json_encode(boom_get_header_images())); ?> ,d=a('img[src="http://boom-slider-default"], img[src="http://boom-slider-uploaded"]'),e=d.parent();if(e.is("a")){e.after(b(c)).remove()}else{d.after(b(c)).remove()}var f=a("div.headerSlider");f.find("img:first").load(function(){var b=a(this).width(),c=a(this).height();f.css({maxWidth:b,maxHeight:c}).nivoSlider({<?php echo boom_nivo_slider_options(); ?> })})}) </script> <?php } }
.theme-default .nivo-controlNav { position: absolute; left: 50%; z-index: 999; bottom: <?php echo boom_slider_get_option('bottom'); ?> px; margin-left: -<?php echo boom_count_header_images(); ?> 0px; /* Tweak this to center bullets */ } .theme-default .nivo-controlNav a { display: block; text-indent: -9999px; border: 0; float: left; } .theme-default .nivo-directionNav a { display: block; text-indent: -9999px; border: 0; } <?php include 'bullets/' . boom_slider_get_option('bullets') . '/style.css'; include 'arrows/' . boom_slider_get_option('arrows') . '/style.css';
} ?> </select> </td> </tr> <tr> <th>Navigation Controls bottom position:</th> <td><input type="text" name="slider[bottom]" value="<?php echo boom_slider_get_option('bottom'); ?> " /></td> </tr> <tr> <th>Keyboard Navigation:</th> <td><input type="checkbox" name="slider[keyboard]" value="on" <?php checked(boom_slider_get_option('keyboard'), 'on'); ?> /></td> </tr> </tbody> </table> </div> <p class="submit"> <input type="button" class="button-secondary" value="Cencel" id="slider-options-cancel" /> <input type="button" class="button-primary" value="Save Settings" id="slider-options-insert" /> </p> </form> </div> <script> jQuery(function($){ $('#slider-options-insert').click(function(){