Lines Matching refs:src

1159      * @param string $src       media ID
1169 public function internalmedia($src, $title = null, $align = null, $width = null, argument
1172 if (strpos($src, '#') !== false) {
1173 list($src, $hash) = explode('#', $src, 2);
1175 resolve_mediaid(getNS($ID), $src, $exists, $this->date_at, true);
1179 $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render);
1181 list($ext, $mime) = mimetype($src, false);
1184 $src,
1188 'rev' => $this->_getLastMediaRevisionAt($src)
1200 $src,
1204 'rev' => $this->_getLastMediaRevisionAt($src)
1208 if($exists) $link['title'] .= ' ('.filesize_h(filesize(mediaFN($src))).')';
1231 * @param string $src full media URL
1241 public function externalmedia($src, $title = null, $align = null, $width = null, argument
1243 if(link_isinterwiki($src)){
1244 list($shortcut, $reference) = explode('>', $src, 2);
1246 $src = $this->_resolveInterWiki($shortcut, $reference, $exists);
1247 if($src == '' && empty($title)){
1253 @list($src, $hash) = explode('#', $src, 2);
1255 if($src == '') {
1260 $link = $this->_getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render);
1262 $link['url'] = ml($src, array('cache' => $cache));
1264 list($ext, $mime) = mimetype($src, false);
1614 * @param string $src media ID
1623 public function _media($src, $title = null, $align = null, $width = null, argument
1628 list($ext, $mime) = mimetype($src);
1636 $jpeg = new JpegMeta(mediaFN($src));
1647 $title = $this->_xmlEntities(\dokuwiki\Utf8\PhpString::basename(noNS($src)));
1653 $src,
1657 'rev' => $this->_getLastMediaRevisionAt($src)
1684 … return $this->_xmlEntities($title ? $title : \dokuwiki\Utf8\PhpString::basename(noNS($src)));
1695 $ret .= $this->_video($src, $width, $height, $att);
1699 $ret .= $this->_audio($src, $att);
1708 $title = \dokuwiki\Utf8\PhpString::basename(noNS($src));
1718 ml($src, array('cache' => $cache), true, '&'), $width, $height,
1729 $ret .= $this->_xmlEntities(\dokuwiki\Utf8\PhpString::basename(noNS($src)));
1809 * @param string $src media ID
1818 public function _getMediaLinkConf($src, $title, $align, $width, $height, $cache, $render) { argument
1829 $link['title'] = $this->_xmlEntities($src);
1830 $link['name'] = $this->_media($src, $title, $align, $width, $height, $cache, $render);
1841 * @param string $src - ID of video to embed
1847 public function _video($src, $width, $height, $atts = null) { argument
1858 $isExternal = media_isexternal($src);
1862 list(/*ext*/, $srcMime) = mimetype($src);
1863 $files[$srcMime] = $src;
1867 $files = media_alternativefiles($src, $extensions);
1868 $poster = media_alternativefiles($src, array('jpg', 'png'));
1869 $tracks = media_trackfiles($src);
1928 * @param string $src - ID of audio to embed
1932 public function _audio($src, $atts = array()) { argument
1934 $isExternal = media_isexternal($src);
1938 list(/*ext*/, $srcMime) = mimetype($src);
1939 $files[$srcMime] = $src;
1943 $files = media_alternativefiles($src, $extensions);