Lines Matching defs:return

30  * @return string
39 return DOKU_INC . 'lib/tpl/' . $conf['template'] . '/' . $file;
41 return DOKU_INC . 'lib/tpl/dokuwiki/' . $file;
50 * @return string
58 return DOKU_INC . 'lib/tpl/' . $tpl . '/';
67 * @return string
75 return DOKU_BASE . 'lib/tpl/' . $tpl . '/';
89 * @return bool true if any output
108 return !empty($html_output);
114 * @return bool
124 return false;
126 return true;
135 * @param bool $return Should the TOC be returned instead to be printed?
136 * @return string
140 function tpl_toc($return = false)
172 if ($return) return $html;
174 return '';
180 * @return bool
210 return true;
219 * @return bool
403 return true;
452 * @param bool $return Return or print directly?
453 * @return string|void
455 function tpl_inlineScript($script, $return = false)
464 if ($return) return $script;
476 * @param bool $return if true return the link html, otherwise print
477 * @return bool|string html of the link, or true if printed
481 function tpl_link($url, $name, $more = '', $return = false)
486 if ($return) return $out;
488 return true;
498 * @param bool $return
499 * @return true|string
503 function tpl_pagelink($id, $name = null, $return = false)
506 if ($return) return $out;
508 return true;
518 * @return false|string
532 if ($parent == $id) return false;
534 return $parent;
541 * @param bool $return
542 * @return bool|string html, or false if no data, true if printed
548 function tpl_button($type, $return = false)
553 return false;
570 if ($return) return $out;
572 return true;
582 * @param bool $return if true it returns html, otherwise prints
583 * @return bool|string html or false if no data, true if printed
589 function tpl_actionlink($type, $pre = '', $suf = '', $inner = '', $return = false)
595 return false;
633 if ($return) return $out;
635 return true;
642 * @return array|bool|string
664 return false;
690 return $data;
699 * @param bool $return return or print
703 * @return bool|string
708 function tpl_action($type, $link = false, $wrapper = false, $return = false, $pre = '', $suf = '', $inner = '')
719 if ($return) return $out;
721 return (bool)$out;
736 * @return bool
748 if (!actionOK('search')) return false;
783 return true;
790 * @param bool $return return or print
791 * @return bool|string
795 function tpl_breadcrumbs($sep = null, $return = false)
801 if (!$conf['breadcrumbs']) return false;
823 if ($return) return $out;
825 return (bool)$out;
835 * @param bool $return return or print
836 * @return bool|string
844 function tpl_youarehere($sep = null, $return = false)
851 if (!$conf['youarehere']) return false;
881 if ($return) return $out;
883 return true;
888 if ($return) return $out;
890 return true;
894 if ($return) return $out;
896 return (bool)$out;
905 * @return bool
917 return true;
919 return false;
925 * @param bool $ret return content instead of printing it
926 * @return bool|string
937 // return if we are not allowed to view the page
939 return false;
975 return $out;
978 return true;
981 return false;
991 * @param bool $ret return content instead of printing
992 * @return bool|string
1057 return hsc($page_title);
1060 return true;
1079 * @return string
1089 if (is_null($src)) return $alt;
1094 if ($imgMeta === false) return $alt;
1096 if (!$info) return $alt;
1097 return $info;
1138 * @return array with arrays containing the entries:
1166 return $tags;
1179 * @return bool Result of TPL_IMG_DISPLAY
1231 return Event::createAndTrigger('TPL_IMG_DISPLAY', $data, '_tpl_img_action', true);
1238 * @return bool
1248 return true;
1256 * @return bool
1270 return true;
1279 * @param mixed $notset what to return if the setting is not available
1280 * @return mixed
1300 return $conf['tpl'][$tpl][$id] ?? $notset;
1309 * @return false|array
1317 if (!file_exists($file)) return false;
1322 return $conf;
1333 * @return string
1363 return $lang[$id] ?? '';
1371 * @return string parsed contents of the wiki page in xhtml format
1375 return p_cached_output(tpl_localeFN($id));
1382 * @return string wiki text
1396 return $file;
1525 if (!$image || (!file_exists(mediaFN($image)) && !$removed) || $DEL) return;
1619 * @param bool $return when true don't print, but return HTML
1621 * @return string
1625 function tpl_license($img = 'badge', $imgonly = false, $return = false, $wrap = true)
1630 if (!$conf['license']) return '';
1631 if (!is_array($license[$conf['license']])) return '';
1652 if ($return) return $out;
1654 return '';
1667 * @return bool|null|string
1674 return false;
1676 if (!$pageid) return false;
1684 return $html;
1721 * @param bool $fallback use fallback image if target isn't found or return 'false' if potential
1723 * @return string
1752 return false;
1769 return $url;
1799 return;
1815 * @return string
1822 $return = '';
1828 $return .= '<link rel="shortcut icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
1832 $return .= '<link rel="apple-touch-icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
1837 $return .= '<link rel="icon" href="' . tpl_getMediaFile($look) . '" type="image/svg+xml" />' . NL;
1842 return $return;
1892 * @return string
1910 return implode(' ', $classes);