source/Application/Model/MediaUrl.php
public function getHtml()
    {
        $sUrl = $this->oxmediaurls__oxurl->value;
        //youtube link
        if (strpos($sUrl, 'youtube.com') || strpos($sUrl, 'youtu.be')) {
            return $this->_getYoutubeHtml();
        }

        //simple link
        return $this->getHtmlLink();
    }
public function getHtml()
    {
        $sUrl = $this->oxmediaurls__oxurl->value;
        //youtube link
        if (strpos($sUrl, 'youtube.com') || strpos($sUrl, 'youtu.be')) {
            return $this->_getYoutubeHtml();
        }

        //simple link
        return $this->getHtmlLink();
    }
public function getHtml ( ) { $ sUrl = $ this -> oxmediaurls__oxurl -> value ; //youtube link if ( strpos ( $ sUrl , 'youtube.com' ) || strpos ( $ sUrl , 'youtu.be' ) ) { return $ this -> _getYoutubeHtml ( ) ; } //simple link return $ this -> getHtmlLink ( ) ; }
Return HTML code depending on current URL

@return string
Return HTML code depending on current URL