PHP code example of ianhobbs / audio-block

1. Go to this page and download the library: Download ianhobbs/audio-block 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/ */

    

ianhobbs / audio-block example snippets


<?= $page->text()->toBlocks() 

return [
  // true (default) – load the shipped stylesheet automatically
  // false          – load nothing, style the block yourself
  // string         – URL of your own stylesheet to load instead
  'ianhobbs.audio-block.css' => true,
];

<?= css($kirby->plugin('ianhobbs/audio-block')->asset('audio-player.css')->url())