function menuEditContent($url = '') { $oIndexFile = new PPage($this->path . SLASH . '/' . 'index.html'); //search index file in the category $tabIndex = $this->listDir($this->ONLY_FILES, $fullpath = true, $filter = 'index\\.htm[l]?$'); if (sizeof($tabIndex) > 0) { $oIndexFile = new PPage($tabIndex[0]); } return "<li><a href=\"admin_file_editor.php?file=" . urlencode($oIndexFile->getRelativePath()) . "\" id=\"edit\" title=\"" . _("Edit") . "\">" . _("Edit") . "</a></li>"; }