Skip to content

Commit

Permalink
HTML5
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Jun 16, 2016
1 parent 984cc6f commit 1cd3b25
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions admin/altcat.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
$lid = XoopsRequest::getInt('lid', XoopsRequest::getInt('lid', 0, 'POST'), 'GET'); //xtubeCleanRequestVars($_REQUEST, 'lid', 0);

/**
* @param XoopsObject $xt
* @param XoopstubeTree $xt
* @param int $itemid
* @param $title
* @param $checks
* @param string $order
*/
function makeTreeCheckTable($xt, $itemid, $title, $checks, $order = '')
function makeTreeCheckTable(XoopstubeTree $xt, $itemid, $title, $checks, $order = '')
{
global $xtubemyts;

Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
- Unnecessary double quotes (mamba)
- reference mismatch (mamba)
- partial conversion to $GLOBALS (mamba)
- adapted Alphabet Letter Selection (mamba)
- added HTML5 as default for YouTube (option/bleekk)


TODO: Needs code cleanup

Expand Down
7 changes: 5 additions & 2 deletions include/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ function xtubeShowVideo($vidid, $source, $screenshot, $picurl)
// YouTube
case 0:
// $showvideo = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $vidid . '&ap=%2526fmt%3D18&&autoplay=' . $autoplay . '&rel=1&fs=1&color1=0x999999&color2=0x999999&border=0&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="480" height="295"></embed></object>';
$showvideo = '<embed src="http://www.youtube.com/v/' . $vidid . '&autoplay=' . $autoplay
. '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>';
// $showvideo = '<embed src="http://www.youtube.com/v/' . $vidid . '&autoplay=' . $autoplay
// . '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>';

$showvideo = '<iframe src="http://www.youtube.com/embed/' . $vidid . '?html5=1&amp;rel=0&amp;hl=en_US&amp;version=3' . '&autoplay=' . $autoplay
. '&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></iframe>';
break;

// MetaCafe
Expand Down
2 changes: 1 addition & 1 deletion templates/xoopstube_co_letterschoice.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
</style>
<{$smarty.const._MD_XOOPSTUBE_BROWSETOTOPIC}>
<br/>
<br>
<div>
<{assign var="alphabetcount" value=$alphabet|@count}>
<{foreach name=letters item=letter from=$alphabet}>
Expand Down

0 comments on commit 1cd3b25

Please sign in to comment.