source: main/trunk/model-interfaces-dev/alt-atea/transform/layouts/header.xsl@ 34015

Last change on this file since 34015 was 34015, checked in by davidb, 4 years ago

Further elimination of PJ related HTML/templates

File size: 10.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
8 extension-element-prefixes="java util"
9 exclude-result-prefixes="java util gsf">
10
11
12 <xsl:template name="additionalHeaderContent-site">
13 <!-- override the cssTheme from interfaceConfig -->
14 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/humanity/jquery-ui.css" type="text/css"/>
15 <xsl:call-template name="basketHeadTags"/>
16 <xsl:call-template name="PeiJonesBackgroundWrapperSite"/>
17
18 <xsl:variable name="url">
19 <xsl:text>interfaces/</xsl:text>
20 <xsl:value-of select="$interface_name"/>
21 </xsl:variable>
22 <link href="{$url}/style/custom.css" rel="stylesheet" type="text/css"/>
23
24 <!--
25 <script text="text/javascript">
26 <xsl:text disable-output-escaping="yes">$(document).ready(function(){
27 /* hide cover image div */
28 var found = $(document).find("#coverImage");
29
30 if(found.length != 0){
31 var coverImageDiv = found[0];
32 $(coverImageDiv).hide();
33 }
34 });</xsl:text>
35 </script>
36 -->
37
38 </xsl:template>
39
40 <xsl:template name="PeiJonesBackgroundXXXX">
41 <style>
42
43
44 body {
45 background-image: url(sites/<xsl:value-of select="$site_name"/>/images/background.jpg);
46 background-repeat: no-repeat;
47 background-position: center top;
48 background-color: #2d2d2d;
49 }
50
51
52 #containerXXX {
53 max-width: 980px;
54 }
55
56 .ui-widget-header {
57 background: url(sites/<xsl:value-of select="$site_name"/>/images/pei-jones-banner-bg.png);
58 repeat-x scroll left top #f1ce28;
59 }
60
61 .ui-widget-content {
62 color: #888888;
63 }
64
65 .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
66/* background: url("images/ui-bg_highlight-hard_15_459e00_1x100.png") repeat-x scroll 50% 50% #459E00; */
67/* background: url(interfaces/<xsl:value-of select="$interface_name"/>/xxstyle/themes/main/images/ui-bg_highlight-hard_15_459e00_1x100.png) repeat-x scroll 50% 50% #a0a0a0; */
68
69 background: none repeat-x scroll 50% 50% #a0a0a0;
70/* border: 1px solid #327E04; */
71 border: 1px solid #808080;
72 color: #FFFFFF;
73 font-weight: bold;
74 }
75
76 .ui-widget-header {
77 border: 1px solid #808080;
78 }
79
80 .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
81 color: #000000;
82 /* text-decoration: none; */
83 }
84
85
86
87 </style>
88 </xsl:template>
89
90
91
92 <xsl:template name="PeiJonesBackgroundWrapperSite">
93
94 <xsl:variable name="url">
95 <xsl:text>interfaces/</xsl:text>
96 <xsl:value-of select="$interface_name"/>
97 </xsl:variable>
98
99 <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/default.css" media="all" />
100 <!--[if IE]><link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/large.css" media="all" /><![endif]-->
101 <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/print.css" media="print" />
102 <link rel="shortcut icon" type="image/ico" href="{$url}/wrapper-style/favicon.ico" />
103
104
105
106 <style>
107 .ui-widget-header {
108 background: #231814 url(interfaces/<xsl:value-of select="$interface_name"/>/images/Atea-background-topline.png) no-repeat top left;
109
110 }
111
112
113 input, textarea {
114 padding: 0px;
115 }
116
117
118 table#classifiernodelist {
119 text-transform: inherit;
120 }
121
122 .metaTableCellName {
123 background: none repeat scroll 0 0 #FDDC75;
124 }
125
126
127 </style>
128
129 <!--
130 <gsf:script language="JavaScript" src="{$url}/wrapper-style/script.js"></gsf:script>
131 -->
132
133
134 </xsl:template>
135
136 <xsl:template name="PeiJonesBackground2014XXXX">
137
138 <link type="text/css" rel="stylesheet" href="http://peitehurinuijones.co.nz/temp/default.css" media="all" />
139 <!--[if IE]><link type="text/css" rel="stylesheet" href="large.css" media="all" /><![endif]-->
140 <link type="text/css" rel="stylesheet" href="http://peitehurinuijones.co.nz/temp/print.css" media="print" />
141 <link rel="shortcut icon" type="image/ico" href="http://peitehurinuijones.co.nz/temp/favicon.ico" />
142
143
144 <style>
145 body {
146 background-image: url(sites/<xsl:value-of select="$site_name"/>/images/background.jpg);
147 background-repeat: no-repeat;
148 background-position: center top;
149 background-color: #2d2d2d;
150 }
151
152 #containerXXX {
153 max-width: 980px;
154 }
155
156 #topArea {
157 margin: 0px auto 0;
158 /* max-width: 970px; */
159 }
160
161 .ui-widget-header {
162 background: url(sites/<xsl:value-of select="$site_name"/>/images/pei-jones-banner-bg.png);
163 repeat-x scroll left top #f1ce28;
164 }
165
166 .ui-widget-content {
167 color: #888888;
168 }
169
170 .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
171/* background: url("images/ui-bg_highlight-hard_15_459e00_1x100.png") repeat-x scroll 50% 50% #459E00; */
172/* background: url(interfaces/<xsl:value-of select="$interface_name"/>/xxstyle/themes/main/images/ui-bg_highlight-hard_15_459e00_1x100.png) repeat-x scroll 50% 50% #a0a0a0; */
173
174 background: none repeat-x scroll 50% 50% #a0a0a0;
175/* border: 1px solid #327E04; */
176 border: 1px solid #808080;
177 color: #FFFFFF;
178 font-weight: bold;
179 }
180
181 .ui-widget-header {
182 border: 1px solid #808080;
183 }
184
185 .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
186 color: #000000;
187 /* text-decoration: none; */
188 }
189 </style>
190 </xsl:template>
191
192
193
194
195
196 <xsl:template name="UserTrackerScripts">
197 <script type="text/javascript">
198 <xsl:text disable-output-escaping="yes">
199 $(window).load(function()
200 {
201 if(gs.cgiParams.d &amp;&amp; gs.userInformation &amp;&amp; gs.userInformation.editEnabled == "true")
202 {
203 var statusBarDiv = $("&lt;div&gt;");
204 $("#gs_content").prepend(statusBarDiv);
205 var statusBar = new StatusBar(statusBarDiv[0]);
206 var statusUsernameMap = new Array();
207
208 var recordActionFunction = function()
209 {
210 var action = gs.userInformation.currentAction;
211 if(!action)
212 {
213 action = "viewingPage";
214 }
215 $.ajax(gs.xsltParams.library_name + "?a=g&amp;rt=ro&amp;s=RecordUserAction&amp;s1.site=" + gs.xsltParams.site_name + "&amp;s1.collection=" + gs.cgiParams.c + "&amp;s1.oid=" + gs.cgiParams.d + "&amp;s1.username=" + gs.userInformation.username + "&amp;s1.action=" + action);
216
217 if(action == "savingNote" &amp;&amp; gs.userInformation.saveSentOnce)
218 {
219 gs.userInformation.currentAction = "viewingPage";
220 gs.userInformation.saveSentOnce = false;
221 }
222 else if(action == "savingNote")
223 {
224 gs.userInformation.saveSentOnce = true;
225 }
226 }
227 setInterval(recordActionFunction, 5000);
228 recordActionFunction();
229
230 var userTrackerFunction = function(url)
231 {
232 $.ajax(url)
233 .success(function(response)
234 {
235 statusBar.clear();
236 var xml = $.parseXML(response);
237 $(xml).find("userList user").each(function()
238 {
239 var username = $(this).attr("username");
240 if(username == gs.userInformation.username)
241 {
242 return;
243 }
244
245 var statusString;
246 if($(this).attr("action") == "viewingPage")
247 {
248 statusString = "User " + $(this).attr("username") + " is currently viewing this page";
249 }
250 else if($(this).attr("action") == "addingNote")
251 {
252 statusString = "User " + $(this).attr("username") + " is currently adding a note";
253 }
254 else if($(this).attr("action") == "editingNote")
255 {
256 statusString = "User " + $(this).attr("username") + " is currently editing a note";
257 }
258 else if($(this).attr("action") == "savingNote")
259 {
260 gs.userInformation.reloadRequired = true;
261 statusString = "User " + $(this).attr("username") + " has saved a note";
262 }
263
264 if(gs.userInformation.reloadRequired)
265 {
266 statusString += ", a note has been added or changed, please click &lt;a href=\"javascript:location.reload();\"&gt;here&lt;/a&gt; to reload the page";
267 }
268 statusBar.addStatus(statusString);
269 });
270 });
271 }
272 var getURL = gs.xsltParams.library_name + "?a=g&amp;rt=ro&amp;s=GetActivityOnPage&amp;s1.site=" + gs.xsltParams.site_name + "&amp;s1.collection=" + gs.cgiParams.c + "&amp;s1.oid=" + gs.cgiParams.d;
273 setInterval(function(){userTrackerFunction(getURL);}, 10000);
274 userTrackerFunction(getURL);
275 }
276 });
277 </xsl:text>
278 </script>
279 </xsl:template>
280
281 <!-- redefine this to only include the buttons we want, and don't include the styling -->
282 <xsl:template name="home-help-preferencesXXXX">
283 <xsl:call-template name="PrefsLink"/>
284 <xsl:call-template name="HelpLink"/>
285 <span id="userMenuButton"><xsl:call-template name="LoginoutLink"/></span>
286 </xsl:template>
287
288 <!-- redefine to link to google doc -->
289 <!--
290 <xsl:template name="HelpLink">
291 < ! - - help - - >
292 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection/@name"/>/page/html?url=https://docs.google.com/document/d/18PinB6uwdOvwzPi8foIV0hF4G8eNVYJ5XyqYL_k7ij0/edit?usp=sharing</xsl:attribute>
293 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
294 <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>
295 </a>
296 </xsl:template>
297 -->
298
299</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.