1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

FilesmanagerPlugin: fixes.

This commit is contained in:
Awilum
2012-12-09 19:32:09 +02:00
parent 2ecf705154
commit 8e68536f36

View File

@@ -7,7 +7,7 @@
Form::open(null, array('enctype' => 'multipart/form-data')).
Form::hidden('csrf', Security::token()).
Form::input('file', null, array('type' => 'file', 'size' => '25')).Html::br().
Form::submit('upload_file', __('Upload', 'filesmanager'), array('class' => 'btn')).
Form::submit('upload_file', __('Upload', 'filesmanager'), array('class' => 'btn btn-small')).
Form::close()
)
?>
@@ -18,11 +18,19 @@
<?php
$path_parts = explode ('/',$path);
foreach ($path_parts as $key => $value) {
if ($path_parts[$key] == '') {
unset($path_parts[$key]);
}
}
$s = '';
foreach ($path_parts as $p) {
$s .= $p.'/';
if($p == $current[count($current)-2]) $active = ' class="active"'; else $active = '';
echo '<span class="divider">/<span> <li'.$active.'><a href="index.php?id=filesmanager&path='.$s.'">'.$p.'</a></li>';
echo '<li'.$active.'><a href="index.php?id=filesmanager&path='.$s.'">'.$p.'</a> <span class="divider">/</span></li>';
}
?>
</ul>