Skip to content

Commit

Permalink
fixed LF
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Jan 25, 2015
1 parent 2c114ca commit 4d171f5
Show file tree
Hide file tree
Showing 26 changed files with 2,598 additions and 2,597 deletions.
66 changes: 33 additions & 33 deletions apps/app_demo.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author YOUR NAME
* @copyright 2012 - 2015
* @license GPL
* @version 1.0
*
* @title Demo
* @category weather
* @icon icons/ws/scene_summerhouse.svg
* @color #222
* @description Here is some description that explains what the app does. It will be shown if you hover over the app-icon.
*
* @info Additional information or copyright to then content
* @link http://www.smartvisu.de
* -----------------------------------------------------------------------------
*/

{% extends "apps.html" %}


{% block sidebar %}
The app may have a menu.
{% endblock %}


{% block content %}
<h3>Demo</h3>

A app is a simple html-page with some content!
{% endblock %}
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author YOUR NAME
* @copyright 2012 - 2015
* @license GPL
* @version 1.0
*
* @title Demo
* @category weather
* @icon icons/ws/scene_summerhouse.svg
* @color #222
* @description Here is some description that explains what the app does. It will be shown if you hover over the app-icon.
*
* @info Additional information or copyright to then content
* @link http://www.smartvisu.de
* -----------------------------------------------------------------------------
*/

{% extends "apps.html" %}


{% block sidebar %}
The app may have a menu.
{% endblock %}


{% block content %}
<h3>Demo</h3>

A app is a simple html-page with some content!
{% endblock %}

50 changes: 25 additions & 25 deletions apps/app_slideshow.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL
* @version 1.0
*
* @title Slideshow
* @category slideshow
* @icon icons/ws/control_zoom_in.svg
* @color #00a700
* @description A slideshow
* -----------------------------------------------------------------------------
*/

{% extends "full.html" %}

{% import "multimedia.html" as multimedia %}


{% block content %}
{{ multimedia.slideshow('s1', 'pics/slideshow') }}
{% endblock %}
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL
* @version 1.0
*
* @title Slideshow
* @category slideshow
* @icon icons/ws/control_zoom_in.svg
* @color #00a700
* @description A slideshow
* -----------------------------------------------------------------------------
*/

{% extends "full.html" %}

{% import "multimedia.html" as multimedia %}


{% block content %}
{{ multimedia.slideshow('s1', 'pics/slideshow') }}
{% endblock %}

280 changes: 140 additions & 140 deletions apps/app_tv_movie.html
Original file line number Diff line number Diff line change
@@ -1,140 +1,140 @@
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL [http://www.gnu.de]
* @version 1.0
*
* @title TV-Movie
* @category tv
* @icon icons/ws/it_television.svg
* @color #b00
* @description List of all tv-stations from www.TVMovie.de
*
* @info More feeds on
* @link http://www.tvmovie.de/rss-feeds
* -----------------------------------------------------------------------------
*/


{% extends "apps.html" %}

{% block sidebar %}
<ul data-role="listview" data-dividertheme="c">
<li><a data-ajax="false" href="index.php?page=app_tv_movie"><h3>Jetzt</h3></a></li>
<li><a data-ajax="false" href="index.php?page=app_tv_movie&feed=2015"><h3>Heute, 20:15</h3></a></li>
<li><a data-ajax="false" href="index.php?page=app_tv_movie&feed=2200"><h3>Heute, 22:00</h3></a></li>
</ul>
{% endblock %}


{% block content %}

<h3>TV-Programm</h3>
<br />


<style type="text/css">
.tvlist ul {
margin: 0 !important;
}

.tvlist li {
padding: 0 0 0 125px !important;
}

.tvlist .ui-li-thumb {
height: 63px;
max-width: 113px;
top: 5px;
left: 5px;
border: 1px solid #aaa;
}

.tvlist .ui-li-aside {
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
height: 25px;
width: 70px;
margin: 3px;
text-align: center;
vertical-align: middle;
line-height: 27px;
}

</style>

<div id="tv" data-widget="app.tvmovie" class="tvlist">
<ul data-role="listview">
</ul>
</div>

<script type="text/javascript">
$('#{{ page }}').on('pagecreate', function (event, ui) {

var feed = document.URL.explode('&');
if (feed[1] == null) {
feed = 'jetzt';
}
else {
feed = feed[1].substring(5, 9);
}

$.getJSON('lib/feeds/rss.php?url=tvmovie.de/rss/tv' + feed + '.xml&limit=15', function (data) {
var line = '';
var entry = data['entry'];

for (var i in entry) {
var ret = '';

if (entry[i].image) {
ret += '<img src="' + entry[i].image.url + '" />';
}

ret += '<h3><a class="ui-link" href="' + entry[i].link + '" target="_blank">' + entry[i].title + '</a></h3>';
ret += '<p>' + entry[i].description + '&nbsp;</p>';

var pic = '';
var station = entry[i].title.substr(5, 15).split('-');

switch (station[0].trim()) {
case 'ARD': pic = '1/das-erste_s.png'; break;
case 'ZDF': pic = '2/zdf_s.png'; break;
case 'RTL': pic = '3/rtl.png'; break;
case 'SAT.1': pic = '4/sat1_s.png'; break;
case 'PRO 7': pic = '11/pro7_s.png'; break;
case 'RTL II': pic = '43/rtl2_s.png'; break;
case 'KABEL 1': pic = '39/kabel1_s.png'; break;
case 'VOX': pic = '46/vox_s.png'; break;
case 'Sport1': pic = '45/sport1_s.png'; break;
case 'EUROSPORT': pic = '30/eurosport-1.jpg'; break;
case 'Eurosport 2': pic = '239/eurosport-2_s.png'; break;
case 'Tele 5': pic = '55/tele-5_s.png'; break;
case 'sixx': pic = '318/sixx_s.png'; break;
case 'DMAX': pic = '52/dmax_s.png'; break;
case 'Das Vierte': pic = '70/das-vierte_s.png'; break;
}

if (pic) {
ret += '<div class="ui-li-aside">';
ret += '<img src="http://www.tvmovie.de/sites/www.tvmovie.de/files/imagecache/tv-logo-list-stations/dikr_tvm_tv_guide/tv_stations/images/' + pic + '">';
ret += '</div>';
}

line += '<li>' + ret + '</li>';
}

$('#tv ul').html(line).trigger('prepare').listview('refresh').trigger('redraw');
})
.error(notify.json);
});
</script>


<hr />
<div class="mini">&#169; <a href="http://www.tvmovie.de" target="_blank">http://www.tvmovie.de</a></div>

{% endblock %}
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL [http://www.gnu.de]
* @version 1.0
*
* @title TV-Movie
* @category tv
* @icon icons/ws/it_television.svg
* @color #b00
* @description List of all tv-stations from www.TVMovie.de
*
* @info More feeds on
* @link http://www.tvmovie.de/rss-feeds
* -----------------------------------------------------------------------------
*/


{% extends "apps.html" %}

{% block sidebar %}
<ul data-role="listview" data-dividertheme="c">
<li><a data-ajax="false" href="index.php?page=app_tv_movie"><h3>Jetzt</h3></a></li>
<li><a data-ajax="false" href="index.php?page=app_tv_movie&feed=2015"><h3>Heute, 20:15</h3></a></li>
<li><a data-ajax="false" href="index.php?page=app_tv_movie&feed=2200"><h3>Heute, 22:00</h3></a></li>
</ul>
{% endblock %}


{% block content %}

<h3>TV-Programm</h3>
<br />


<style type="text/css">
.tvlist ul {
margin: 0 !important;
}

.tvlist li {
padding: 0 0 0 125px !important;
}

.tvlist .ui-li-thumb {
height: 63px;
max-width: 113px;
top: 5px;
left: 5px;
border: 1px solid #aaa;
}

.tvlist .ui-li-aside {
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
height: 25px;
width: 70px;
margin: 3px;
text-align: center;
vertical-align: middle;
line-height: 27px;
}

</style>

<div id="tv" data-widget="app.tvmovie" class="tvlist">
<ul data-role="listview">
</ul>
</div>

<script type="text/javascript">
$('#{{ page }}').on('pagecreate', function (event, ui) {

var feed = document.URL.explode('&');
if (feed[1] == null) {
feed = 'jetzt';
}
else {
feed = feed[1].substring(5, 9);
}

$.getJSON('lib/feeds/rss.php?url=tvmovie.de/rss/tv' + feed + '.xml&limit=15', function (data) {
var line = '';
var entry = data['entry'];

for (var i in entry) {
var ret = '';

if (entry[i].image) {
ret += '<img src="' + entry[i].image.url + '" />';
}

ret += '<h3><a class="ui-link" href="' + entry[i].link + '" target="_blank">' + entry[i].title + '</a></h3>';
ret += '<p>' + entry[i].description + '&nbsp;</p>';

var pic = '';
var station = entry[i].title.substr(5, 15).split('-');

switch (station[0].trim()) {
case 'ARD': pic = '1/das-erste_s.png'; break;
case 'ZDF': pic = '2/zdf_s.png'; break;
case 'RTL': pic = '3/rtl.png'; break;
case 'SAT.1': pic = '4/sat1_s.png'; break;
case 'PRO 7': pic = '11/pro7_s.png'; break;
case 'RTL II': pic = '43/rtl2_s.png'; break;
case 'KABEL 1': pic = '39/kabel1_s.png'; break;
case 'VOX': pic = '46/vox_s.png'; break;
case 'Sport1': pic = '45/sport1_s.png'; break;
case 'EUROSPORT': pic = '30/eurosport-1.jpg'; break;
case 'Eurosport 2': pic = '239/eurosport-2_s.png'; break;
case 'Tele 5': pic = '55/tele-5_s.png'; break;
case 'sixx': pic = '318/sixx_s.png'; break;
case 'DMAX': pic = '52/dmax_s.png'; break;
case 'Das Vierte': pic = '70/das-vierte_s.png'; break;
}

if (pic) {
ret += '<div class="ui-li-aside">';
ret += '<img src="http://www.tvmovie.de/sites/www.tvmovie.de/files/imagecache/tv-logo-list-stations/dikr_tvm_tv_guide/tv_stations/images/' + pic + '">';
ret += '</div>';
}

line += '<li>' + ret + '</li>';
}

$('#tv ul').html(line).trigger('prepare').listview('refresh').trigger('redraw');
})
.error(notify.json);
});
</script>


<hr />
<div class="mini">&#169; <a href="http://www.tvmovie.de" target="_blank">http://www.tvmovie.de</a></div>

{% endblock %}

Loading

0 comments on commit 4d171f5

Please sign in to comment.