/[drupal]/contributions/themes/civicspace/page_admin.tpl.php
ViewVC logotype

Contents of /contributions/themes/civicspace/page_admin.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Thu Nov 17 01:33:23 2005 UTC (4 years ago) by occy
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2, DRUPAL-4-6
Changes since 1.2: +11 -5 lines
File MIME type: text/x-php
Fixed Help to go to the main CivicSpace Theme page:
  http://civicspacelabs.org/home/CivicSpaceTheme

Thanks to m3avrck for this fix.
1 <?php /* $Id: page_admin.tpl.php,v 1.2 2005/11/16 18:50:46 occy Exp $ */ ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
5
6 <head>
7 <title>
8 <?php
9 if ($head_title == ""):
10 print $site.' - '.t($site_slogan);
11 else:
12 print $head_title;
13 endif;
14 ?>
15 </title>
16 <?php if ($mission != ""): ?>
17 <meta name="description" content="<?php print check_plain(strip_tags($mission)) ?>" />
18 <?php endif; ?>
19 <meta name="revisit-after" content="1 days" />
20 <meta name="robots" content="no-follow" />
21
22 <?php
23 print $head;
24
25 // simple way of offering print previews: just append &print to your URL
26 if( isset( $_GET['print'] ) ) {
27 print phptemplate_stylesheet_import($directory .'/global/print/print.css','print, screen');
28 }
29 else {
30 print '<link href="'. $directory .'/global/styles/utility.css" rel="stylesheet" media="all" />'. "\n";
31 // implemenation of universal admin theme
32
33 // pseude code:
34 // if file_exists(current_style/admin/style.css) {
35 // link to custom admin styles;
36 // }
37 // else {
38 // use the default admin styles;
39 // }
40
41 $file = civicspace_path_to_style() . '/admin/admin.css';
42 if (file_exists($file)) {
43 print phptemplate_stylesheet_import($file,'screen');
44 }
45 else {
46 print phptemplate_stylesheet_import($directory .'/admin/admin.css','screen');
47 }
48 }
49
50 ?>
51
52 <!--[if IE]>
53 <style type="text/css" media="screen">
54 /* Give IE some :hover lovin' '*/
55 body {
56 behavior: url("<?php print $directory ?>/scripts/csshover.htc");
57 }
58 /* IE min-width trick */
59 div#wrapper {
60 width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 720 ? "720px" : "auto");
61 }
62 * {
63 zoom: 1; /* IE peekaboo fix */
64 }
65 .outer, .main-content {
66 word-wrap: break-word;
67 }
68 </style>
69 <![endif]-->
70
71 <script src="<?php print $directory ?>/scripts/pngfix.js" type="text/javascript"></script>
72 <script src="<?php print $directory ?>/scripts/utility.js" type="text/javascript"></script>
73 <script src="<?php print $directory ?>/scripts/toggle.js" type="text/javascript"></script>
74
75 </head>
76 <?php
77 $body_classes = civicspace_get_body_classes($sidebar_left, $sidebar_right);
78 ?>
79 <body class="<?php print implode(' ', array_unique($body_classes));?>"<?php print theme("onload_attribute"); ?>>
80
81 <div class="hide skiplink">
82 <?php print l(t('Skip to the main content'), $_GET['q'],array('title' =>'Skip directly to the main content'), NULL, 'body_content', FALSE) ."\n" ?>
83 </div>
84
85
86 <div id="admin-header">
87 <h1 id="site-name">
88 <?php print $site?>
89 <span>
90 <a href="<?php print url('') ?>">View site &raquo;</a>
91 </span>
92 </h1>
93 <div id="admin-help">
94 <ul>
95 <li><a href="http://drupal.org/handbook" title="Drupal handbook">Drupal Handbook</a></li>
96
97 <?php
98 $help_loc = check_plain(arg(1));
99 $help_link = "?q=admin/help";
100 if ($help_loc) {
101 if ($help_loc == "settings" && check_plain(arg(2))) {
102 $help_loc = check_plain(arg(2));
103 $help_print = ucfirst($help_loc) .' Help';
104 $help_loc = '/'. $help_loc;
105 }
106 elseif ($help_loc == "help") {
107 $help_loc = "";
108 $help_print = "Help Index";
109 }
110 elseif ($help_loc == "themes") {
111 $help_loc = "";
112 $help_link = "http://civicspacelabs.org/home/CivicSpaceTheme";
113 $help_print = "CivicSpace Theme Help";
114 }
115 else {
116 $help_print = ucfirst($help_loc) .' Help';
117 $help_loc = '/'. $help_loc;
118 }
119 } else {
120 $help_print = "Admin Help";
121 }
122 ?>
123 <li><strong><a href="<?php print $help_link . $help_loc; ?>"><?php print
124 $help_print; ?></a></strong></li>
125
126
127 <li class="last"><a href="?q=logout">Logoff</a></li>
128 </ul>
129 </div>
130 <div class="clearing"></div>
131 </div>
132
133 <!-- END: HEADER
134 |||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
135
136
137 <!-- BEGIN: Content top -->
138 <hr class="hide" />
139 <div id="wrapper">
140 <div class="outer" id="content-holder">
141 <div class="float-wrap">
142 <div class="center" id="div_column_center">
143 <div id="content">
144 <div class="main-content" id="main">
145 <a name="body_content" id="body_content"></a>
146 <!-- END: Content top -->
147
148 <div class="breadcrumb-container no-print">
149 You are here: <?php print $breadcrumb ?>
150 </div>
151
152 <?php if ($title != ""): ?>
153 <h1 class="page-title <?php if ($tabs != "") { print 'page-title-withtabs'; } ?>"><?php print $title ?></h1>
154 <?php endif; ?>
155
156 <?php if ($mission != ""): ?>
157 <div id="mission">
158 <img src="<?php print $directory ?>/images/bg_mission.png" class="alignright no-print" alt="Flag decoration" />
159 <div class="content">
160 <?php print $mission ?>
161 </div>
162 </div>
163 <?php endif; ?>
164
165 <?php if (($messages != "") or ($help != "")): ?>
166 <div class="messages">
167
168 <?php if ($help != ""): ?>
169 <div class="help-toggle no-print" id="toggle-help-show" style="display: none;">
170 <a href="javascript:void(0);" onclick="toggleShow('help');toggleShow('toggle-help-hide');toggleHide('toggle-help-show');" class="toggle-link"><img src="<?php print $directory; ?>/global/images/icon_collapsed.png" alt="Collapse" /> Show help</a>
171 </div>
172 <div class="help-toggle" id="toggle-help-hide" style="display: none;">
173 <a href="javascript:void(0);" onclick="toggleHide('help');toggleHide('toggle-help-hide');toggleShow('toggle-help-show');" class="toggle-link"><img src="<?php print $directory; ?>/global/images/icon_expanded.png" alt="Expand" /> Hide help</a>
174 </div>
175 <div id="help">
176 <img src="<?php print $directory ?>/global/images/icon_help.png" alt="Help icon" class="icon-help" />
177 <div class="content">
178 <?php print $help ?>
179 </div>
180 </div>
181 <script type="text/javascript"><!--
182 toggleHide('help'); toggleShow('toggle-help-show');
183 //--></script>
184 <?php endif; ?>
185
186 <?php if ($messages != ""): ?>
187 <?php print $messages ?>
188 <?php endif; ?>
189
190 </div>
191 <?php endif; ?>
192
193 <?php if ($tabs != "" && !(arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2)))): ?>
194 <div id="local-tasks" class="no-print">
195 <?php print $tabs ?>
196 </div>
197 <?php endif; ?>
198
199 <?php print($content); ?>
200
201 <!-- BEGIN: Content middle -->
202 </div>
203 </div> <!-- end content div -->
204 </div> <!-- end centered div -->
205 <!-- END: Content middle -->
206
207
208 <?php if ($sidebar_left != '') { ?>
209 <!-- begin left sidebar content -->
210 <div class="left sidebar" id="div_column_left">
211 <div class="container-left">
212
213 <?php
214 print(civicspace_word_split($sidebar_left));
215 print(civicspace_word_split($sidebar_right));
216 ?>
217
218 </div> <!-- end container-left div -->
219 </div> <!-- end left div -->
220 <div class="clearing"></div>
221 <?php } ?>
222
223 </div> <!-- end float-wrap div -->
224 <!-- end left sidebar content -->
225
226 <!-- BEGIN: Content bottom -->
227 <div class="clearing"></div>
228 </div> <!-- end outer div -->
229 </div>
230 <!-- END: Content bottom -->
231
232
233 <div class="clearing"></div>
234
235 <?php print $closure ?>
236
237 </body>
238
239 </html>

  ViewVC Help
Powered by ViewVC 1.1.2