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
402 return true;
451 * @param bool $return Return or print directly?
452 * @return string|void
454 function tpl_inlineScript($script, $return = false)
463 if ($return) return $script;
475 * @param bool $return if true return the link html, otherwise print
476 * @return bool|string html of the link, or true if printed
480 function tpl_link($url, $name, $more = '', $return = false)
485 if ($return) return $out;
487 return true;
497 * @param bool $return
498 * @return true|string
502 function tpl_pagelink($id, $name = null, $return = false)
505 if ($return) return $out;
507 return true;
517 * @return false|string
531 if ($parent == $id) return false;
533 return $parent;
540 * @param bool $return
541 * @return bool|string html, or false if no data, true if printed
547 function tpl_button($type, $return = false)
552 return false;
569 if ($return) return $out;
571 return true;
581 * @param bool $return if true it returns html, otherwise prints
582 * @return bool|string html or false if no data, true if printed
588 function tpl_actionlink($type, $pre = '', $suf = '', $inner = '', $return = false)
594 return false;
632 if ($return) return $out;
634 return true;
641 * @return array|bool|string
663 return false;
689 return $data;
698 * @param bool $return return or print
702 * @return bool|string
707 function tpl_action($type, $link = false, $wrapper = false, $return = false, $pre = '', $suf = '', $inner = '')
718 if ($return) return $out;
720 return (bool)$out;
735 * @return bool
747 if (!actionOK('search')) return false;
782 return true;
789 * @param bool $return return or print
790 * @return bool|string
794 function tpl_breadcrumbs($sep = null, $return = false)
800 if (!$conf['breadcrumbs']) return false;
822 if ($return) return $out;
824 return (bool)$out;
834 * @param bool $return return or print
835 * @return bool|string
843 function tpl_youarehere($sep = null, $return = false)
850 if (!$conf['youarehere']) return false;
880 if ($return) return $out;
882 return true;
887 if ($return) return $out;
889 return true;
893 if ($return) return $out;
895 return (bool)$out;
904 * @return bool
916 return true;
918 return false;
924 * @param bool $ret return content instead of printing it
925 * @return bool|string
936 // return if we are not allowed to view the page
938 return false;
974 return $out;
977 return true;
980 return false;
990 * @param bool $ret return content instead of printing
991 * @return bool|string
1056 return hsc($page_title);
1059 return true;
1078 * @return string
1088 if (is_null($src)) return $alt;
1093 if ($imgMeta === false) return $alt;
1095 if (!$info) return $alt;
1096 return $info;
1137 * @return array with arrays containing the entries:
1165 return $tags;
1178 * @return bool Result of TPL_IMG_DISPLAY
1230 return Event::createAndTrigger('TPL_IMG_DISPLAY', $data, '_tpl_img_action', true);
1237 * @return bool
1247 return true;
1255 * @return bool
1269 return true;
1278 * @param mixed $notset what to return if the setting is not available
1279 * @return mixed
1299 return $conf['tpl'][$tpl][$id] ?? $notset;
1308 * @return false|array
1316 if (!file_exists($file)) return false;
1321 return $conf;
1332 * @return string
1362 return $lang[$id] ?? '';
1370 * @return string parsed contents of the wiki page in xhtml format
1374 return p_cached_output(tpl_localeFN($id));
1381 * @return string wiki text
1395 return $file;
1524 if (!$image || (!file_exists(mediaFN($image)) && !$removed) || $DEL) return;
1618 * @param bool $return when true don't print, but return HTML
1620 * @return string
1624 function tpl_license($img = 'badge', $imgonly = false, $return = false, $wrap = true)
1629 if (!$conf['license']) return '';
1630 if (!is_array($license[$conf['license']])) return '';
1651 if ($return) return $out;
1653 return '';
1666 * @return bool|null|string
1673 return false;
1675 if (!$pageid) return false;
1683 return $html;
1720 * @param bool $fallback use fallback image if target isn't found or return 'false' if potential
1722 * @return string
1751 return false;
1768 return $url;
1798 return;
1814 * @return string
1821 $return = '';
1827 $return .= '<link rel="shortcut icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
1831 $return .= '<link rel="apple-touch-icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
1836 $return .= '<link rel="icon" href="' . tpl_getMediaFile($look) . '" type="image/svg+xml" />' . NL;
1841 return $return;
1891 * @return string
1909 return implode(' ', $classes);