Skip to content

Commit

Permalink
Rename HTML5 Player to Web Player
Browse files Browse the repository at this point in the history
  • Loading branch information
Afterster committed Nov 23, 2013
1 parent 6a95f51 commit e35f175
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion image.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
$size['width'] = '80';
break;
case '4':
/* HTML5 Player size */
/* Web Player size */
$size['height'] = 200;
$size['width'] = 200; // 200px width, set via CSS
break;
Expand Down
14 changes: 7 additions & 7 deletions lib/class/stream_playlist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function generate_playlist($type, $redirect = false)
case 'download':
case 'democratic':
case 'localplay':
case 'html5_player':
case 'web_player':
// These are valid, but witchy
$redirect = false;
unset($ext);
Expand Down Expand Up @@ -356,19 +356,19 @@ public function create_xspf()
} // create_xspf

/**
* create_html5_player
* create_web_player
*
* Creates an html5 player.
* Creates an web player.
*/
public function create_html5_player()
public function create_web_player()
{
if (Config::get("iframes")) {
require Config::get('prefix') . '/templates/create_html5_player_embedded.inc.php';
require Config::get('prefix') . '/templates/create_web_player_embedded.inc.php';
} else {
require Config::get('prefix') . '/templates/create_html5_player.inc.php';
require Config::get('prefix') . '/templates/create_web_player.inc.php';
}

} // create_html5_player
} // create_web_player

/**
* create_localplay
Expand Down
6 changes: 3 additions & 3 deletions lib/class/update.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public static function populate_version()
$update_string = '- Catalog types are plugins now.<br />';
$version[] = array('version' => '360020', 'description' => $update_string);

$update_string = '- Add insertion date on Now Playing and option to show the current song in page title for HTML5 player.<br />';
$update_string = '- Add insertion date on Now Playing and option to show the current song in page title for Web player.<br />';
$version[] = array('version' => '360021', 'description' => $update_string);

return $version;
Expand Down Expand Up @@ -1677,15 +1677,15 @@ public static function update_360020()
/**
* update_360021
*
* Add insertion date on Now Playing and option to show the current song in page title for HTML5 player
* Add insertion date on Now Playing and option to show the current song in page title for Web player
*/
public static function update_360021()
{
$sql = "ALTER TABLE `now_playing` ADD `insertion` INT (11) AFTER `expire`";
Dba::write($sql);

$sql = "INSERT INTO `preference` (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
"VALUES ('song_page_title','0','Show current song in HTML5 player page title',25,'string','interface')";
"VALUES ('song_page_title','0','Show current song in Web player page title',25,'string','interface')";
$retval = Dba::write($sql);

$id = Dba::insert_id();
Expand Down
4 changes: 2 additions & 2 deletions lib/preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function create_preference_input($name,$value)
echo "</select>\n";
break;
case 'play_type':
if ($value == 'localplay') { $is_local = 'selected="selected"'; } elseif ($value == 'democratic') { $is_vote = 'selected="selected"'; } elseif ($value == 'html5_player') { $is_html5_player = 'selected="selected"'; } else { $is_stream = "selected=\"selected\""; }
if ($value == 'localplay') { $is_local = 'selected="selected"'; } elseif ($value == 'democratic') { $is_vote = 'selected="selected"'; } elseif ($value == 'web_player') { $is_web_player = 'selected="selected"'; } else { $is_stream = "selected=\"selected\""; }
echo "<select name=\"$name\">\n";
echo "\t<option value=\"\">" . T_('None') . "</option>\n";
if (Config::get('allow_stream_playback')) {
Expand All @@ -185,7 +185,7 @@ function create_preference_input($name,$value)
if (Config::get('allow_localplay_playback')) {
echo "\t<option value=\"localplay\" $is_local>" . T_('Localplay') . "</option>\n";
}
echo "\t<option value=\"html5_player\" $is_html5_player>" . _('HTML5 Player') . "</option>\n";
echo "\t<option value=\"web_player\" $is_web_player>" . _('Web Player') . "</option>\n";
echo "</select>\n";
break;
case 'playlist_type':
Expand Down
2 changes: 1 addition & 1 deletion server/stream.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
$new = $_POST['type'];
break;
case 'html5_player':
case 'web_player':
$new = $_POST['type'];
// Rien a faire
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
<!-- begin
function PlayerPopUp(URL)
{
window.open(URL, 'HTML5_player', 'width=730,height=285,scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0');
window.open(URL, 'Web_player', 'width=730,height=285,scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0');
window.location = '<?php echo return_referer() ?>';
return false;
}
// end -->
</script>
</head>
<body onLoad="javascript:PlayerPopUp('<?php echo Config::get('web_path')?>/html5_player.php<?php echo '?playlist_id=' . $this->id ?>')">
<body onLoad="javascript:PlayerPopUp('<?php echo Config::get('web_path')?>/web_player.php<?php echo '?playlist_id=' . $this->id ?>')">
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ function PlayerFrame(URL)
}
</script>
</head>
<body onLoad="javascript:PlayerFrame('<?php echo Config::get('web_path')?>/html5_player_embedded.php<?php echo '?playlist_id=' . $this->id ?>');">
<body onLoad="javascript:PlayerFrame('<?php echo Config::get('web_path')?>/web_player_embedded.php<?php echo '?playlist_id=' . $this->id ?>');">
</body>
</html>
2 changes: 1 addition & 1 deletion templates/header.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js" language="javascript" type="text/javascript"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/edit-dialog.js" language="javascript" type="text/javascript"></script>
<?php
// If iframes, we check in javascript that parent container exist, otherwise we redirect to index. Otherwise HTML5 iframed Player will look broken.
// If iframes, we check in javascript that parent container exist, otherwise we redirect to index. Otherwise iframed Web Player will look broken.
if (Config::get('iframes') && $_SERVER['REQUEST_METHOD'] != 'POST') {
?>
<script language="javascript" type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion templates/show_playtype_switch.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<?php } if (Config::get('allow_democratic_playback')) { ?>
<option value="democratic" <?php echo $is_democratic; ?>><?php echo T_('Democratic'); ?></option>
<?php } ?>
<option value="html5_player" <?php echo $is_html5_player; ?>><?php echo T_('HTML5 Player'); ?></option>
<option value="web_player" <?php echo $is_web_player; ?>><?php echo T_('Web Player'); ?></option>
</select>
<?php echo Ajax::observe('play_type_select','change',Ajax::action('?page=stream&action=set_play_type','play_type_select','play_type_form'),'1'); ?>
</form>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions themes/classic/templates/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,9 @@ td.lp_current a {
}

/************************************************/
/* HTML5 Player */
/* Web Player */
/************************************************/
#html5_player #playlist
#web_player #playlist
{
overflow-x: hidden;
overflow-y: scroll;
Expand Down
4 changes: 2 additions & 2 deletions themes/fresh/templates/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -1096,9 +1096,9 @@ table.tabledata .cel_php_setting, table.tabledata .cel_configuration, .cel_prefe
}

/************************************************/
/* HTML5 Player */
/* Web Player */
/************************************************/
#html5_player #playlist
#web_player #playlist
{
overflow-x: hidden;
overflow-y: scroll;
Expand Down
2 changes: 1 addition & 1 deletion html5_player.php → web_player.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once 'lib/init.php';

require_once Config::get('prefix') . '/templates/show_html5_player.inc.php';
require_once Config::get('prefix') . '/templates/show_web_player.inc.php';
2 changes: 1 addition & 1 deletion html5_player_embedded.php → web_player_embedded.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
require_once 'lib/init.php';

$iframed = true;
require_once Config::get('prefix') . '/templates/show_html5_player.inc.php';
require_once Config::get('prefix') . '/templates/show_web_player.inc.php';

0 comments on commit e35f175

Please sign in to comment.