Rename airtime_mvc/ to legacy/
This commit is contained in:
parent
f0879322c2
commit
3e18d42c8b
1316 changed files with 0 additions and 0 deletions
3
legacy/application/views/scripts/api/status.phtml
Normal file
3
legacy/application/views/scripts/api/status.phtml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
echo $status;
|
|
@ -0,0 +1,85 @@
|
|||
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
|
||||
<div id="jp_container_1" class="jp-audio">
|
||||
<?php if (isset($this->playlistID)): ?>
|
||||
<span class='playlistID'><?php echo "$this->playlistID" ?></span>
|
||||
<span class='playlistIndex'><?php echo "$this->playlistIndex" ?></span>
|
||||
<?php elseif (isset($this->blockId)): ?>
|
||||
<span class='blockId' style="display: none;"><?php echo "$this->blockId" ?></span>
|
||||
<span class='blockIndex' style="display: none;"><?php echo "$this->blockIndex" ?></span>
|
||||
<?php elseif (isset($this->uri)): ?>
|
||||
<span class='audioUri' style="display: none;"><?php echo "$this->uri" ?></span>
|
||||
<span class='audioMime' style="display: none;"><?php echo "$this->mime" ?></span>
|
||||
<span class='audioFileTitle'><?php echo "$this->audioFileTitle" ?></span>
|
||||
<span class='audioFileArtist'><?php echo "$this->audioFileArtist" ?></span>
|
||||
<?php elseif (isset($this->showID)): ?>
|
||||
<span class='showID'><?php echo "$this->showID" ?></span>
|
||||
<span class='showIndex'><?php echo "$this->showIndex" ?></span>
|
||||
<?php endif;?>
|
||||
<div class="jp-type-playlist">
|
||||
<div class="jp-gui jp-interface">
|
||||
<ul class="jp-controls">
|
||||
<?php if ($this->type != "audioclip"): ?>
|
||||
<li class="ui-state-default ui-corner-all jp-previous">
|
||||
<span class="ui-icon ui-icon-seek-prev" tabindex="1"><?php echo _("previous") ?></span>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<li class="ui-state-default ui-corner-all jp-play">
|
||||
<span class="ui-icon ui-icon-play" tabindex="1"><?php echo _("play") ?></span>
|
||||
</li>
|
||||
|
||||
<li class="ui-state-default ui-corner-all jp-pause">
|
||||
<span class="ui-icon ui-icon-pause" tabindex="1"><?php echo _("pause") ?></span>
|
||||
</li>
|
||||
|
||||
<?php if ($this->type != "audioclip"): ?>
|
||||
<li class="ui-state-default ui-corner-all jp-next">
|
||||
<span class="ui-icon ui-icon-seek-next" tabindex="1"><?php echo _("next") ?></span>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<li class="ui-state-default ui-corner-all jp-stop">
|
||||
<span class="ui-icon ui-icon-stop" tabindex="1"><?php echo _("stop") ?></span>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="jp-time-block">
|
||||
<div class="jp-progress">
|
||||
<div class="jp-seek-bar">
|
||||
<div class="jp-play-bar"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jp-time-holder">
|
||||
<div class="jp-current-time"></div>
|
||||
<?php if ($this->type == "audioclip"): ?>
|
||||
<div class="jp-duration"></div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jp-volume-block">
|
||||
<div class="jp-mute">
|
||||
<span class="ui-icon" tabindex="1" title="mute"><?php echo _("mute") ?></span>
|
||||
</div>
|
||||
<div class="jp-unmute">
|
||||
<span class="ui-icon" tabindex="1" title="unmute"><?php echo _("unmute") ?></span>
|
||||
</div>
|
||||
<div class="jp-volume-bar">
|
||||
<div class="jp-volume-bar-value"></div>
|
||||
</div>
|
||||
<div class="jp-volume-max">
|
||||
<span class="ui-icon" tabindex="1" title="max volume"><?php echo _("max volume") ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jp-playlist">
|
||||
<ul>
|
||||
<li></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="jp-no-solution">
|
||||
<span><?php echo _("Update Required") ?></span>
|
||||
<?php sprintf(_("To play the media you will need to either update your browser to a recent version or update your %sFlash plugin%s."),
|
||||
"<a href='http://get.adobe.com/flashplayer/' target='_blank'>",
|
||||
"</a>") ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
34
legacy/application/views/scripts/dashboard/about.phtml
Normal file
34
legacy/application/views/scripts/dashboard/about.phtml
Normal file
|
@ -0,0 +1,34 @@
|
|||
<div class="text-content">
|
||||
<h2><?php echo _("About") ?></h2>
|
||||
<p>
|
||||
<?php
|
||||
|
||||
$productSiteAnchor = "<a href='" . PRODUCT_SITE_URL . "' target='_blank'>"
|
||||
. PRODUCT_NAME
|
||||
. "</a>";
|
||||
echo sprintf(_('%1$s %2$s, the open radio software for scheduling and remote station management.'),
|
||||
$productSiteAnchor,
|
||||
$this->airtime_version)
|
||||
?>
|
||||
<br />
|
||||
<br />© <?php echo(gmdate('Y')); ?>
|
||||
<?php
|
||||
$companySiteAnchor = "<a href='" . COMPANY_SITE_URL . "' target='_blank'>"
|
||||
. COMPANY_NAME . " " . COMPANY_SUFFIX
|
||||
. "</a>";
|
||||
$licenseAnchor = "<a href='" . LICENSE_URL . "' target='_blank'>"
|
||||
. LICENSE_VERSION
|
||||
. "</a>";
|
||||
echo sprintf(_('%1$s %2$s is distributed under the %3$s'),
|
||||
$companySiteAnchor, PRODUCT_NAME, $licenseAnchor)
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
25
legacy/application/views/scripts/dashboard/help.phtml
Normal file
25
legacy/application/views/scripts/dashboard/help.phtml
Normal file
|
@ -0,0 +1,25 @@
|
|||
<div class="text-content">
|
||||
<h2><?php echo sprintf(_("Welcome to %s!"), PRODUCT_NAME) ?></h2>
|
||||
<p><?php echo sprintf(_("Here's how you can get started using %s to automate your broadcasts: "), PRODUCT_NAME)?></p>
|
||||
|
||||
<ol>
|
||||
<li><h4><?php echo _("Upload audio tracks");?></h4>
|
||||
<?php echo _("Click the 'Upload' button in the left corner to upload tracks to your library.")?></li>
|
||||
<li><h4><?php echo _("Schedule a show");?></h4>
|
||||
<?php echo _("Click on 'Calendar' in the navigation bar on the left. From there click the '+ New Show' button and fill out the required fields.")?></li>
|
||||
<li><h4><?php echo _("Add tracks to your show"); ?></h4>
|
||||
<?php echo _("Click on your show in the calendar and select 'Schedule Show'. In the popup window drag tracks into your show."); ?>
|
||||
</li>
|
||||
|
||||
|
||||
</ol>
|
||||
<p><strong><?php echo _("Now you're good to go!")?></strong><br />
|
||||
<?php
|
||||
$userManualAnchorOpen = "<a href='" . USER_MANUAL_URL . "' target='_blank'>";
|
||||
echo sprintf(_("For more detailed help, read the %suser manual%s."),
|
||||
$userManualAnchorOpen, "</a>")
|
||||
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
|
0
legacy/application/views/scripts/dashboard/index.phtml
Normal file
0
legacy/application/views/scripts/dashboard/index.phtml
Normal file
|
@ -0,0 +1,99 @@
|
|||
<div id="content" class="jp-container">
|
||||
<h1><?php echo _("Live stream") ?></h1>
|
||||
<a id="popup-link" href="#"><?php echo _("Share") ?></a>
|
||||
<?php $ids = Application_Model_StreamSetting::getEnabledStreamIds(); ?>
|
||||
<script>
|
||||
function setjPlayer(url, type, serverType){
|
||||
var obj = new Object();
|
||||
obj[type] = url;
|
||||
|
||||
if(serverType == 'shoutcast'){
|
||||
obj[type] = url + ";stream/1";
|
||||
}
|
||||
|
||||
$("#jquery_jplayer_1").jPlayer("destroy");
|
||||
$("#jquery_jplayer_1").jPlayer({
|
||||
ready: function () {
|
||||
$(this).jPlayer("setMedia", obj).jPlayer("play");
|
||||
},
|
||||
ended: function (event) {
|
||||
$(this).jPlayer("play");
|
||||
},
|
||||
swfPath: "/js/jplayer/",
|
||||
supplied: type,
|
||||
wmode: "window"
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$("#combo-box").change(function(eventObject){
|
||||
var elem = $("#combo-box option:selected");
|
||||
setjPlayer(elem.attr("data-url"), elem.attr("data-type"), elem.attr("server-type"));
|
||||
});
|
||||
|
||||
<?php
|
||||
if (count($ids) > 0){
|
||||
$id = $ids[0];
|
||||
$streamData = Application_Model_StreamSetting::getStreamData($id);
|
||||
$url = "http://".$streamData["${id}_host"].":".$streamData["${id}_port"]."/".$streamData["${id}_mount"];
|
||||
$type = $streamData["${id}_type"];
|
||||
$serverType = $streamData["${id}_output"];
|
||||
if ($type == "ogg")
|
||||
$type = "oga";
|
||||
echo "setjPlayer('$url', '$type', '$serverType');";
|
||||
}
|
||||
?>
|
||||
|
||||
$("#popup-link").click(function() {
|
||||
$("#popup-share").show("slow");
|
||||
$("#popup-share-link").val($("#combo-box option:selected").attr("data-url"));
|
||||
});
|
||||
|
||||
$("#popup-close").click(function() {
|
||||
$("#popup-share").hide("slow");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="jp-logo"><img id="logo-img" onload='resizeToMaxHeight(this, 40);' src="<?php echo $this->logo ?>" /></div>
|
||||
<div id="popup-share">
|
||||
<a class="close-round" href="#" id="popup-close"></a>
|
||||
<input id="popup-share-link" type="text" readonly="readonly"/>
|
||||
</div>
|
||||
<div class="jp-stream stream-player-label">
|
||||
<div class="jp-stream-text"><?php echo _("Select stream:"); ?></div>
|
||||
|
||||
<form id="form1" method="post" action="">
|
||||
<select id="combo-box">
|
||||
<?php
|
||||
foreach($ids as $id) {
|
||||
$streamData = Application_Model_StreamSetting::getStreamData($id);
|
||||
$url = "http://".$streamData["${id}_host"].":".$streamData["${id}_port"]."/".$streamData["${id}_mount"];
|
||||
$type = $streamData["${id}_type"];
|
||||
$serverType = $streamData["${id}_output"];
|
||||
if ($type == "ogg")
|
||||
$type = "oga";
|
||||
|
||||
$label = "(".$streamData["${id}_host"].") ".$streamData["${id}_description"]." - ".$streamData["${id}_bitrate"]." kbit/s";
|
||||
echo sprintf("<option class='stream' value='%s' data-url='%s' data-type='%s' server-type='%s'>%s</option>", $id, $url, $type, $serverType, $label);
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
|
||||
|
||||
<div id="jp_container_1" class="jp-audio">
|
||||
<div class="jp-type-single">
|
||||
<div id="jp_interface_1" class="jp-gui jp-interface">
|
||||
<ul class="jp-controls">
|
||||
<li><a title="mute" tabindex="1" class="jp-mute" href="javascript:;"><?php echo _("mute") ?></a></li>
|
||||
<li><a title="unmute" tabindex="1" class="jp-unmute" href="javascript:;"><?php echo _("unmute") ?></a></li>
|
||||
</ul>
|
||||
<div class="jp-volume-bar">
|
||||
<div class="jp-volume-bar-value"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="jp_playlist_1" class="jp-playlist"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,7 @@
|
|||
<div class="text-content">
|
||||
<h2><?php echo _("Table Test") ?></h2>
|
||||
<p>
|
||||
Hello
|
||||
</p>
|
||||
<table id="example-table" cellpadding="0" cellspacing="0" class="datatable"></table>
|
||||
</div>
|
270
legacy/application/views/scripts/embed/player.phtml
Normal file
270
legacy/application/views/scripts/embed/player.phtml
Normal file
|
@ -0,0 +1,270 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="<?php echo $this->css?>" type="text/css">
|
||||
<script src="<?php echo $this->playerhtml5_js?>" type="text/javascript"></script>
|
||||
<script src="<?php echo $this->jquery?>" type="text/javascript"></script>
|
||||
|
||||
<script src="<?php echo $this->jquery_i18n?>" type="text/javascript"></script>
|
||||
<script src="/locale/general-translation-table" type="text/javascript"></script>
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,700' rel='stylesheet' type='text/css'>
|
||||
<script type="text/javascript">
|
||||
$.i18n.setDictionary(general_dict);
|
||||
|
||||
var MAX_MOBILE_SCREEN_WIDTH = 760;
|
||||
|
||||
var Html5Player = function() {
|
||||
var id_element=getRandomIdPlayer(3000);
|
||||
this.mobileDetect = this.mobileDetect();
|
||||
this.playerMode = "<?php echo $this->playerMode ?>";
|
||||
this.settings = {
|
||||
'elementId': id_element, // leave alone
|
||||
'autoplay': false, // or true (only works on some browsers)
|
||||
'forceHTTPS': false, // or true if the stream is in SSL (beware of the listening port, usually 8000)
|
||||
'replacePort': false, // false for disabled or '8000' as the usual start port, forces to specify replacePortTo.
|
||||
'replacePortTo': '' // either '' to use the default port of the browser (80/http, 443/https) or '8443' to force the port of the stream.
|
||||
};
|
||||
|
||||
if (this.playerMode == "manual") {
|
||||
this.settings.url = <?php echo $this->streamURL ?>;
|
||||
this.settings.codec = "<?php echo $this->codec ?>";
|
||||
} else if (this.playerMode == "file") {
|
||||
this.settings.url = <?php echo $this->streamURL ?>;
|
||||
this.settings.codec = "<?php echo $this->codec ?>";
|
||||
} else if (this.playerMode == "auto") {
|
||||
this.availableMobileStreamQueue = <?php echo $this->availableMobileStreams?>;
|
||||
this.availableDesktopStreamQueue = <?php echo $this->availableDesktopStreams?>;
|
||||
var stream = this.getNextAvailableStream();
|
||||
this.settings.url = stream["url"];
|
||||
this.settings.codec = stream["codec"];
|
||||
}
|
||||
|
||||
// Create the Muses player object
|
||||
playerhtml5_insert(this.settings);
|
||||
playerhtml5_audio = document.getElementById(id_element);
|
||||
if(playerhtml5_audio.played==true) togglePlayStopButton();
|
||||
|
||||
// Configure player title
|
||||
var player_title = <?php echo $this->player_title?>;
|
||||
if (player_title === null) {
|
||||
$(".airtime_header").hide();
|
||||
$(".airtime_player").css('height', '150px');
|
||||
} else {
|
||||
$("p.station_name").html(player_title);
|
||||
}
|
||||
|
||||
attachStreamMetadataToPlayer();
|
||||
|
||||
// detects events in HTML5 mode
|
||||
|
||||
};
|
||||
Html5Player.prototype.mobileDetect = function() {
|
||||
return (screen.width <= MAX_MOBILE_SCREEN_WIDTH);
|
||||
}
|
||||
|
||||
// This function is called if an error occurs while a client is
|
||||
// attempting to connect to a stream (An error would occur if
|
||||
// the streams listener count has been maxed out or if the stream is down).
|
||||
// It checks if the client is a mobile device or not and returns the next
|
||||
// best available stream.
|
||||
Html5Player.prototype.getNextAvailableStream = function() {
|
||||
if (this.mobileDetect && this.availableMobileStreamQueue.length > 0) {
|
||||
return this.getNextAvailableMobileStream();
|
||||
}
|
||||
|
||||
if (!this.mobileDetect && this.availableDesktopStreamQueue.length > 0) {
|
||||
return this.getNextAvailableDesktopStream();
|
||||
}
|
||||
|
||||
// If we get to this point there are no available streams for the
|
||||
// type of device the client has connected with so just return
|
||||
// the next available stream - first we'll try the desktop streams
|
||||
var desktopStream = this.getNextAvailableDesktopStream();
|
||||
if (desktopStream) {
|
||||
return desktopStream;
|
||||
} else {
|
||||
return this.getNextAvailableMobileStream();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Gets and returns the next available mobile stream from the queue,
|
||||
// but adds it back to the end of the queue to be recycled.
|
||||
Html5Player.prototype.getNextAvailableMobileStream = function() {
|
||||
var stream = this.availableMobileStreamQueue.shift();
|
||||
//add to end of queue
|
||||
this.availableMobileStreamQueue.push(stream);
|
||||
return stream;
|
||||
}
|
||||
|
||||
// Gets and returns the next available desktop stream from the queue,
|
||||
// but adds it back to the end of the queue to be recycled.
|
||||
Html5Player.prototype.getNextAvailableDesktopStream = function() {
|
||||
var stream = this.availableDesktopStreamQueue.shift();
|
||||
//add to end of queue
|
||||
this.availableDesktopStreamQueue.push(stream);
|
||||
return stream;
|
||||
}
|
||||
|
||||
Html5Player.prototype.play = function() {
|
||||
console.log('play');
|
||||
playerhtml5_audio.src = this.settings.url;
|
||||
playerhtml5_audio.play();
|
||||
togglePlayStopButton();
|
||||
};
|
||||
|
||||
Html5Player.prototype.stop = function() {
|
||||
console.log('stop');
|
||||
playerhtml5_audio.pause();
|
||||
togglePlayStopButton();
|
||||
};
|
||||
function togglePlayStopButton() {
|
||||
document.getElementById("play_button").classList.toggle("hide_button");
|
||||
document.getElementById("stop_button").classList.toggle("hide_button");
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$(".play").click(function () {
|
||||
if ($(this).hasClass("pause")) {
|
||||
html5Player.stop();
|
||||
} else {
|
||||
html5Player.play();
|
||||
}
|
||||
|
||||
$(this).toggleClass("pause");
|
||||
});
|
||||
});
|
||||
|
||||
// variables for updating the player's metadata
|
||||
var time_to_next_track_starts = 0;
|
||||
var metadataTimer = null;
|
||||
|
||||
// Fetches the streams metadata from the Airtime live-info API
|
||||
// and attaches it to the player UI.
|
||||
//
|
||||
// The metadata is fetched when the current track is about to end.
|
||||
function attachStreamMetadataToPlayer(){
|
||||
$.ajax({url: "<?php echo $this->metadata_api_url?>",
|
||||
data: {type:"interval",limit:"5"},
|
||||
dataType: "jsonp",
|
||||
success: function(data) {
|
||||
|
||||
if (data.current === null) {
|
||||
if (data.currentShow != null && data.currentShow.length > 0) {
|
||||
//Master/show source have no current track but they do have a current show.
|
||||
$("p.now_playing").html($.i18n._("On Air") + "<span>" + data.currentShow[0].name + "</span>");
|
||||
} else {
|
||||
$("p.now_playing").html($.i18n._("Off Air") + "<span>"+ $.i18n._("Offline") + "</span>");
|
||||
}
|
||||
time_to_next_track_starts = 20000;
|
||||
} else {
|
||||
var artist = data.current.name.split(" - ")[0];
|
||||
var track = data.current.name.split(" - ")[1];
|
||||
var nowPlayingHtml = "";
|
||||
if (artist) {
|
||||
nowPlayingHtml += artist;
|
||||
}
|
||||
if (track) {
|
||||
nowPlayingHtml += "<span>" + track + "</span>";
|
||||
}
|
||||
$("p.now_playing").html(nowPlayingHtml);
|
||||
|
||||
var current_track_end_time = new Date(data.current.ends);
|
||||
if (current_track_end_time == "Invalid Date" || isNaN(current_track_end_time)) {
|
||||
// If the conversion didn't work (since the String is not in ISO format)
|
||||
// then change it to be ISO-compliant. This is somewhat hacky and may break
|
||||
// if the date string format in live-info changes!
|
||||
current_track_end_time = new Date((data.current.ends).replace(" ", "T"));
|
||||
}
|
||||
var current_time = new Date();
|
||||
//convert current_time to UTC to match the timezone of time_to_next_track_starts
|
||||
current_time = new Date(current_time.getTime() + current_time.getTimezoneOffset() * 60 * 1000);
|
||||
time_to_next_track_starts = current_track_end_time - current_time;
|
||||
}
|
||||
|
||||
if (data.next === null) {
|
||||
$("ul.schedule_list").find("li").html($.i18n._("Nothing scheduled"));
|
||||
} else {
|
||||
$("ul.schedule_list").find("li").html(data.next.name);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//Preventative code if the local and remote clocks are out of sync.
|
||||
if (isNaN(time_to_next_track_starts) || time_to_next_track_starts < 0) {
|
||||
time_to_next_track_starts = 0;
|
||||
}
|
||||
|
||||
// Add 3 seconds to the timeout so Airtime has time to update the metadata before we fetch it
|
||||
metadataTimer = setTimeout(attachStreamMetadataToPlayer, time_to_next_track_starts+3000);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
/*
|
||||
We have to have the default Muses skin displayed on the page or else
|
||||
the player will not work. Setting the display to none and hidden does
|
||||
not work. It has to be "visible" on the page. As a hacky work around we
|
||||
set the height and width to 1px so users will not see it.
|
||||
*/
|
||||
#html5player_skin{width:0; height:0; overflow: hidden;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="player" <?php if ($this->player_style == "basic") echo "style='display:block;'"; else echo "style='display:none'"; ?>>
|
||||
<div class="airtime_player">
|
||||
|
||||
<div class="airtime_header">
|
||||
<p class="station_name">fff</p>
|
||||
</div>
|
||||
|
||||
<div class="airtime_box">
|
||||
|
||||
<div class="airtime_button">
|
||||
<span id="play_button" class="play_button" onclick="html5Player.play()"></span>
|
||||
<span id="stop_button" class="stop_button hide_button" onclick="html5Player.stop()"></span>
|
||||
</div>
|
||||
<p class="now_playing"></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<div class="airtime_schedule">
|
||||
<p class="airtime_next"><?php echo _("Next") ?></p>
|
||||
<ul class="schedule_list">
|
||||
<li></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="airtime_pro" target="_blank" href="<?php echo PRODUCT_SITE_URL; ?>"><?php printf(_('Powered by %s'), PRODUCT_NAME); ?></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="premium_player" <?php if ($this->player_style == "premium") echo "style='display:block;'"; else echo "style='display:none'"; ?>>
|
||||
<div class="bottom_bar">
|
||||
<div class="play cont_btn"></div>
|
||||
|
||||
<div class="on_air">
|
||||
<p class="now_playing"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="html5player_skin">
|
||||
<script type="text/javascript">
|
||||
var html5Player = new Html5Player();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
104
legacy/application/views/scripts/embed/weekly-program.phtml
Normal file
104
legacy/application/views/scripts/embed/weekly-program.phtml
Normal file
|
@ -0,0 +1,104 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="<?php echo $this->css?>" type="text/css">
|
||||
<script src="<?php echo $this->jquery ?>" type="text/javascript"></script>
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,700' rel='stylesheet' type='text/css'>
|
||||
<script src="/js/libs/handlebars.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wpBody" class="schedule tab_content current">
|
||||
<script id="wpWidget" type="text/x-handlebars-template">
|
||||
<ul class="tabs">
|
||||
{{#each this}}
|
||||
<li>
|
||||
{{dayOfWeek}}<span>{{dayOfMonth}}</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<div class="schedule_content">
|
||||
{{#each this}}
|
||||
<div id="day-{{dayOfMonth}}" class="schedule_item">
|
||||
{{#if (noShowsCheck this.shows)}}
|
||||
<div class="row empty-schedule"><?php echo _('Looks like there are no shows scheduled on this day.') ?></div>
|
||||
{{else}}
|
||||
{{#each shows}}
|
||||
<div class="row">
|
||||
<div class="time_grid">{{show_start_hour}} - {{show_end_hour}}</div>
|
||||
<div class="name_grid">{{{name}}}</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<div class="weekly-schedule-widget-footer" <?php if ($this->widgetStyle == "premium") echo "style='display:none'"; ?>>
|
||||
<a href="<?php echo PRODUCT_SITE_URL; ?>" target="_blank"><?php printf(_('Powered by %s'), PRODUCT_NAME); ?></a>
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
let importSchedule = <?php echo $this->schedule_data; ?>; // Object prepared in JSON, w/o API call
|
||||
let cleanSchedule = [];
|
||||
|
||||
// Insert shows into correct locations in importShows array (work-around for API v.1)
|
||||
let importShows = importSchedule["shows"];
|
||||
importShows.forEach(element => {
|
||||
// Convert timestamps to JS (sec -> millisec)
|
||||
var start_date = new Date(element.starts_timestamp*1000);
|
||||
var end_date = new Date(element.ends_timestamp*1000);
|
||||
// Check date of show so we know where to assign it to
|
||||
var format_start_date = start_date.getFullYear() + "-" + (start_date.getMonth()+1) + "-" + start_date.getDate();
|
||||
// Assign show to correct location
|
||||
if (importSchedule["weekDays"][format_start_date] !== undefined) {
|
||||
importSchedule["weekDays"][format_start_date]["shows"].push(
|
||||
{
|
||||
"show_start_hour": start_date.toLocaleTimeString([], { hour: 'numeric', minute : 'numeric' }),
|
||||
"show_end_hour": end_date.toLocaleTimeString([], { hour: 'numeric', minute : 'numeric' }),
|
||||
"name": element.name
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Re-arraying data into a Handlebars-friendly format
|
||||
for (var i = 0; i <= 6; i++) {
|
||||
cleanSchedule.push(Object.values(importSchedule.weekDays)[i]);
|
||||
}
|
||||
|
||||
// Checker
|
||||
Handlebars.registerHelper('noShowsCheck', function(obj){
|
||||
return obj.length == 0;
|
||||
});
|
||||
|
||||
// Templating with Handlebars.js
|
||||
var wpWidget = document.querySelector('#wpWidget').innerHTML;
|
||||
var wpTemplate = Handlebars.compile(wpWidget);
|
||||
var compiledHTML = wpTemplate(cleanSchedule);
|
||||
document.querySelector('#wpBody').innerHTML = compiledHTML;
|
||||
|
||||
// Tabs logic
|
||||
$(document).ready(function() {
|
||||
//initialize first day to active
|
||||
$('.tabs').find("li").first().addClass("active");
|
||||
$('.schedule_content').find('.schedule_item').first().addClass("active");
|
||||
|
||||
$('.tabs li').click(function(){
|
||||
//var tab_id = $(this).attr('data-tab');
|
||||
var tab_id = "day-"+$(this).find('span').text();
|
||||
|
||||
$('.tabs li').removeClass('active');
|
||||
$('.schedule_item').removeClass('active');
|
||||
|
||||
$(this).addClass('active');
|
||||
$("#"+tab_id).addClass('active');
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,37 @@
|
|||
<div id="weekly-schedule-widget" class="prefpanel ui-widget simple-formblock clearfix padded-strong ">
|
||||
|
||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
|
||||
<h2 style="text-align:center"><?php echo _("Facebook Radio Player") ?></h2>
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<p><button class="btn btn-new" id="facebook-login" style="margin-left: 320px;"><?php echo _("Add to My Facebook Page") ?></button></p>
|
||||
|
||||
<div id="weekly-schedule-widget-error">
|
||||
<?php echo $this->facebook_error_msg; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h3 style="padding-left: 0px"><?php echo _("Preview:") ?></h3>
|
||||
|
||||
<div>
|
||||
<iframe width=800 height=800 src="<?php echo Application_Common_HTTPHelper::getStationUrl(); ?>/?facebook=1"></iframe>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
<div>
|
||||
<h3 style="padding-left: 0px"><?php echo _("Tips:") ?></h3>
|
||||
<p>
|
||||
<?php echo _("To make the tab more visible on your Facebook page, click 'More', and 'Manage Tabs':") ?><br><br>
|
||||
<img src="<?php echo($baseUrl) . "images/doc/facebook_widget1.png"?>"><br><br>
|
||||
|
||||
<?php echo _("Then, drag the Radio Player item higher in the list, and click Save. It will now appear as one of the default tabs instead of being buried under 'More':") ?><br><br>
|
||||
<img src="<?php echo($baseUrl) . "images/doc/facebook_widget2.png"?>">
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,12 @@
|
|||
<div id="player-widget" class="ui-widget prefpanel simple-formblock embed-player-form clearfix padded-strong ">
|
||||
|
||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
|
||||
<form method="post" id="player_form" enctype="multipart/form-data">
|
||||
<h2 style="text-align:center"><?php echo _("Player") ?></h2>
|
||||
<div style="clear:both"></div>
|
||||
<?php echo $this->player_error_msg; ?>
|
||||
<?php echo $this->player_form; ?>
|
||||
|
||||
</form>
|
||||
</div>
|
|
@ -0,0 +1,29 @@
|
|||
<div id="weekly-schedule-widget" class="prefpanel ui-widget simple-formblock clearfix padded-strong ">
|
||||
|
||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
|
||||
<h2 style="text-align:center"><?php echo _("Weekly Schedule") ?></h2>
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<div id="weekly-schedule-widget-error">
|
||||
<?php echo $this->weekly_schedule_error_msg; ?>
|
||||
</div>
|
||||
<h3 style="float:left"><?php echo _("Preview:") ?></h3>
|
||||
<fieldset class="padded">
|
||||
<div id="weekly-schedule-widget-preview" <?php if (isset($this->weekly_schedule_error_msg)) echo "style=display:none"; ?>>
|
||||
<!-- <label><?php echo _("Preview:") ?></label> -->
|
||||
<div class="schedule_iframe_wrapper">
|
||||
<iframe id="schedule_iframe" height="400px" width="550px" scrolling="no" frameborder="0" src="<?php echo Application_Common_HTTPHelper::getStationUrl()."embed/weekly-program"?>"></iframe>
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<label><?php echo _("Embeddable code:") ?><br><br></label>
|
||||
<textarea style="width:98%" rows="3" readonly="readonly"><iframe height="400px" width="550px" scrolling="no" frameborder="0" src="<?php echo Application_Common_HTTPHelper::getStationUrl()."embed/weekly-program"?>"></iframe>
|
||||
</textarea>
|
||||
<div><p>
|
||||
<?php echo _("Copy this code and paste it into your website's HTML to embed the weekly schedule in your site. Adjust the height and width attributes to your desired size.") ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
0
legacy/application/views/scripts/error/denied.phtml
Normal file
0
legacy/application/views/scripts/error/denied.phtml
Normal file
17
legacy/application/views/scripts/error/error-400.phtml
Normal file
17
legacy/application/views/scripts/error/error-400.phtml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo _("An error has occurred.") ?></title>
|
||||
<?php echo $this->headLink(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-content" id="error-400">
|
||||
<h2><?php echo _("Bad Request!")?></h2>
|
||||
<p><?php echo _("The requested action is not supported!")?></p>
|
||||
<div class="button-bar">
|
||||
<a class="toggle-button" href="<?php echo $this->helpUrl; ?>"><?php echo _("Help") ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
17
legacy/application/views/scripts/error/error-403.phtml
Normal file
17
legacy/application/views/scripts/error/error-403.phtml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo _("An error has occurred.") ?></title>
|
||||
<?php echo $this->headLink(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-content" id="error-403">
|
||||
<h2><?php echo _("Access Denied!")?></h2>
|
||||
<p><?php echo _("You do not have permission to access this page!")?></p>
|
||||
<div class="button-bar">
|
||||
<a class="toggle-button" href="<?php echo $this->helpUrl; ?>"><?php echo _("Help") ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
17
legacy/application/views/scripts/error/error-404.phtml
Normal file
17
legacy/application/views/scripts/error/error-404.phtml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo _("An error has occurred.") ?></title>
|
||||
<?php echo $this->headLink(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-content" id="error-404">
|
||||
<h2><?php echo _("Page not found!")?></h2>
|
||||
<p><?php echo _("We couldn't find the page you were looking for.")?></p>
|
||||
<div class="button-bar">
|
||||
<a class="toggle-button" href="<?php echo $this->helpUrl; ?>"><?php echo _("Help") ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
17
legacy/application/views/scripts/error/error-500.phtml
Normal file
17
legacy/application/views/scripts/error/error-500.phtml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo _("An error has occurred.") ?></title>
|
||||
<?php echo $this->headLink(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-content" id="error-500">
|
||||
<h2><?php echo _("Oops!")?></h2>
|
||||
<p><?php echo _("Something went wrong!")?></p>
|
||||
<div class="button-bar">
|
||||
<a class="toggle-button" href="<?php echo $this->helpUrl; ?>"><?php echo _("Help") ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
18
legacy/application/views/scripts/error/error.phtml
Normal file
18
legacy/application/views/scripts/error/error.phtml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN";
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo _("An error has occurred.") ?></title>
|
||||
<?php echo $this->headLink(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-content">
|
||||
<h2><?php echo $this->escape($this->message)?></h2>
|
||||
<p><?php echo _("Looks like the page you were looking for doesn't exist!")?></p>
|
||||
<div class="button-bar">
|
||||
<a class="toggle-button" href="<?php echo $this->baseUrl('dashboard/help'); ?>"><?php echo _("Help") ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||
<fieldset>
|
||||
<dl>
|
||||
<dt id="add_show_has_autoplaylist_label">
|
||||
<label for="add_show_has_autoplaylist_label">
|
||||
<?php echo $this->element->getElement('add_show_has_autoplaylist')->getLabel()?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $this->element->getElement('add_show_has_autoplaylist') ?>
|
||||
<span class="show_autoplaylist_help_icon" aria-describedby="ui-tooltip-2"></span>
|
||||
</dd>
|
||||
|
||||
<div id="add_show_playlist_dropdown">
|
||||
<p><?php echo _("Autoloading playlists' contents are added to shows one hour before the show airs. <a target='_blank' href='http://libretime.org/docs/playlists'>More information</a>"); ?></p>
|
||||
<dt id="add_show_autoplaylist_id">
|
||||
<label for="add_show_autoplaylist_id" class="required">
|
||||
<?php echo $this->element->getElement('add_show_autoplaylist_id')->getLabel()?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $this->element->getElement('add_show_autoplaylist_id') ?>
|
||||
</div>
|
||||
<div id="add_show_autoplaylist_repeat">
|
||||
<dt id="add_show_autoplaylist_repeat_label">
|
||||
<label for="add_show_autoplaylist_repeat_label">
|
||||
<?php echo $this->element->getElement('add_show_autoplaylist_repeat')->getLabel()?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $this->element->getElement('add_show_autoplaylist_repeat') ?>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
15
legacy/application/views/scripts/form/add-show-block.phtml
Normal file
15
legacy/application/views/scripts/form/add-show-block.phtml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<dt id="<?php echo $this->element->getName() ?>-label" class="<?php echo $this->class ?>">
|
||||
<?php echo $this->formLabel($this->element->getName(),
|
||||
$this->element->getLabel()) ?>
|
||||
</dt>
|
||||
<dd id="<?php echo $this->element->getName() ?>-element" class="<?php echo $this->class ?>">
|
||||
<?php echo $this->{$this->element->helper}(
|
||||
$this->element->getName(),
|
||||
$this->element->getValue(),
|
||||
$this->element->getAttribs()
|
||||
) ?>
|
||||
<?php if($this->element->hasErrors()) {
|
||||
echo $this->formErrors($this->element->getMessages());
|
||||
}
|
||||
?>
|
||||
</dd>
|
|
@ -0,0 +1,20 @@
|
|||
<fieldset>
|
||||
<dl>
|
||||
<?php echo $this->element->getElement('cb_airtime_auth')->render(); ?>
|
||||
<?php echo $this->element->getElement('cb_custom_auth')->render(); ?>
|
||||
<div id="custom_auth_div">
|
||||
<?php echo $this->element->getElement('custom_username')->render(); ?>
|
||||
<?php echo $this->element->getElement('custom_password')->render(); ?>
|
||||
</div>
|
||||
<fieldset id="add-show-show-source">
|
||||
<legend><?php echo _("Show Source") ?></legend>
|
||||
<p class="input-settings-inline-p">
|
||||
<?php echo _("DJs can use these settings to connect with compatible software and broadcast live during this show. Assign a DJ below.") ?>
|
||||
</p>
|
||||
<?php echo $this->element->getElement("show_source_host")->render() ?>
|
||||
<?php echo $this->element->getElement("show_source_port")->render() ?>
|
||||
<?php echo $this->element->getElement("show_source_mount")->render() ?>
|
||||
</fieldset>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<fieldset id="add_show_rebroadcast_absolute">
|
||||
<dl>
|
||||
<dt id="add_show_hosts_rebroadcast_day-label" class="block-display">
|
||||
<label for="add_show_rebroadcast_day" class="optional"><?php echo _("Choose Days:"); ?></label>
|
||||
</dt>
|
||||
<dd id="add_show_rebroadcast_day-element" class="block-display clearfix">
|
||||
<ul class="formrow-repeat">
|
||||
<?php for($i=1; $i<=10; $i++): ?>
|
||||
<li <?php if(($i > 1)
|
||||
&& ($this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->getValue() == ""
|
||||
&& $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->getValue() == "")){echo 'style=display:none';} ?>>
|
||||
<?php echo $this->element->getElement('add_show_rebroadcast_date_absolute_'.$i) ?>
|
||||
<span class="inline-text">@</span>
|
||||
<?php echo $this->element->getElement('add_show_rebroadcast_time_absolute_'.$i) ?>
|
||||
<?php if($i > 1): ?>
|
||||
<a class="ui-button ui-button-icon-only ui-widget ui-state-default" id="remove_rebroadcast_absolute_<?php echo $i ?>">
|
||||
<span class="ui-icon ui-icon-closethick"></span>
|
||||
<span class="ui-button-text"><?php echo _("Remove") ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if(($this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->hasErrors())
|
||||
|| ($this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->hasErrors())) : ?>
|
||||
<ul class='errors'>
|
||||
<?php $errors = array_merge(
|
||||
$this->element->getElement('add_show_rebroadcast_date_absolute_'.$i)->getMessages(),
|
||||
$this->element->getElement('add_show_rebroadcast_time_absolute_'.$i)->getMessages()
|
||||
);
|
||||
?>
|
||||
|
||||
<?php foreach($errors as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endfor; ?>
|
||||
</ul>
|
||||
<a class="ui-button ui-button-icon-only ui-widget ui-state-default add_absolute_rebroadcast_day">
|
||||
<span class="ui-icon ui-icon-plusthick"></span>
|
||||
<span class="ui-button-text"><?php echo _("Add") ?></span>
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,45 @@
|
|||
<fieldset id="add_show_rebroadcast_relative">
|
||||
<dl>
|
||||
<dt id="add_show_hosts_rebroadcast_repeat_day-label" class="block-display">
|
||||
<label for="add_show_rebroadcast_repeat_day" class="optional"><?php echo _("Repeat Days:"); ?></label>
|
||||
</dt>
|
||||
<dd id="add_show_rebroadcast_repeat_day-element" class="block-display clearfix">
|
||||
<ul class="formrow-repeat">
|
||||
<?php for($i=1; $i<=10; $i++): ?>
|
||||
<li <?php if(($i > 1)
|
||||
&& ($this->element->getElement('add_show_rebroadcast_date_'.$i)->getValue() == ""
|
||||
&& $this->element->getElement('add_show_rebroadcast_time_'.$i)->getValue() == "")){echo 'style=display:none';} ?>>
|
||||
<?php echo $this->element->getElement('add_show_rebroadcast_date_'.$i) ?>
|
||||
<span class="inline-text">@</span>
|
||||
<?php echo $this->element->getElement('add_show_rebroadcast_time_'.$i) ?>
|
||||
<?php if($i > 1): ?>
|
||||
<a class="ui-button ui-button-icon-only ui-widget ui-state-default" id="remove_rebroadcast_<?php echo $i ?>">
|
||||
<span class="ui-icon ui-icon-closethick"></span>
|
||||
<span class="ui-button-text"><?php echo _("Remove") ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if(($this->element->getElement('add_show_rebroadcast_date_'.$i)->hasErrors())
|
||||
|| ($this->element->getElement('add_show_rebroadcast_time_'.$i)->hasErrors())) : ?>
|
||||
<ul class='errors'>
|
||||
<?php $errors = array_merge(
|
||||
$this->element->getElement('add_show_rebroadcast_date_'.$i)->getMessages(),
|
||||
$this->element->getElement('add_show_rebroadcast_time_'.$i)->getMessages()
|
||||
);
|
||||
?>
|
||||
|
||||
<?php foreach($errors as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
|
||||
<?php endfor; ?>
|
||||
</ul>
|
||||
<a class="ui-button ui-button-icon-only ui-widget ui-state-default add_absolute_rebroadcast_day">
|
||||
<span class="ui-icon ui-icon-plusthick"></span>
|
||||
<span class="ui-button-text"><?php echo _("Add") ?></span>
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
13
legacy/application/views/scripts/form/add-show-style.phtml
Normal file
13
legacy/application/views/scripts/form/add-show-style.phtml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<dt id="<?php echo $this->element->getName() ?>-label" class="<?php echo $this->class ?>">
|
||||
<?php echo $this->formLabel($this->element->getName(),
|
||||
$this->element->getLabel()) ?>
|
||||
</dt>
|
||||
<dd id="<?php echo $this->element->getName() ?>-element">
|
||||
<?php echo $this->{$this->element->helper}(
|
||||
$this->element->getName(),
|
||||
$this->element->getValue(),
|
||||
$this->element->getAttribs()
|
||||
) ?>
|
||||
|
||||
<?php if($this->element->hasErrors()) { echo $this->formErrors($this->element->getMessages());} ?>
|
||||
</dd>
|
90
legacy/application/views/scripts/form/add-show-when.phtml
Normal file
90
legacy/application/views/scripts/form/add-show-when.phtml
Normal file
|
@ -0,0 +1,90 @@
|
|||
<fieldset>
|
||||
<dl>
|
||||
<dt id="add_show_start_now-label">
|
||||
<label for="add_show_start_now">
|
||||
<?php echo $this->element->getElement('add_show_start_now')->getLabel()?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $this->element->getElement('add_show_start_now') ?>
|
||||
</dd>
|
||||
|
||||
|
||||
<dt id="add_show_start_date-label">
|
||||
<label for="add_show_start_date" class="required">
|
||||
<?php //echo $this->element->getElement('add_show_start_date')->getLabel()?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd>
|
||||
<?php echo $this->element->getElement('add_show_start_date') ?>
|
||||
<?php echo $this->element->getElement('add_show_start_time') ?>
|
||||
</dd>
|
||||
<?php if($this->element->getElement('add_show_start_date')->hasErrors() || $this->element->getElement('add_show_start_time')->hasErrors()){ ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('add_show_start_date')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
<?php foreach($this->element->getElement('add_show_start_time')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<dt id="add_show_end_date_no_repeat-label">
|
||||
<label for="add_show_end_date_no_repeat" class="required">
|
||||
<?php echo $this->element->getElement('add_show_end_date_no_repeat')->getLabel()?>
|
||||
</label>
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
<?php echo $this->element->getElement('add_show_end_date_no_repeat') ?>
|
||||
<?php echo $this->element->getElement('add_show_end_time') ?>
|
||||
</dd>
|
||||
<?php if($this->element->getElement('add_show_end_date_no_repeat')->hasErrors() || $this->element->getElement('add_show_end_time')->hasErrors()){ ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('add_show_end_date_no_repeat')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
<?php foreach($this->element->getElement('add_show_end_time')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
<dt id="add_show_duration-label">
|
||||
<label for="add_show_duration" class="optional">
|
||||
<?php echo $this->element->getElement('add_show_duration')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="add_show_duration-element">
|
||||
<?php echo $this->element->getElement('add_show_duration') ?>
|
||||
<img id="icon-loader-small"/>
|
||||
</dd>
|
||||
<?php if($this->element->getElement('add_show_duration')->hasErrors()){ ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('add_show_duration')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<dt id="add_show_timezone-label">
|
||||
<label class="required">
|
||||
<?php echo $this->element->getElement('add_show_timezone')->getLabel() ?>
|
||||
<span class="show_timezone_help_icon"></span>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="add_show_timezone-element">
|
||||
<?php echo $this->element->getElement('add_show_timezone') ?>
|
||||
</dd>
|
||||
|
||||
<dt id="add_show_repeats-label">
|
||||
<label><?php echo $this->element->getElement('add_show_repeats')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="add_show_repeats-element">
|
||||
<?php echo $this->element->getElement('add_show_repeats') ?>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
9
legacy/application/views/scripts/form/daterange.phtml
Normal file
9
legacy/application/views/scripts/form/daterange.phtml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<div class="his-timerange">
|
||||
<?php echo $this->element->getElement('his_date_start') ?>
|
||||
<?php echo $this->element->getElement('his_time_start') ?>
|
||||
<?php echo $this->element->getElement('his_date_end') ?>
|
||||
<?php echo $this->element->getElement('his_time_end') ?>
|
||||
<div id="his_submit" class=" btn btn-small" title="<?php echo _("Filter History")?>">
|
||||
<i class="icon-white icon-search"></i><span><?php echo _("Filter History")?></span>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,37 @@
|
|||
<form>
|
||||
<?php $form = $this->element ?>
|
||||
|
||||
<dl class="zend_form">
|
||||
|
||||
<?php $name = "his_file_id"; ?>
|
||||
<dd id="<?php echo $name;?>-element">
|
||||
<?php echo $form->getElement($name); ?>
|
||||
</dd>
|
||||
|
||||
<?php foreach ($form->getSubForm('his_file_template') as $index=>$el): ?>
|
||||
<?php $name = $el->getName(); ?>
|
||||
|
||||
<dt id="<?php echo $name;?>-label">
|
||||
<label for="<?php echo $name;?>"><?php echo $el->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $name;?>-element">
|
||||
<?php echo $el ?>
|
||||
<?php if ($el->hasErrors()): ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($el->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<dd id="submitButtons-element">
|
||||
<?php foreach (array("his_file_save", "his_file_cancel") as $name): ?>
|
||||
<?php echo $form->getElement($name); ?>
|
||||
<?php endforeach;?>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</form>
|
|
@ -0,0 +1,86 @@
|
|||
<form>
|
||||
<?php $form = $this->element ?>
|
||||
|
||||
<dl class="zend_form">
|
||||
|
||||
<?php $formErrors = $form->getErrorMessages() ?>
|
||||
<?php if (count($formErrors) > 0) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach ($formErrors as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $name = "his_item_id"; ?>
|
||||
<dd id="<?php echo $name;?>-element">
|
||||
<?php echo $form->getElement($name); ?>
|
||||
</dd>
|
||||
|
||||
<?php foreach (array("his_item_starts", "his_item_ends") as $name): ?>
|
||||
<dt id="<?php echo $name;?>-label">
|
||||
<label for="<?php echo $name;?>"><?php echo $form->getElement($name)->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $name;?>-element">
|
||||
<div class="well">
|
||||
<div id="<?php echo $name;?>_datetimepicker" class="input-append date">
|
||||
<?php echo $form->getElement($name) ?>
|
||||
<span class="add-on">
|
||||
<i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($form->getElement($name)->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach ($form->getElement($name)->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endforeach;?>
|
||||
|
||||
<dd id="his_choose_instance">
|
||||
<div>
|
||||
<label for="<?php echo $name;?>"><?php echo _("Choose Show Instance") ?></label>
|
||||
</div>
|
||||
<div>
|
||||
<?php $select = $form->getElement("his_instance_select"); ?>
|
||||
<?php if (isset($select)): ?>
|
||||
<?php echo $select; ?>
|
||||
<?php else: ?>
|
||||
<select id="his_instance_select">
|
||||
<option value="0"><?php echo _("No Show") ?></option>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
<button class="btn" type="button" id="his_instance_retrieve"><?php echo _("Find") ?></button>
|
||||
</div>
|
||||
</dd>
|
||||
|
||||
<?php foreach ($form->getSubForm('his_item_template') as $index=>$el): ?>
|
||||
<?php $name = $el->getName(); ?>
|
||||
|
||||
<dt id="<?php echo $name;?>-label">
|
||||
<label for="<?php echo $name;?>"><?php echo $el->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $name;?>-element">
|
||||
<?php echo $el ?>
|
||||
<?php if ($el->hasErrors()): ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($el->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<dd id="submitButtons-element">
|
||||
<?php foreach (array("his_item_save", "his_item_cancel") as $name): ?>
|
||||
<?php echo $form->getElement($name); ?>
|
||||
<?php endforeach;?>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</form>
|
165
legacy/application/views/scripts/form/edit-user.phtml
Normal file
165
legacy/application/views/scripts/form/edit-user.phtml
Normal file
|
@ -0,0 +1,165 @@
|
|||
<h2><?php echo _("My Profile") ?></h2>
|
||||
<div id="current-user-container">
|
||||
|
||||
<form id="current-user-form" class="edit-user-global" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<dl class="zend_form">
|
||||
<?php echo $this->element->getElement('cu_user_id') ?>
|
||||
<dt id="cu-username-label">
|
||||
<label><?php echo $this->element->getElement('cu_login')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-username-element">
|
||||
<?php echo $this->element->getElement('cu_login') ?>
|
||||
<?php if($this->element->getElement('cu_login')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_login')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-password-label">
|
||||
<label><?php echo $this->element->getElement('cu_password')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-password-element">
|
||||
<?php echo $this->element->getElement('cu_password') ?>
|
||||
<?php if($this->element->getElement('cu_password')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_password')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-passwordVerify-label">
|
||||
<label><?php echo $this->element->getElement('cu_passwordVerify')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-passwordVerify-element">
|
||||
<?php echo $this->element->getElement('cu_passwordVerify') ?>
|
||||
<?php if($this->element->getElement('cu_passwordVerify')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_passwordVerify')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-firstname-label">
|
||||
<label><?php echo $this->element->getElement('cu_first_name')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-firstname-element">
|
||||
<?php echo $this->element->getElement('cu_first_name') ?>
|
||||
<?php if($this->element->getElement('cu_first_name')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_first_name')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-lastname-label">
|
||||
<label><?php echo $this->element->getElement('cu_last_name')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-lastname-element">
|
||||
<?php echo $this->element->getElement('cu_last_name') ?>
|
||||
<?php if($this->element->getElement('cu_last_name')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_last_name')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-email-label">
|
||||
<label><?php echo $this->element->getElement('cu_email')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-email-element">
|
||||
<?php echo $this->element->getElement('cu_email') ?>
|
||||
<?php if($this->element->getElement('cu_email')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_email')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-cell_phone-label">
|
||||
<label><?php echo $this->element->getElement('cu_cell_phone')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-cell_phone-element">
|
||||
<?php echo $this->element->getElement('cu_cell_phone') ?>
|
||||
<?php if($this->element->getElement('cu_cell_phone')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_cell_phone')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-skype-label">
|
||||
<label><?php echo $this->element->getElement('cu_skype')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-skype-element">
|
||||
<?php echo $this->element->getElement('cu_skype') ?>
|
||||
<?php if($this->element->getElement('cu_skype')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_skype')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-jabber-label">
|
||||
<label><?php echo $this->element->getElement('cu_jabber')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-jabber-element">
|
||||
<?php echo $this->element->getElement('cu_jabber') ?>
|
||||
<?php if($this->element->getElement('cu_jabber')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_jabber')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-locale-label">
|
||||
<label><?php echo $this->element->getElement('cu_locale')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-locale-element">
|
||||
<?php echo $this->element->getElement('cu_locale') ?>
|
||||
<?php if($this->element->getElement('cu_locale')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_locale')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="cu-timezone-label">
|
||||
<label><?php echo $this->element->getElement('cu_timezone')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="cu-timezone-element">
|
||||
<?php echo $this->element->getElement('cu_timezone') ?>
|
||||
<?php if($this->element->getElement('cu_timezone')->hasErrors()) : ?>
|
||||
<ul class='errors edit-user-errors'>
|
||||
<?php foreach($this->element->getElement('cu_timezone')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php echo $this->element->getElement('csrf') ?>
|
||||
</dl>
|
||||
<button type="submit" id="cu_save_user" class="btn right-floated"><?php echo _("Save")?></button>
|
||||
</form>
|
||||
</div>
|
43
legacy/application/views/scripts/form/login.phtml
Normal file
43
legacy/application/views/scripts/form/login.phtml
Normal file
|
@ -0,0 +1,43 @@
|
|||
<form enctype="application/x-www-form-urlencoded" method="post" action="">
|
||||
<dl class="zend_form">
|
||||
|
||||
<dt id="username-label">
|
||||
<label for="username" class="required">
|
||||
<?php echo $this->element->getElement('username')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="username-element">
|
||||
<?php echo $this->element->getElement('username') ?>
|
||||
</dd>
|
||||
|
||||
<dt id="password-label">
|
||||
<label for="password" class="required">
|
||||
<?php echo $this->element->getElement('password')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="password-element">
|
||||
<?php echo $this->element->getElement('password') ?>
|
||||
</dd>
|
||||
|
||||
<dt id="locale-label">
|
||||
<label for="locale" class="required">
|
||||
<?php echo $this->element->getElement('locale')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="locale-element">
|
||||
<?php echo $this->element->getElement('locale') ?>
|
||||
</dd>
|
||||
|
||||
<?php echo $this->element->getElement('csrf') ?>
|
||||
|
||||
<dt id="submit-label"> </dt>
|
||||
<dd id="submit-element">
|
||||
<?php echo $this->element->getElement('submit') ?>
|
||||
</dd>
|
||||
|
||||
<dt id="reset-label" class="hidden"> </dt>
|
||||
<dd id="reset-element" class="text-right">
|
||||
<a href="<?php echo $this->baseUrl('login/password-restore'); ?>" class="link reset"><?php echo _("Forgot your password?") ?></a>
|
||||
</dd>
|
||||
</dl>
|
||||
</form>
|
40
legacy/application/views/scripts/form/password-change.phtml
Normal file
40
legacy/application/views/scripts/form/password-change.phtml
Normal file
|
@ -0,0 +1,40 @@
|
|||
<form enctype="application/x-www-form-urlencoded" method="post" action="">
|
||||
<dl class="zend_form">
|
||||
<dt id="new-password-label">
|
||||
<label for="new-password" class="required">
|
||||
<?php echo $this->element->getElement('password')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="new-password-element">
|
||||
<?php echo $this->element->getElement('password') ?>
|
||||
</dd>
|
||||
<?php if($this->element->getElement('password')->hasErrors()): ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('password')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<dt id="confirm-password-label">
|
||||
<label for="confirm-password" class="required">
|
||||
<?php echo $this->element->getElement('password_confirm')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="confirm-password-element">
|
||||
<?php echo $this->element->getElement('password_confirm') ?>
|
||||
</dd>
|
||||
<?php if($this->element->getElement('password_confirm')->hasErrors()): ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('password_confirm')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<dt id="submit-label"> </dt>
|
||||
<dd id="submit-element">
|
||||
<?php echo $this->element->getElement('submit') ?>
|
||||
</dd>
|
||||
</dl>
|
||||
</form>
|
46
legacy/application/views/scripts/form/password-restore.phtml
Normal file
46
legacy/application/views/scripts/form/password-restore.phtml
Normal file
|
@ -0,0 +1,46 @@
|
|||
<fieldset>
|
||||
<form enctype="application/x-www-form-urlencoded" method="post" action="">
|
||||
<dl class="zend_form">
|
||||
|
||||
<p><?php echo(_("Please enter both your username and email address.")); ?></p>
|
||||
<dt id="username-label">
|
||||
<label for="username" class="required">
|
||||
<?php echo $this->element->getElement('username')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="username-element">
|
||||
<?php echo $this->element->getElement('username') ?>
|
||||
</dd>
|
||||
</dt>
|
||||
|
||||
<dt id="email-label">
|
||||
<label for="email" class="required">
|
||||
<?php echo $this->element->getElement('email')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="email-element">
|
||||
<?php echo $this->element->getElement('email') ?>
|
||||
</dd>
|
||||
<?php if ($this->element->getElement('email')->hasErrors()): ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach ($this->element->getElement('email')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
<dt id="submit-label"> </dt>
|
||||
<dd id="submit-element">
|
||||
<?php echo $this->element->getElement('submit') ?>
|
||||
</dd>
|
||||
|
||||
<dd id="cancel-element">
|
||||
|
||||
<a href="<?php echo($this->baseUrl('login')); ?>">
|
||||
<button name="cancel" type="button" class="ui-button ui-widget ui-state-default ui-button-text-only center"><?php echo(_("Back")); ?></button>
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</form>
|
||||
</fieldset>
|
||||
|
70
legacy/application/views/scripts/form/player.phtml
Normal file
70
legacy/application/views/scripts/form/player.phtml
Normal file
|
@ -0,0 +1,70 @@
|
|||
<style type="text/css">
|
||||
|
||||
.player-title {
|
||||
width: 70px;
|
||||
border-style: none
|
||||
float: left;
|
||||
}
|
||||
|
||||
.preview-label {
|
||||
line-height: 60px;
|
||||
border-style: none
|
||||
float: left;
|
||||
font-size: 20px;
|
||||
color: #fff
|
||||
}
|
||||
|
||||
</style>
|
||||
<fieldset class="padded">
|
||||
<dl class="zend_form">
|
||||
|
||||
<?php echo $this->element->getElement('player_preview_label')->renderLabel(); ?>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<div class="player-preview">
|
||||
<?php echo $this->element->getElement('player_embed_src')->getValue(); ?>
|
||||
</div>
|
||||
|
||||
<div id="player_instructions">
|
||||
<?php echo _("Customize the player by configuring the options below. When you are done,
|
||||
copy the embeddable code below and paste it into your website's HTML.") ?>
|
||||
</div>
|
||||
|
||||
<?php echo $this->element->getElement('player_title')->render(); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_stream_mode')->render(); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_stream_url'); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_embed_src')->render(); ?>
|
||||
|
||||
<?php //echo $this->element->getElement('player_display_track_metadata'); ?>
|
||||
|
||||
<table id="player_compatibility_chart" style="text-align:center; position:relative; top:40px;">
|
||||
<th colspan="5" style="text-align:center"><?php echo _("Stream Compatibility") ?></th>
|
||||
<tr>
|
||||
<td colspan="3"><?php echo _("Desktop") ?></td>
|
||||
<td colspan="2"><?php echo _("Mobile") ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Firefox</td>
|
||||
<td>Chrome</td>
|
||||
<td>Internet Explorer</td>
|
||||
<td>Android 5 - Chrome</td>
|
||||
<td>iOS 7 - Safari</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo _("Yes (Flash)") ?></td>
|
||||
<td><?php echo _("Yes (Flash)") ?></td>
|
||||
<td><?php echo _("Yes (Flash)") ?></td>
|
||||
<td><?php echo _("MP3/OGG* only") ?></td>
|
||||
<td><?php echo _("MP3/AAC only") ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" style="text-align:left"><?php echo _("* Chrome on Android is known to take about 4 seconds to buffer a 128 kbps MP3 stream. Lower bitrates take longer to buffer.") ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
21
legacy/application/views/scripts/form/preferences.phtml
Normal file
21
legacy/application/views/scripts/form/preferences.phtml
Normal file
|
@ -0,0 +1,21 @@
|
|||
<form method="<?php echo $this->element->getMethod() ?>" enctype="multipart/form-data">
|
||||
<?php echo $this->element->getElement('csrf') ?>
|
||||
|
||||
<?php echo $this->element->getSubform('preferences_general') ?>
|
||||
|
||||
<h3 class="collapsible-header" id="tunein-pref-heading"><span class="arrow-icon"></span><?php echo _("TuneIn Settings"); ?></h3>
|
||||
<div class="collapsible-content" id="tunein-settings">
|
||||
<?php echo $this->element->getSubform('preferences_tunein') ?>
|
||||
</div>
|
||||
|
||||
<!-- Hide the 'dangerous settings' by default -->
|
||||
<h3 class="collapsible-header closed" id="dangerous-heading"><span class="arrow-icon"></span><?php echo _("Dangerous Options") ?></h3>
|
||||
<div class="collapsible-content" id="dangerous-settings" style="display:none;">
|
||||
<?php echo $this->element->getSubform('preferences_danger') ?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<?php echo $this->element->submit->render() ?>
|
||||
|
||||
</form>
|
|
@ -0,0 +1,13 @@
|
|||
<fieldset class="padded">
|
||||
<dl class="zend_form">
|
||||
|
||||
<div class="warning" style="margin-bottom: 10px;">
|
||||
<p class="warning-label">
|
||||
<?php echo _("<strong>Warning:</strong> These functions will have <strong>permanent and lasting effects</strong> on your Airtime station. Think carefully before using them!") ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php echo $this->element->getElement('clear_library')->render() ?>
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,5 @@
|
|||
<fieldset class="padded">
|
||||
<dl class="zend_form">
|
||||
<!-- Enable System Email option -->
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,52 @@
|
|||
<fieldset class="padded">
|
||||
<dl class="zend_form">
|
||||
|
||||
<?php echo $this->element->getElement('stationName')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDescription')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationLogo')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationLogoRemove')->render() ?>
|
||||
|
||||
<!-- <button id="logo-remove-btn" value="Remove" class="btn">Remove</button>-->
|
||||
|
||||
<div id="Logo-img-container">
|
||||
<?php
|
||||
$logoImg = $this->element->getView()->logoImg;
|
||||
$src = "data:image/png;base64,".$logoImg;
|
||||
?>
|
||||
<img onError="this.onerror = '';this.style.visibility='hidden';$('#logo-remove-btn').hide();$('[id^=stationLogoRemove]').each(function(i,v){v.style.width=v.style.height=v.style.margin=v.style.padding='0px';});" id="logo-img" onload='/*resizeImg(this, 450, 450);*/' src="<?php echo $src ?>" />
|
||||
</div>
|
||||
|
||||
<?php echo $this->element->getElement('locale')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('timezone')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('weekStartDay')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('tracktypeDefault')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDefaultFadeIn')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDefaultFadeOut')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('stationDefaultCrossfadeDuration')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('introPlaylistSelect')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('outroPlaylistSelect')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('podcastAlbumOverride')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('podcastAutoSmartblock')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('featurePreviewMode')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('thirdPartyApi')->render() ?>
|
||||
<?php echo $this->element->getElement('allowedCorsUrls')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('radioPageLoginButton')->renderViewHelper() ?>
|
||||
<?php echo $this->element->getElement('radioPageLoginButton')->renderLabel() ?>
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,47 @@
|
|||
<h3><?php echo _("Live Broadcasting") ?></h3>
|
||||
<fieldset class="padded stream-setting-global">
|
||||
<dl class="zend_form">
|
||||
<?php echo $this->element->getElement('auto_transition')->render() ?>
|
||||
<span class="icecast_metadata_help_icon" id="auto_transition_help"></span>
|
||||
<?php echo $this->element->getElement('auto_switch')->render() ?>
|
||||
<span class="icecast_metadata_help_icon" id="auto_switch_help"></span>
|
||||
<?php echo $this->element->getElement('transition_fade')->render() ?>
|
||||
|
||||
<fieldset class="padded stream-setting-global" style="margin-top: 15px">
|
||||
<legend><?php echo _("Master Source") ?></legend>
|
||||
<p class="input-settings-inline-p">
|
||||
<?php echo _("Use these settings in your broadcasting software to stream live at any time.") ?>
|
||||
</p>
|
||||
<?php echo $this->element->getElement('master_username')->render() ?>
|
||||
<span class="master_username_help_icon"></span>
|
||||
<?php echo $this->element->getElement('master_password')->render() ?>
|
||||
<span id="stream_url"><?php echo $this->element->getElement("master_source_host")->render() ?>
|
||||
<a href=# id="connection_url_override" style="font-size: 12px;"><?php echo _("Override") ?></a>
|
||||
<span class="override_help_icon"></span></br>
|
||||
<div id="master_dj_connection_url_actions" style="display:none">
|
||||
<a href=# id="ok" style="font-size: 12px;"><?php echo _("OK") ?></a> <a href=# id="reset" style="font-size: 12px;"><?php echo _("RESET"); ?></a>
|
||||
</div>
|
||||
</span>
|
||||
<?php echo $this->element->getElement("master_source_port")->render() ?>
|
||||
<?php echo $this->element->getElement("master_source_mount")->render() ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="padded stream-setting-global" style="margin-top: 15px">
|
||||
<legend><?php echo _("Show Source") ?></legend>
|
||||
<p class="input-settings-inline-p">
|
||||
<?php echo _("DJs can use these settings in their broadcasting software to broadcast live only during shows assigned to them.") ?>
|
||||
</p>
|
||||
<span id="stream_url">
|
||||
<?php echo $this->element->getElement("show_source_host")->render() ?>
|
||||
<a href=# id="connection_url_override" style="font-size: 12px;"><?php echo _("Override") ?></a>
|
||||
<span class="override_help_icon"></span>
|
||||
</br>
|
||||
<div id="live_dj_connection_url_actions" style="display:none; float:left">
|
||||
<a href=# id="ok" style="font-size: 12px;"><?php echo _("OK") ?></a> <a href=# id="reset" style="font-size: 12px;"><?php echo _("RESET"); ?></a>
|
||||
</div>
|
||||
</span>
|
||||
<?php echo $this->element->getElement("show_source_port")->render() ?>
|
||||
<?php echo $this->element->getElement("show_source_mount")->render() ?>
|
||||
</fieldset>
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,18 @@
|
|||
<fieldset class="padded">
|
||||
<dl class="zend_form">
|
||||
|
||||
<?php if($this->element->getElement("enable_tunein")->hasErrors()) {
|
||||
echo $this->element->getElement('enable_tunein')->renderErrors();
|
||||
}
|
||||
?>
|
||||
<?php echo $this->element->getElement('enable_tunein')->renderViewHelper() ?>
|
||||
<?php echo $this->element->getElement('enable_tunein')->renderLabel() ?>
|
||||
|
||||
<?php echo $this->element->getElement('tunein_station_id')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('tunein_partner_id')->render() ?>
|
||||
|
||||
<?php echo $this->element->getElement('tunein_partner_key')->render() ?>
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
|
@ -0,0 +1,55 @@
|
|||
<fieldset class="padded" id="watched-folder-section">
|
||||
<dl class="zend_form">
|
||||
|
||||
<dt id="storageFolder-label" class="block-display">
|
||||
<label class="required" for="storageFolder"><?php echo $this->element->getElement('storageFolder')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="storageFolder-element" class="block-display">
|
||||
<?php echo $this->element->getElement('storageFolder') ?>
|
||||
<input id="storageFolder-selection" type="button" value="<?php echo _("Choose folder")?>"></input>
|
||||
<input id="storageFolder-ok" type="button" value="<?php echo _("Set")?>"></input>
|
||||
<?php if($this->element->getElement('storageFolder')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('storageFolder')->getMessages() as $error): ?>
|
||||
<li><?php echo $this->escape($error); ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dd class="block-display selected-item"><strong><?php echo _("Current Import Folder:"); ?></strong><?php $stor = Application_Model_MusicDir::getStorDir(); echo $stor->getDirectory(); ?></dd>
|
||||
|
||||
<dt id="watchedFolder-label" class="block-display">
|
||||
<label class="required" for="watchedFolder"><?php echo $this->element->getElement('watchedFolder')->getLabel() ?></label>
|
||||
|
||||
</dt>
|
||||
<dd id="watchedFolder-element" class="block-display">
|
||||
<?php echo $this->element->getElement('watchedFolder') ?>
|
||||
<input id="watchedFolder-selection" type="button" value="<?php echo _("Choose folder")?>"></input>
|
||||
<input id="watchedFolder-ok" type="button" value="<?php echo _("Add")?>"></input>
|
||||
<?php if($this->element->getElement('watchedFolder')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('watchedFolder')->getMessages() as $error): ?>
|
||||
<li><?php echo $this->escape($error); ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php $watched_dirs = Application_Model_MusicDir::getWatchedDirs(null, true); ?>
|
||||
|
||||
<?php if (count($watched_dirs) > 0): ?>
|
||||
<?php foreach($watched_dirs as $watched_dir): ?>
|
||||
<dd class="block-display selected-item">
|
||||
<?php echo ($watched_dir->getExistsFlag())?"":"<span class='ui-icon-alert'><img src='/css/images/warning-icon.png'></span>"?><span id="folderPath" style="display:block; width:350px"><?php echo htmlspecialchars($watched_dir->getDirectory());?></span></span>
|
||||
<span title="<?php echo sprintf(_("Rescan watched directory (This is useful if it is network mount and may be out of sync with %s)"), PRODUCT_NAME)?>" class="ui-icon ui-icon-refresh"></span>
|
||||
<span title="<?php echo _("Remove watched directory")?>" class="ui-icon ui-icon-close"></span>
|
||||
</dd>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<dd class="block-display selected-item">
|
||||
<span><?php echo _("You are not watching any media folders."); ?></span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<div id="lang-timezone-popup" class="dialogPopup register-dialog" title="<?php echo sprintf(_("Welcome to %s!"), SAAS_PRODUCT_BRANDING_NAME); ?>" style="display: none;">
|
||||
<form id="lang-timezone-form" method="post" action="/setup/setup-language-timezone">
|
||||
<fieldset>
|
||||
<dl class="zend_form">
|
||||
<?php echo $this->element->getElement('csrf') ?>
|
||||
|
||||
<?php echo $this->element->getElement('setup_language')->render(); ?>
|
||||
|
||||
<?php echo $this->element->getElement('setup_timezone')->render(); ?>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<p style="margin-bottom: 0px; text-align: center;"><?php echo _("You can change these later in your preferences and user settings.");?></p>
|
||||
|
||||
</form>
|
||||
</div>
|
16
legacy/application/views/scripts/form/showbuilder.phtml
Normal file
16
legacy/application/views/scripts/form/showbuilder.phtml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="sb-options-form">
|
||||
<?php echo $this->element->getElement('sb_date_start'); ?>
|
||||
<?php echo $this->element->getElement('sb_time_start'); ?>
|
||||
<?php echo $this->element->getElement('sb_date_end'); ?>
|
||||
<?php echo $this->element->getElement('sb_time_end'); ?>
|
||||
<a id="sb_submit" class="btn btn-small" href="#" title="Display shows in the specified date and time range">
|
||||
<i class="icon-white icon-search"></i><span><?php echo _("Find Shows") ?></span>
|
||||
</a>
|
||||
|
||||
<?php echo $this->element->getElement('sb_show_filter') ?>
|
||||
|
||||
<!-- --><?php //if ($this->element->getElement('sb_my_shows')):?>
|
||||
<!-- <label>--><?php //echo $this->element->getElement('sb_my_shows')->getLabel(); ?><!--</label>-->
|
||||
<!-- --><?php //echo $this->element->getElement('sb_my_shows'); ?>
|
||||
<!-- --><?php //endif;?>
|
||||
</div>
|
151
legacy/application/views/scripts/form/smart-block-criteria.phtml
Normal file
151
legacy/application/views/scripts/form/smart-block-criteria.phtml
Normal file
|
@ -0,0 +1,151 @@
|
|||
<form class="smart-block-form" method="post" action="">
|
||||
<dl class='zend_form search-criteria'>
|
||||
<div id='sp-success' class='success' style='display:none'></div>
|
||||
<dt><label><?php echo(_("Search Criteria:"));?></label></dt>
|
||||
<dd id='sp_criteria-element' class='criteria-element'>
|
||||
<?php for ($i = 0; $i < $this->criteriasLength; $i++) {
|
||||
// modRowMap holds the number of modifier rows for each criteria element
|
||||
// i.e. if we have 'Album contains 1' and 'Album contains 2' the modRowMap
|
||||
// for Album is 2
|
||||
?>
|
||||
<?php for ($j = 0; $j < $this->modRowMap[$i]; $j++) {
|
||||
// determine if logic label should be 'and' or 'or'
|
||||
if ($this->modRowMap[$i] > 1 && $j != $this->modRowMap[$i]-1) $logicLabel = _('or');
|
||||
else $logicLabel = _('and');
|
||||
|
||||
$disabled = $this->element->getElement("sp_criteria_field_".$i."_".$j)->getAttrib('disabled') == 'disabled'?true:false;
|
||||
// determine if the next row is disabled and only display the logic label if it isn't
|
||||
if ($j == $this->modRowMap[$i]-1 && $i < 25) {
|
||||
$n = $i+1;
|
||||
$nextIndex = $n."_0";
|
||||
} elseif ($j+1 <= $this->modRowMap[$i]-1) {
|
||||
$n = $j+1;
|
||||
$nextIndex = $i."_".$n;
|
||||
|
||||
}
|
||||
$nextDisabled = $this->element->getElement("sp_criteria_field_".$nextIndex)->getAttrib('disabled') == 'disabled'?true:false;
|
||||
?>
|
||||
<div <?php if (/*($i > 0) && */ $disabled) {
|
||||
echo 'style="display:none"';
|
||||
}?> class="search-row-<?php echo $logicLabel ?>">
|
||||
<?php echo $this->element->getElement("sp_criteria_field_".$i."_".$j) ?>
|
||||
<?php echo $this->element->getElement("sp_criteria_modifier_".$i."_".$j) /* @todo finish this */?>
|
||||
|
||||
<?php echo $this->element->getElement("sp_criteria_value_".$i."_".$j) ?>
|
||||
<span class='sp_text_font' id="datetime_select" <?php echo $this->element->getElement("sp_criteria_datetime_select_".$i."_".$j)->getAttrib("disabled") == "disabled"?'style="display:none;"':""?>><?php echo $this->element->getElement('sp_criteria_datetime_select_'.$i."_".$j) ?><?php echo _(" ago "); ?></span>
|
||||
|
||||
<a <?php if ($disabled) { echo 'style=display:none'; } ?> class='modifier_add_link' id='modifier_add_<?php echo $i ?>'>
|
||||
+ <?php echo(_("New Modifier")); ?>
|
||||
</a>
|
||||
|
||||
<span class='sp_text_font' id="extra_criteria" <?php echo $this->element->getElement("sp_criteria_extra_".$i."_".$j)->getAttrib("disabled") == "disabled"?'style="display:none;"':""?>><?php echo _(" to "); ?><?php echo $this->element->getElement('sp_criteria_extra_'.$i."_".$j) ?></span>
|
||||
<span class='sp_text_font' id="extra_datetime_select" <?php echo $this->element->getElement("sp_criteria_extra_datetime_select_".$i."_".$j)->getAttrib("disabled") == "disabled"?'style="display:none;"':""?>><?php echo $this->element->getElement('sp_criteria_extra_datetime_select_'.$i."_".$j) ?><?php echo _(" ago "); ?></span>
|
||||
|
||||
<a style='margin-right:3px' class='btn btn-small btn-danger' id='criteria_remove_<?php echo $i ?>'>
|
||||
<i class='icon-white icon-remove spl-no-r-margin'></i>
|
||||
</a>
|
||||
<span class='db-logic-label' <?php if ($nextDisabled) echo 'style="display:none"';?>>
|
||||
<?php echo $logicLabel;?>
|
||||
</span>
|
||||
|
||||
<?php if($this->element->getElement("sp_criteria_field_".$i."_".$j)->hasErrors()) : ?>
|
||||
<?php foreach($this->element->getElement("sp_criteria_field_".$i."_".$j)->getMessages() as $error): ?>
|
||||
<span class='errors sp-errors'>
|
||||
<?php echo $error; ?>
|
||||
</span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
<a class='btn btn-small btn-new' id='criteria_add'><i class='icon-white icon-plus'></i><?php echo(_("New Criteria")); ?></a>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
<label class='sp_text_font'><?php echo $this->element->getElement('sp_limit_value')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id='sp_limit-element'>
|
||||
<?php echo $this->element->getElement('sp_limit_value')?>
|
||||
<?php echo $this->element->getElement('sp_limit_options') ?>
|
||||
<?php if($this->element->getElement("sp_limit_value")->hasErrors()) : ?>
|
||||
<?php foreach($this->element->getElement("sp_limit_value")->getMessages() as $error): ?>
|
||||
<span class='errors sp-errors'>
|
||||
<?php echo $error; ?>
|
||||
</span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<div class="collapsible-header"><span class="arrow-icon"></span><?php echo _("Advanced options"); ?></div>
|
||||
<div class="smart-block-advanced">
|
||||
<dl>
|
||||
<dt>
|
||||
<label class='sp-label'>
|
||||
<?php echo $this->element->getElement('sp_type')->getLabel() ?>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id='sp_type-element'>
|
||||
<?php $i=0;
|
||||
$value = $this->element->getElement('sp_type')->getValue();
|
||||
foreach ($this->element->getElement('sp_type')->getMultiOptions() as $radio) : ?>
|
||||
|
||||
<label class='sp-label' for='sp_type-<?php echo $i?>'>
|
||||
<input type="radio" value="<?php echo $i ?>" id="sp_type-<?php echo $i ?>" name="sp_type" <?php if($i == $value){echo 'checked="checked"';}?> ><?php echo $radio ?>
|
||||
</label>
|
||||
<?php $i = $i + 1; ?>
|
||||
<?php endforeach; ?>
|
||||
<span class='playlist_type_help_icon'></span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
<label class='sp_text_font'><?php echo $this->element->getElement('sp_repeat_tracks')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id='sp_repeat_tracks-element'>
|
||||
<?php echo $this->element->getElement('sp_repeat_tracks')?>
|
||||
<?php if($this->element->getElement("sp_repeat_tracks")->hasErrors()) : ?>
|
||||
<?php foreach($this->element->getElement("sp_repeat_tracks")->getMessages() as $error): ?>
|
||||
<span class='errors sp-errors'>
|
||||
<?php echo $error; ?>
|
||||
</span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<span class='repeat_tracks_help_icon'></span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
<label class='sp_text_font'><?php echo $this->element->getElement('sp_overflow_tracks')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id='sp_overflow_tracks-element'>
|
||||
<?php echo $this->element->getElement('sp_overflow_tracks')?>
|
||||
<?php if($this->element->getElement("sp_overflow_tracks")->hasErrors()) : ?>
|
||||
<?php foreach($this->element->getElement("sp_overflow_tracks")->getMessages() as $error): ?>
|
||||
<span class='errors sp-errors'>
|
||||
<?php echo $error; ?>
|
||||
</span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<span class='overflow_tracks_help_icon'></span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>
|
||||
<label class='sp_text_font'><?php echo $this->element->getElement('sp_sort_options')->getLabel();?></label>
|
||||
</dt>
|
||||
<dd id='sp_sort-element'>
|
||||
<?php echo $this->element->getElement('sp_sort_options') ?>
|
||||
<?php if($this->element->getElement("sp_sort_options")->hasErrors()) : ?>
|
||||
<?php foreach($this->element->getElement("sp_sort_options")->getMessages() as $error): ?>
|
||||
<span class='errors sp-errors'>
|
||||
<?php echo $error; ?>
|
||||
</span>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</form>
|
222
legacy/application/views/scripts/form/stream-setting-form.phtml
Normal file
222
legacy/application/views/scripts/form/stream-setting-form.phtml
Normal file
|
@ -0,0 +1,222 @@
|
|||
<?php
|
||||
$s_name = "s".$this->stream_number;
|
||||
?>
|
||||
<h3 class="collapsible-header <?php echo $this->enabled == 0?"closed":""?>"><span class="arrow-icon"></span><?php echo _("Stream "); ?><?php echo $this->stream_number?></h3>
|
||||
<div class="stream-setting-content" <?php echo $this->enabled == 0?'style="display: none;':''?> id="<?php echo $s_name?>-config">
|
||||
<fieldset class="padded">
|
||||
<dl class="zend_form clearfix">
|
||||
<dd id="<?php echo $s_name?>Liquidsoap-error-msg-element" class="liquidsoap_status">
|
||||
<?php echo $this->liquidsoap_error_msg?>
|
||||
</dd>
|
||||
<dt id="<?php echo $s_name?>Enabled-label">
|
||||
<label for="<?php echo $s_name?>Enabled"><?php echo $this->element->getElement('enable')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $s_name?>Enabled-element">
|
||||
<?php echo $this->element->getElement('enable')?>
|
||||
</dd>
|
||||
|
||||
<dt id="<?php echo $s_name?>Mobile-label">
|
||||
<label for="<?php echo $s_name?>Mobile"><?php echo $this->element->getElement('mobile')->getLabel() ?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $s_name?>Mobile-element">
|
||||
<?php echo $this->element->getElement('mobile')?>
|
||||
</dd>
|
||||
|
||||
<dt id="<?php echo $s_name?>Type-label">
|
||||
<label for="<?php echo $s_name?>Type"><?php echo $this->element->getElement('type')->getLabel()?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $s_name?>Type-element">
|
||||
<?php echo $this->element->getElement('type')?>
|
||||
<span class='stream_type_help_icon'></span>
|
||||
</dd>
|
||||
|
||||
<dt id="<?php echo $s_name?>Bitrate-label">
|
||||
<label for="<?php echo $s_name?>Bitrate"><?php echo $this->element->getElement('bitrate')->getLabel()?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $s_name?>Bitrate-element">
|
||||
<?php echo $this->element->getElement('bitrate')?>
|
||||
</dd>
|
||||
<dt id="outputServer-label">
|
||||
<label for="outputServer"><?php echo $this->element->getElement('host')->getLabel()?><span class="info-text-small">
|
||||
<?php echo _("(Required)")?></span> :</label>
|
||||
</dt>
|
||||
<dd id="outputServer-element">
|
||||
<?php echo $this->element->getElement('host')?>
|
||||
<?php if($this->element->getElement('host')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('host')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="outputPort-label">
|
||||
<label for="outputPort"><?php echo $this->element->getElement('port')->getLabel()?><span class="info-text-small">
|
||||
<?php echo _("(Required)")?></span> :</label>
|
||||
</dt>
|
||||
<dd id="outputPort-element">
|
||||
<?php echo $this->element->getElement('port')?>
|
||||
<?php if($this->element->getElement('port')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('port')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="<?php echo $s_name?>Output-label">
|
||||
<label for="<?php echo $s_name?>Output"><?php echo $this->element->getElement('output')->getLabel()?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $s_name?>Output-element">
|
||||
<?php echo $this->element->getElement('output')?>
|
||||
</dd>
|
||||
|
||||
<dt id="<?php echo $s_name?>Channels-label">
|
||||
<label for="<?php echo $s_name?>Channels"><?php echo $this->element->getElement('channels')->getLabel()?></label>
|
||||
</dt>
|
||||
<dd id="<?php echo $s_name?>Channels-element">
|
||||
<?php echo $this->element->getElement('channels')?>
|
||||
</dd>
|
||||
|
||||
<fieldset class="padded top-margin display_field toggle closed" id="output_setting">
|
||||
<legend style="cursor: pointer;">
|
||||
<span class="ui-icon ui-icon-triangle-2-n-s"></span>
|
||||
<?php echo _("Additional Options")?>
|
||||
</legend>
|
||||
<dl class="zend_form">
|
||||
<dt id="outputUser-label">
|
||||
<label for="outputUser"><?php echo $this->element->getElement('user')->getLabel()?> :
|
||||
<span class='stream_username_help_icon'></span>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="outputUser-element">
|
||||
<?php echo $this->element->getElement('user')?>
|
||||
<?php if($this->element->getElement('user')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('user')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="outputPassword-label">
|
||||
<label class="optional" for="outputPassword"><?php echo $this->element->getElement('pass')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="outputPassword-element" class="clearfix">
|
||||
<?php echo $this->element->getElement('pass')?>
|
||||
<?php if($this->element->getElement('pass')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('pass')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="adminUser-label">
|
||||
<label for="outputUser"><?php echo $this->element->getElement('admin_user')->getLabel()?> :
|
||||
<span class='admin_username_help_icon'></span>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="adminUser-element">
|
||||
<?php echo $this->element->getElement('admin_user')?>
|
||||
<?php if($this->element->getElement('admin_user')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('admin_user')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="adminPassword-label">
|
||||
<label class="optional" for="outputPassword"><?php echo $this->element->getElement('admin_pass')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="adminPassword-element" class="clearfix">
|
||||
<?php echo $this->element->getElement('admin_pass')?>
|
||||
<?php if($this->element->getElement('admin_pass')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('admin_pass')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt class="block-display info-block">
|
||||
<?php echo _("The following info will be displayed to listeners in their media player:")?>
|
||||
</dt>
|
||||
<dt id="stationName-label">
|
||||
<label for="stationName"><?php echo $this->element->getElement('name')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="stationName-element" class="clearfix">
|
||||
<?php echo $this->element->getElement('name')?>
|
||||
<?php if($this->element->getElement('name')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('name')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="stationDescription-label">
|
||||
<label for="stationDescription"><?php echo $this->element->getElement('description')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="stationDescription-element" class="clearfix">
|
||||
<?php echo $this->element->getElement('description')?>
|
||||
<?php if($this->element->getElement('description')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('description')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="stationURL-label">
|
||||
<label for="stationURL"><?php echo $this->element->getElement('url')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="stationURL-element" class="clearfix">
|
||||
<?php echo $this->element->getElement('url')?>
|
||||
<span class="info-text-small"><?php echo _("(Your radio station website)")?></span>
|
||||
<?php if($this->element->getElement('url')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('url')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="outputGenre-label">
|
||||
<label for="outputGenre"><?php echo $this->element->getElement('genre')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="outputGenre-element">
|
||||
<?php echo $this->element->getElement('genre')?>
|
||||
<?php if($this->element->getElement('genre')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('genre')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="outputMountpoint-label">
|
||||
<label for="outputMountpoint"><?php echo $this->element->getElement('mount')->getLabel()?> :</label>
|
||||
</dt>
|
||||
<dd id="outputMountpoint-element">
|
||||
<?php echo $this->element->getElement('mount')?>
|
||||
<?php if($this->element->getElement('mount')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->element->getElement('mount')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<dt id="outputStreamURL-label">
|
||||
<label for="outputStreamURL"><?php echo _("Stream URL: "); ?></label>
|
||||
</dt>
|
||||
<dd id="outputStreamURL-element">
|
||||
<span id="stream_url" class="static_text"></span>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</div>
|
0
legacy/application/views/scripts/index/display.phtml
Normal file
0
legacy/application/views/scripts/index/display.phtml
Normal file
358
legacy/application/views/scripts/index/index.phtml
Normal file
358
legacy/application/views/scripts/index/index.phtml
Normal file
|
@ -0,0 +1,358 @@
|
|||
<script language="JavaScript">
|
||||
function autoResize(id){
|
||||
var newheight;
|
||||
var newwidth;
|
||||
|
||||
if(document.getElementById){
|
||||
newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
|
||||
// Hack to get height in Firefox
|
||||
if (newheight == 0) newheight = newheight = document.getElementById(id).contentWindow.document.documentElement.scrollHeight;
|
||||
newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
|
||||
}
|
||||
document.getElementById(id).height= (newheight) + "px";
|
||||
document.getElementById(id).width= (newwidth) + "px";
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<div class="bck_cover"></div>
|
||||
|
||||
<?php if ($this->stationLogo === DEFAULT_LOGO_PLACEHOLDER) {
|
||||
echo "<a href='#' class='logo'><img src='".DEFAULT_LOGO_FILE."'></a>";
|
||||
} else {
|
||||
echo "<a href='#' class='logo'><img src='data:image/png;base64," . $this->stationLogo . "'></a>";
|
||||
} ?>
|
||||
|
||||
<?php if ($this->displayLoginButton): ?>
|
||||
<div class='login-btn'>
|
||||
<a href='/login' target='_parent'>
|
||||
<span><?php echo _('Login'); ?></span>
|
||||
<span class='login-img'></span>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="tab-1" class="schedule tab_content current">
|
||||
<iframe onLoad="autoResize('schedule_iframe');" id="schedule_iframe" height="300px" scrolling="yes" frameborder="0" src="/embed/weekly-program?style=premium"></iframe>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="tab-2" class="about_us tab_content">
|
||||
<h1><?php echo $this->escape($this->stationName) ?></h1>
|
||||
<p><?php echo $this->escape($this->stationDescription) ?></p>
|
||||
</div>
|
||||
|
||||
<div id="tab-3" class="login tab_content">
|
||||
<h2>Login</h2>
|
||||
<form action="demo_form.asp">
|
||||
<input type="text" name="FirstName" value="username"><br>
|
||||
<input type="text" name="Password" value="password"><br>
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($this->displayRssTab) {?>
|
||||
<div id="tab-4" class="podcast tab_content">
|
||||
<div class="rss-title-wrapper">
|
||||
<div id="rss-subscribe">
|
||||
<a target="_blank" href="<?php echo $this->stationPodcastRssUrl ?>" class="rss_icon"><span><?php echo _("Subscribe") ?></span><img src="css/radio-page/img/rss.png"></a>
|
||||
</div>
|
||||
<div id="rss-title">
|
||||
<?php echo $this->podcastTitle ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="jquery_jplayer_1" class="jp-player">
|
||||
</div>
|
||||
<div class="podcast_bck">
|
||||
<div id="jp_container_1" class="jp-audio">
|
||||
<div class="jp-type-playlist">
|
||||
|
||||
<div class="current-track track-overflow"><?php echo _("Now Playing:") ?><span class="track-overflow"></span></div>
|
||||
<div class="jp-gui jp-interface">
|
||||
<div class="playbar playbar-buttons">
|
||||
<ul class="jp-controls rss-buttons">
|
||||
<li class="ui-corner-all jp-play">
|
||||
<span class="icon-play icon-white" tabindex="1"><?php /*echo _("play") */?></span>
|
||||
</li>
|
||||
|
||||
<li class="ui-corner-all jp-pause">
|
||||
<span class="icon-pause icon-white" tabindex="1"><?php /*echo _("pause") */?></span>
|
||||
</li>
|
||||
<li class="ui-corner-all jp-stop">
|
||||
<span class="icon-stop icon-white" tabindex="1"><?php /*echo _("stop") */?></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="playbar playbar-progress">
|
||||
<div class="jp-time-block">
|
||||
<div class="jp-progress">
|
||||
<div class="jp-seek-bar">
|
||||
<div class="jp-play-bar"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="jp-time-holder">
|
||||
<div class="jp-current-time"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="playbar playbar-progress">
|
||||
<div class="jp-volume-block">
|
||||
<div class="jp-mute">
|
||||
<span class="ui-icon" tabindex="1" title="mute"><?php /*echo _("mute") */?></span>
|
||||
</div>
|
||||
<div class="jp-unmute">
|
||||
<span class="ui-icon" tabindex="1" title="unmute"><?php /*echo _("unmute") */?></span>
|
||||
</div>
|
||||
<div class="jp-volume-bar">
|
||||
<div class="jp-volume-bar-value"></div>
|
||||
</div>
|
||||
<div class="jp-volume-max">
|
||||
<span class="ui-icon" tabindex="1" title="max volume"><?php /*echo _("max volume") */?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="rss-tracks">
|
||||
<ul class="jp-playlist">
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<ul class="pagination">
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var playlist;
|
||||
function buildJplayerPlaylist(page, data) {
|
||||
playlist = new Array();
|
||||
var media;
|
||||
|
||||
$('.rss-tracks ul').html('');
|
||||
$.each(data[Object.keys(data)[page]], function (index, value) {
|
||||
var media_mime_supported = true;
|
||||
media = {
|
||||
title: value.CcFiles.track_title,
|
||||
artist: value.CcFiles.artist_name,
|
||||
}
|
||||
|
||||
if (value.mime == "mp3") {
|
||||
media.mp3 = value.download_url;
|
||||
} else if (value.mime == "ogg") {
|
||||
media.oga = value.download_url;
|
||||
} else if (value.mime == "m4a") {
|
||||
media.m4a = value.download_url;
|
||||
} else if (value.mime == "wav") {
|
||||
media.wav = value.download_url;
|
||||
} else {
|
||||
media_mime_supported = false;
|
||||
}
|
||||
|
||||
var podcast_title_link = "<a class='podcast_title jp-playlist-item' tabindex='0' href='#'>"+value.CcFiles.track_title+"</a>";
|
||||
var podcast_title_no_link = "<div class='podcast_title'>"+value.CcFiles.track_title+"</div>";
|
||||
var playlist_metadata = "<span class='podcast_date'>"+value.publication_date+"</span>" +
|
||||
"<span class='podcast_length'>"+value.CcFiles.length+"</span>" +
|
||||
"<span class='podcast_desc_btn'>Description</span>" +
|
||||
"<div class='podcast_desc'>"+value.CcFiles.description+"</div>";
|
||||
|
||||
if (media_mime_supported) {
|
||||
playlist.push(media);
|
||||
|
||||
var playlist_item = "<li class='jp-playlist-item'><div class='podcast_info'>";
|
||||
|
||||
playlist_item += podcast_title_link + playlist_metadata;
|
||||
|
||||
playlist_item += "<div class='podcast_btn_group'>"+
|
||||
"<span class='podcast_play podcast_action_btn'><a href='#' id='rss-track' data-rss-playlist-id='"+index+"'><img src='css/radio-page/img/podcast_play.png'></a></span>" +
|
||||
"<span class='podcast_download podcast_action_btn'><a id='rss-download-link' href='"+value.download_url+"'><img src='css/radio-page/img/podcast_download.png'></a></span> </div></div></li>";
|
||||
|
||||
} else {
|
||||
// add empty media item to playlist so indexes stay inline with the corret
|
||||
// audio and metadata
|
||||
playlist.push({});
|
||||
|
||||
var playlist_item = "<div class='playlist-item-no-preview podcast_info'>";
|
||||
playlist_item += podcast_title_no_link + playlist_metadata;
|
||||
playlist_item += "<div class='podcast_btn_group'>"+
|
||||
"<span class='podcast_no_play'><img src='css/radio-page/img/podcast_no_play.png'></span>" +
|
||||
"<span class='podcast_download podcast_action_btn'><a id='rss-download-link' href='"+value.download_url+"'><img src='css/radio-page/img/podcast_download.png'></a></span> </div></div>";
|
||||
}
|
||||
|
||||
$('.rss-tracks ul').append(playlist_item);
|
||||
|
||||
});
|
||||
|
||||
_playlist_jplayer.setPlaylist(playlist);
|
||||
|
||||
// we have to set the player to play the first track on page load
|
||||
// or else the play button won't work at first. make sure nothing
|
||||
// is playing first
|
||||
if($("#jquery_jplayer_1").data().jPlayer.status.paused == true){
|
||||
// jPlayer is not currently playing
|
||||
_playlist_jplayer.play(0);
|
||||
$("#jquery_jplayer_1").jPlayer("stop");
|
||||
}
|
||||
|
||||
$('.podcast_play').on('click', function() {
|
||||
_playlist_jplayer.play($(this).find('#rss-track').attr('data-rss-playlist-id'));
|
||||
|
||||
// we need to manually highlight the track that play was clicked on
|
||||
$(this).parents('li').addClass('jp-playlist-current');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.podcast_desc_btn').click(function(){
|
||||
$(this).toggleClass('current');
|
||||
$(this).next('.podcast_desc').slideToggle();
|
||||
});
|
||||
|
||||
} //buildPlaylist
|
||||
|
||||
_playlist_jplayer = new jPlayerPlaylist({
|
||||
jPlayer: "#jquery_jplayer_1",
|
||||
cssSelectorAncestor: "#jp_container_1"
|
||||
},[], //array of songs will be filled with below's json call
|
||||
{
|
||||
swfPath: baseUrl + "js/jplayer",
|
||||
supplied: "oga, mp3, m4v, m4a, wav",
|
||||
size: {
|
||||
width: "0px",
|
||||
height: "0px",
|
||||
cssClass: "jp-video-270p"
|
||||
},
|
||||
playlistOptions: {
|
||||
autoPlay: false,
|
||||
loopOnPrevious: false,
|
||||
shuffleOnLoop: true,
|
||||
enableRemoveControls: false,
|
||||
displayTime: 0,
|
||||
addTime: 0,
|
||||
removeTime: 0,
|
||||
shuffleTime: 0
|
||||
},
|
||||
ready: function () {
|
||||
|
||||
var episodes = <?php echo $this->episodes ?>;
|
||||
var empty_podcast_message = "<?php echo $this->emptyPodcastMessage ?>";
|
||||
|
||||
if (Object.keys(episodes).length <= 0) {
|
||||
$(".jp-playlist").append(empty_podcast_message);
|
||||
} else {
|
||||
buildJplayerPlaylist(0, episodes);
|
||||
|
||||
|
||||
// update current track metadata on player bar
|
||||
$("#jquery_jplayer_1").bind(jQuery.jPlayer.event.play, function (event) {
|
||||
var current = _playlist_jplayer.current;
|
||||
$('.current-track span').html(playlist[current].title);
|
||||
});
|
||||
|
||||
// build pagination menu
|
||||
var pages = "<li data-page-index='0'><</li>";
|
||||
$.each(episodes, function (index, value) {
|
||||
var page_number = +index + 1;
|
||||
pages += "<li data-page-index='" + index + "'>" + page_number + "</li>";
|
||||
});
|
||||
var last_index = Object.keys(episodes).length - 1;
|
||||
pages += "<li data-page-index='" + last_index + "'>></li>";
|
||||
$("ul.pagination").append(pages);
|
||||
$("ul.pagination").find("li:contains('1')").addClass('current');
|
||||
|
||||
// pagination click
|
||||
$("ul.pagination li").click(function () {
|
||||
buildJplayerPlaylist($(this).attr("data-page-index"), episodes);
|
||||
$(this).siblings().removeClass('current');
|
||||
if ($(this).text() === "<") {
|
||||
$(this).next().addClass("current");
|
||||
} else if ($(this).text() === ">") {
|
||||
$(this).prev().addClass("current");
|
||||
} else {
|
||||
$(this).addClass('current');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//turn off player bar when podcast track is played
|
||||
$("a.jp-playlist-item, .jp-play, .podcast_play").click(function () {
|
||||
if ($("#player_iframe").contents().find('.play').hasClass('pause')) {
|
||||
$("#player_iframe").contents().find('.play').click();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<iframe id="player_iframe" frameborder="0" width="100%" style="bottom:0px; left:0px; position:fixed; right:0px;" src="/embed/player?stream=auto&style=premium"></iframe>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
|
||||
$("#player_iframe").load(function () {
|
||||
|
||||
$("#player_iframe").contents().find('.bottom_bar').append("<div class='flex_spacer' data-tab='tab-1'></div>");
|
||||
$("#player_iframe").contents().find('.bottom_bar').append("<div class='schedule_btn button current' data-tab='tab-1'></div>");
|
||||
$("#player_iframe").contents().find('.bottom_bar').append("<div class='about_us_btn button' data-tab='tab-2'></div>");
|
||||
|
||||
<?php
|
||||
// Is there a better way to do this?
|
||||
if ($this->displayRssTab) {?>
|
||||
$("#player_iframe").contents().find('.bottom_bar').append("<div class='station_rss_btn button' data-tab='tab-4'></div>");
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
$("#player_iframe").contents().find('.bottom_bar .button').click(function(){
|
||||
var tab_id = $(this).attr('data-tab');
|
||||
|
||||
$("#player_iframe").contents().find('.bottom_bar .button').removeClass('current');
|
||||
$('.tab_content').removeClass('current');
|
||||
|
||||
window.scrollTo(0,0);
|
||||
$(this).addClass('current');
|
||||
$("#"+tab_id).addClass('current');
|
||||
});
|
||||
|
||||
//turn off jplayer if it's playing and someone clicks to play the player bar
|
||||
$("#player_iframe").contents().find('.play').click(function () {
|
||||
if ($('.jp-play').is(':hidden')) {
|
||||
$('.jp-pause').click();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// schedule widget tabs
|
||||
$('.tabs li').click(function(){
|
||||
var tab_id = $(this).attr('data-tab');
|
||||
|
||||
$('.tabs li').removeClass('active');
|
||||
$('.schedule_item').removeClass('active');
|
||||
|
||||
$(this).addClass('active');
|
||||
$("#"+tab_id).addClass('active');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
0
legacy/application/views/scripts/index/main.phtml
Normal file
0
legacy/application/views/scripts/index/main.phtml
Normal file
1
legacy/application/views/scripts/index/maintenance.phtml
Normal file
1
legacy/application/views/scripts/index/maintenance.phtml
Normal file
|
@ -0,0 +1 @@
|
|||
Libretime is down for maintenance. We'll be back soon!
|
0
legacy/application/views/scripts/index/newfield.phtml
Normal file
0
legacy/application/views/scripts/index/newfield.phtml
Normal file
39
legacy/application/views/scripts/library/edit-file-md.phtml
Normal file
39
legacy/application/views/scripts/library/edit-file-md.phtml
Normal file
|
@ -0,0 +1,39 @@
|
|||
<?php $get_artwork = FileDataHelper::getArtworkData($this->artwork, 256); ?>
|
||||
<div class="ui-widget ui-widget-content block-shadow simple-formblock clearfix padded-strong edit-md-dialog">
|
||||
<div class="track-edit-header" style="top:15px">
|
||||
<?php if ($this->permissionDenied) { ?> <h3><?php echo _("You do not have permission to edit this track.") ?></h3> <?php } ?>
|
||||
<?php
|
||||
/*
|
||||
if ($this->permissionDenied) {
|
||||
echo(_("Viewing "));
|
||||
} else {
|
||||
echo(_("Editing "));
|
||||
} */
|
||||
?>
|
||||
<div class="track-edit-right-wrapper">
|
||||
<div class="track-edit-right">
|
||||
<div class="inner_track_editor_title" style="width: 100%;">
|
||||
<h2 style="line-height: 26px !important;"><span class="title_obj_name"><?php echo($this->title); ?></span></h2>
|
||||
<h3 style="line-height: 2px !important;"><span class=""><?php echo($this->artist_name); ?></span></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="track-edit-left">
|
||||
<div class="artwork-upload" data-id="<?php echo($this->id); ?>">
|
||||
<div class="artwork-edit">
|
||||
<input type='file' class="artworkUpload artwork-uploaded-<?php echo($this->id); ?>" id="artworkUpload-<?php echo ($this->id); ?>" data-id="<?php echo($this->id); ?>" accept=".png, .jpg, .jpeg" />
|
||||
<label for="artworkUpload-<?php echo ($this->id); ?>"></label>
|
||||
</div>
|
||||
<div id="artwork-preview" class="artwork-preview">
|
||||
<div class="artwork-preview-<?php echo($this->id); ?>" id="artworkPreview" style="background-image: url(<?php echo $get_artwork; ?>);">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#" class="delete-artwork" data-id="<?php echo($this->id); ?>" style="font-size: 11px;">Remove</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 160px;"></div>
|
||||
<?php echo $this->form; ?>
|
||||
</div>
|
|
@ -0,0 +1,156 @@
|
|||
<?php
|
||||
//XSS exploit prevention
|
||||
foreach ($this->md as $key => &$value) {
|
||||
$value = $this->escape($value);
|
||||
}
|
||||
?>
|
||||
<?php if($this->type == "audioclip") : ?>
|
||||
<table class='library-track-md'>
|
||||
<tr><td><?php echo _("Title:"); ?></td><td><?php echo ($this->md["MDATA_KEY_TITLE"]);?></td></tr>
|
||||
<tr><td><?php echo _("Creator:"); ?></td><td><?php echo ($this->md["MDATA_KEY_CREATOR"]);?></td></tr>
|
||||
<tr><td><?php echo _("Album:"); ?></td><td><?php echo ($this->md["MDATA_KEY_SOURCE"]);?></td></tr>
|
||||
<tr><td><?php echo _("Track:"); ?></td><td><?php echo ($this->md["MDATA_KEY_TRACKNUMBER"]);?></td></tr>
|
||||
<tr><td><?php echo _("Length:"); ?></td><td><?php echo ($this->md["MDATA_KEY_DURATION"]);?></td></tr>
|
||||
<tr><td class='file-md-qtip-nowrap'><?php echo _("Sample Rate:"); ?></td><td><?php echo ($this->md["MDATA_KEY_SAMPLERATE"]);?></td></tr>
|
||||
<tr><td><?php echo _("Bit Rate:"); ?></td><td><?php echo ($this->md["MDATA_KEY_BITRATE"]);?></td></tr>
|
||||
<tr><td><?php echo _("Mood:"); ?></td><td><?php echo ($this->md["MDATA_KEY_MOOD"]);?></td></tr>
|
||||
<tr><td><?php echo _("Genre:"); ?></td><td><?php echo ($this->md["MDATA_KEY_GENRE"]);?></td></tr>
|
||||
<tr><td><?php echo _("Year:"); ?></td><td><?php echo ($this->md["MDATA_KEY_YEAR"]);?></td></tr>
|
||||
<tr><td><?php echo _("Label:"); ?></td><td><?php echo ($this->md["MDATA_KEY_LABEL"]);?></td></tr>
|
||||
<tr><td><?php echo _("BPM:"); ?></td><td><?php echo ($this->md["MDATA_KEY_BPM"]);?></td></tr>
|
||||
<tr><td><?php echo _("Composer:"); ?></td><td><?php echo ($this->md["MDATA_KEY_COMPOSER"]);?></td></tr>
|
||||
<tr><td><?php echo _("Conductor:"); ?></td><td><?php echo ($this->md["MDATA_KEY_CONDUCTOR"]);?></td></tr>
|
||||
<tr><td><?php echo _("Copyright:"); ?></td><td><?php echo ($this->md["MDATA_KEY_COPYRIGHT"]);?></td></tr>
|
||||
<tr><td><?php echo _("Isrc Number:"); ?></td><td><?php echo ($this->md["MDATA_KEY_ISRC"]);?></td></tr>
|
||||
<tr><td><?php echo _("Website:"); ?></td><td><?php echo ($this->md["MDATA_KEY_URL"]);?></td></tr>
|
||||
<tr><td><?php echo _("Artwork:"); ?></td><td><?php echo ($this->md["MDATA_KEY_ARTWORK"]);?></td></tr>
|
||||
<tr><td><?php echo _("Artwork Data:"); ?></td><td><?php echo ($this->md["MDATA_KEY_ARTWORK_DATA"]);?></td></tr>
|
||||
<tr><td><?php echo _("Language:"); ?></td><td><?php echo ($this->md["MDATA_KEY_LANGUAGE"]);?></td></tr>
|
||||
<tr><td><?php echo _("Track Type:"); ?></td><td><?php echo ($this->md["MDATA_KEY_TRACK_TYPE"]);?></td></tr>
|
||||
<tr><td class='file-md-qtip-nowrap'><?php echo _("File Path:"); ?></td><td><?php echo ($this->md["MDATA_KEY_FILEPATH"]);?></td></tr>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->type == "playlist" || $this->type == "block") : ?>
|
||||
<div class='file-md-qtip-left'>
|
||||
<span><?php echo _("Name:"); ?></span><span><?php echo ($this->md["dc:title"]);?></span><br />
|
||||
<span><?php echo _("Creator:"); ?></span><span><?php echo ($this->md["dc:creator"]);?></span><br />
|
||||
<?php if ($this->type == "block" && $this->blType == "Dynamic") { ?>
|
||||
<span><?php echo _("Length:"); ?></span><span><?php echo $this->block->getLength();?></span><br />
|
||||
<?php } else { ?>
|
||||
<span><?php echo _("Length:"); ?></span><span><?php echo ($this->md["dcterms:extent"]);?></span><br />
|
||||
<?php } ?>
|
||||
<span><?php echo _("Description:"); ?></span><span><?php echo ($this->md["dc:description"]);?></span>
|
||||
</div>
|
||||
|
||||
<?php if ($this->type == "playlist") { ?>
|
||||
<div class='file-md-qtip-legend'>
|
||||
<span class='webstream'>o</span> <span><?php echo _("Web Stream"); ?></span><br />
|
||||
<span class='dynamic'>o</span> <span><?php echo _("Dynamic Smart Block"); ?></span><br />
|
||||
<span class='static'>o</span> <span><?php echo _("Static Smart Block"); ?></span><br />
|
||||
<span>o</span> <span><?php echo _("Audio Track"); ?></span>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->type == "playlist" || ($this->type == "block" && $this->blType == "Static")) {?>
|
||||
<?php
|
||||
//XSS exploit prevention
|
||||
/*foreach ($this->contents as &$item) {
|
||||
foreach ($item as $key => &$value) {
|
||||
$value = $this->escape($value);
|
||||
}
|
||||
}*/
|
||||
?>
|
||||
<?php if ($this->type == "playlist") { ?>
|
||||
<div class='file-md-qtip-left'><span><?php echo _("Playlist Contents: "); ?></span></div>
|
||||
<?php } else { ?>
|
||||
<div class='file-md-qtip-left'><span><?php echo _("Static Smart Block Contents: "); ?></span></div>
|
||||
<?php } ?>
|
||||
<table class='library-get-file-md'>
|
||||
<?php foreach($this->contents as $row) : ?>
|
||||
<?php
|
||||
$titleMaxStrLen = 35;
|
||||
if (mb_strlen($row["track_title"], 'UTF-8') > $titleMaxStrLen) {
|
||||
$row["track_title"] = mb_substr($row["track_title"], 0, 34, 'UTF-8')."...";
|
||||
}
|
||||
$artistMaxStrLen = 22;
|
||||
if (mb_strlen($row["creator"], 'UTF-8') > $artistMaxStrLen) {
|
||||
$row["creator"] = mb_substr($row["creator"], 0, 21, 'UTF-8')."...";
|
||||
}
|
||||
?>
|
||||
<?php if ($row["type"] == 2) {
|
||||
$bl = new Application_Model_Block($row["item_id"]);
|
||||
$isStatic = $bl->isStatic(); ?>
|
||||
<tr class='file-md-qtip-playlist <?php if ($isStatic) echo 'static'; else echo 'dynamic';?>'>
|
||||
<td class='file-md-qtip-row-width-title file-md-qtip-nowrap'><?php echo $row["track_title"] ?></td>
|
||||
<td class='file-md-qtip-row-width-artist file-md-qtip-nowrap'><?php echo $row["creator"] ?></td>
|
||||
<td class='file-md-qtip-row-width-small'><?php echo $bl->getLength(); ?></td>
|
||||
</tr>
|
||||
<?php } else if ($row["type"] == 1) {?>
|
||||
<tr class='file-md-qtip-playlist webstream'>
|
||||
<td class='file-md-qtip-row-width-title file-md-qtip-nowrap'><?php echo $row["track_title"] ?></td>
|
||||
<td class='file-md-qtip-row-width-artist file-md-qtip-nowrap'><?php echo $row["creator"] ?></td>
|
||||
<td class='file-md-qtip-row-width-small'><?php echo $row["length"] ?></td>
|
||||
</tr>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td class='file-md-qtip-row-width-title file-md-qtip-nowrap'><?php echo $row["track_title"] ?></td>
|
||||
<td class='file-md-qtip-row-width-artist file-md-qtip-nowrap'><?php echo $row["creator"] ?></td>
|
||||
<td class='file-md-qtip-row-width-small'><?php echo $row["length"] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
||||
<?php } elseif ($this->blType == "Dynamic") { ?>
|
||||
<div class='file-md-qtip-left'><span><?php echo _("Dynamic Smart Block Criteria: "); ?></span></div>
|
||||
<table class='library-get-file-md table-small'>
|
||||
<?php foreach ($this->contents["crit"] as &$criterias) : ?>
|
||||
<?php foreach ($criterias as &$crit ) : ?>
|
||||
<?php
|
||||
// XSS exploit prevention
|
||||
//$crit["value"] = htmlspecialchars($crit["value"]);
|
||||
//$crit["extra"] = htmlspecialchars($crit["extra"]);
|
||||
|
||||
$valMaxStrLen = 25;
|
||||
if (strlen($crit["value"]) > $valMaxStrLen) {
|
||||
$crit["value"] = substr($crit["value"], 0, 24)."...";
|
||||
}
|
||||
$critMaxStrLen = 13;
|
||||
if (strlen($crit["display_name"]) > $critMaxStrLen) {
|
||||
$crit["display_name"] = substr($crit["display_name"], 0, 12)."...";
|
||||
}
|
||||
$modMaxStrLen = 16;
|
||||
if (strlen($crit["modifier"]) > $modMaxStrLen) {
|
||||
$crit["modifier"] = substr($crit["modifier"], 0, 15)."...";
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td class='file-md-qtip-criteria-width-small file-md-qtip-nowrap'><?php echo $crit["display_name"] ?></td>
|
||||
<td class='file-md-qtip-criteria-width-small file-md-qtip-nowrap'><?php echo $crit["modifier"] ?></td>
|
||||
<td class='file-md-qtip-criteria-width file-md-qtip-nowrap'><?php echo $crit["value"] ?>
|
||||
<?php if (isset($crit["extra"])) { ?>
|
||||
to <?php echo $crit["extra"] ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
<tr>
|
||||
<td><?php echo _("Limit to ") ?></td>
|
||||
<td><?php echo $this->contents["limit"]["value"] ?> <?php echo $this->contents["limit"]["modifier"] ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->type == "stream") : ?>
|
||||
|
||||
<div><span><?php echo _("Name:"); ?></span><span><?php echo ($this->md["name"]);?></span></div>
|
||||
<div><span><?php echo _("Length:"); ?></span><span><?php echo ($this->md["length"]);?></span></div>
|
||||
<div><span><?php echo _("Creator:"); ?></span><span><?php echo ($this->md["login"]);?></span></div>
|
||||
<div><span><?php echo _("Description:"); ?></span><span><?php echo ($this->md["description"]);?></span></div>
|
||||
<div><span><?php echo _("URL:"); ?></span><span><?php echo ($this->md["url"]);?></span></div>
|
||||
|
||||
|
||||
<?php endif; ?>
|
26
legacy/application/views/scripts/library/index.phtml
Normal file
26
legacy/application/views/scripts/library/index.phtml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<div id="library_content" class="lib-content ui-widget ui-widget-content block-shadow alpha-block padded" style="z-index:254">
|
||||
<?php echo $this->render('library/library.phtml') ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($this->showPlaylist) {
|
||||
$display = "";
|
||||
} else {
|
||||
$display = "display:none";
|
||||
}
|
||||
?>
|
||||
<div class="side_playlist pl-content ui-widget ui-widget-content block-shadow omega-block padded" style="height:697px; width:720px;<?php echo $display?>">
|
||||
<?php if ($this->type == 'block') {
|
||||
echo $this->render('playlist/smart-block.phtml');
|
||||
} else if ($this->type == 'playlist') {
|
||||
echo $this->render('playlist/playlist.phtml');
|
||||
} else if ($this->type == 'stream') {
|
||||
echo $this->render('webstream/webstream.phtml');
|
||||
} else {
|
||||
echo $this->render('webstream/webstream.phtml');
|
||||
//throw new Exception("Unrecognized type: '{$this->type}'");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
16
legacy/application/views/scripts/library/library.phtml
Normal file
16
legacy/application/views/scripts/library/library.phtml
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
<div id="import_status" class="library_import" style="display:none">
|
||||
<?php echo _("File import in progress..."); ?>
|
||||
<img src=<?php echo $baseUrl . "css/images/file_import_loader.gif"?>></img>
|
||||
</div>
|
||||
|
||||
<fieldset class="toggle closed" id="filter_options">
|
||||
<legend style="cursor: pointer;">
|
||||
<span class="ui-icon ui-icon-triangle-2-n-s"></span>
|
||||
<?php echo _("Advanced Search Options") ?>
|
||||
</legend>
|
||||
<div id="advanced_search" class="advanced_search form-horizontal"></div>
|
||||
</fieldset>
|
||||
|
||||
<table id="library_display" cellpadding="0" cellspacing="0" class="datatable">
|
||||
</table>
|
|
@ -0,0 +1,59 @@
|
|||
<div class="angular_wrapper" ng-controller="Publish">
|
||||
<div class="inner_editor_title">
|
||||
<h2>
|
||||
<?php echo _("Publishing") ?> "<span ng-bind="media.track_title" class="title_obj_name"></span>"
|
||||
</h2>
|
||||
<button ng-click="openEditDialog()" class="btn publish-edit-md"><?php echo _("Edit Metadata...") ?></button>
|
||||
</div>
|
||||
<div class="inner_editor_wrapper">
|
||||
<form class="media-metadata">
|
||||
<input ng-value="media.id" class="obj_id" type="hidden"/>
|
||||
<label class="publish-md-field"><?php echo _("Title:") ?></label>
|
||||
<input disabled ng-model="media.track_title" type="text"/>
|
||||
|
||||
<label class="publish-md-field"><?php echo _("Creator:") ?></label>
|
||||
<input disabled ng-model="media.artist_name" type="text"/>
|
||||
|
||||
<label class="publish-md-field"><?php echo _("Description:") ?></label>
|
||||
<textarea disabled ng-model="media.description"></textarea>
|
||||
<fieldset>
|
||||
<legend><?php echo _("Publish to:"); ?></legend>
|
||||
<div class="publish-sources" ng-repeat="source in sources.toPublish">
|
||||
<input ng-disabled="{{source.status == 2}}" ng-model="publishData[source.source]" type="checkbox" name="publish_sources" id="{{source.source}}">
|
||||
<label class="source-name" for="{{source.source}}">{{source.label}}</label>
|
||||
<span ng-if="source.status == 2" style="margin: auto" ng-bind-html="sourceConnectEnum[source.source]"></span>
|
||||
</div>
|
||||
<div ng-if="sources.toPublish.length == 0">
|
||||
<?php echo _("You have already published this track to all available sources!") . "<br/>"
|
||||
. _("Published tracks can be removed or updated below.") ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo _("Published on:"); ?></legend>
|
||||
<div class="published-sources" ng-repeat="source in sources.published">
|
||||
<span class="sp-checked-icon checked-icon left-floated"></span>
|
||||
<span class="source-name">{{source.label}}</span>
|
||||
<button ng-disabled="{{source.status == -1}}" class="btn btn-small btn-danger" ng-click="remove(source.source)"><?php echo _("Unpublish") ?></button>
|
||||
</div>
|
||||
<div ng-if="sources.published.length == 0">
|
||||
<?php echo _("You haven't published this track to any sources!") . "<br/>"
|
||||
. _("Check the boxes above and hit 'Publish' to publish this track to the marked sources.") ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-toolbar clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button ng-click="discard()" class="btn" type="button" name="close">
|
||||
<?php echo _("Close") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class='btn-group pull-right'>
|
||||
<button disabled="disabled" ng-click="publish()" class="btn publish-btn" title='<?php echo _("Publish") ?>' type="button">
|
||||
<?php echo _("Publish") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class='success' style='display:none'></span></div>
|
||||
</div>
|
||||
</div>
|
18
legacy/application/views/scripts/listenerstat/index.phtml
Normal file
18
legacy/application/views/scripts/listenerstat/index.phtml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div id="listenerstat_content" class="alpha-block padded">
|
||||
<H2><?php echo _("Listeners")?></H2>
|
||||
<div id="flot_placeholder" style="height:300px;margin:0px 50px 0px 50px"></div>
|
||||
<div id="legend" style="width:600px;height:70px;margin:0px 50px 0px 50px"></div>
|
||||
<div id="date_form" style="float:left; margin:0px 0px">
|
||||
<h3 style="padding-left: 0px"><?php echo _("Date Range") ?></h3>
|
||||
<?php echo $this->date_form; ?>
|
||||
</div>
|
||||
<div id="errorStatus" style="float:right; width: 400px">
|
||||
<h3><?php echo _("Stream Data Collection Status")?></h3>
|
||||
<fieldset class="padded stream-setting-global">
|
||||
<?php foreach ($this->errorStatus as $k=>$v) {?>
|
||||
<div class='stream-status <?php echo ($v == 'OK')? 'status-good' : 'status-error' ?>'><p><?php echo $k?>: <?php echo $v?></p></div>
|
||||
<?php }?>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
23
legacy/application/views/scripts/listenerstat/show.phtml
Normal file
23
legacy/application/views/scripts/listenerstat/show.phtml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<div id="showlistenerstat_content" class="alpha-block padded">
|
||||
<H2><?php echo _("Listeners")?></H2>
|
||||
<div class="error_window"></div>
|
||||
<div id="date_form" style="float:left; margin:0px 0px">
|
||||
<h3 style="padding-left: 0px"><?php echo _("Date Range") ?></h3>
|
||||
<?php echo $this->date_form; ?>
|
||||
</div>
|
||||
|
||||
<table id="show_builder_table" cellpadding="0" cellspacing="0" class="datatable"></table>
|
||||
<table cellspacing="0" cellpadding="0" style="" id="show_stats_datatable" class="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo _("Show Name") ?></th>
|
||||
<th><?php echo _("Air Date") ?></th>
|
||||
<th><?php echo _("Average Listeners")?></th>
|
||||
<th><?php echo _("Maximum Number of Listeners")?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
13
legacy/application/views/scripts/login/index.phtml
Normal file
13
legacy/application/views/scripts/login/index.phtml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="login_box">
|
||||
<div class="logobox"> </div>
|
||||
<h2><?php echo _("Login") ?></h2>
|
||||
<div id="login" class="login-content clearfix">
|
||||
<?php if(isset($this->demo) && $this->demo == 1){?>
|
||||
<p style="font-weight:bold">
|
||||
<?php echo sprintf(_("Welcome to the %s demo! You can log in using the username 'admin' and the password 'admin'."), PRODUCT_NAME)?>
|
||||
</p>
|
||||
<?php }?>
|
||||
<p class="light" style='<?php echo $this->error?"color:#902d2d;font-size:11px;padding:2px 4px;background:#c6b4b4;margin-bottom:2px;border:1px solid #c83f3f;":""?>'><?php echo $this->message; ?></p>
|
||||
<?php echo $this->form; ?>
|
||||
</div>
|
||||
</div>
|
0
legacy/application/views/scripts/login/logout.phtml
Normal file
0
legacy/application/views/scripts/login/logout.phtml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<div class="login_box">
|
||||
<div class="logobox"> </div>
|
||||
<h2><?php echo _("New password") ?></h2>
|
||||
|
||||
<div id="login" class="login-content clearfix">
|
||||
<p class="light"><?php echo _("Please enter and confirm your new password in the fields below."); ?></p>
|
||||
<?php echo $this->form; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,16 @@
|
|||
<div class="login_box">
|
||||
<div class="logobox"> </div>
|
||||
<h2><?php echo _("Email Sent!") ?></h2>
|
||||
|
||||
<div id="login" class="login-content clearfix">
|
||||
<p class="light"><?php echo _("A password reset link has been sent to your email address. Please check your email and follow the instructions inside to reset your password. If you don't see the email, please check your spam folder!") ?></p>
|
||||
<br>
|
||||
<dl class="zend-form">
|
||||
<dd id="cancel-element">
|
||||
<a href="<?php echo($this->baseUrl('login')); ?>">
|
||||
<button name="cancel" type="button" class="ui-button ui-widget ui-state-default ui-button-text-only center"><?php echo(_("Back")); ?></button>
|
||||
</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,8 @@
|
|||
<div class="login_box">
|
||||
<div class="logobox"> </div>
|
||||
<h2><?php echo _("Password Reset") ?></h2>
|
||||
|
||||
<div id="login" class="login-content clearfix">
|
||||
<?php echo $this->form; ?>
|
||||
</div>
|
||||
</div>
|
45
legacy/application/views/scripts/menu.phtml
Normal file
45
legacy/application/views/scripts/menu.phtml
Normal file
|
@ -0,0 +1,45 @@
|
|||
<ol class="navigation">
|
||||
<?php foreach ($this->container as $page) : ?>
|
||||
<?php
|
||||
// Host users do not have access to the General Preferences
|
||||
// therefor we need to manually change the page parameters
|
||||
// to point to the first allowed item in the Preferences
|
||||
// which is 'My Profile' page
|
||||
$user = Application_Model_User::getCurrentUser();
|
||||
$isHost = $user->isUserType(array(UTYPE_HOST));
|
||||
if ($isHost && $page->getTitle() === 'Settings') {
|
||||
$page->set('resource', 'usersettings');
|
||||
$page->set('controller', 'user');
|
||||
$page->set('action','edit-user');
|
||||
}
|
||||
?>
|
||||
<?php if($this->navigation()->accept($page)) : ?>
|
||||
<li class="top <?php if($page->isActive(true)){echo 'active';} ?>">
|
||||
<?php if($page->hasPages()) : ?>
|
||||
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
||||
<span class="down"><?php echo $page->getClass(); echo _($page->getLabel()); ?></span>
|
||||
</a>
|
||||
<ul class="sub">
|
||||
|
||||
<?php foreach ($page->getPages() as $sub) :
|
||||
if($sub->getId() == "manage_folder"){
|
||||
continue;
|
||||
} ?>
|
||||
|
||||
<?php if($this->navigation()->accept($sub)) : ?>
|
||||
|
||||
<li>
|
||||
<a href="<?php echo $sub->getHref(); ?>" <?php echo ($sub->getTarget() != "")?"target=\"".$sub->getTarget()."\"":""; ?>><?php echo $page->getClass(); echo _($sub->getLabel()); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
||||
<span><?php echo $page->getClass(); echo _($page->getLabel()); ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
|
@ -0,0 +1,20 @@
|
|||
<div class="media_type_selector dashboard_sub_nav" data-selection-id="<?php echo MediaType::FILE ?>">
|
||||
<a href="<?php echo $subnavPrefix; ?>#tracks">
|
||||
<span class="selector-name"><i class='icon-music icon-white'></i><?php echo _("Tracks") ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="media_type_selector dashboard_sub_nav" data-selection-id="<?php echo MediaType::PLAYLIST ?>">
|
||||
<a href="<?php echo $subnavPrefix; ?>#playlists">
|
||||
<span class="selector-name"><i class='icon-list icon-white'></i><?php echo _("Playlists") ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="media_type_selector dashboard_sub_nav" data-selection-id="<?php echo MediaType::BLOCK ?>">
|
||||
<a href="<?php echo $subnavPrefix; ?>#smart-blocks">
|
||||
<span class="selector-name"><i class='icon-time icon-white'></i><?php echo _("Smart Blocks") ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="media_type_selector dashboard_sub_nav" data-selection-id="<?php echo MediaType::WEBSTREAM ?>">
|
||||
<a href="<?php echo $subnavPrefix; ?>#webstreams">
|
||||
<span class="selector-name"><i class='icon-random icon-white'></i><?php echo _("Webstreams") ?></span>
|
||||
</a>
|
||||
</div>
|
66
legacy/application/views/scripts/partialviews/header.phtml
Normal file
66
legacy/application/views/scripts/partialviews/header.phtml
Normal file
|
@ -0,0 +1,66 @@
|
|||
<div id="master-panel">
|
||||
<div class="logo-container">
|
||||
<img class="logo" src="data:image/png;base64,<?php echo Application_Model_Preference::GetStationLogo(); ?>" />
|
||||
</div>
|
||||
<div class="now-playing-artwork" id="now-playing-artwork">
|
||||
<div class="now-playing-artwork_containter" id="now-playing-artwork_containter"></div>
|
||||
</div>
|
||||
<div class="now-playing-block">
|
||||
<div class="text-row"><strong><?php echo _("Previous:"); ?></strong> <span id='previous'></span> <span id='prev-length'></span></div>
|
||||
<div class="now-playing-info song">
|
||||
<div class="time-flow"><span class="song-length" id="song-length"></span><span class="time-elapsed" id="time-elapsed"></span><span class="time-remaining" id="time-remaining"></span></div>
|
||||
<span id='current'></span></div>
|
||||
<div class="progressbar">
|
||||
<div class="progress-song" id="progress-bar" style="width:0%;"></div>
|
||||
</div>
|
||||
<div class="text-row next-song"><strong><?php echo _("Next:"); ?></strong> <span id='next'></span> <span id='next-length'></span></div>
|
||||
</div>
|
||||
<div class="show-block">
|
||||
<div class="text-row"> </div>
|
||||
<div class="now-playing-info show">
|
||||
<div class="recording-show" style="display: none;"></div>
|
||||
<span id="playlist"></span>
|
||||
<span id="show-length" class="show-length"></span>
|
||||
</div>
|
||||
<div class="progressbar">
|
||||
<div class="progress-show" id='progress-show' style="width:0%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="source-info-block">
|
||||
<h3><?php echo _("Source Streams") ?></h3>
|
||||
<ul style="padding-top: 10px;">
|
||||
<li>
|
||||
<div id="master_dj_div" class="source-label">
|
||||
<a id="master_dj" class="source-kick-button" onclick="kickSource(this)"></a>
|
||||
<?php echo _("Master Source") ?>
|
||||
</div>
|
||||
<div class="line-to-switch"></div>
|
||||
<a href="#" id="master_dj" class="source-switch-button" onclick="setSwitchListener(this);"><span><?php echo $this->master_dj_switch?></span></a>
|
||||
<div class="line-to-on-air"></div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="live_dj_div" class="source-label">
|
||||
<a id="live_dj" class="source-kick-button" onclick="kickSource(this)"></a>
|
||||
<?php echo _("Show Source")?>
|
||||
</div>
|
||||
<div class="line-to-switch"></div>
|
||||
<a href="#" id="live_dj" class="source-switch-button" onclick="setSwitchListener(this);"><span><?php echo $this->live_dj_switch?></span></a>
|
||||
<div class="line-to-on-air"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="on-air-block">
|
||||
<h3> </h3>
|
||||
<div class="on-air-info off" id="on-air-info"><?php echo _("ON AIR") ?></div>
|
||||
<a href="#" class="listen-control-button"><span><?php echo _("Listen") ?></span></a>
|
||||
</div>
|
||||
<div class="time-info-block pull-right">
|
||||
<div class="time" id="time"></div>
|
||||
<div class="personal-block">
|
||||
<a id="current-user" href=<?php echo $this->baseUrl . "/user/edit-user"?>><span class="name"><?php echo $this->escape($this->loggedInAs()); ?></span></a>
|
||||
<span>|</span>
|
||||
<a href=<?php echo $this->baseUrl . "/login/logout"?>><?php echo _("Logout")?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="jquery_jplayer_1" class="jp-jplayer" style="width:0px; height:0px;"></div>
|
|
@ -0,0 +1,5 @@
|
|||
<?php if ($this->objType == "block") { $displayText = "smart block"; } else { $displayText = $this->escape($this->objType); } ?>
|
||||
<h3>You do not have permission to edit this <?php echo $displayText; ?>.</h3>
|
||||
<input class="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"/>
|
||||
<input class='obj_type' type='hidden' value="<?php echo $this->escape($this->objType); ?>"/>
|
||||
<input type="hidden" class="playlist_name_display" contenteditable="true" value="<?php echo $this->escape($this->obj->getName()); ?>">
|
87
legacy/application/views/scripts/playlist/playlist.phtml
Normal file
87
legacy/application/views/scripts/playlist/playlist.phtml
Normal file
|
@ -0,0 +1,87 @@
|
|||
<?php
|
||||
if (isset($this->obj)) {
|
||||
$contents = $this->obj->getContents();
|
||||
$count = count($contents);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (isset($this->obj)) : ?>
|
||||
<div class="inner_editor_title">
|
||||
<H2><?php echo(_("Editing "));?>"<span class="title_obj_name"><?php if (isset($this->unsavedName)) echo $this->unsavedName;
|
||||
else echo $this->escape($this->obj->getName());?></span>"</H2>
|
||||
</div>
|
||||
<div class="inner_editor_wrapper">
|
||||
<input class="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"/>
|
||||
<input class="obj_lastMod" type="hidden" value="<?php echo $this->obj->getLastModified('U'); ?>"/>
|
||||
<input class='obj_type' type='hidden' value='playlist'/>
|
||||
|
||||
<dl class="zend_form playlist_editor">
|
||||
<dt>
|
||||
<label><?php echo(_("Name:")); ?></label>
|
||||
</dt>
|
||||
<dd>
|
||||
<input type="text" class="playlist_name_display" contenteditable="true" value="<?php echo $this->escape($this->obj->getName()); ?>">
|
||||
</dd>
|
||||
<dt id="description-label"><label for="description"><?php echo _("Description:") ?></label></dt>
|
||||
<dd id="description-element">
|
||||
<textarea cols="24" rows="3" id="description" name="description"><?php echo $this->escape($this->obj->getDescription()); ?></textarea>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<?php //echo $this->form; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ui-widget-header fg-toolbar btn-toolbar clearfix">
|
||||
<h4 class="obj_length"><?php echo($this->length); ?></h4>
|
||||
<h4 class="obj_length_label"><?php echo(_("Duration:"));?></h4>
|
||||
|
||||
<div class='btn-group'>
|
||||
<button class="btn toggle-editor-form" title='<?php echo _("Toggle Details") ?>' type="button"><span class="icon-white spl-no-r-margin icon-chevron-up"></span></button>
|
||||
</div>
|
||||
|
||||
<div class='btn-group'>
|
||||
<button class="btn" title='<?php echo _("Shuffle playlist") ?>' type="button" id="playlist_shuffle_button"><?php echo _("Shuffle") ?></button>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<button id="spl_crossfade" class="btn crossfade-main-button">
|
||||
<i class='crossfade-main-icon'></i><span class="ui-button-text"><?php echo _("Playlist crossfade") ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<button class="btn btn-danger" title='<?php echo _("Empty playlist content") ?>' type="button" id="pl-bl-clear-content"><?php echo _("Clear") ?></button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div id="crossfade_main" class="crossfade-main clearfix" style="display:none;">
|
||||
<span class="ui-icon ui-icon-closethick sp-closethick-center"></span>
|
||||
<dl id="spl_editor-main" class="inline-list">
|
||||
<dt><?php echo _("Fade in: "); ?></dt>
|
||||
<dd><input class="spl_main_fade_in playlist_main_fade_input" value="0" /><span class='spl_cue_hint'> seconds</span></dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<dt><?php echo _("Fade out: "); ?></dt>
|
||||
<dd><input class="spl_main_fade_out playlist_main_fade_input" value="0" /><span class='spl_cue_hint'> seconds</span></dd>
|
||||
<dd class="edit-error"></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<ul class="spl_sortable">
|
||||
<?php $this->contents = $contents;
|
||||
echo $this->render('playlist/update.phtml') ?>
|
||||
</ul>
|
||||
<div class="btn-toolbar clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn" type="button" id="cancel_button" name="submit"><?php echo _("Cancel") ?></button>
|
||||
</div>
|
||||
<div class='btn-group pull-right'>
|
||||
<button class="btn" title='<?php echo _("Save playlist") ?>' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||
</div>
|
||||
<div id='sp-success' class='success' style='display:none'></span></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<div><?php echo _("No open playlist") ?></div>
|
||||
<?php endif; ?>
|
21
legacy/application/views/scripts/playlist/set-cue.phtml
Normal file
21
legacy/application/views/scripts/playlist/set-cue.phtml
Normal file
|
@ -0,0 +1,21 @@
|
|||
<dl id="spl_cue_editor" class="inline-list">
|
||||
<dd data-uri="<?php echo $this->uri; ?>">
|
||||
<input type="button" class="pl-waveform-cues-btn" value="<?php echo _("Show Waveform")?>"></input>
|
||||
</dd>
|
||||
<dt><?php echo _("Cue In: "); ?><span class='spl_cue_hint'><?php echo _("(hh:mm:ss.t)")?></span></dt>
|
||||
<dd id="spl_cue_in_<?php echo $this->id; ?>" class="spl_cue_in"
|
||||
data-cue-in="<?php echo $this->cueIn; ?>"
|
||||
data-cue-sec="<?php echo $this->cueInSec; ?>">
|
||||
<span contenteditable="true" class="spl_text_input"><?php echo $this->cueIn; ?></span>
|
||||
</dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<dt><?php echo _("Cue Out: "); ?><span class='spl_cue_hint'><?php echo _("(hh:mm:ss.t)")?></span></dt>
|
||||
<dd id="spl_cue_out_<?php echo $this->id; ?>" class="spl_cue_out"
|
||||
data-cue-out="<?php echo $this->cueOut; ?>"
|
||||
data-cue-sec="<?php echo $this->cueOutSec; ?>">
|
||||
<span contenteditable="true" class="spl_text_input"><?php echo $this->cueOut; ?></span>
|
||||
</dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<dt><?php echo _("Original Length:"); ?></dt>
|
||||
<dd id="spl_original"><span><?php echo $this->origLength; ?></span></dd>
|
||||
</dl>
|
31
legacy/application/views/scripts/playlist/set-fade.phtml
Normal file
31
legacy/application/views/scripts/playlist/set-fade.phtml
Normal file
|
@ -0,0 +1,31 @@
|
|||
<dl id="spl_editor" class="inline-list">
|
||||
<dd>
|
||||
<input type="button" class="pl-waveform-fades-btn" value="<?php echo _("Show Waveform")?>"></input>
|
||||
</dd>
|
||||
<?php if ($this->item1Type == 0) {?>
|
||||
<dt><?php echo _("Fade out: "); ?><span class='spl_cue_hint'><?php echo _("(ss.t)")?></span></dt>
|
||||
<dd id="spl_fade_out_<?php echo $this->item1; ?>" class="spl_fade_out"
|
||||
data-fadeout="<?php echo $this->item1Url; ?>"
|
||||
data-cuein="<?php echo $this->cueIn1; ?>"
|
||||
data-cueout="<?php echo $this->cueOut1; ?>"
|
||||
data-length="<?php echo $this->fadeOut; ?>"
|
||||
data-type="logarithmic"
|
||||
data-item="<?php echo $this->item1; ?>">
|
||||
<span contenteditable="true" class="spl_text_input"><?php echo $this->fadeOut; ?></span>
|
||||
</dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<?php }
|
||||
if (isset($this->item2Url)) {?>
|
||||
<dt><?php echo _("Fade in: "); ?><span class='spl_cue_hint'><?php echo _("(ss.t)")?></span></dt>
|
||||
<dd id="spl_fade_in_<?php echo $this->item2; ?>" class="spl_fade_in"
|
||||
data-fadein="<?php echo $this->item2Url; ?>"
|
||||
data-offset="<?php if ($this->item1Type == 0) { echo $this->offset; } else { echo 0; } ?>"
|
||||
data-cuein="<?php echo $this->cueIn2; ?>"
|
||||
data-cueout="<?php echo $this->cueOut2; ?>" data-length="<?php echo $this->fadeIn; ?>"
|
||||
data-type="logarithmic"
|
||||
data-item="<?php echo $this->item2; ?>">
|
||||
<span contenteditable="true" class="spl_text_input"><?php echo $this->fadeIn; ?></span>
|
||||
</dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<?php }?>
|
||||
</dl>
|
99
legacy/application/views/scripts/playlist/smart-block.phtml
Normal file
99
legacy/application/views/scripts/playlist/smart-block.phtml
Normal file
|
@ -0,0 +1,99 @@
|
|||
<?php
|
||||
if (isset($this->obj)) {
|
||||
$contents = $this->obj->getContents();
|
||||
$count = count($contents);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (isset($this->obj)) : ?>
|
||||
<div class="inner_editor_title">
|
||||
<H2><?php echo(_("Editing "));?>"<span class="title_obj_name"><?php if (isset($this->unsavedName)) echo $this->unsavedName;
|
||||
else echo $this->escape($this->obj->getName());?></span>"</H2>
|
||||
</div>
|
||||
<div class="inner_editor_wrapper smart-block-form">
|
||||
<input class="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"/>
|
||||
<input class="obj_lastMod" type="hidden" value="<?php echo $this->obj->getLastModified('U'); ?>"/>
|
||||
<input class='obj_type' type='hidden' value='block'/>
|
||||
|
||||
<dl class="zend_form playlist_editor">
|
||||
<dt>
|
||||
<label><?php echo(_("Name:")); ?></label>
|
||||
</dt>
|
||||
<dd>
|
||||
<input type="text" class="playlist_name_display" contenteditable="true" value="<?php
|
||||
if (isset($this->unsavedName)) echo $this->unsavedName;
|
||||
else echo $this->escape($this->obj->getName());
|
||||
?>">
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<div class="smart-block-advanced">
|
||||
<dl>
|
||||
<dt id="description-label"><label for="description"><?php echo _("Description:") ?></label></dt>
|
||||
<dd id="description-element">
|
||||
<textarea cols="24" rows="3" id="description" name="description"><?php
|
||||
if (isset($this->unsavedDesc)) echo $this->unsavedDesc;
|
||||
else echo $this->obj->getDescription();
|
||||
?></textarea>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ui-widget-header fg-toolbar btn-toolbar clearfix">
|
||||
<h4 class="obj_length"><?php echo($this->length); ?></h4>
|
||||
<h4 class="obj_length_label"><?php echo(_("Duration:"));?></h4>
|
||||
|
||||
<div class='btn-group'>
|
||||
<button class="btn toggle-editor-form" title='<?php echo _("Toggle Details") ?>' type="button"><span class="icon-white spl-no-r-margin icon-chevron-up"></span></button>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<?php echo $this->form->getElement('generate_button');?>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<?php echo $this->form->getElement('shuffle_button');?>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<button id="spl_crossfade" class="btn crossfade-main-button">
|
||||
<i class='crossfade-main-icon'></i><span class="ui-button-text"><?php echo _("Playlist crossfade") ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<button class="btn btn-danger" title='<?php echo _("Remove all content from this smart block") ?>' type="button" id="pl-bl-clear-content"><?php echo _("Clear") ?></button>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div id="crossfade_main" class="crossfade-main clearfix" style="display:none;">
|
||||
<span class="ui-icon ui-icon-closethick"></span>
|
||||
<dl id="spl_editor-main" class="inline-list">
|
||||
<dt><?php echo _("Fade in: "); ?></dt>
|
||||
<dd>
|
||||
<input class="spl_main_fade_in playlist_main_fade_input" value="0" /><span class='spl_cue_hint'> seconds</span></dd>
|
||||
<dd class="edit-error"></dd>
|
||||
<dt><?php echo _("Fade out: "); ?></dt>
|
||||
<dd><input class="spl_main_fade_out playlist_main_fade_input" value="0" /><span class='spl_cue_hint'> seconds</span></dd></dd>
|
||||
<dd class="edit-error"></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<ul class="spl_sortable">
|
||||
<?php $this->contents = $contents;
|
||||
echo $this->render('playlist/update.phtml') ?>
|
||||
</ul>
|
||||
<div class="btn-toolbar clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button class="btn" type="button" id="cancel_button" name="submit"><?php echo _("Cancel") ?></button>
|
||||
</div>
|
||||
<div class='btn-group pull-right'>
|
||||
<button class="btn" title='Save smart block's title, description, and criteria' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||
</div>
|
||||
<div id='sp-success-saved' class='success' style='display:none'><span</div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<div><?php echo _("No smart block currently open") ?></div>
|
||||
<?php endif; ?>
|
168
legacy/application/views/scripts/playlist/update.phtml
Normal file
168
legacy/application/views/scripts/playlist/update.phtml
Normal file
|
@ -0,0 +1,168 @@
|
|||
<?php
|
||||
$items = $this->contents;
|
||||
$isSmartBlock = ($this->obj instanceof Application_Model_Block);
|
||||
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
|
||||
if ($isSmartBlock && $this->showPoolCount) { ?>
|
||||
<div class='sp_text_font sp_text_font_bold'>
|
||||
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
|
||||
<?php
|
||||
echo $this->poolCount;
|
||||
echo ngettext(" track matches your search criteria.", " tracks match your search criteria.", $this->poolCount);
|
||||
?>
|
||||
</span>
|
||||
<?php if ($this->poolCount > 0) { ?>
|
||||
<span class='checked-icon sp-checked-icon' id='sp_pool_count_icon'></span>
|
||||
<?php }
|
||||
else { ?>
|
||||
<span class='sp-warning-icon' id='sp_pool_count_icon'></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
|
||||
<?php $i = 0; ?>
|
||||
<?php if ($isSmartBlock && !($this->obj->isStatic())) {
|
||||
echo _("</br>This is only a preview of possible content generated by the smart block based upon the above criteria.");}
|
||||
?>
|
||||
<?php foreach($items as $item) :
|
||||
$staticBlock = null;
|
||||
$nextFileUrl = null;
|
||||
if ($item['type'] == 2) {
|
||||
$bl= new Application_Model_Block($item['item_id']);
|
||||
$staticBlock = $bl->isStatic();
|
||||
$fileUrl = null;
|
||||
}
|
||||
else if ($item['type'] == 1) {
|
||||
$fileUrl = null;
|
||||
}
|
||||
else if ($item['type'] == 0) {
|
||||
$audiofile = Application_Model_StoredFile::RecallById($item['item_id']);
|
||||
$fileUrl = $audiofile->getFileUrl();
|
||||
}
|
||||
|
||||
if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) {
|
||||
$nextAudiofile = Application_Model_StoredFile::RecallById($items[$i+1]['item_id']);
|
||||
$nextFileUrl = $nextAudiofile->getFileUrl();
|
||||
}
|
||||
?>
|
||||
<li class="ui-state-default" id="spl_<?php echo $item["id"] ?>" unqid="<?php echo $item["id"]; ?>">
|
||||
<div class="list-item-container">
|
||||
|
||||
<?php if ($item['type'] == 0 && $item['exists']):?>
|
||||
<div class="big_play" audioFile="<?php echo $item["id"]; ?>" data-mime-type="<?php echo $item["mime"]; ?>">
|
||||
<span class="ui-icon ui-icon-play"></span>
|
||||
</div>
|
||||
<?php elseif ($item['type'] == 1 && $item['exists']): ?>
|
||||
<div class="big_play" data-mime-type="<?php echo $item["mime"]; ?>">
|
||||
<span class="ui-icon ui-icon-play"></span>
|
||||
</div>
|
||||
<?php elseif ($item['type'] == 2 && $item['exists']): ?>
|
||||
<div class="big_play" blockId="<?php echo $item["item_id"]; ?>" blocktype="<?php echo $staticBlock?"static":"dynamic"?>">
|
||||
<span class="ui-icon ui-icon-play"></span>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="big_play ui-state-hover">
|
||||
<span class="ui-icon ui-icon-alert"></span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="text-row top">
|
||||
<span class="spl_playlength"><?php echo $item["length"] ?></span>
|
||||
<?php if ($item['type'] == 0) {?>
|
||||
<!-- <span class="spl_cue ui-state-default"></span> -->
|
||||
<?php } else if ($item['type'] == 2) {
|
||||
if ($staticBlock) {?>
|
||||
<span class="spl_block_expand close" blockId="<?php echo $item["item_id"]; ?>" id="expand_block_<?php echo $item["id"]?>">
|
||||
<span class="ui-icon ui-icon-triangle-2-n-s"></span>
|
||||
<?php echo _("Expand Static Block")?>
|
||||
</span>
|
||||
<?php } else { ?>
|
||||
<span class="spl_block_expand close" blockId="<?php echo $item["item_id"]; ?>" id="expand_block_<?php echo $item["id"]?>">
|
||||
<span class="ui-icon ui-icon-triangle-2-n-s"></span>
|
||||
<?php echo _("Expand Dynamic Block")?>
|
||||
</span>
|
||||
<?php }
|
||||
} ?>
|
||||
<span class="spl_title"><?php echo $item['track_title'] ?></span>
|
||||
</div>
|
||||
<div class="text-row">
|
||||
<span class="spl_artist"><?php echo $item['creator'] ?></span>
|
||||
<span class="spl_offset"><?php echo $item["offset"]?></span>
|
||||
</div>
|
||||
<?php //create the crossfade icon.
|
||||
if (($i < count($items) -1) && !($items[$i]['type'] == 2 && $items[$i+1]['type'])):
|
||||
?>
|
||||
<!-- <div id="fade_<?php echo $i ?>" class="spl_fade_control ui-state-default"></div> -->
|
||||
<?php endif; ?>
|
||||
<span id="remove_<?php echo $item["id"] ?>" class="ui-icon ui-icon-closethick"></span>
|
||||
</div>
|
||||
<?php if ($item['type'] == 0) {?>
|
||||
<div id="cues_<?php echo $i ?>" class="cue-edit clearfix" style="display: none">
|
||||
<?php echo $this->partial('playlist/set-cue.phtml', array(
|
||||
'id' => $item["id"],
|
||||
'cueIn' => $item['cuein'],
|
||||
'cueOut' => $item['cueout'],
|
||||
'cueInSec' => $item['cueInSec'],
|
||||
'cueOutSec' => $item['cueOutSec'],
|
||||
'uri' => $fileUrl,
|
||||
'origLength' => $item['orig_length'])); ?>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
||||
<?php //create a fade editor box
|
||||
//(fadeout of current position + fade in of next position)
|
||||
if(($i < count($items) -1) && !($items[$i]['type'] == 2 && $items[$i+1]['type'])):
|
||||
?>
|
||||
<div id="crossfade_<?php echo $i ?>-<?php echo $i+1 ?>" class="crossfade clearfix" style="display: none">
|
||||
<?php
|
||||
|
||||
$vars = array(
|
||||
'item1' => $items[$i]['id'],
|
||||
'fadeOut' => $items[$i]['fadeout'],
|
||||
'fadeIn' => $items[$i+1]['fadein'],
|
||||
'item1Type' => $items[$i]['type'],
|
||||
'cueIn1' => $items[$i]['cueInSec'],
|
||||
'cueOut1' => $items[$i]['cueOutSec'],
|
||||
'item1Url' => $fileUrl
|
||||
);
|
||||
|
||||
$item2 = array(
|
||||
'item2Url' => $nextFileUrl,
|
||||
'item2' => $items[$i+1]['id'],
|
||||
'item2Type' => $items[$i+1]['type'],
|
||||
'offset' => $items[$i]['trackSec'] - $items[$i+1]['trackoffset'],
|
||||
'cueIn2' => $items[$i+1]['cueInSec'],
|
||||
'cueOut2' => $items[$i+1]['cueOutSec']
|
||||
);
|
||||
|
||||
if (isset($nextFileUrl)) {
|
||||
$vars = $vars + $item2;
|
||||
}
|
||||
|
||||
echo $this->partial('playlist/set-fade.phtml', $vars);
|
||||
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($item['type'] == 2) {?>
|
||||
<ul style='display:none' id="block_<?php echo $item["id"]?>_info" class="smart-block-info expand-block-separate"></ul>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php $i = $i+1; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="spl_empty">
|
||||
<?php
|
||||
if ($this->obj instanceof Application_Model_Block) {
|
||||
if ($this->obj->isStatic()) {
|
||||
echo _("Choose some search criteria above and click Generate to create this playlist.");
|
||||
} else {
|
||||
echo _("A track list will be generated when you schedule this smart block into a show.");
|
||||
}
|
||||
} else {
|
||||
echo _("Drag tracks here from your library to add them to the playlist");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
|
@ -0,0 +1 @@
|
|||
<?php echo $this->form; ?>
|
26
legacy/application/views/scripts/playouthistory/index.phtml
Normal file
26
legacy/application/views/scripts/playouthistory/index.phtml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<div id="history_content" class=" alpha-block padded">
|
||||
<h2><?php echo(_("Playout History"));?></h2>
|
||||
<?php echo $this->date_form; ?>
|
||||
|
||||
<div id="his-tabs">
|
||||
<ul>
|
||||
<?php if ($this->userType != UTYPE_HOST): ?>
|
||||
<li><a href="#his-tabs-1"><?php echo _("Log Sheet"); ?></a></li>
|
||||
<li><a href="#his-tabs-2"><?php echo _("File Summary"); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<li><a href="#his-tabs-3"><?php echo _("Show Summary"); ?></a></li>
|
||||
</ul>
|
||||
<?php if ($this->userType != UTYPE_HOST): ?>
|
||||
<div id="his-tabs-1">
|
||||
<table id="history_table_list" cellpadding="0" cellspacing="0" class="datatable"></table>
|
||||
</div>
|
||||
<div id="his-tabs-2">
|
||||
<table id="history_table_aggregate" cellpadding="0" cellspacing="0" class="datatable"></table>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id="his-tabs-3">
|
||||
<div id="history_show_summary"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
|
@ -0,0 +1,3 @@
|
|||
<div id="configure_item_template" class="ui-widget ui-widget-content block-shadow alpha-block padded-strong">
|
||||
<?php echo $this->render('playouthistorytemplate/template-contents.phtml'); ?>
|
||||
</div>
|
|
@ -0,0 +1,65 @@
|
|||
<div id="history_template" class="prefpanel alpha-block padded-strong">
|
||||
<div>
|
||||
<h2><?php echo(_("Playout History Templates"));?></h2>
|
||||
|
||||
<div><h4><?php echo _("Log Sheet Templates") ?></h4></div>
|
||||
<button id="new_item_template" class="btn btn-new"><?php echo _("New Log Sheet Template") ?></button>
|
||||
<ul id="template_list">
|
||||
<?php if (count($this->template_list) == 0): ?>
|
||||
<li><?php echo _("No Log Sheet Templates") ?></li>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($this->template_list as $id=>$name): ?>
|
||||
<?php if (in_array($id, $this->configured)): ?>
|
||||
<li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>" class="template_configured">
|
||||
<a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
|
||||
<?php echo $name; ?>
|
||||
</a>
|
||||
<i class="icon icon-ok"></i>
|
||||
<?php else: ?>
|
||||
<li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>">
|
||||
<a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
|
||||
<?php echo $name; ?>
|
||||
</a>
|
||||
<a class="template_remove" href="<?php echo $this->baseUrl("Playouthistorytemplate/delete-template/id/{$id}"); ?>">
|
||||
<i class="icon icon-trash"></i>
|
||||
</a>
|
||||
<a class="template_default" href="<?php echo $this->baseUrl("Playouthistorytemplate/set-template-default/format/json/id/{$id}"); ?>">
|
||||
<?php echo _("Set Default") ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<br><br>
|
||||
<div>
|
||||
<div><h4><?php echo _("File Summary Templates") ?></h4></div>
|
||||
<button id="new_file_template" class="btn btn-new"><?php echo _("New File Summary Template") ?></button>
|
||||
<ul id="template_file">
|
||||
<?php if (count($this->template_file) == 0): ?>
|
||||
<li><?php echo _("No File Summary Templates") ?></li>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($this->template_file as $id=>$name): ?>
|
||||
<?php if (in_array($id, $this->configured)): ?>
|
||||
<li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>" class="template_configured">
|
||||
<a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
|
||||
<?php echo $name; ?>
|
||||
</a>
|
||||
<i class="icon icon-ok"></i>
|
||||
<?php else: ?>
|
||||
<li data-template="<?php echo $id; ?>" data-name="<?php echo $name; ?>">
|
||||
<a class="template_name" href="<?php echo $this->baseUrl("Playouthistorytemplate/configure-template/id/{$id}"); ?>">
|
||||
<?php echo $name; ?>
|
||||
</a>
|
||||
<a class="template_remove" href="<?php echo $this->baseUrl("Playouthistorytemplate/delete-template/id/{$id}"); ?>">
|
||||
<i class="icon icon-trash"></i>
|
||||
</a>
|
||||
<a class="template_default" href="<?php echo $this->baseUrl("Playouthistorytemplate/set-template-default/format/json/id/{$id}"); ?>">
|
||||
<?php echo _("Set Default") ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,86 @@
|
|||
<?php if ($this->template_type == Application_Service_HistoryService::TEMPLATE_TYPE_FILE): ?>
|
||||
<h4><?php echo _("Creating File Summary Template") ?></h4>
|
||||
<?php else: ?>
|
||||
<h4><?php echo _("Creating Log Sheet Template") ?></h4>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="template_name_wrap">
|
||||
<label>
|
||||
<?php echo _("Name") ?>
|
||||
<input id="template_name" type="text" value="<?php echo $this->template_name; ?>">
|
||||
</label>
|
||||
|
||||
<?php $i = 0;
|
||||
$usedFileMD = array();
|
||||
?>
|
||||
|
||||
<ul class="template_item_list">
|
||||
<?php foreach ($this->template_fields as $field): ?>
|
||||
|
||||
<?php if($field["isFileMd"]) {
|
||||
$usedFileMD[] = $field["name"];
|
||||
} ?>
|
||||
|
||||
<li id="<?php echo "field_".$i?>"
|
||||
data-id="<?php echo isset($field["id"]) ? $field["id"] : ""; ?>"
|
||||
data-name="<?php echo $field["name"]?>"
|
||||
data-label="<?php echo $field["label"]?>"
|
||||
data-type="<?php echo $field["type"]?>"
|
||||
data-filemd="<?php echo var_export($field["isFileMd"], true)?>"
|
||||
class="<?php echo ($field["isFileMd"]) ? 'field_filemd' : 'field_other' ?>">
|
||||
<span><?php echo $field["label"]?></span>
|
||||
<span><?php echo $field["type"]?></span>
|
||||
<?php if(!in_array($field["name"], $this->required_fields)): ?>
|
||||
<span class="template_item_remove">
|
||||
<i class="icon icon-trash"></i>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php $i++; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="add_more">
|
||||
|
||||
<p><?php echo _("Add more elements") ?>:</p>
|
||||
|
||||
<ul class="template_file_md">
|
||||
<?php foreach ($this->fileMD as $md): ?>
|
||||
|
||||
<?php if(in_array($md["name"], $usedFileMD)) {
|
||||
continue;
|
||||
} ?>
|
||||
|
||||
<li id="<?php echo "md_".$md["name"]?>"
|
||||
data-name="<?php echo $md["name"]?>"
|
||||
data-type="<?php echo $md["type"]?>"
|
||||
data-label="<?php echo $md["label"]?>">
|
||||
<?php echo $md["label"] ?>
|
||||
<a class="field_add" href="#"><i class="icon icon-plus"></i></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php if ($this->template_type !== Application_Service_HistoryService::TEMPLATE_TYPE_FILE): ?>
|
||||
<div class="template_item_add">
|
||||
<input type="text" placeholder="<?php echo _("Add New Field") ?>">
|
||||
<select>
|
||||
<?php foreach ($this->fields as $field): ?>
|
||||
<option value="<?php echo $field; ?>"><?php echo _($field); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<button class="btn">
|
||||
<i class="icon-white icon-plus"></i>
|
||||
<?php echo _("Add") ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php if (!in_array($this->template_id, $this->configured)): ?>
|
||||
<button id="template_set_default" data-template="<?php echo $this->template_id; ?>" class="btn"><?php echo _("Set Default Template") ?></button>
|
||||
<?php endif; ?>
|
||||
<button id="template_item_save" data-template="<?php echo $this->template_id; ?>" class="btn"><?php echo _("Save") ?></button>
|
||||
</div>
|
118
legacy/application/views/scripts/plupload/index.phtml
Normal file
118
legacy/application/views/scripts/plupload/index.phtml
Normal file
|
@ -0,0 +1,118 @@
|
|||
<style type="text/css">
|
||||
#plupload_files input[type="file"] {
|
||||
font-size: 200px !important;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var LIBRETIME_PLUPLOAD_MAX_FILE_SIZE = "<?php echo $this->uploadMaxSize; ?>";
|
||||
</script>
|
||||
<div id="upload_form" class="lib-content ui-widget ui-widget-content block-shadow padded content-pane wide-panel<?php if ($this->quotaLimitReached) { ?> hidden <?php } ?>">
|
||||
<?php
|
||||
$partitions = Application_Model_Systemstatus::GetDiskInfo();
|
||||
$status = new StdClass;
|
||||
$disk = $partitions[0];
|
||||
$used = $disk->totalSpace - $disk->totalFreeSpace;
|
||||
$total = $disk->totalSpace;
|
||||
$tracktypes = Application_Model_Tracktype::getTracktypes();
|
||||
|
||||
array_multisort(array_map(function ($element) {
|
||||
return $element['type_name'];
|
||||
}, $tracktypes), SORT_ASC, $tracktypes);
|
||||
|
||||
if (count($tracktypes) == 0) {
|
||||
$hasTracktypes = "disabled";
|
||||
$showTracktypesDropdown = false;
|
||||
} else {
|
||||
$hasTracktypes = "";
|
||||
$showTracktypesDropdown = true;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (isset($_COOKIE['tt_upload'])) {
|
||||
$ttsaved = $_COOKIE['tt_upload'];
|
||||
} else {
|
||||
// Use default track type
|
||||
$ttsaved = Application_Model_Preference::GetTrackTypeDefault();
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="upload_wrapper">
|
||||
|
||||
<div id="track_type_selection">
|
||||
<form>
|
||||
<?php
|
||||
if ($showTracktypesDropdown != false) { ?>
|
||||
<select id="select_type" class="form-control" <?php echo $hasTracktypes; ?>>
|
||||
<?php
|
||||
echo "<option value=''>Select Track Type</option>";
|
||||
foreach ($tracktypes as $key => $tt) {
|
||||
$selected = "";
|
||||
if ($ttsaved == $tt['code']) {
|
||||
$selected = "selected";
|
||||
}
|
||||
$code = $tt['code'];
|
||||
$typename = $tt['type_name'];
|
||||
echo "<option value='$code' $selected>$typename</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($showTracktypesDropdown) {
|
||||
$ttTitle = "";
|
||||
foreach ($tracktypes as $key => $tt) {
|
||||
if ($ttsaved == $tt['code']) {
|
||||
$ttTitle = $tt['type_name'];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<H2><?php echo _("Upload") ?> <span id="upload_type" <?php echo ($showTracktypesDropdown && $ttTitle != "") ? 'style="color:#ff611f"' : "" ?>>
|
||||
<?php echo ($showTracktypesDropdown && $ttTitle != "") ? $ttTitle : "Tracks"; ?></span></H2>
|
||||
<form action="/rest/media" method="post" id="add-media-dropzone" class="dropzone dz-clickable">
|
||||
<?php echo $this->form->getElement('csrf') ?>
|
||||
<div class="dz-message">
|
||||
<?php echo _("Drop files here or click to browse your computer.") ?>
|
||||
</div>
|
||||
</form>
|
||||
<!--
|
||||
<div id="filelist">Your browser doesn't have Flash, Silverlight or HTML5 support.</div>
|
||||
<br />
|
||||
|
||||
<div id="container">
|
||||
<a id="pickfiles" href="javascript:;">[Select files]</a>
|
||||
<a id="uploadfiles" href="javascript:;">[Upload files]</a>
|
||||
</div>
|
||||
-->
|
||||
<div id="uploads_disk_usage">
|
||||
<div style="padding-bottom: 2px;"><?php echo _("Storage") ?></div>
|
||||
<div class="disk_usage_progress_bar"></div>
|
||||
<div class="disk_usage_percent_in_use"><?php echo sprintf("%01.1f%% ", $used / $total * 100) . _("in use") ?></div>
|
||||
<div class="disk_usage_used" style="width:<?php echo sprintf("%01.1f%%", min(100, $used / $total * 100)) ?>;"></div>
|
||||
|
||||
<div style="margin-top: 17px; font-size: 12px;"><?php echo sprintf(_("%01.1fGB of %01.1fGB"), $used / pow(2, 30), $total / pow(2, 30)); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="plupload_error">
|
||||
<table></table>
|
||||
</div>
|
||||
|
||||
<div id="recent_uploads_wrapper" class="lib-content ui-widget ui-widget-content block-shadow content-pane wide-panel">
|
||||
<div id="recent_uploads" class="outer-datatable-wrapper padded">
|
||||
<div id="recent_uploads_filter">
|
||||
<form>
|
||||
<input type="radio" name="upload_status" id="upload_status_all" checked /><label for="upload_status_all"><?php echo _("All") ?></label>
|
||||
<input type="radio" name="upload_status" id="upload_status_failed" /><label for="upload_status_failed"><?php echo _("Failed") ?></label>
|
||||
<input type="radio" name="upload_status" id="upload_status_pending" /><label for="upload_status_pending"><?php echo _("Pending") ?></label>
|
||||
</form>
|
||||
</div>
|
||||
<H2><?php echo _("Recent Uploads") ?></H2>
|
||||
<table id="recent_uploads_table" class="datatable lib-content ui-widget ui-widget-content block-shadow" cellpadding="0" cellspacing="0"></table>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
0
legacy/application/views/scripts/plupload/upload.phtml
Normal file
0
legacy/application/views/scripts/plupload/upload.phtml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: asantoni
|
||||
* Date: 17/11/15
|
||||
* Time: 4:31 PM
|
||||
*/
|
||||
?>
|
||||
|
||||
<div class="content-pane" style="width: 100%">
|
||||
<?php require(__DIR__."/featureupgrade.phtml"); ?>
|
||||
|
||||
</div>
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: asantoni
|
||||
* Date: 17/11/15
|
||||
* Time: 4:31 PM
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php require(__DIR__."/featureupgrade.phtml"); ?>
|
||||
|
||||
<div class="angular_wrapper" ng-controller="Publish">
|
||||
|
||||
<div class="btn-toolbar clearfix" style="position: absolute; bottom: 4px; right: 4px">
|
||||
<div class="btn-group pull-right">
|
||||
<button ng-click="discard()" class="btn" type="button" name="close">
|
||||
<?php echo _("Close") ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
51
legacy/application/views/scripts/podcast/podcast.phtml
Normal file
51
legacy/application/views/scripts/podcast/podcast.phtml
Normal file
|
@ -0,0 +1,51 @@
|
|||
<div class="angular_wrapper" ng-controller="Podcast">
|
||||
<div class="inner_editor_title">
|
||||
<h2>
|
||||
<?php echo _("Editing ") ?>"<span ng-bind="podcast.title" class="title_obj_name"></span>"
|
||||
</h2>
|
||||
</div>
|
||||
<div class="inner_editor_wrapper">
|
||||
<form class="podcast-metadata">
|
||||
<input ng-value="podcast.id" class="obj_id" type="hidden"/>
|
||||
<div class="podcast-metadata-row">
|
||||
<label for="podcast_name"><?php echo _("Podcast Name: ") ?></label>
|
||||
<input name="podcast_name" type="text" ng-model="podcast.title" value={{podcast.title}} >
|
||||
</div>
|
||||
<div class="podcast-metadata-row">
|
||||
<label for="podcast_url"><?php echo _("Podcast URL: ") ?></label>
|
||||
<a href="{{podcast.url}}" target="_blank" class="podcast-url">{{podcast.url}}</a>
|
||||
</div>
|
||||
<div class="podcast-metadata-row">
|
||||
<label for="podcast_auto_ingest"><?php echo _("Download latest episodes:") ?></label>
|
||||
<div>
|
||||
<input name="podcast_auto_ingest" id="podcast_auto_ingest" ng-model="podcast.auto_ingest" type="checkbox"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="podcast-metadata-row" >
|
||||
<label><?php echo _("Scheduling:") ?></label>
|
||||
<div>
|
||||
<button ng-click="createSmartblock()" class="btn" type="button" name="smartblock">
|
||||
<?php echo _("Generate Smartblock and Playlist") ?>
|
||||
</button>
|
||||
<div class='pc-sb-success success' style='display:none'>"{{podcast.title}}" <br> <?php echo _("Smartblock and Playlist generated") ?></span></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="datatable podcast_episodes" cellpadding="0" cellspacing="0"></table>
|
||||
|
||||
<div class="btn-toolbar clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button ng-click="discard()" class="btn" type="button" name="cancel">
|
||||
<?php echo _("Cancel") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class='btn-group pull-right'>
|
||||
<button ng-click="savePodcast()" class="btn" title='<?php echo _("Save podcast") ?>' type="button">
|
||||
<?php echo _("Save") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class='pc-save-success success' style='display:none'></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,22 @@
|
|||
<div id="podcast_url_dialog">
|
||||
<form id="podcast_url_form" name="podcast_url_form" style="margin-top: 10px;">
|
||||
<?php echo $this->csrf ?>
|
||||
<table style="padding: 0;">
|
||||
<tr>
|
||||
<td style="padding-top: 7px; vertical-align: top">
|
||||
<label for="podcast_url_field">
|
||||
<?php echo _("RSS Feed URL:"); ?>
|
||||
</label>
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
<input id="podcast_url_field" type="url" name="url" size="40" style="margin-left: 10px; margin-bottom: 10px;" placeholder="http://example.com/podcast.xml"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<button class="btn btn-new right-floated" type="submit">
|
||||
<?php echo _("Subscribe"); ?>
|
||||
</button>
|
||||
<span class="errors" style="display:none"></span>
|
||||
</form>
|
||||
<!-- <p style="clear: both; text-align: center; opacity: 0.7; margin-top: 20px;">Paste the URL of a podcast RSS feed above.</p> -->
|
||||
</div>
|
151
legacy/application/views/scripts/podcast/station.phtml
Normal file
151
legacy/application/views/scripts/podcast/station.phtml
Normal file
|
@ -0,0 +1,151 @@
|
|||
<div id="station_podcast">
|
||||
<div class="angular_wrapper" ng-controller="StationPodcast">
|
||||
<div class="station_podcast_wrapper content-pane">
|
||||
<div class="inner_editor_title">
|
||||
<h2>
|
||||
<span class="title_obj_name"><?php echo _("My Podcast") ?></span>
|
||||
</h2>
|
||||
<button ng-click="savePodcast()" class="btn" title='<?php echo _("Save station podcast") ?>' type="button">
|
||||
<?php echo _("Save") ?>
|
||||
</button>
|
||||
<a href="{{podcast.url}}" target="_blank">
|
||||
<button class="btn"><?php echo _("View Feed") ?></button>
|
||||
</a>
|
||||
<div class='success' style='display:none'></div>
|
||||
</div>
|
||||
<form class="podcast-metadata">
|
||||
<?php echo $this->form->getElement('csrf') ?>
|
||||
<input ng-value="podcast.id" class="obj_id" type="hidden"/>
|
||||
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("General Fields") ?></h3>
|
||||
<div class="collapsible-content">
|
||||
<fieldset class="padded">
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Name") ?></label>
|
||||
<input name="podcast_name" ng-model="podcast.title" type="text"/>
|
||||
</div>
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Creator") ?></label>
|
||||
<input name="podcast_creator" ng-model="podcast.creator" type="text"/>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Description") ?></label>
|
||||
<textarea name="podcast_description" ng-model="podcast.description"></textarea>
|
||||
</div>
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Language") ?></label>
|
||||
<select name="podcast_language" ng-model="podcast.language">
|
||||
<?php
|
||||
foreach(Application_Common_LocaleHelper::getISO6391LanguageCodes() as $code=>$lang) {
|
||||
echo "<option value='$code'>$lang</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Copyright") ?></label>
|
||||
<input name="podcast_copyright" ng-model="podcast.copyright" type="text"/>
|
||||
</div>
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Link") ?></label>
|
||||
<input name="podcast_link" ng-model="podcast.link" type="url"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("iTunes Fields") ?></h3>
|
||||
<div class="collapsible-content">
|
||||
<fieldset class="padded">
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Author") ?></label>
|
||||
<input name="podcast_itunes_author" ng-model="podcast.itunes_author" type="text"/>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Keywords") ?></label>
|
||||
<input name="podcast_itunes_keywords" ng-model="podcast.itunes_keywords" type="text"/>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Summary") ?></label>
|
||||
<textarea name="podcast_itunes_summary" ng-model="podcast.itunes_summary"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Subtitle") ?></label>
|
||||
<textarea name="podcast_itunes_subtitle" ng-model="podcast.itunes_subtitle"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Category") ?></label>
|
||||
<input name="podcast_itunes_category" ng-model="podcast.itunes_category" type="text"/>
|
||||
</div>
|
||||
|
||||
<div class="podcast-metadata-row">
|
||||
<label><?php echo _("Explicit") ?></label>
|
||||
<input name="podcast_itunes_explicit" ng-model="podcast.itunes_explicit" type="checkbox"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<h3 class="collapsible-header" id="podcast-heading"><span class="arrow-icon"></span><?php echo _("Privacy Settings"); ?></h3>
|
||||
<div class="collapsible-content" id="podcast-settings">
|
||||
<fieldset class="padded">
|
||||
<dl>
|
||||
<div class="podcast-metadata-row">
|
||||
<?php echo $this->form->getSubform('preferences_podcast')->getElement("stationPodcastPrivacy")->renderLabel() ?>
|
||||
<div id="podcast-privacy-options">
|
||||
<?php echo $this->form->getSubform('preferences_podcast')->getElement("stationPodcastPrivacy")->renderViewHelper() ?>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
<div class="podcast-metadata-row">
|
||||
<dt>
|
||||
<label for="stationPodcastFeedUrl" class="optional"><?php echo _("Feed URL"); ?></label>
|
||||
</dt>
|
||||
<dd>
|
||||
<input type="url" ng-model="podcast.url" disabled="disabled" class="input_text" />
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<p id="station_podcast_help_text">
|
||||
<?php echo(sprintf(_("For detailed information on what these metadata fields mean, please see the %sRSS specification%s
|
||||
or %sApple's podcasting documentation%s."),
|
||||
'<a href="http://cyber.law.harvard.edu/rss/rss.html#requiredChannelElements">', '</a>',
|
||||
'<a target="_blank" href="http://www.apple.com/ca/itunes/podcasts/specs.html">', "</a>")); ?>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<div class="btn-toolbar clearfix">
|
||||
<div class='btn-group pull-right'>
|
||||
<button ng-click="savePodcast()" class="btn" title='<?php echo _("Save station podcast") ?>' type="button">
|
||||
<?php echo _("Save") ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class='success' style='display:none'></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="datatable podcast_episodes" cellpadding="0" cellspacing="0"></table>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
<?php echo "var podcast = " . $this->podcast . ";" ?>
|
||||
AIRTIME.podcast.podcastApp.value('podcast', podcast);
|
||||
AIRTIME.podcast.podcastApp.value('tab', null);
|
||||
var wrapper = $(".angular_wrapper");
|
||||
angular.bootstrap(wrapper.get(0), ["podcast"]);
|
||||
});
|
||||
|
||||
$('.collapsible-header').click(function() {
|
||||
$(this).next().toggle('fast');
|
||||
$(this).toggleClass("closed");
|
||||
return false;
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,4 @@
|
|||
<div id="watched-folder-section" class="ui-widget ui-widget-content block-shadow simple-formblock clearfix padded-strong manage-folders">
|
||||
<h2><?php echo _("Manage Media Folders") ?></h2>
|
||||
<?php echo $this->form; ?>
|
||||
</div>
|
15
legacy/application/views/scripts/preference/index.phtml
Normal file
15
legacy/application/views/scripts/preference/index.phtml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="ui-widget prefpanel simple-formblock clearfix padded-strong preferences">
|
||||
<h2 id="preferences_header"><?php echo _("General") ?></h2>
|
||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
<form method="post" id="pref_form" enctype="multipart/form-data">
|
||||
|
||||
<?php echo $this->form->getElement('submit')->render() ?>
|
||||
<div style="clear:both"></div>
|
||||
|
||||
<?php
|
||||
echo $this->statusMsg;
|
||||
echo $this->form;
|
||||
?>
|
||||
<br/>
|
||||
</form>
|
||||
</div>
|
121
legacy/application/views/scripts/preference/stream-setting.phtml
Normal file
121
legacy/application/views/scripts/preference/stream-setting.phtml
Normal file
|
@ -0,0 +1,121 @@
|
|||
<div class="ui-widget prefpanel simple-formblock clearfix padded-strong stream-config">
|
||||
<h2 style="float:left"><?php echo _("Stream Settings") ?></h2>
|
||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
<form method="post" id="stream_form" enctype="application/x-www-form-urlencoded">
|
||||
<button name="stream_save" id="stream_save_top" type="button" class="btn right-floated"><?php echo _("Save") ?></button>
|
||||
<?php echo $this->form->getElement('csrf') ?>
|
||||
<div style="clear:both"></div>
|
||||
<?php echo $this->statusMsg;?>
|
||||
<div style="float: left; margin-right: 10px; width: 50%; overflow: auto;">
|
||||
|
||||
<h3><?php echo _("Global") ?></h3>
|
||||
<fieldset class="padded stream-setting-global">
|
||||
<dl class="zend_form">
|
||||
<?php if($this->form->getElement('output_sound_device') != null){?>
|
||||
<dt id="hardwareOut-label">
|
||||
<label class="required">
|
||||
<?php echo $this->form->getElement('output_sound_device')->getLabel() ?> :
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="hardwareOut-element">
|
||||
<?php echo $this->form->getElement('output_sound_device') ?>
|
||||
</dd>
|
||||
<dt id="hardwareOutType-label">
|
||||
<label class="required">
|
||||
<?php echo $this->form->getElement('output_sound_device_type')->getLabel() ?> :
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="hardwareOutType-element">
|
||||
<?php echo $this->form->getElement('output_sound_device_type') ?>
|
||||
</dd>
|
||||
<?php } ?>
|
||||
<dt id="vorbisMetadata-label">
|
||||
<label class="required">
|
||||
<?php echo $this->form->getElement('icecast_vorbis_metadata')->getLabel() ?> :
|
||||
<span class='icecast_metadata_help_icon'></span>
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="vorbisMetadata-element">
|
||||
<?php echo $this->form->getElement('icecast_vorbis_metadata') ?>
|
||||
</dd>
|
||||
|
||||
<dt id="streamFormat-label">
|
||||
<label class="optional"><?php echo $this->form->getElement('streamFormat')->getLabel() ?></label>
|
||||
</dt>
|
||||
<br>
|
||||
<dd id="streamFormat-element" class="radio-inline-list">
|
||||
<?php $i=0;
|
||||
$value = $this->form->getElement('streamFormat')->getValue();
|
||||
?>
|
||||
<?php foreach ($this->form->getElement('streamFormat')->getMultiOptions() as $radio) : ?>
|
||||
<label for="streamFormat-<?php echo $i ?>">
|
||||
<input type="radio" value="<?php echo $i ?>" id="streamFormat-<?php echo $i ?>" name="streamFormat" <?php if($i == $value){echo 'checked="checked"';}?> >
|
||||
<?php echo $radio ?> <br><br>
|
||||
</input>
|
||||
</label>
|
||||
<?php $i = $i + 1; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($this->form->getElement('streamFormat')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->form->getElement('streamFormat')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<dt id="offAirMeta-label">
|
||||
<label>
|
||||
<?php echo $this->form->getElement('offAirMeta')->getLabel() ?> :
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="offAirMeta-element">
|
||||
<?php echo $this->form->getElement('offAirMeta') ?>
|
||||
</dd>
|
||||
<dt id="enableReplayGain-label">
|
||||
<label>
|
||||
<?php echo $this->form->getElement('enableReplayGain')->getLabel() ?> :
|
||||
</label>
|
||||
</dt>
|
||||
<dd id="enableReplayGain-element">
|
||||
<?php echo $this->form->getElement('enableReplayGain') ?>
|
||||
</dd>
|
||||
<dt id="replayGainModifier-label" class="block-display">
|
||||
<label><?php echo $this->form->getElement('replayGainModifier')->getLabel() ?>:
|
||||
</label>
|
||||
<span id="rg_modifier_value" style="border: 0; color: #f6931f; font-weight: bold;">
|
||||
<?php echo $this->form->getElement('replayGainModifier')->getValue() ?>
|
||||
</span>
|
||||
<?php echo _("dB")?>
|
||||
</dt>
|
||||
<dd id="replayGainModifier-element" class="block-display">
|
||||
<?php echo $this->form->getElement('replayGainModifier') ?>
|
||||
<?php if($this->form->getElement('replayGainModifier')->hasErrors()) : ?>
|
||||
<ul class='errors'>
|
||||
<?php foreach($this->form->getElement('replayGainModifier')->getMessages() as $error): ?>
|
||||
<li><?php echo $error; ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<div id="slider-range-max" style="width: 99%"></div>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
<?php echo $this->form->getSubform('live_stream_subform'); ?>
|
||||
</div>
|
||||
<div style="float: left; width: 48%;">
|
||||
<h3><?php echo _("Output Streams") ?></h3>
|
||||
<fieldset class="padded">
|
||||
<?php
|
||||
// TODO: replace this with something that looks good
|
||||
echo $this->form->getElement('customStreamSettings')->render();
|
||||
for($i=1;$i<=$this->num_stream;$i++){
|
||||
echo $this->form->getSubform("s".$i."_subform");
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
<br />
|
||||
<div style="clear: both"></div>
|
||||
<button name="stream_save" id="stream_save_bottom" type="button" class="btn right-floated"><?php echo _("Save") ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
0
legacy/application/views/scripts/recorder/index.phtml
Normal file
0
legacy/application/views/scripts/recorder/index.phtml
Normal file
|
@ -0,0 +1,51 @@
|
|||
<div id="schedule-add-show" class="tabs ui-widget ui-widget-content block-shadow alpha-block padded">
|
||||
<div class="button-bar">
|
||||
<a href="#" id="add-show-close" class="add-show-close"><i class="icon-remove-sign icon-white"></i><span><?php echo _("Close") ?></span></a>
|
||||
<button data-action="<?php echo isset($this->action) ? $this->action : "add-show" ?>" aria-disabled="false" role="button" class="add-show-submit right-floated ui-button ui-widget ui-state-default ui-button-text-icon-primary btn btn-small">
|
||||
<span class="ui-icon ui-icon-plusthick"></span>
|
||||
<span class="ui-button-text"><?php echo ($this->addNewShow ? _("Add this show") : _("Update show")); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("What") ?></h3>
|
||||
<div id="schedule-show-what" class="collapsible-content">
|
||||
<?php echo $this->what; ?>
|
||||
</div>
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("When") ?></h3>
|
||||
<div id="schedule-show-when" class="collapsible-content">
|
||||
<?php
|
||||
if (!$this->addNewShow) {
|
||||
$this->when->getElement('add_show_timezone')->setOptions(array('disabled' => true));
|
||||
?>
|
||||
<input type="hidden" name="add_show_timezone" id="add_show_timezone" value=<?php echo $this->when->getElement('add_show_timezone')->getValue()?>>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php echo $this->when; ?>
|
||||
|
||||
<?php echo $this->repeats; ?>
|
||||
</div>
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("Autoloading Playlist") ?></h3>
|
||||
<div id="schedule-show-auto" class="collapsible-content">
|
||||
<?php echo $this->autoplaylist; ?>
|
||||
</div>
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("Live Stream Input") ?></h3>
|
||||
<div id="live-stream-override" class="collapsible-content">
|
||||
<?php echo $this->live; ?>
|
||||
</div>
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("Who") ?></h3>
|
||||
<div id="schedule-show-who" class="collapsible-content">
|
||||
<?php echo $this->who; ?>
|
||||
</div>
|
||||
<h3 class="collapsible-header"><span class="arrow-icon"></span><?php echo _("Style") ?></h3>
|
||||
<div id="schedule-show-style" class="collapsible-content">
|
||||
<?php echo $this->style; ?>
|
||||
</div>
|
||||
<div class="button-bar bottom">
|
||||
<button data-action="<?php echo isset($this->action) ? $this->action : "add-show" ?>" aria-disabled="false" role="button" class="add-show-submit right-floated ui-button ui-widget ui-state-default ui-button-text-icon-primary btn btn-small">
|
||||
<span class="ui-icon ui-icon-plusthick"></span>
|
||||
<span class="ui-button-text"><?php echo ($this->addNewShow ? _("Add this show") : _("Update show")); ?></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
0
legacy/application/views/scripts/schedule/add-show.phtml
Normal file
0
legacy/application/views/scripts/schedule/add-show.phtml
Normal file
|
@ -0,0 +1 @@
|
|||
//left empty on purpose
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
echo $this->entries;
|
||||
?>
|
1
legacy/application/views/scripts/schedule/get-form.phtml
Normal file
1
legacy/application/views/scripts/schedule/get-form.phtml
Normal file
|
@ -0,0 +1 @@
|
|||
//left empty on purpose
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue