Flat Link List Exclude
This commit is contained in:
parent
f519260452
commit
b1a8ac62f1
@ -63,6 +63,7 @@ $ignore_empty_folders = true;
|
||||
|
||||
// DISPLAY LINKS TO HTML FILES IN A FLAT LIST
|
||||
$flat_link_list = array();
|
||||
$flat_link_list_exclude = array('WTA')
|
||||
|
||||
|
||||
// SET TITLE BASED ON FOLDER NAME, IF NOT SET ABOVE
|
||||
@ -322,6 +323,14 @@ function display_flat_link_list() {
|
||||
$h .= "<input type=\"checkbox\" id=\"drawer-handle\">";
|
||||
$h .= "<div class=\"link-list-container\">";
|
||||
foreach($flat_link_list as $link) {
|
||||
$exclude = false;
|
||||
foreach($flat_link_list_exclude as $exc) {
|
||||
if (str_contains($link, $exc)) {
|
||||
$exclude = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($exclude) continue;
|
||||
$h .= "<div><a href=\"./" . $link . "\">" . $link . "</a>";
|
||||
$h .= "<i class=\"link-time\" title=\"" . date("D. F jS, Y - h:ia", filemtime($link)) . "\">" . unix2ago(filemtime($link)) . "</i>";
|
||||
$h .= "<form class=\"link-annotation-form\">";
|
||||
|
Loading…
x
Reference in New Issue
Block a user