Lines Matching refs:page
47 public $page = null; variable in helper_plugin_pagelist
366 $this->page = null;
419 * @param array $page
438 public function addPage($page) argument
440 $id = $page['id'];
442 $this->page = $page;
446 if (!isset($this->page['draft'])) {
447 $this->page['draft'] = $this->getMeta('type') == 'draft';
469 $this->pages[$sortKey] = $this->page;
471 $this->pages[] = $this->page;
510 * @param array $page see for details @see addPage()
513 protected function renderPageRow($page) argument
515 $this->page = $page;
518 $id = $this->page['id'];
528 if (empty($this->page['title'])) {
529 $this->page['title'] = str_replace('_', ' ', noNS($id));
531 $title = hsc($this->page['title']);
542 if (isset($this->page['priority'])) {
543 $class .= 'priority' . $this->page['priority'] . ' ';
545 if (!empty($this->page['draft'])) {
548 if (!empty($this->page['class'])) {
549 $class .= $this->page['class'];
604 foreach ($this->pages as $page) {
605 $this->renderPageRow($page);
616 if (!isset($this->page)) {
639 if ($this->page['exists']) {
646 if (!empty($this->page['titleimage'])) {
647 $title = '<img src="' . ml($this->page['titleimage']) . '" class="media"';
648 if (!empty($this->page['title'])) {
649 … $title .= ' title="' . hsc($this->page['title']) . '" alt="' . hsc($this->page['title']) . '"';
653 $title = hsc($this->page['title']);
657 $section = !empty($this->page['section']) ? '#' . $this->page['section'] : '';
674 if (empty($this->page['date']) || empty($this->page['exists'])) {
677 return $this->printCell('date', dformat($this->page['date'], $conf['dformat']));
688 return $this->printCell('user', $this->page['user']);
714 $desc = $this->page['desc'];
732 if (!isset($this->page['exists'])) {
733 if (!isset($this->page['file'])) {
734 $this->page['file'] = wikiFN($id);
736 $this->page['exists'] = @file_exists($this->page['file']);
742 …$url = wl($id, $url_params) . (!empty($this->page['section']) ? '#' . $this->page['section'] : '');
755 return $this->printCell('summary', hsc($this->page['summary']));
768 if (!isset($this->page[$col])) {
769 $this->page[$col] = $this->$plugin->td($id, $col);
771 return $this->printCell($col, $this->page[$col]);
803 if (empty($this->page['exists']) || empty($this->page['id'])) {
807 $this->meta = p_get_metadata($this->page['id'], '', METADATA_RENDER_USING_CACHE);
825 if (!isset($this->page['exists'])) {
826 if (!isset($this->page['file'])) {
827 $this->page['file'] = wikiFN($id);
829 $this->page['exists'] = @file_exists($this->page['file']);
832 if (empty($this->page['titleimage'])) {
834 if (blank($this->page['title']) && $this->showfirsthl) {
835 $this->page['title'] = $this->getMeta('title');
838 if (blank($this->page['title'])) {
839 $this->page['title'] = str_replace('_', ' ', noNSorNS($id));
849 if (array_key_exists('desc', $this->page)) return;
851 if (strlen($this->page['description']) > 0) {
854 $desc = $this->page['description'];
867 $this->page['desc'] = $desc;
872 if (array_key_exists('summary', $this->page)) return;
875 $this->page['summary'] = $summary;
882 if (array_key_exists('user', $this->page)) return;
915 $this->page['user'] = $content;
923 if (empty($this->page['date']) && !empty($this->page['exists'])) {
925 $this->page['date'] = $this->getMeta('date', 'modified');
927 $this->page['date'] = $this->getMeta('date', 'created');
942 $sortKey = $this->page[$this->sortKey] ?? false;
946 $this->page['draft'] = $this->getMeta('type') == 'draft';
950 $this->page['pagename'] = noNS($id);
961 $this->page['ns'] = str_replace(':', "\0", $sortkey);
978 if (!isset($this->page[$col])) {
979 $this->page[$col] = $this->$plugin->td($id, $col);
984 …$sortKey = $this->page[$this->sortKey] ?? 9999999999999999; //TODO mostly used for non-existing pa…