root/trunk/wifidog-auth/wifidog/templates/classes/MainUI_Display.tpl @ 1364

Revision 1364, 7.4 KB (checked in by networkfusion, 5 years ago)
  • Created ability to have a themes setting file to define

commonly asked for features.

  • Created a new "Network Theme Pack" to show off the settings

file and improve the user experience.

Line 
1{*
2
3/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5// +-------------------------------------------------------------------+
6// | WiFiDog Authentication Server                                     |
7// | =============================                                     |
8// |                                                                   |
9// | The WiFiDog Authentication Server is part of the WiFiDog captive  |
10// | portal suite.                                                     |
11// +-------------------------------------------------------------------+
12// | PHP version 5 required.                                           |
13// +-------------------------------------------------------------------+
14// | Homepage:     http://www.wifidog.org/                             |
15// | Source Forge: http://sourceforge.net/projects/wifidog/            |
16// +-------------------------------------------------------------------+
17// | This program is free software; you can redistribute it and/or     |
18// | modify it under the terms of the GNU General Public License as    |
19// | published by the Free Software Foundation; either version 2 of    |
20// | the License, or (at your option) any later version.               |
21// |                                                                   |
22// | This program is distributed in the hope that it will be useful,   |
23// | but WITHOUT ANY WARRANTY; without even the implied warranty of    |
24// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     |
25// | GNU General Public License for more details.                      |
26// |                                                                   |
27// | You should have received a copy of the GNU General Public License |
28// | along with this program; if not, contact:                         |
29// |                                                                   |
30// | Free Software Foundation           Voice:  +1-617-542-5942        |
31// | 59 Temple Place - Suite 330        Fax:    +1-617-542-2652        |
32// | Boston, MA  02111-1307,  USA       gnu@gnu.org                    |
33// |                                                                   |
34// +-------------------------------------------------------------------+
35
36/**
37 * Definition of main HTML page
38 *
39 * @package    WiFiDogAuthServer
40 * @subpackage Templates
41 * @author     Max Horváth <max.horvath@freenet.de>
42 * @copyright  2006 Max Horváth, Horvath Web Consulting, Benoit Grégoire, Technologies Coeus inc.
43 * @version    Subversion $Id: $
44 * @link       http://www.wifidog.org/
45 */
46
47*}
48<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
49<html>
50    <head>
51        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
52        <meta http-equiv="Pragma" content="no-cache">
53        <meta http-equiv="Expires" content="-1">
54        {$htmlHeaders}
55        <title>{$title}</title>
56        {foreach from=$stylesheetUrlArray item=stylesheetUrl}
57                <link rel="stylesheet" type="text/css" {if !empty($stylesheetUrl.media)}media="{$stylesheetUrl.media}"{/if}     href="{$stylesheetUrl.href}">
58        {/foreach}
59                <script src="{$base_url_path}js/formutils.js" type="text/javascript"></script>
60                <script src="{$base_url_path}js/addEvent.js"  type="text/javascript"></script>
61                <script src="{$base_url_path}js/menu.js"  type="text/javascript"></script>
62    </head>
63    <body id='page' class='{$page_name}'>
64    <div id="wrap">
65        {if !empty($contentDisplayArray.page_header) || $debugRequested || $alwaysShowHeader}
66                <div id='page_header'>
67            {if $debugRequested}
68                <pre>{$debugOutput}</pre>
69                {/if}
70                        {if !empty($contentDisplayArray.page_header)}
71                                {$contentDisplayArray.page_header}
72                {/if}
73            </div>
74        {/if}
75        <div id="page_body">
76                  {if !empty($siteMenu) && $siteMenuPlaceAll}
77                        <div id="site_menu">
78                            {$siteMenu}
79                        </div>
80                  {/if}
81        <div id="content-wrap">
82        {if !empty($contentDisplayArray.left_area_top) ||  !empty($contentDisplayArray.left_area_middle) ||  !empty($contentDisplayArray.left_area_middle)}
83                <div id="left_area">
84                        {if !empty($contentDisplayArray.left_area_top)  || (!empty($siteMenu) && $siteMenuPlaceLeft)}
85                        <div id="left_area_top">
86                    {if !empty($siteMenu) && $siteMenuPlaceLeft}                       
87                    <div id="site_menu">
88                            {$siteMenu}
89                        </div>   
90                    {/if}
91                        {$contentDisplayArray.left_area_top}
92                        </div>
93                        {/if}
94                        {if !empty($contentDisplayArray.left_area_middle)}
95                        <div id="left_area_middle">
96                            {$contentDisplayArray.left_area_middle}
97                        </div>
98                        {/if}
99                        {if !empty($contentDisplayArray.left_area_bottom)}
100                        <div id="left_area_bottom">
101                            {$contentDisplayArray.left_area_bottom}
102                        </div>
103                        {/if}
104                </div>
105        {/if}
106        {if !empty($contentDisplayArray.main_area_top) ||  !empty($contentDisplayArray.main_area_middle) ||  !empty($contentDisplayArray.main_area_middle)}
107                <div id="main_area">
108                        {if !empty($contentDisplayArray.main_area_top) || (!empty($siteMenu) && $siteMenuPlaceMain)}
109                        <div id="main_area_top">
110                    {if !empty($siteMenu) && $siteMenuPlaceMain}                       
111                    <div id="site_menu">
112                            {$siteMenu}
113                        </div>
114                        {/if}
115                        {$contentDisplayArray.main_area_top}
116                        </div>
117                        {/if}
118                        {if !empty($contentDisplayArray.main_area_middle)}
119                        <div id="main_area_middle">
120                            {$contentDisplayArray.main_area_middle}
121                        </div>
122                        {/if}
123                        {if !empty($contentDisplayArray.main_area_bottom)}
124                        <div id="main_area_bottom">
125                            {$contentDisplayArray.main_area_bottom}
126                        </div>
127                        {/if}
128                </div>
129        {/if}
130          {if !empty($contentDisplayArray.right_area_top) ||  !empty($contentDisplayArray.right_area_middle) ||  !empty($contentDisplayArray.right_area_bottom)}
131                <div id="right_area">
132                        {if !empty($contentDisplayArray.right_area_top)}
133                        <div id="right_area_top">
134                            {$contentDisplayArray.right_area_top}
135                        </div>
136                        {/if}
137                        {if !empty($contentDisplayArray.right_area_middle)}
138                        <div id="right_area_middle">
139                            {$contentDisplayArray.right_area_middle}
140                        </div>
141                        {/if}
142                        {if !empty($contentDisplayArray.right_area_bottom)}
143                        <div id="right_area_bottom">
144                            {$contentDisplayArray.right_area_bottom}
145                        </div>
146                        {/if}
147                </div>
148        {/if}
149        </div>
150    </div>
151    {if !empty($contentDisplayArray.page_footer) || $alwaysShowFooter}
152        <div id='page_footer'>
153                        {$contentDisplayArray.page_footer}
154        </div>
155    {/if}
156
157        {foreach from=$footerScripts item=currScript}
158          {$currScript}
159        {/foreach}
160    </div>
161    </body>
162</html>
Note: See TracBrowser for help on using the browser.