Added tag list text to tag list pages

This commit is contained in:
Starbeamrainbowlabs 2016-05-30 16:12:29 +01:00
parent b008ec608e
commit b8f680a2bf
4 changed files with 6 additions and 5 deletions

View File

@ -5,6 +5,7 @@
- Added unified diff to edit conflict resolution pages (#64)
- Added image captions (#65)
- Added short syntax for images (#24)
- Added text "Tag List: " to tag listing pages
## v0.11

View File

@ -3812,12 +3812,12 @@ register_module([
$pagelist[] = $pagename;
}
$content = "<h1>$tag</h1>\n";
$content = "<h1>Tag List: $tag</h1>\n";
$content .= generate_page_list($pagelist);
$content .= "<p>(<a href='?action=list-tags'>All tags</a>)</p>\n";
exit(page_renderer::render("$tag - Page List - $settings->sitename", $content));
exit(page_renderer::render("$tag - Tag List - $settings->sitename", $content));
});
add_help_section("30-all-pages-tags", "Listing pages and tags", "<p>All the pages and tags on $settings->sitename are listed on a pair of pages to aid navigation. The list of all pages on $settings->sitename can be found by clicking &quot;All Pages&quot; on the top bar. The list of all the tags currently in use can be found by clicking &quot;All Tags&quot; in the &quot;More...&quot; menu in the top right.</p>

View File

@ -131,7 +131,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds a page that lists all the pages in the index along with their metadata.",
"id": "page-list",
"lastupdate": 1459956112,
"lastupdate": 1464621096,
"optional": false
},
{

View File

@ -75,12 +75,12 @@ register_module([
$pagelist[] = $pagename;
}
$content = "<h1>$tag</h1>\n";
$content = "<h1>Tag List: $tag</h1>\n";
$content .= generate_page_list($pagelist);
$content .= "<p>(<a href='?action=list-tags'>All tags</a>)</p>\n";
exit(page_renderer::render("$tag - Page List - $settings->sitename", $content));
exit(page_renderer::render("$tag - Tag List - $settings->sitename", $content));
});
add_help_section("30-all-pages-tags", "Listing pages and tags", "<p>All the pages and tags on $settings->sitename are listed on a pair of pages to aid navigation. The list of all pages on $settings->sitename can be found by clicking &quot;All Pages&quot; on the top bar. The list of all the tags currently in use can be found by clicking &quot;All Tags&quot; in the &quot;More...&quot; menu in the top right.</p>