- if ($User->admin("edit {$Page->link}")) {
- $editpage = $Page->link;
- if (is_dir($editpage)) {
- if (file_exists("$editpage/index.html")) {
- $editpage .= '/index.html';
- }
- }
- else {
- $editpage .= '.html';
- }
- if (!file_exists($editpage) or is_writable($editpage)) {
- print ' <a class="icon icon-edit" href="#edit" title="wijzig">✍</a>';
- }
- }