src/widgets/Title.js
changeset 1005 768bd0691ed1
child 1013 392ddcd212d7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/widgets/Title.js	Fri Jul 19 16:41:50 2013 +0200
@@ -0,0 +1,17 @@
+IriSP.Widgets.Title = function(player, config) {
+    IriSP.Widgets.Widget.call(this, player, config);
+}
+
+IriSP.Widgets.Title.prototype = new IriSP.Widgets.Widget();
+
+IriSP.Widgets.Title.prototype.defaults = {
+    media_title: false
+}
+
+IriSP.Widgets.Title.prototype.template =
+    '<div class="Ldt-TitleWidget"><h2>{{#media_title}}{{media.title}}{{/media_title}}{{^media_title}}{{source.title}}{{/media_title}}</h2></div>';
+
+
+IriSP.Widgets.Title.prototype.draw = function() {
+    this.renderTemplate();
+}
\ No newline at end of file