~ubuntu-branches/ubuntu/quantal/gallery2/quantal

« back to all changes in this revision

Viewing changes to themes/matrix/templates/theme.tpl

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2005-11-29 15:50:12 UTC
  • Revision ID: james.westby@ubuntu.com-20051129155012-wtophp03lu01kdgl
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{*
 
2
 * $Revision: 1.7 $
 
3
 * If you want to customize this file, do not edit it directly since future upgrades
 
4
 * may overwrite it.  Instead, copy it into a new directory called "local" and edit that
 
5
 * version.  Gallery will look for that file first and use it if it exists.
 
6
 *}
 
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
8
<html>
 
9
  <head>
 
10
    {* Let Gallery print out anything it wants to put into the <head> element *}
 
11
    {g->head}
 
12
 
 
13
    {* If Gallery doesn't provide a header, we use the album/photo title (or filename) *}
 
14
    {if empty($head.title)}
 
15
      <title>{$theme.item.title|default:$theme.item.pathComponent|markup:strip}</title>
 
16
    {/if}
 
17
 
 
18
    {* Include this theme's style sheet *}
 
19
    <link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/>
 
20
  </head>
 
21
  <body class="gallery">
 
22
    <div {g->mainDivAttributes}>
 
23
      {*
 
24
       * Some module views (eg slideshow) want the full screen.  So for those, we
 
25
       * don't draw a header, footer, navbar, etc.  Those views are responsible for
 
26
       * drawing everything.
 
27
       *}
 
28
      {if $theme.useFullScreen}
 
29
        {include file="gallery:`$theme.moduleTemplate`" l10Domain=$theme.moduleL10Domain}
 
30
      {else}
 
31
      <div id="gsHeader">
 
32
        <img src="{g->url href="images/galleryLogo_sm.gif"}" width="107" height="48" alt=""/>
 
33
      </div>
 
34
 
 
35
      <div id="gsNavBar" class="gcBorder1">
 
36
        <div class="gbSystemLinks">
 
37
          {g->block type="core.SystemLinks"
 
38
                    order="core.SiteAdmin core.YourAccount core.Login core.Logout"
 
39
                    othersAt=4}
 
40
        </div>
 
41
 
 
42
        <div class="gbBreadCrumb">
 
43
          {g->block type="core.BreadCrumb"}
 
44
        </div>
 
45
      </div>
 
46
 
 
47
      {* Include the appropriate content type for the page we want to draw. *}
 
48
      {if $theme.pageType == 'album'}
 
49
        {g->theme include="album.tpl"}
 
50
      {elseif $theme.pageType == 'photo'}
 
51
        {g->theme include="photo.tpl"}
 
52
      {elseif $theme.pageType == 'admin'}
 
53
        {g->theme include="admin.tpl"}
 
54
      {elseif $theme.pageType == 'module'}
 
55
        {g->theme include="module.tpl"}
 
56
      {elseif $theme.pageType == 'progressbar'}
 
57
        {g->theme include="progressbar.tpl"}
 
58
      {/if}
 
59
 
 
60
      <div id="gsFooter">
 
61
        {g->logoButton type="validation"}
 
62
        {g->logoButton type="gallery2"}
 
63
        {g->logoButton type="gallery2-version"}
 
64
        {g->logoButton type="donate"}
 
65
      </div>
 
66
      {/if}  {* end of full screen check *}
 
67
    </div>
 
68
 
 
69
    {*
 
70
     * Give Gallery a chance to output any cleanup code, like javascript that
 
71
     * needs to be run at the end of the <body> tag.  If you take this out, some
 
72
     * code won't work properly.
 
73
     *}
 
74
    {g->trailer}
 
75
 
 
76
    {* Put any debugging output here, if debugging is enabled *}
 
77
    {g->debug}
 
78
  </body>
 
79
</html>