';
$home_url->param('action', 'browse');
$home_url->param('draftpath', '/');
echo '
' . get_string('files') . ' ▶';
$trail = '';
if ($draftpath !== '/') {
$path = '/' . trim($draftpath, '/') . '/';
$parts = explode('/', $path);
foreach ($parts as $part) {
if ($part != '') {
$trail .= ('/'.$part.'/');
$data->path[] = array('name'=>$part, 'path'=>$trail);
$home_url->param('draftpath', $trail);
echo '
'.$part.' ▶ ';
}
}
}
echo '
';
}
$filepicker_url->param('draftpath', $draftpath);
$filepicker_url->param('savepath', $draftpath);
$filepicker_url->param('action', 'plugins');
echo '