[add] change default titile of video

This commit is contained in:
Knah Tsaeb 2013-07-26 13:41:07 +02:00
parent e61d43da1f
commit 277ca16643

View file

@ -31,7 +31,7 @@ if (!empty($ci['ac']) && $ci['ac'] === 'newDir') {
</form>';
}
if (!empty($ci['ac']) && $ci['ac'] === 'renDir') {
if (empty($ci['op'])){
if (empty($ci['op'])) {
$currentDir = getCurrentDir($ci['bc']);
echo '<form action="?" method="post">
<fieldset>
@ -122,8 +122,13 @@ if (!empty($listCurrentFile) && $ci['ac'] !== 'view') {
echo '</div>';
if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
if (!empty($videoInfo)) {
if (empty($videoInfo['title'])) {
$fullTitle = $videoInfo['originalTitle'];
} else {
$fullTitle = $videoInfo['title'].' ('.$videoInfo['originalTitle'].')';
}
echo '<div id="viewFile">';
echo '<h2>', $videoInfo['title'], ' (', $videoInfo['originalTitle'], ')</h2>';
echo '<h2>', $fullTitle,'</h2>';
echo '<video width="640" controls="controls" poster="', $path.$videoInfo['hash'], '.jpg">';
echo '<source src="', $path.$videoInfo['hash'], '.webm" type="video/webm" />';
echo '<source src="', $path.$videoInfo['hash'], '.mp4" type="video/mp4" />';
@ -142,7 +147,11 @@ if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
echo '<table>
<tr>
<th>Title</th>
<td>', $videoInfo['title'], ' (', $videoInfo['originalTitle'], ')</td>
<td>', $videoInfo['title'],'</td>
</tr>
<tr>
<th>Original title</th>
<td>', $videoInfo['originalTitle'],'</td>
</tr>
<tr>
<th>Description</th>
@ -166,7 +175,7 @@ if ($ci['ac'] === 'view' && !empty($listCurrentFile)) {
<tr>
<th>Via</th>
<td>';
if(!empty($videoInfo['via'])) {
if (!empty($videoInfo['via'])) {
echo '<a href="', htmlentities($videoInfo['via']), '">', $videoInfo['via'], '</a>';
} else {
echo '';