Lines Matching defs:id

23      * @param bool|string $media_id  id of media, or false for current page
55 * @param string $id media id
58 protected function showMediaRevisions($id)
69 'id' => 'page__revisions', // must not be "media__revisions"
70 'action' => media_managerURL(['image' => $id], '&'),
86 } elseif (file_exists(mediaFN($id, $rev))) {
120 print $this->htmlNavigation($id, $first, $hasNext);
128 protected function showPageRevisions($id)
142 'id' => 'page__revisions',
155 if (page_exists($id, $rev)) {
186 print $this->htmlNavigation($id, $first, $hasNext);
205 $changelog = new PageChangeLog($INFO['id']);
229 'id' => $this->media_id,
251 'id' => $INFO['id'],
282 * @param string $id page id or media id
287 protected function htmlNavigation($id, $first, $hasNext)
297 $html.= html_btn('newer', $id, "p", media_managerURL(['first' => $first], '&', false, true));
299 $html.= html_btn('newer', $id, "p" ,['do' => 'revisions', 'first' => $first]);
306 $html.= html_btn('older', $id, "n", media_managerURL(['first' => $last], '&', false, true));
308 $html.= html_btn('older', $id, "n", ['do' => 'revisions', 'first' => $last]);
377 $id = $this->info['id'];
383 $href = media_managerURL(['image'=> $id, 'tab_details'=> 'view'], '&');
384 $html = '<a href="'.$href.'" class="wikilink1">'.$id.'</a>';
385 } elseif (file_exists(mediaFN($id, $rev))) {
386 $href = media_managerURL(['image'=> $id, 'tab_details'=> 'view', 'rev'=> $rev], '&');
387 $html = '<a href="'.$href.'" class="wikilink1">'.$id.'</a>';
389 $html = $id;
394 $display_name = useHeading('navigation') ? hsc(p_get_first_heading($id)) : $id;
395 if (!$display_name) $display_name = $id;
396 if ($this->info['current'] || page_exists($id, $rev)) {
397 $href = wl($id, "rev=$rev", false, '&');
410 $id = $this->info['id'];
415 if (isset($this->info['current']) || !file_exists(mediaFN($id, $rev))) {
418 $href = media_managerURL(['image'=> $id, 'rev'=> $rev, 'mediado'=>'diff'], '&');
427 if ($this->info['current'] || !page_exists($id, $rev)) {
430 $href = wl($id, "rev=$rev,do=diff", false, '&');