media first swipe

This commit is contained in:
Andy Miller
2014-09-22 15:49:53 -06:00
parent be02b0a238
commit 02f62e283a
5 changed files with 37 additions and 8 deletions

View File

@@ -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.
*