mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-02 11:20:52 +02:00
FilesmanagerPlugin: fixes.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
Form::open(null, array('enctype' => 'multipart/form-data')).
|
Form::open(null, array('enctype' => 'multipart/form-data')).
|
||||||
Form::hidden('csrf', Security::token()).
|
Form::hidden('csrf', Security::token()).
|
||||||
Form::input('file', null, array('type' => 'file', 'size' => '25')).Html::br().
|
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()
|
Form::close()
|
||||||
)
|
)
|
||||||
?>
|
?>
|
||||||
@@ -18,11 +18,19 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$path_parts = explode ('/',$path);
|
$path_parts = explode ('/',$path);
|
||||||
|
|
||||||
|
foreach ($path_parts as $key => $value) {
|
||||||
|
if ($path_parts[$key] == '') {
|
||||||
|
unset($path_parts[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$s = '';
|
$s = '';
|
||||||
|
|
||||||
foreach ($path_parts as $p) {
|
foreach ($path_parts as $p) {
|
||||||
$s .= $p.'/';
|
$s .= $p.'/';
|
||||||
if($p == $current[count($current)-2]) $active = ' class="active"'; else $active = '';
|
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>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user