Skip to content

Commit

Permalink
many little HTML refactors
Browse files Browse the repository at this point in the history
using Super HTML linter to check output HTML of W on the main views
<https://github.com/kristoff-it/superhtml>

+ also fix some indentations issues in homemenu
  • Loading branch information
vincent-peugnet committed Nov 1, 2024
1 parent 9ed1f83 commit b9e74fb
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 177 deletions.
2 changes: 1 addition & 1 deletion app/class/Modelmedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public static function treecount(
) {
$selected = $path . '/' === $currentdir;
if ($selected) {
$folder = '├─<i class="fa fa-folder-open-o"></i> <span>' . $dirname . '<span>';
$folder = '├─<i class="fa fa-folder-open-o"></i> <span>' . $dirname . '</span>';
} else {
$folder = '├─<i class="fa fa-folder-o"></i> ' . $dirname;
}
Expand Down
2 changes: 1 addition & 1 deletion app/fn/fn.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function basictree(array $dirlist, string $dirname, int $deepness, string $path,
{

if ($path === $currentdir) {
$folder = '├─<i class="fa fa-folder-open-o"></i> <span id="currentdir">' . $dirname . '<span>';
$folder = '├─<i class="fa fa-folder-open-o"></i> <span id="currentdir">' . $dirname . '</span>';
$checked = 'checked';
} else {
$folder = '├─<i class="fa fa-folder-o"></i> ' . $dirname;
Expand Down
1 change: 0 additions & 1 deletion app/view/templates/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<?php if(in_array($route, ['pageedit', 'pageread', 'pageadd'])) : ?>
<input type="hidden" name="id" value="<?= $id ?>">
<?php endif ?>
<form action="<?= $this->url('log') ?>" method="post" id="connect">
<input type="text" name="user" id="loginuser" autofocus placeholder="user" required>
<input type="password" name="pass" id="loginpass" placeholder="password" required>
<input type="hidden" name="rememberme" value="0">
Expand Down
2 changes: 1 addition & 1 deletion app/view/templates/edittopbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<span class="text">save workspace</span>
</button>
</form>
</span>
</div>

</div>

Expand Down
2 changes: 1 addition & 1 deletion app/view/templates/homebookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class="bookmark"
<a href="<?= Wcms\Servicerss::atomfile($bookmark->id()) ?>" target="_blank" title="show Atom XML file">
<i class="fa fa-rss"></i>
</a>
<?php endif ?>
</p>
<?php endif ?>
<?php endforeach ?>

<h3>Personal</h3>
Expand Down
344 changes: 173 additions & 171 deletions app/view/templates/homemenu.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/view/templates/homeopt.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
</div>
<?php foreach ($opt->taglist() as $tagfilter => $count) : ?>
<p class="field">
<label for="tag_<?= $tagfilter ?>"class="label-with-counter">
<label for="tag_<?= $tagfilter ?>" class="label-with-counter">
<span class="label"><?= $tagfilter ?></span>
<span class="counter tag_<?= $tagfilter ?>"><?= $count ?></span>
</label>
Expand Down

0 comments on commit b9e74fb

Please sign in to comment.