#import sickbeard #import urllib #from sickbeard.helpers import anon_url <% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# <% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp# #slurp SickGear - $title #if $sg_var('FUZZY_DATING') #end if #set $tab = 4 #set $body_attr = '' #try #set $body_attr += ' id="%s"' % $page_body_attr #except #pass #end try #if not any([x in $body_attr for x in ['back-art', 'pro', 'ii']]) #set $parts = $body_attr.split('class="') #set $body_attr = ('class="%s '.join($parts), $parts[0] + ' class="%s"')[1 == len($parts)] % {0: '', 1: 'pro', 2: 'pro ii'}.get(getattr($sickbeard, 'DISPLAY_SHOW_VIEWMODE', 0)) #end if #if $varExists('submenu') #end if ## #if sys.version_info < (2, 7, 9): #end if #if $sg_str('NEWEST_VERSION_STRING') #end if ## #set $items = [] #try #set void = $items.append($topmenu) #except (NameError, NotFound) #pass #end try #try #set void = $items.append($layout) #except (NameError, NotFound) #pass #end try #set $page_class = ('', ' class="%s"' % '_'.join($items).lower().replace(' ', '-').replace('_', '-'))[0 < len($items)]