Lines Matching defs:page
298 'values' => ['top', 'hero', 'page', 'none']
416 * Check if a page exist in directory or namespace
418 * @param string $page Page/namespace to search.
419 * @return boolean if page exists
421 public function pageExists(string $page): bool
424 tpl_includeFile($page . '.html');
435 if (page_findnearest($page, $useACL) !== false) {
438 } elseif ($useACL === true && auth_quickaclcheck($page) !== AUTH_NONE) {
447 * Print or return page from directory or namespace
449 * @param string $page Page/namespace to include.
452 * @param string $classWrapper Wrap page in a div with class.
453 * @return string contents of page found
455 public function includePage(string $page, bool $print = true, bool $parse = true, string $classWrapper = ''): string
458 tpl_includeFile($page . '.html');
466 $html = tpl_include_page($page, false, $propagate, $useACL);
1095 * Print or return the page tools content
1231 // return if we are not allowed to view the page
1506 $page = $part;
1507 if ($page === $conf['start']) {
1512 $html .= '<li>' . tpl_pagelink($page, null, true) . '</li>';
1515 $page = '';
1518 $page = cleanID($page);
1522 resolve_pageid('', $page, $exists);
1525 if ((isset($page) === true && $page === $part . $parts[$i]) === false) {
1526 $page = $part . $parts[$i];
1527 if ($page !== $conf['start']) {
1529 $html .= '<li>' . tpl_pagelink($page, null, true) . '</li>';
1573 if (isset($_GET['page']) === true) {
1594 * @return string page title
1829 if (strcasecmp($INPUT->str('page'), 'config') === 0) {
1860 } elseif (strcasecmp($INPUT->str('page'), 'styling') === 0) {
2000 if (strcasecmp($ACT, 'admin') === 0 && isset($_GET['page']) === false) {
2036 /* Hide page title if hero is enabled */
2144 if (strcasecmp($INPUT->str('page'), 'config') === 0) {
2170 * Get DokuWiki namespace/page/URI as link
2187 * Check if the user can edit current namespace/page
2283 * Print or return the page title
2285 * @param string $page Page id or empty string for current page.
2288 public function getPageTitle(string $page = ''): string
2292 if (empty($page) === true) {
2293 $page = $ID;
2296 $html = p_get_first_heading($page);