Rename airtime_mvc/ to legacy/
This commit is contained in:
parent
f0879322c2
commit
3e18d42c8b
1316 changed files with 0 additions and 0 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue