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

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

Some quick-fixes to get to a demo point, after the loss of some files when GCE VM and disk were erased

File size: 9.6 KB
RevLine 
[34009]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 -->
[34325]14 <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/start/jquery-ui.css" type="text/css"/>
[34009]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"/>
[34015]23
[34009]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>
[34015]35 </script>
36 -->
[34009]37
38 </xsl:template>
39
[34015]40 <xsl:template name="PeiJonesBackgroundXXXX">
[34009]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>
[34325]107 .ui-widget-headerXXX {
[34009]108 background: #231814 url(interfaces/<xsl:value-of select="$interface_name"/>/images/Atea-background-topline.png) no-repeat top left;
109
110 }
111
[34325]112 body {
113 background-image: none;
114 }
115
116 #wrapper-container {
117 background: #252c3f url(interfaces/<xsl:value-of select="$interface_name"/>/images/bgHome2.jpg) no-repeat;
118 margin: 0px 0px 0px 0px;
119 background-position: center top;
120
121 }
[34009]122
[34325]123 #container {
124 max-width: 980px;
125 }
[34009]126 input, textarea {
127 padding: 0px;
128 }
129
130
131 table#classifiernodelist {
132 text-transform: inherit;
133 }
134
135 .metaTableCellName {
136 background: none repeat scroll 0 0 #FDDC75;
137 }
138
139
140 </style>
141
142 <!--
143 <gsf:script language="JavaScript" src="{$url}/wrapper-style/script.js"></gsf:script>
144 -->
145
146
147 </xsl:template>
148
149
[34325]150 <xsl:template name="PeiJonesBackgroundWrapperSite2">
[34009]151
[34325]152 <xsl:variable name="url">
153 <xsl:text>interfaces/</xsl:text>
154 <xsl:value-of select="$interface_name"/>
155 </xsl:variable>
156
157 <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style2/default.css" media="all" />
158 <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style2/print.css" media="print" />
159 <link rel="shortcut icon" type="image/ico" href="{$url}/wrapper-style2/favicon.ico" />
160
161
162
163 <style>
164 #wrapper-container {
165 background: #252c3f url(interfaces/<xsl:value-of select="$interface_name"/>/images/bgHome2.jpg) no-repeat top left;
166
167 }
168
169
170 input, textarea {
171 padding: 0px;
172 }
173
174
175 table#classifiernodelist {
176 text-transform: inherit;
177 }
178
179 .metaTableCellName {
180 background: none repeat scroll 0 0 #FDDC75;
181 }
182
183
184 </style>
185
186 <!--
187 <gsf:script language="JavaScript" src="{$url}/wrapper-style/script.js"></gsf:script>
188 -->
189
190
191 </xsl:template>
192
193
194
[34009]195 <xsl:template name="UserTrackerScripts">
196 <script type="text/javascript">
197 <xsl:text disable-output-escaping="yes">
198 $(window).load(function()
199 {
200 if(gs.cgiParams.d &amp;&amp; gs.userInformation &amp;&amp; gs.userInformation.editEnabled == "true")
201 {
202 var statusBarDiv = $("&lt;div&gt;");
203 $("#gs_content").prepend(statusBarDiv);
204 var statusBar = new StatusBar(statusBarDiv[0]);
205 var statusUsernameMap = new Array();
206
207 var recordActionFunction = function()
208 {
209 var action = gs.userInformation.currentAction;
210 if(!action)
211 {
212 action = "viewingPage";
213 }
214 $.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);
215
216 if(action == "savingNote" &amp;&amp; gs.userInformation.saveSentOnce)
217 {
218 gs.userInformation.currentAction = "viewingPage";
219 gs.userInformation.saveSentOnce = false;
220 }
221 else if(action == "savingNote")
222 {
223 gs.userInformation.saveSentOnce = true;
224 }
225 }
226 setInterval(recordActionFunction, 5000);
227 recordActionFunction();
228
229 var userTrackerFunction = function(url)
230 {
231 $.ajax(url)
232 .success(function(response)
233 {
234 statusBar.clear();
235 var xml = $.parseXML(response);
236 $(xml).find("userList user").each(function()
237 {
238 var username = $(this).attr("username");
239 if(username == gs.userInformation.username)
240 {
241 return;
242 }
243
244 var statusString;
245 if($(this).attr("action") == "viewingPage")
246 {
247 statusString = "User " + $(this).attr("username") + " is currently viewing this page";
248 }
249 else if($(this).attr("action") == "addingNote")
250 {
251 statusString = "User " + $(this).attr("username") + " is currently adding a note";
252 }
253 else if($(this).attr("action") == "editingNote")
254 {
255 statusString = "User " + $(this).attr("username") + " is currently editing a note";
256 }
257 else if($(this).attr("action") == "savingNote")
258 {
259 gs.userInformation.reloadRequired = true;
260 statusString = "User " + $(this).attr("username") + " has saved a note";
261 }
262
263 if(gs.userInformation.reloadRequired)
264 {
265 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";
266 }
267 statusBar.addStatus(statusString);
268 });
269 });
270 }
271 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;
272 setInterval(function(){userTrackerFunction(getURL);}, 10000);
273 userTrackerFunction(getURL);
274 }
275 });
276 </xsl:text>
277 </script>
278 </xsl:template>
279
280 <!-- redefine this to only include the buttons we want, and don't include the styling -->
281 <xsl:template name="home-help-preferencesXXXX">
282 <xsl:call-template name="PrefsLink"/>
283 <xsl:call-template name="HelpLink"/>
284 <span id="userMenuButton"><xsl:call-template name="LoginoutLink"/></span>
285 </xsl:template>
286
287 <!-- redefine to link to google doc -->
288 <!--
289 <xsl:template name="HelpLink">
290 < ! - - help - - >
291 <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>
292 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
293 <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>
294 </a>
295 </xsl:template>
296 -->
297
298</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.