PHP code example of expl0it3r / kirby-timeline

1. Go to this page and download the library: Download expl0it3r/kirby-timeline 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/ */

    

expl0it3r / kirby-timeline example snippets


 snippet('timeline', [
    'events'     => $page->timeline(),
    'categories' => ['release' => 'Releases', 'patch' => 'Patches'],
]) 

 snippet('timeline', [
    'events'     => $page->timeline(),
    'categories' => [
        'release' => ['label' => 'Releases', 'shape' => 'diamond', 'color' => '#f78f0b'],
        'patch'   => ['label' => 'Patches', 'shape' => 'square'],
    ],
]) 

  'groups' => ['0000' => 'Early Days', '2012' => 'Beta', '2014' => 'After the Release'],
  

'timeline.search' => 'Search the timeline',
'timeline.count'  => '{count} of {total} events',
'timeline.empty'  => 'Nothing matches. Try a different filter or search term.',
'timeline.months' => 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec',