Lines Matching refs:id
29 public function html_youarehere($start_depth = 0, $id = null)
33 if (!isset($id)) $id = $ID;
35 // prepend virtual root namespace to id that is not start page
37 $id = ($id == $conf['start']) ? '' : ':'.ltrim($id, ':');
38 $tiers = explode(':', $id);
70 * @param string $id page id
76 public function tpl_pagelink($id = null, $name = null, $exists = null, $print = true)
80 $out = $this->html_pagelink($id, $name, $exists);
87 private function html_pagelink($id = null, $name = null, $exists = null)
91 if (!isset($id)) $id = $ID;
93 $title = p_get_metadata($id, 'title');
94 if (empty($title)) $title = $id;
99 $class = (page_exists($id)) ? 'wikilink1' : 'wikilink2';
104 $short_title = p_get_metadata($id, 'shorttitle') ?: noNS($id);
107 $out = '<a href="'.$this->wl($id).'" class="'.$class.'" title="'.hsc($title).'">';
117 * @param string $id page id
120 private function wl($id = null)
124 if (noNS($id) == $conf['start']) $id = ltrim(getNS($id).':', ':');
125 idfilter($id);
131 $xlink .= DOKU_SCRIPT.'/'.$id;
133 $xlink .= $id;
138 $xlink .= ($id) ? '?id='.$id : '';
150 * @param string $id page id
154 public function tpl_pagetitle($id = null, $print = true)
156 $out = $this->pagetitle($id);
163 private function pagetitle($id = null)
167 if (isset($id)) {
168 $title = (p_get_metadata($id, 'title')) ?: $id;