Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix text/bg color error in folder summary raw. #1126

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2208,10 +2208,12 @@ class="edit-file"><i class="fa fa-pencil-square-o"></i> <?php echo lng('Advanced
<tfoot>
<tr>
<td class="gray" colspan="<?php echo (!FM_IS_WIN && !$hide_Cols) ? (FM_READONLY ? '6' :'7') : (FM_READONLY ? '4' : '5') ?>">
<?php echo lng('FullSize').': <span class="badge text-bg-light border-radius-0">'.fm_get_filesize($all_files_size).'</span>' ?>
<?php echo lng('File').': <span class="badge text-bg-light border-radius-0">'.$num_files.'</span>' ?>
<?php echo lng('Folder').': <span class="badge text-bg-light border-radius-0">'.$num_folders.'</span>' ?>
</td>
<?php echo lng('FullSize').((FM_THEME == "dark") ? ': <span class="badge text-bg-dark border-radius-0">':': <span class="badge text-bg-light border-radius-0">').fm_get_filesize($all_files_size).'</span>' ?>
<?php echo lng('File').((FM_THEME == "dark") ? ': <span class="badge text-bg-dark border-radius-0">':': <span class="badge text-bg-light border-radius-0">').$num_files.'</span>' ?>
<?php echo lng('Folder').((FM_THEME == "dark") ? ': <span class="badge text-bg-dark border-radius-0">':': <span class="badge text-bg-light border-radius-0">').$num_folders.'</span>' ?>
<?php echo lng('PartitionSize').((FM_THEME == "dark") ? ': <span class="badge text-bg-dark border-radius-0">':': <span class="badge text-bg-light border-radius-0">').fm_get_filesize(@disk_free_space($path)) .'</span> '?>
<?php echo lng('FreeOf').((FM_THEME == "dark") ? ': <span class="badge text-bg-dark border-radius-0">':': <span class="badge text-bg-light border-radius-0">').fm_get_filesize(@disk_total_space($path)).'</span>'; ?>
</td>
</tr>
</tfoot>
<?php } ?>
Expand Down Expand Up @@ -3490,7 +3492,8 @@ function __construct()
$this->data = array(
'lang' => 'en',
'error_reporting' => true,
'show_hidden' => true
'show_hidden' => true,
'theme' => "dark"
);
$data = false;
if (strlen($CONFIG)) {
Expand Down