PHP code example of hananils / xslt
1. Go to this page and download the library: Download hananils/xslt 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/ */
hananils / xslt example snippets
return function ($kirby) {
return [
'projects' => $kirby->collection('projects')
];
};
return function ($kirby) {
return [
'datetime' => $kirby->collection('datetime'),
'assets' => $kirby->collection('assets')
];
};
return [
'locale' => 'en_CA.utf-8'
];
return [
'hananils.kirby-xslt.types' => ['rss']
];
return [
'hananils.kirby-xslt.enabled' => false
];
xml
<languages>
<language code="de" direction="ltr" locale="de_DE.uft-8" url="http://localhost:8888/de" default="true" current="true">Deutsch</language>
<language code="en" direction="ltr" locale="en_US.uft-8" url="http://localhost:8888/en">Englisch</language>
</languages>
xml
<assets>
<images>
<file extension="png" mime="image/png" modified="1544107969">apple-touch-icon.png</file>
</images>
<scripts>
<file extension="js" mime="text/plain" modified="1549887572">app.js</file>
</scripts>
<styles>
<file extension="css" mime="text/plain" modified="1544531895">app.globals.css</file>
<file extension="css" mime="text/plain" modified="1549887572">app.layouts.css</file>
</styles>
</assets>