Skip to content

Commit

Permalink
Update admin photo to support multiple player
Browse files Browse the repository at this point in the history
  • Loading branch information
xbgmsharp committed Jul 25, 2018
1 parent 17d9adb commit 0af268f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 6 additions & 4 deletions admin/admin_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@

// Available player
$available_players = array(
'vjs-player.tpl.v5' => 'VideoJS v5',
'vjs-player.tpl.v4' => 'VideoJS v4',
'html5-player.tpl' => 'Browser',
'vjs-7-player.tpl' => 'Video.js v7',
'vjs-6-player.tpl' => 'Video.js v6',
'vjs-5-player.tpl' => 'Video.js v5',
'vjs-4-player.tpl' => 'Video.js v4',
'html5-player.tpl' => 'Native Browser',
);

// Available preload value
Expand All @@ -52,7 +54,7 @@

// Available language value from the directory to be dynamic
$available_languages = array('en');
if ($handle = opendir(dirname(__FILE__).'/../video-js/lang/')) {
if ($handle = opendir(dirname(__FILE__).'/../video-js-4/lang/')) {
while (false !== ($entry = readdir($handle))) {
if ($entry == '.' || $entry == '..') {
continue;
Expand Down
8 changes: 7 additions & 1 deletion admin/admin_config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ Refer to the <a href="https://github.com/xbgmsharp/piwigo-videojs/wiki" target="
<label><input type="radio" name="vjs_watermark" value="false" {if not $plugins.watermark}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'WATERMARK_DESC'|@translate}</small>
</li>
<li>
<label><span class="property">{'RESOLUTION'|@translate} : </span></label>
<label><input type="radio" name="vjs_resolution" value="true" {if $plugins.resolution}checked="checked"{/if}/> {'Yes'|@translate}</label>
<label><input type="radio" name="vjs_resolution" value="false" {if not $plugins.resolution}checked="checked"{/if}/> {'No'|@translate}</label>
<br/><small>{'RESOLUTION_DESC'|@translate}</small>
</li>
</ul>
</fieldset>
<p>
Expand All @@ -176,7 +182,7 @@ function player_toggle()
{
var select = document.getElementById("vjs_player");
var div = document.getElementById("player");
if (select.selectedIndex == 1) /* Only for VideoJS v4 */
if (select.selectedIndex == 3) /* Only for VideoJS v4 */
{
div.removeAttribute("style");
} else {
Expand Down

0 comments on commit 0af268f

Please sign in to comment.