[%- IF item.heading -%] [%- "$item.heading" _ "SMATCHING" | string %] "[% query %]"[% "COLON" | string %][% item.numresults -%] [%- ELSE; IF darkBG %] [%- truncateAt = 40; ELSE; truncateAt = 26; linkAreaClass = ' class = "linkAreaRowToPlus"' -%] [%- END; BLOCK openAlbumTD; attributes = item.attributes; goCmd = 'AjaxOnClickPlaySwitch'; IF item.album; attributes = "&album.id=" _ item.album; ELSIF item.itemobj.album.id; attributes = "&album.id=" _ item.itemobj.album.id; ELSIF (tmp = attributes.match('album.id=\d*', 1)); attributes = "&" _ tmp.0; ELSE; goCmd = 'AjaxOnClickPlay'; END %] [%- content; linkAreaClass = ' class = "linkAreaRowFromImg"' -%] [%- END; csval = 1; IF !noLink && (levelName == 'album' || levelName == 'age'); WRAPPER openAlbumTD; IF item.coverThumb; PROCESS thumbnailItemImg bgcolor='FFFFFF' height="46" width="46" style='STYLE="border: none"'; # ELSE; # PROCESS dummyItemImg bgcolor='FFFFFF' height="46" width="46" style='STYLE="border: none"'; END; END; ELSIF ((item.itemobj.album.id && !item.descend) || item.album) && !noLink && (item.item || !item.defined('level') && item.itemobj); WRAPPER openAlbumTD -%] [%- END; ELSE; csval = 2; END -%] [%- IF noLink; item.text | html | truncate(truncateAt); ELSE; PROCESS iteminfo; END -%] [%- useImg = ""; IF (levelName == 'playlist') || (item.itemobj.content_type() == "ssp"); goCmd = 'AjaxBrowseCtrlPlay'; ELSE; IF darkBG; useImg = webroot _ 'html/images/grey_plus_add.png'; ELSE; useImg = webroot _ 'html/images/blue_plus_trans.png'; END; goCmd = 'AjaxBrowseCtrlAdd'; END; PROCESS $goCmd itemobj = item.itemobj attributes = item.attributes odd = item.odd mixerlinks = item.mixerlinks anchor = item.anchor showdescend = item.showdescend showplay = item.showplay showplayall = item.showplayall playallhref = item.playallhref addallhref = item.addallhref href = item.href -%] [%- END -%]