2012-04-23 19:19:23 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
2013-04-04 00:24:24 +00:00
|
|
|
require settings.class plugin
|
2012-04-23 19:19:23 +00:00
|
|
|
|
2012-10-30 18:58:54 +00:00
|
|
|
proc menuitem {title icon link {width 217} {height 0} {extra ""}} {{num 0}} {
|
2013-04-04 00:24:24 +00:00
|
|
|
if {$title eq "-reset"} {
|
|
|
|
set num 0
|
|
|
|
return
|
|
|
|
}
|
2012-10-30 18:58:54 +00:00
|
|
|
incr num
|
|
|
|
if {$title eq ""} return
|
|
|
|
if {$num > 4} {
|
|
|
|
puts {</div><div style="clear: both; padding-top: 1em">}
|
2012-11-16 21:16:03 +00:00
|
|
|
set num 1
|
2012-10-30 18:58:54 +00:00
|
|
|
}
|
2012-05-07 00:24:12 +00:00
|
|
|
if {$extra ne ""} { append extra " " }
|
2012-04-23 19:19:23 +00:00
|
|
|
puts -nonewline "
|
2012-11-16 21:16:03 +00:00
|
|
|
<div class=left num=$num>
|
2012-04-23 19:19:23 +00:00
|
|
|
<center>
|
|
|
|
<a href=$link>
|
2013-04-04 00:24:24 +00:00
|
|
|
<img src=$icon ${extra}border=0 "
|
|
|
|
if {$width} { puts -nonewline " width=$width" }
|
2012-04-23 19:19:23 +00:00
|
|
|
if {$height} { puts -nonewline " height=$height" }
|
|
|
|
puts -nonewline ">
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
<a href=$link>
|
|
|
|
<b>$title</b>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
"
|
|
|
|
}
|
|
|
|
|
2013-04-05 20:07:42 +00:00
|
|
|
set settings [settings]
|
|
|
|
|
|
|
|
if {[$settings epg_style] eq "grid"} {
|
2012-04-23 19:19:23 +00:00
|
|
|
set epglink "/cgi-bin/xepg.jim"
|
|
|
|
} else {
|
|
|
|
set epglink "/epg.shtml"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {<div style="clear: both">}
|
|
|
|
|
|
|
|
menuitem "Browse Media Files" "/images/323_1_10_Menu_Video.png" \
|
2013-02-25 22:31:54 +00:00
|
|
|
/browse/index.jim 217 228
|
2012-04-23 19:19:23 +00:00
|
|
|
menuitem "Scheduled Events" "/images/321_1_00_Menu_CHList.png" \
|
|
|
|
/sched/sched.jim 217 228
|
|
|
|
menuitem "EPG" "/images/328_1_26_Menu_TV_Guide.png" \
|
|
|
|
$epglink 217 228
|
|
|
|
|
2012-10-01 19:53:02 +00:00
|
|
|
if {[file exists "/mod/bin/ir"]} {
|
2012-10-02 20:05:53 +00:00
|
|
|
menuitem "Remote" "/img/remote.png" /plugin/ir/remote.jim 217 228
|
2012-10-01 19:53:02 +00:00
|
|
|
}
|
|
|
|
|
2012-10-30 18:58:54 +00:00
|
|
|
if {[[settings] nomobile] eq "0"} {
|
|
|
|
menuitem "Mobile Version" "/img/mobile.png" /m/ 217 228
|
|
|
|
}
|
2012-04-23 19:19:23 +00:00
|
|
|
|
|
|
|
menuitem "Service Management" "/img/spanner.png" \
|
|
|
|
/services.shtml 217 228
|
|
|
|
menuitem "Package Management" "/img/packages.png" \
|
2012-08-04 00:29:57 +00:00
|
|
|
/pkg/index.shtml 217 228
|
2012-04-23 19:19:23 +00:00
|
|
|
menuitem "Settings" "/images/326_1_00_Menu_Settings.png" \
|
|
|
|
/cgi-bin/settings.jim 217 228
|
2012-10-30 18:58:54 +00:00
|
|
|
|
2012-04-23 19:19:23 +00:00
|
|
|
menuitem "Diagnostics" "/img/diagnostics.png" \
|
|
|
|
/diag/diag.jim 217 228
|
|
|
|
|
2013-04-04 00:24:24 +00:00
|
|
|
eval_plugins menu
|
|
|
|
|
2013-04-05 20:07:42 +00:00
|
|
|
if {[$settings nohelplinks] == 0} {
|
|
|
|
|
2013-04-04 00:24:24 +00:00
|
|
|
menuitem "-reset" "" ""
|
|
|
|
puts {</div><div style="clear: both; padding-top: 3em">}
|
|
|
|
|
|
|
|
menuitem "hummy.tv<br>Forums" "/img/forum.png" \
|
|
|
|
"http://hummy.tv/ target=_blank" 0 100 \
|
|
|
|
"style=\"padding: 1em\""
|
|
|
|
menuitem "hummy.tv<br>Wiki" "/img/wiki.png" \
|
|
|
|
"http://wiki.hummy.tv/ target=_blank" 0 100 \
|
|
|
|
"style=\"padding: 1em\""
|
|
|
|
menuitem "Things Every<br>Owner Should Know" "/img/started.png" \
|
|
|
|
"http://hummy.tv/forum/threads/1858/ target=_blank" 0 100 \
|
|
|
|
"style=\"padding: 1em\""
|
|
|
|
menuitem "Twitter<br>Feed" "/img/silver-twitter-bird-button.png" \
|
|
|
|
"http://twitter.com/HummyPkg target=_blank" 0 100 \
|
|
|
|
"style=\"padding: 1em\""
|
|
|
|
|
2013-04-05 20:07:42 +00:00
|
|
|
}
|
2013-04-04 00:24:24 +00:00
|
|
|
|