Changeset 561890
- Timestamp:
- 06/21/2012 05:06:49 PM (14 years ago)
- Location:
- omt-on-air/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
wp.widget_lrhomtonair.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
omt-on-air/trunk/readme.txt
r438485 r561890 4 4 Tags: lrh omt onair imediatouch 5 5 Requires at least: 3.0.0 6 Tested up to: 3.2.1 7 Stable tag: 1.1.0 6 Tested up to: 3.4 7 Stable tag: 1.2.0 8 License: GPLv2 or later 8 9 9 10 Retrieves the OMT/iMediaTouch OnAir xml file and displays the active cut. … … 58 59 == Changelog == 59 60 61 = 1.2.0 = 62 63 * Maintenance update. 64 60 65 = 1.1.0 = 61 66 * Changes for better security. … … 69 74 == Upgrade Notice == 70 75 71 = 1. 1.0 =72 * Upgrade adds features and better security.76 = 1.2.0 = 77 * Maintenance update. 73 78 -
omt-on-air/trunk/wp.widget_lrhomtonair.php
r437482 r561890 5 5 Description: Retrieves the OMT/iMediaTouch OnAir xml file and displays the active cut. 6 6 Author: Larry Houbre, Jr. 7 Version: 1. 1.07 Version: 1.2.0 8 8 */ 9 9 … … 35 35 36 36 class lrh_widget_omtonair extends LRH_WPWidget { 37 38 function lrh_widget_omtonair()39 { $this->__construct(); }40 37 41 38 function __construct() … … 192 189 $k=$e->attributes()->Event+0; //convert to number 193 190 $t=$e->attributes()->Type.''; 194 if ( $t=='Playing') $k='now';195 else if (( $next=='') && ($t=='Not Played')) $k=$next='next';191 if ('Playing'==$t) $k='now'; 192 else if ((''==$next) && ('Not Played'==$t)) $k=$next='next'; 196 193 $r[$k]['Title']=iconv($fe,$te,$e->attributes()->Title.''); 197 194 $r[$k]['Artist']=iconv($fe,$te,$e->attributes()->Artist.''); … … 215 212 $ONAIR=lrh_GetOnAirData($aUrl); 216 213 $data=$ONAIR['now']; 217 if ( $data==null) {214 if (null==$data) { 218 215 $show=$aDefaultProgram; 219 216 if (empty($show)) $show=cwidgetoption_lrhomtonair_defaultprogram_value;
Note: See TracChangeset
for help on using the changeset viewer.