SAAS-650: Fix up player page UI in Airtime
This commit is contained in:
parent
dc0855de18
commit
1f2f8a27a5
|
@ -9,6 +9,9 @@ class EmbeddablePlayerController extends Zend_Controller_Action
|
|||
|
||||
public function indexAction()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/embeddableplayer.css?'.$CC_CONFIG['airtime_version']);
|
||||
$form = new Application_Form_EmbeddablePlayer();
|
||||
|
||||
if ($form->getElement('player_stream_url')->getAttrib('numberOfEnabledStreams') > 0) {
|
||||
|
|
|
@ -34,8 +34,13 @@ class Application_Form_EmbeddablePlayer extends Zend_Form_SubForm
|
|||
$embedSrc = new Zend_Form_Element_Text('player_embed_src');
|
||||
$embedSrc->setAttrib("readonly", "readonly");
|
||||
$embedSrc->setValue('<iframe frameborder="0" src="'.Application_Common_HTTPHelper::getStationUrl().'/embeddableplayer/embed-code?url='.$url.'&codec='.$codec.'"></iframe>');
|
||||
$embedSrc->setAttrib("class", "embed-player-text-box");
|
||||
$embedSrc->removeDecorator('label');
|
||||
$this->addElement($embedSrc);
|
||||
|
||||
$previewLabel = new Zend_Form_Element_Text('player_preview_label');
|
||||
$previewLabel->setLabel("Preview:");
|
||||
$this->addElement($previewLabel);
|
||||
|
||||
}
|
||||
}
|
|
@ -1,14 +1,12 @@
|
|||
<div class="ui-widget ui-widget-content block-shadow simple-formblock clearfix padded-strong preferences">
|
||||
<div class="ui-widget ui-widget-content block-shadow simple-formblock embed-player-form clearfix padded-strong preferences">
|
||||
<h2 style="float:left"><?php echo _("Embeddable Player") ?></h2>
|
||||
<?php $baseUrl = Application_Common_OsPath::getBaseDir(); ?>
|
||||
|
||||
<form method="post" id="player_form" enctype="multipart/form-data">
|
||||
|
||||
|
||||
|
||||
<div style="clear:both"></div>
|
||||
<?php echo $this->errorMsg; ?>
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<br />
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
|
||||
<?php echo $this->element->getElement('player_stream_url'); ?>
|
||||
|
||||
<?php echo $this->element->getElement('player_preview_label')->renderLabel(); ?>
|
||||
<div style="clear:both"></div>
|
||||
<?php echo $this->element->getElement('player_embed_src')->getValue(); ?>
|
||||
<div id="embed_player_preview">
|
||||
<?php echo $this->element->getElement('player_embed_src')->getValue(); ?>
|
||||
</div>
|
||||
</dl>
|
||||
</fieldset>
|
Loading…
Reference in New Issue