예제 #1
0
def header(title, links=[]):

  print wgo.xhtml_init()
  
  print xhtml.title(title)
  print wgo.look_feel()

  print xhtml.link({"rel" : "stylesheet", "href" : "/style/extended.css", "type" : "text/css", "media" : "screen"})
  print xhtml.link({"rel" : "stylesheet", "href" : "/style/wgo-admin.css", "type" : "text/css", "media" : "screen"})

  for link in links:
    print xhtml.link(link)
    pass

  print wgo.page_init('admin')

  return (True)
예제 #2
0
파일: wgo.py 프로젝트: pquentin/gimp-web
def header(format="page", title="", links=[]):

  print xhtml_init()
  
  print xhtml.title(title)
  print look_feel()

  print xhtml.link({"rel" : "stylesheet",
                    "href" : "/style/extended.css",
                    "type" : "text/css",
                    "title" : title})

  for link in links:
    print xhtml.link(link)
    pass
  
  print page_init(format)

  return (True)