PHP code example of micmania1 / silverstripe-nivoslider

1. Go to this page and download the library: Download micmania1/silverstripe-nivoslider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

micmania1 / silverstripe-nivoslider example snippets


    class MyNivoSliderTheme extends NivoSliderTheme {
        
        protected $title = "My Custom Theme";
        
        protected $cssClass = "MyCustomTheme";
        
        public function beforeRender() {
            // Require any js/css or do any other prep before rendering
            Require::css("mysite/css/myNivoStyle.css");
        }
    }