summaryrefslogtreecommitdiff
path: root/templates/base.tmpl
blob: aac469157938bbae93c430316755cbd5e21f6863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#def default($text, $default)
#if $text
   $text
#else
   $default
#end if
#end def
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<head>
  <title>$default($title, "Plinth Front End to the Freedom Box")
  </title>
  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
  <meta name="description" content="Plint admin frontend for Freedom Box" />
  <meta name="robots" content="noindex, nofollow" />
  <link rel="shortcut icon" href="$basehref/favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" type="text/css" href="$basehref/static/theme/style.tiny.css" media="screen" />
  $css
  <script type="text/javascript" src="$basehref/static/theme/menu.js"></script>
  <script type="text/javascript" src="$basehref/static/theme/plinth.js"></script>
  $js
  $main_menu_js
  $sub_menu_js
  <script LANGUAGE="JavaScript">
    <!--
      $onload
    // --> 
  </script>
</head>
<body onLoad="javascript:onload_handler();"> 
  <div id="header">
    <div id="headerleft">
      <a href="$basehref/"><img src="$basehref/static/theme/images/freedombox.png" /></a>
    </div>
    <div id="headerright">
      <br /><br /><br />
      <h1><a href="$basehref/"><img src="$basehref/static/theme/images/freedombox-logotype.png" /></a></h1>
      <h2><a href="$basehref/">Plinth Administration Control Panel</a></h2>
      <SCRIPT LANGUAGE="JavaScript"> 
	<!--
           main_menu(main_menu_items); 
	// --> 
      </SCRIPT>
    </div>
    #if $username
    <p id="layoutdims">Logged in as $username. <a href="$basehref/auth/logout" title="Log out">Logout.</a></p>
    #else
    <p id="layoutdims">Not logged in. <a href="$basehref/auth/login" title="Log in">Log in.</a></p>
    #end if

  </div>
<div class="colmask threecol">
  <div class="colmid">
    <div class="colleft">
      <div class="col1">
	<!-- Column 1 start -->
	<h2>
	  #block title_block
	  $title
	  #end block title_block
	</h2>
	#block main_block
	$main
	#end block main_block
	<!-- Column 1 end -->
      </div>
      <div class="col2">
	<!-- Column 2 start -->
	#block nav_block
	$nav
	#end block nav_block
	#block sidebar_left_block
	$sidebar_left
	#end block sidebar_left_block
	<!-- Column 2 end -->
      </div>
      <div class="col3">
	<!-- Column 3 start -->
	<div id="ads">
	  <!--<a href="http://matthewjamestaylor.com">
	    <img src="mjt-125x125.gif" width="125" border="0" height="125" alt="Art and Design by Matthew James Taylor" />
	  </a>
	    -->
	</div>
	#block sidebar_right_block
	$sidebar_right
	#end block sidebar_right_block
	<!-- Column 3 end -->
      </div>
    </div>
  </div>
</div>
<div id="footer">
  #block footer_block
  <p>
    Plinth is copyright 2011 <a href="http://hackervisions.org">James Vasile</a>.  It is
    free software offered to you under the terms of
    the <a href="http://www.gnu.org/licenses/agpl.html">GNU Affero General Public
    License</a>, Version 3 or later.
  </p>
  <!--<p>Current page: $current_url</p>-->
  <p>
  This page uses
  the <a href="http://matthewjamestaylor.com/blog/perfect-3-column.htm">Perfect
  'Holy Grail' 3 Column Liquid Layout</a>
  by <a href="http://matthewjamestaylor.com">Matthew James Taylor</a>.
  </p>
  #end block footer_block
</div>

</body>
</html>