Lines Matching refs: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;
973 return $out;
976 return true;
979 return false;
989 * @param bool $ret return content instead of printing
990 * @return bool|string
1055 return hsc($page_title);
1058 return true;
1077 * @return string
1087 if (is_null($src)) return $alt;
1092 if ($imgMeta === false) return $alt;
1094 if (!$info) return $alt;
1095 return $info;
1136 * @return array with arrays containing the entries:
1164 return $tags;
1177 * @return bool Result of TPL_IMG_DISPLAY
1229 return Event::createAndTrigger('TPL_IMG_DISPLAY', $data, '_tpl_img_action', true);
1236 * @return bool
1246 return true;
1254 * @return bool
1268 return true;
1277 * @param mixed $notset what to return if the setting is not available
1278 * @return mixed
1298 return $conf['tpl'][$tpl][$id] ?? $notset;
1307 * @return false|array
1315 if (!file_exists($file)) return false;
1320 return $conf;
1331 * @return string
1361 return $lang[$id] ?? '';
1369 * @return string parsed contents of the wiki page in xhtml format
1373 return p_cached_output(tpl_localeFN($id));
1380 * @return string wiki text
1394 return $file;
1523 if (!$image || (!file_exists(mediaFN($image)) && !$removed) || $DEL) return;
1617 * @param bool $return when true don't print, but return HTML
1619 * @return string
1623 function tpl_license($img = 'badge', $imgonly = false, $return = false, $wrap = true)
1628 if (!$conf['license']) return '';
1629 if (!is_array($license[$conf['license']])) return '';
1650 if ($return) return $out;
1652 return '';
1665 * @return bool|null|string
1672 return false;
1674 if (!$pageid) return false;
1682 return $html;
1719 * @param bool $fallback use fallback image if target isn't found or return 'false' if potential
1721 * @return string
1750 return false;
1767 return $url;
1797 return;
1813 * @return string
1820 $return = '';
1826 $return .= '<link rel="shortcut icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
1830 $return .= '<link rel="apple-touch-icon" href="' . tpl_getMediaFile($look) . '" />' . NL;
1835 $return .= '<link rel="icon" href="' . tpl_getMediaFile($look) . '" type="image/svg+xml" />' . NL;
1840 return $return;
1890 * @return string
1908 return implode(' ', $classes);