Lines Matching refs:page

239 …function _get_instructions($page, $sect, $mode, $lvl, $flags, $root_id = null, $included_pages = a…  argument
240 $key = ($sect) ? $page . '#' . $sect : $page;
250 if (page_exists($page) || $flags['pageexists'] == 0) {
253 $title = p_get_first_heading($page);
267 if (page_exists($page)) {
270 …$ID = $page; // Change the global $ID as otherwise plugins like the discussion plugin will save da…
271 $ins = p_cached_instructions(wikiFN($page), false, $page);
277 … $this->_convert_instructions($ins, $lvl, $page, $sect, $flags, $root_id, $included_pages);
295 …function _convert_instructions(&$ins, $lvl, $page, $sect, $flags, $root_id, $included_pages = arra… argument
304 $this->_get_firstsec($ins, $page, $flags); // only first section
316 $this->adapt_links($ins, $page, $included_pages);
354 $this->adapt_links($ins[$i][1][0], $page, $included_pages);
426 $this->_permalink($ins[$idx], $page, $sect, $flags);
465 …$this->_editbtn($ins, $page, $sect, $sect_title, ($flags['redirect'] ? $root_id : false), $include…
470 $ins[] = $this->_footer($page, $sect, $sect_title, $flags, $footer_lvl, $root_id);
490 …array_unshift($ins, array('plugin', array('include_wrap', array('open', $page, $flags['redirect'],…
509 function _footer($page, $sect, $sect_title, $flags, $footer_lvl, $root_id) { argument
512 …$footer[1] = array('include_footer', array($page, $sect, $sect_title, $flags, $root_id, $footer_lv…
521 function _editbtn(&$ins, $page, $sect, $sect_title, $root_id, $hid = '') { argument
522 $title = ($sect) ? $sect_title : $page;
534 function _permalink(&$ins, $page, $sect, $flags) { argument
536 …$ins[1] = array('include_header', array($ins[1][0], $ins[1][1], $ins[1][2], $page, $sect, $flags));
543 * @param string $page The included page
546 private function adapt_links(&$ins, $page, $included_pages = null) { argument
553 $media_id = (new GenericResolver($page))->resolveId($ins[$i][1][1]['src']);
570 $link_id = (new GenericResolver($page))->resolveId($link_id);
582 $link_id = (new PageResolver($page))->resolveId($link_id);
606 if ($included_pages == null || !array_key_exists($page, $included_pages)) {
608 $ins[$i][1][0] = ':'.$page.'#'.$ins[$i][1][0];
657 function _get_firstsec(&$ins, $page, $flags) { argument
679 $ins[] = array('plugin', array('include_readmore', array($page)));
694 function _get_included_pages($mode, $page, $sect, $parent_id, $flags) { argument
699 $page = cleanID($page);
700 $ns = utf8_encodeFN(str_replace(':', '/', $page));
702 … $depth = $flags['depth'] ? $flags['depth'] + substr_count($page, ':') + ($page ? 1 : 0) : 0;
718 $tag = $page;
726 $page = $this->_apply_macro($page, $parent_id);
728 $page = (new PageResolver($parent_id))->resolveId($page);
729 if (auth_quickaclcheck($page) >= AUTH_READ)
730 $pages[] = $page;
734 $pages = array_filter($pages, function ($page) use ($flags) {
735 if (@preg_match($flags['exclude'], $page))
749 foreach ($pages as $page) {
753 $key = p_get_first_heading($page);
756 $key = p_get_metadata($page, 'date created', METADATA_DONT_RENDER);
759 $key = p_get_metadata($page, 'date modified', METADATA_DONT_RENDER);
762 … $key = p_get_metadata($page, 'indexmenu_n', METADATA_RENDER_USING_SIMPLE_CACHE);
767 … $key = p_get_metadata($page, 'include_n', METADATA_RENDER_USING_SIMPLE_CACHE);
772 $key .= '_'.$page;
773 $ordered_pages[$key] = $page;
785 foreach ($pages as $page) {
786 $exists = page_exists($page);
787 $result[] = array('id' => $page, 'exists' => $exists, 'parent_id' => $parent_id);
815 $page = $instruction['page'];
819 … $pages = array_merge($pages, $this->_get_included_pages($mode, $page, $sect, $parent_id, $flags));