Lines Matching defs:page
286 'values' => ['top', 'hero', 'page', 'none']
289 'values' => ['page title', 'home', 'icon', 'none']
302 'values' => ['always', 'none', 'page editors']
405 * Check if a page exist in directory or namespace
407 * @param string $page Page/namespace to search.
408 * @return boolean if page exists
410 public function pageExists(string $page): bool
413 tpl_includeFile($page . '.html');
425 if (page_findnearest($page, $useACL) !== false) {
428 } elseif ($useACL === true && auth_quickaclcheck($page) !== AUTH_NONE) {
437 * Print or return page from directory or namespace
439 * @param string $page Page/namespace to include.
442 * @param string $classWrapper Wrap page in a div with class.
443 * @return string contents of page found
445 public function includePage(string $page, bool $print = true, bool $parse = true, string $classWrapper = ''): string
448 tpl_includeFile($page . '.html');
457 $html = tpl_include_page($page, false, $propagate, $useACL);
1006 * Print or return the page tools content
1133 // return if we are not allowed to view the page
1243 $this->userCanEdit() === true && strcasecmp($showPageTools, 'page editors') === 0)
1413 $page = $part;
1414 if ($page === $conf['start']) {
1419 $html .= '<li>' . tpl_pagelink($page, null, true) . '</li>';
1423 resolve_pageid('', $page, $exists);
1424 if ((isset($page) === true && $page === $part . $parts[$i]) === false) {
1425 $page = $part . $parts[$i];
1426 if ($page !== $conf['start']) {
1428 $html .= '<li>' . tpl_pagelink($page, null, true) . '</li>';
1469 if (isset($_GET['page']) === true) {
1490 * @return string page title
1726 if (strcasecmp($INPUT->str('page'), 'config') === 0) {
1757 } elseif (strcasecmp($INPUT->str('page'), 'styling') === 0) {
1897 if (strcasecmp($ACT, 'admin') === 0 && isset($_GET['page']) === false) {
1937 /* Hide page title if hero is enabled */
2046 if (strcasecmp($INPUT->str('page'), 'config') === 0) {
2072 * Get DokuWiki namespace/page/URI as link
2089 * Check if the user can edit current namespace/page
2186 * Print or return the page title
2188 * @param string $page Page id or empty string for current page.
2191 public function getPageTitle(string $page = ''): string
2197 if (empty($page) === true) {
2198 $page = $ID;
2201 $html = p_get_first_heading($page);