1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-06 06:07:31 +02:00

Version 1.3.4: Media Library

This commit is contained in:
trendschau
2020-04-05 19:13:10 +02:00
parent 9ab8ade909
commit be6a297b83
40 changed files with 3271 additions and 979 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Typemill\Extensions;
use Typemill\Models\Folder;
class TwigPagelistExtension extends \Twig_Extension
{
public function getFunctions()
{
return [
new \Twig_SimpleFunction('getPageList', array($this, 'getList' ))
];
}
public function getList($folderContentDetails, $url)
{
$pagelist = Folder::getItemForUrlFrontend($folderContentDetails, $url);
return $pagelist;
}
}