mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-01 13:20:55 +01:00
media first swipe
This commit is contained in:
@@ -137,6 +137,19 @@ class AdminController
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function taskListmedia()
|
||||
{
|
||||
$page = $this->admin->page(true);
|
||||
$media_list = array();
|
||||
|
||||
foreach ($page->media()->all() as $name=> $media) {
|
||||
$media_list[$name] = ['url'=>$media->url(),'size'=>$media->get('size')];
|
||||
}
|
||||
$this->admin->media = $media_list;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable plugin.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user