$(function() { createEditor(\''.$fileUrl.'\'); }); '; $htmlHeadXtra[] = ' '; // Interbreadcrumb for the current directory root path $interbreadcrumb[] = [ 'url' => api_get_path(WEB_CODE_PATH).'document/document.php', 'name' => get_lang('Documents'), ]; if (!empty($documentInfo['parents'])) { foreach ($documentInfo['parents'] as $documentParent) { if ($documentInfo['title'] == $documentParent['title']) { continue; } $interbreadcrumb[] = [ 'url' => $documentParent['document_url'], 'name' => $documentParent['title'], ]; } } $actionBack = Display::url( Display::return_icon( 'back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), [], ICON_SIZE_MEDIUM ), 'document.php?'.api_get_cidreq(true, true, 'editodf').'&id='.$parentId ); $actionEdit = Display::url( Display::return_icon( 'edit.png', get_lang('Rename').'/'.get_lang('Comments'), [], ICON_SIZE_MEDIUM ), 'edit_document.php?'.api_get_cidreq(true, true, 'editodf') .'&id='.$documentId ); $content = '
'; $view = new Template($documentInfo['title']); $view->assign( 'actions', Display::toolbarAction('actions', [$actionBack.$actionEdit]) ); $view->assign('header', $documentInfo['title']); $view->assign('content', $content); $view->display_one_col_template();