Source of file _config.php
Size: 2,030 Bytes - Last Modified: 2021-12-23T10:05:37+00:00
/var/www/docs.ssmods.com/process/src/_config.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?php /* Adds slideshow based on the Jquery Cycle Plugin (http://jquery.malsup.com/cycle/) to pages To enable the slideshow on specific pages, e.g. your home page, add the following to your mysite/_config.php file: DataObject::add_extension('HomePage', 'Slideshow'); To enable the slideshow on all pages add the following to your mysite/_config.php file: DataObject::add_extension('Page', 'Slideshow'); To override the default effects with your own, customize this and add it to your mysite/_config.php file: Slideshow::set_custom_effects( array( 'None' => "fx:'none'", 'Fade over' => "fx:'fade'", 'Fade in / out' => "sync:0,fx:'fade'", 'Scroll horizontal' => "fx:'scrollHorz',easing:'easeOutQuart'", 'Scroll vertical' => "fx:'scrollVert',easing:'easeOutQuart'", 'Scroll horizontal with bounce' => "fx:'scrollHorz',easing:'easeOutBounce'", 'Scroll vertical with bounce' => "fx:'scrollVert',easing:'easeOutBounce'", 'Scroll horizontal elastic' => "fx:'scrollHorz',easing:'easeOutElastic'", 'Scroll vertical elastic' => "fx:'scrollVert',easing:'easeOutElastic'", 'Scroll left/down/right/up' => "fx:'scrollLeft,scrollDown,scrollRight,scrollUp',easing:'easeInBack'", 'Turn down (images only)' => "fx:'turnDown'", 'Turn left (images only)' => "fx:'leftDown'", 'Uncover, sliding right (images only)' => "fx:'uncover',sync:0", 'Zoom in/out (images only)' => "fx:'zoom',sync:0", 'Zoom in elastic / Zoom out with a bounce out (images only)' => "fx:'zoom',speedIn:2000,speedOut:1000,easeIn:'easeOutElastic',easeOut:'easeInOutBack',sync:0", 'Random (images only)' => "fx:'all'" ) ); The syntax of the array feed to set_custom_effects() is as follows: array( [title of effect] => [JQuery Cycle effect setting] ); Look here for inspiration for your own JQuery Cycle effects: http://jquery.malsup.com/cycle/browser.html For easing effects look her: http://gsgd.co.uk/sandbox/jquery/easing/ */ SortableDataObject::add_sortable_class('SlideshowSlide'); ?> |