Lines Matching defs:url

874      * @param string|null $search adds search url param
935 $link['url'] = wl($id, $params);
940 ($conf['userewrite']) ? $link['url'] .= '?' : $link['url'] .= '&';
943 $link['url'] .= 's[]=' . implode('&s[]=', $search);
945 $link['url'] .= 's=' . rawurlencode($search);
950 if ($hash) $link['url'] .= '#' . $hash;
963 * @param string $url full URL with scheme
968 public function externallink($url, $name = null, $returnonly = false)
972 $name = $this->_getLinkTitle($name, $url, $isImage);
974 // url might be an attack vector, only allow registered protocols
976 [$scheme] = explode('://', $url);
978 if (!in_array($scheme, $this->schemes)) $url = '';
981 if (!$url) {
1005 $link['url'] = $url;
1009 $link['title'] = $this->_xmlEntities($url);
1047 $url = $this->_resolveInterWiki($wikiName, $wikiUri, $exists);
1057 if (strpos($url, DOKU_URL) === 0 || strpos($url, DOKU_BASE) === 0) {
1070 $link['url'] = $url;
1071 $link['title'] = $this->_xmlEntities($link['url']);
1075 if ($url == '') return $link['name'];
1077 } elseif ($url == '') {
1085 * @param string $url the link
1090 public function windowssharelink($url, $name = null, $returnonly = false)
1101 $link['name'] = $this->_getLinkTitle($name, $url, $isImage);
1108 $link['title'] = $this->_xmlEntities($url);
1109 $url = str_replace('\\', '/', $url);
1110 $url = 'file:///' . $url;
1111 $link['url'] = $url;
1160 $link['url'] = 'mailto:' . $address;
1208 $link['url'] = ml(
1224 $link['url'] = ml(
1236 if (!empty($hash)) $link['url'] .= '#' . $hash;
1298 $link['url'] = ml($src, ['cache' => $cache]);
1313 if ($hash) $link['url'] .= '#' . $hash;
1327 * @param string $url URL of the feed
1332 public function rss($url, $params)
1338 $feed->set_feed_url($url);
1404 $this->externallink($url);
1629 //make sure the url is XHTML compliant (skip mailto)
1630 if (!str_starts_with($link['url'], 'mailto:')) {
1631 $link['url'] = str_replace('&', '&', $link['url']);
1632 $link['url'] = str_replace('&', '&', $link['url']);
1637 // be sure there are no bad chars in url or title
1639 $link['url'] = strtr($link['url'], ['>' => '%3E', '<' => '%3C', '"' => '%22']);
1644 $ret .= '<a href="' . $link['url'] . '"';
1947 $url = $file;
1950 $url = ml($file, '', true, '&');
1957 $out .= '<source src="' . hsc($url) . '" type="' . $mime . '" />' . NL;
2017 $url = $file;
2020 $url = ml($file, '', true, '&');
2025 $out .= '<source src="' . hsc($url) . '" type="' . $mime . '" />' . NL;