1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | |
---|
3 | <xsl:stylesheet version="3.0" |
---|
4 | xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" |
---|
5 | xmlns:ibis="http://www.ibisph.org" |
---|
6 | |
---|
7 | exclude-result-prefixes="ibis" |
---|
8 | > |
---|
9 | |
---|
10 | <ibis:doc> |
---|
11 | <name>html/SiteSpecific</name> |
---|
12 | <summary> |
---|
13 | Main site specific template API definitions and core page API |
---|
14 | template overrides. |
---|
15 | </summary> |
---|
16 | <description> |
---|
17 | This XSLT provides the core, base site specific API related template |
---|
18 | definitions. It should contain global, general definitions like menu |
---|
19 | code and general site specific APIs. If specific definitions are |
---|
20 | implemented then the local SiteSpecific.xslt will need to make sure |
---|
21 | that the "correct" template definition is implemented. Otherwise high |
---|
22 | level template overrides will take precedence over lower level page |
---|
23 | specific definitions as the SiteSpecific.xslt is the last template |
---|
24 | imported. |
---|
25 | </description> |
---|
26 | </ibis:doc> |
---|
27 | |
---|
28 | <xsl:param name="Page.ibisphWebmasterEmailAddress" select="'chs@doh.nj.gov'" |
---|
29 | ibis:doc="Site's Webmaster email address which is used in the head's meta |
---|
30 | tag and can be used in footers etc. This value should be implemented |
---|
31 | in the site specific XSLT." |
---|
32 | /> |
---|
33 | |
---|
34 | <xsl:param name="Page.applicationTitle" select="'NJSHAD'" |
---|
35 | ibis:doc="Used for the page's title element prefix text" |
---|
36 | /> |
---|
37 | |
---|
38 | |
---|
39 | <xsl:param name="ibis.adopterTitle" select="'New Jersey'" |
---|
40 | ibis:doc="Value to be used when the XSLT code needs a title usage example |
---|
41 | is CP reports that compare community, state, and US. |
---|
42 | " |
---|
43 | /> |
---|
44 | |
---|
45 | <xsl:param name="SiteSpecific.siteNavigationSelectionsXMLFilePathAndName" |
---|
46 | select="ibis:getContentPath('xml/selections/navigation/SiteNavigationSelections.xml')" |
---|
47 | /> |
---|
48 | |
---|
49 | <xsl:param name="SiteSpecific.siteNavigationSelections" |
---|
50 | ibis:doc="Menu XML document/elements which contains all the applicable |
---|
51 | 'xincluded' sub files. There are several ways to do this xinclude |
---|
52 | functionality. 1) two step process involving a Java code, 2) use |
---|
53 | an XSL processor that supports xinclude, 3) create a variable that |
---|
54 | contains the entire document fully processed. The latter approach |
---|
55 | is used in this situation because the menu files are quite small and |
---|
56 | this option does not involve any outside dependence. For performance |
---|
57 | xincludes might not be a good way to go but for maint it is a good |
---|
58 | solution." |
---|
59 | > |
---|
60 | <xsl:apply-templates select="document($SiteSpecific.siteNavigationSelectionsXMLFilePathAndName)/SELECTIONS/*" mode="ibis.copy"/> |
---|
61 | </xsl:param> |
---|
62 | |
---|
63 | <xsl:param name="PathSegments" select="'about'" ibis:doc="injected via the commonModelMapListController which most controllers inherit."/> |
---|
64 | <xsl:param name="SiteSpecific.siteNavigationSelectedSelectionName" select="concat($PathSegments[1], 'Menu')" |
---|
65 | ibis:doc="Used to reference the the context menu items." |
---|
66 | /> |
---|
67 | <xsl:param name="SiteSpecific.navigationPathSelections" |
---|
68 | ibis:doc="Default path segments for bread crumb trails..." |
---|
69 | > |
---|
70 | <xsl:for-each select="$PathSegments[position() != last()]"> |
---|
71 | <xsl:variable name="currentPathSegment" select="position()"/> |
---|
72 | <SELECTION> |
---|
73 | <CONTENT> |
---|
74 | <xsl:value-of select="concat(upper-case(substring(.,1,1)), substring(., 2))"/> |
---|
75 | </CONTENT> |
---|
76 | </SELECTION> |
---|
77 | <SELECTION> |
---|
78 | <CONTENT>Current</CONTENT> |
---|
79 | </SELECTION> |
---|
80 | </xsl:for-each> |
---|
81 | </xsl:param> |
---|
82 | |
---|
83 | |
---|
84 | <xsl:param name="SiteSpecific.siteAuthenticatedUserSelectionXMLFilePathAndName" |
---|
85 | select="ibis:getContentPath('xml/selection/navigation/AuthenticatedUserSelection.xml')" |
---|
86 | /> |
---|
87 | <xsl:param name="SiteSpecific.siteNonAuthenticatedUserSelectionXMLFilePathAndName" |
---|
88 | select="ibis:getContentPath('xml/selection/navigation/UserSelection.xml')" |
---|
89 | /> |
---|
90 | <xsl:param name="SiteSpecific.siteAuthenticatedUserSelections"> |
---|
91 | <xsl:apply-templates select="document($SiteSpecific.siteAuthenticatedUserSelectionXMLFilePathAndName)/SELECTION/SELECTIONS" mode="ibis.copy"/> |
---|
92 | </xsl:param> |
---|
93 | <xsl:param name="SiteSpecific.siteNonAuthenticatedUserSelections"> |
---|
94 | <xsl:apply-templates select="document($SiteSpecific.siteNonAuthenticatedUserSelectionXMLFilePathAndName)/SELECTION/SELECTIONS" mode="ibis.copy"/> |
---|
95 | </xsl:param> |
---|
96 | |
---|
97 | |
---|
98 | <xsl:param name="SiteSpecific.printPageFooter" |
---|
99 | ibis:doc="contents of the print footer to show if media=print" |
---|
100 | > |
---|
101 | The information provided above is from the Department of Health's NJSHAD web site (https://nj.gov/health/shad). The information published |
---|
102 | on this website may be reproduced without permission. Please use the following citation: |
---|
103 | " |
---|
104 | Retrieved |
---|
105 | <xsl:value-of select="ibis:getFormattedDateTime(current-dateTime())"/> |
---|
106 | from Department of Health, New Jersey State Health Assessment Data Web site: https://nj.gov/health/shad |
---|
107 | ". |
---|
108 | |
---|
109 | <xsl:if test="string-length($Page.XMLModifedDate) != 0"> |
---|
110 | <br/><br/> |
---|
111 | <xsl:value-of select="$Page.XMLModifedDate"/> |
---|
112 | </xsl:if> |
---|
113 | </xsl:param> |
---|
114 | |
---|
115 | |
---|
116 | <xsl:param name="SiteSpecific.logoutRequest" select="'user/logout'"/> |
---|
117 | |
---|
118 | |
---|
119 | <xsl:template name="Page.banner"> |
---|
120 | <div id="banner"> |
---|
121 | <!--div class="StateBanner"> |
---|
122 | <div style="float: right"> |
---|
123 | Lt. Governor Kim Guadagno |
---|
124 | </div> |
---|
125 | <div> |
---|
126 | Governor Chris Christie |
---|
127 | </div> |
---|
128 | </div--> |
---|
129 | |
---|
130 | <div class="DOHBanner"> |
---|
131 | <a href="http://nj.gov/health"></a> |
---|
132 | <ul> |
---|
133 | <!--li><a href="http://nj.gov/health">NJDOH Home</a></li--> |
---|
134 | <li><a href="http://nj.gov/">NJ Home</a></li> |
---|
135 | <li><a href="http://www.nj.gov/nj/gov/njgov/alphaserv.html">Services A to Z</a></li> |
---|
136 | <li><a href="http://www.nj.gov/nj/gov/deptserv/">Departments/Agencies</a></li> |
---|
137 | <li><a href="http://www.nj.gov/faqs/">FAQs</a></li> |
---|
138 | </ul> |
---|
139 | </div> |
---|
140 | </div> |
---|
141 | </xsl:template> |
---|
142 | |
---|
143 | |
---|
144 | <xsl:template name="Page.header" |
---|
145 | ibis:doc="State IBIS-PH specific implementation of the 'html.header' |
---|
146 | API template. This template provides the State and DOH banners via |
---|
147 | a siteSpecific.headerBanner template call and the blue IBIS-PH |
---|
148 | graphic with site navigation menus via the siteSpecific.siteNavigation |
---|
149 | template. To turn off the banners, simply override it with nothing." |
---|
150 | > |
---|
151 | <header id="header"> |
---|
152 | <div class="FluidContainer"> |
---|
153 | <a href="/" title="Home link" |
---|
154 | ><img src="image/logo.png" alt="header home"/></a> |
---|
155 | </div> |
---|
156 | |
---|
157 | <div class="FluidContainer TitleContainer"> |
---|
158 | <h1 class="Title">New Jersey State Health Assessment Data |
---|
159 | <div>New Jersey's Public Health Data Resource</div> |
---|
160 | </h1> |
---|
161 | </div> |
---|
162 | |
---|
163 | <xsl:call-template name="SiteSpecific.siteNavigation"/> |
---|
164 | </header> |
---|
165 | </xsl:template> |
---|
166 | |
---|
167 | |
---|
168 | <xsl:template name="SiteSpecific.siteNavigation"> |
---|
169 | <nav id="siteNavigation"> |
---|
170 | <xsl:call-template name="MenuSelectionsList.megaMenu"> |
---|
171 | <xsl:with-param name="selections" select="$SiteSpecific.siteNavigationSelections"/> |
---|
172 | <xsl:with-param name="displayControlType" select="'input'"/> |
---|
173 | <xsl:with-param name="inputName" select="'siteMenuPanelsControl'"/> |
---|
174 | <xsl:with-param name="containerClass" select="'HorizontalMenu'"/> |
---|
175 | <xsl:with-param name="selectedSelectionName" select="$SiteSpecific.siteNavigationSelectedSelectionName"/> |
---|
176 | </xsl:call-template> |
---|
177 | |
---|
178 | <form id="siteSearch" name="siteSearch" method="get" action="http://www.google.com/search" contenteditable="contenteditable" class="Search"> |
---|
179 | <label for="siteSearchInput" accesskey="s" class="OffPage">Search the site:</label> |
---|
180 | <input id="siteSearchInput" name="q" |
---|
181 | placeholder="Search the Site..." |
---|
182 | type="text" autocomplete="on" |
---|
183 | dir="ltr" spellcheck="false" |
---|
184 | /> |
---|
185 | <button type="submit" value="" alt="Search" title="Search" font-icon=""></button> |
---|
186 | <input type="hidden" name="sitesearch" value="" title="site URL to be searched"/> |
---|
187 | </form> |
---|
188 | </nav> |
---|
189 | </xsl:template> |
---|
190 | |
---|
191 | |
---|
192 | <xsl:template name="Page.content" |
---|
193 | ibis:doc="Provides the adopter specific layout by overriding the standard |
---|
194 | content container. This layout consists of one main content column. |
---|
195 | " |
---|
196 | > |
---|
197 | <main id="content" cellpadding="0" cellspacing="0" border="0" |
---|
198 | summary="main content container" |
---|
199 | caption="main content container" |
---|
200 | > |
---|
201 | <div class="NavigationPathSocialMedia"> |
---|
202 | <div id="navigationPath" title="Navigation path to get to this page."> |
---|
203 | Path: |
---|
204 | <xsl:call-template name="SelectionsList.processSelections"> |
---|
205 | <xsl:with-param name="selections"> |
---|
206 | <SELECTION> |
---|
207 | <TITLE><xsl:value-of select="$Page.applicationTitle"/></TITLE> |
---|
208 | <LOCAL_URL><xsl:value-of select="$ibis.baseRequestPath"/></LOCAL_URL> |
---|
209 | </SELECTION> |
---|
210 | <xsl:copy-of select="$SiteSpecific.navigationPathSelections"/> |
---|
211 | </xsl:with-param> |
---|
212 | </xsl:call-template> |
---|
213 | </div> |
---|
214 | <xsl:call-template name="SiteSpecific.socialMediaLinks"/> |
---|
215 | </div> |
---|
216 | |
---|
217 | <xsl:call-template name="Page.contentHeader"/> |
---|
218 | <xsl:call-template name="Page.contentBody"/> |
---|
219 | <xsl:call-template name="Page.contentFooter"/> |
---|
220 | </main> |
---|
221 | |
---|
222 | <!-- Create global general purpose video dialog as all pages have |
---|
223 | navigation which use the video dialog. |
---|
224 | --> |
---|
225 | <xsl:call-template name="DialogWindow.videoPlayer"/> |
---|
226 | </xsl:template> |
---|
227 | |
---|
228 | |
---|
229 | <xsl:template name="Page.footer" |
---|
230 | ibis:doc="Contains State specific footer definitions. Note that there are |
---|
231 | two blocks listed. One MUST always be hidden. If printing then hide |
---|
232 | the standard page footer and show the print version. If not printing |
---|
233 | then hide the print version and display the standard - this is all |
---|
234 | controlled via CSS and the print media type." |
---|
235 | > |
---|
236 | <div id="footer"> |
---|
237 | <div id="footerContent"> |
---|
238 | <div id="opra"> |
---|
239 | <a href="http://www.state.nj.us/health/opra/index.html"><img src="image/opranj_trans.png" alt="OPRA- Open Public RecordAct" border="0" align="left"/></a> |
---|
240 | </div> |
---|
241 | |
---|
242 | <div id="eweb"> |
---|
243 | <ul class="footerMenu"> |
---|
244 | <li><a href="http://www.state.nj.us/health/feedback.shtml" class="stateLinks">Contact NJDOH</a></li> |
---|
245 | <li><a href="http://www.nj.gov/nj/privacy.html" class="stateLinks">Privacy Notice</a></li> |
---|
246 | <li><a href="http://www.nj.gov/nj/legal.html" class="stateLinks">Legal Statement</a></li> |
---|
247 | <li><a href="http://www.nj.gov/nj/accessibility.html" class="stateLinks">Accessibility Statement</a></li> |
---|
248 | <li><a href="http://www.nj.gov/"><img src="image/footernj.png" alt="nj state elogo" border="0"/></a></li> |
---|
249 | </ul> |
---|
250 | </div> |
---|
251 | <br/><br/> |
---|
252 | |
---|
253 | <div id="state"> |
---|
254 | <div> |
---|
255 | <h4>NJSHAD:</h4> |
---|
256 | <ul class="footerMenu"> |
---|
257 | <li><a href="home/Welcome.html">NJSHAD Home</a></li> |
---|
258 | <li><a href="home/ContentUsage.html">About NJSHAD</a></li> |
---|
259 | <li><a href="home/Acknowledgments.html">History/Acknowledgments</a></li> |
---|
260 | <li><a href="home/SiteMap.html">Site Map</a></li> |
---|
261 | <li><a href="home/WebCitation.html">Web Citation</a></li> |
---|
262 | <li><a href="home/Faqs.html">FAQs</a></li> |
---|
263 | <li><a href="home/ContactInformation.html">Contact NJSHAD</a></li> |
---|
264 | </ul> |
---|
265 | </div> |
---|
266 | |
---|
267 | <div> |
---|
268 | <h4>Department:</h4> |
---|
269 | <ul class="footerMenu"> |
---|
270 | <li><a href="http://www.state.nj.us/health/index.shtml">NJDOH Home</a></li> |
---|
271 | <li><a href="http://www.nj.gov/health/contact.shtml#ro">TTY Relay</a></li> |
---|
272 | <li><a href="http://www.state.nj.us/health/topics.shtml">Topic A to Z</a></li> |
---|
273 | <li><a href="http://www.state.nj.us/health/commiss/org.shtml">Programs/Services</a></li> |
---|
274 | <li><a href="http://www.nj.gov/health/documents/notice_of_privacy_practices.pdf">Notice of Privacy Practices</a></li> |
---|
275 | <li><a href="http://www.nj.gov/health/epht/">NJEPHT Website</a></li> |
---|
276 | </ul> |
---|
277 | </div> |
---|
278 | |
---|
279 | <div> |
---|
280 | <h4>Statewide:</h4> |
---|
281 | <ul class="footerMenu"> |
---|
282 | <li><a href="http://www.nj.gov/nj/">NJ Home</a></li> |
---|
283 | <li><a href="http://www.nj.gov/nj/gov/njgov/alphaserv.html">Services A to Z</a></li> |
---|
284 | <li><a href="http://www.nj.gov/nj/deptserv.html">Departments/Agencies</a></li> |
---|
285 | <li><a href="http://www.nj.gov/faqs/">FAQs</a></li> |
---|
286 | </ul> |
---|
287 | </div> |
---|
288 | </div> |
---|
289 | <a href="http://www.phaboard.org/"><img src="image/PHABseal.png" alt="PHAB seal" height="100px" border="0" align="right"/></a> |
---|
290 | |
---|
291 | <div id="copyright"> |
---|
292 | Copyright © State of New Jersey, 1996-2019<br/> |
---|
293 | Department of Health<br/> |
---|
294 | PO Box 360 <br/> |
---|
295 | Trenton, NJ 08625-0360<br/> |
---|
296 | </div> |
---|
297 | |
---|
298 | <xsl:if test="string-length($Page.XMLModifedDate) != 0"> |
---|
299 | <div style="padding: 1em 0 2em 0"> |
---|
300 | NJSHAD Site Last Modified: 14 Jul 2021<!--xsl:value-of select="$Page.XMLModifedDate"/--> |
---|
301 | (Individual page updates vary.) |
---|
302 | </div> |
---|
303 | </xsl:if> |
---|
304 | |
---|
305 | </div> |
---|
306 | |
---|
307 | <!-- START OF SmartSource Data Collector TAG --> |
---|
308 | <!-- Copyright (c) 1996-2010 WebTrends Inc. All rights reserved. --> |
---|
309 | <!-- Version: 8.6.2 --> |
---|
310 | <!-- Tag Builder Version: 3.0 --> |
---|
311 | <!-- Created: 7/15/2010 7:20:59 PM --> |
---|
312 | |
---|
313 | <meta name="WT.cg_n" content="doh-shad" /> |
---|
314 | <script src="https://www-doh.state.nj.us/doh-shad/js/webtrends.js" type="text/javascript"></script> |
---|
315 | <script type="text/javascript"> |
---|
316 | var _tag=new WebTrends(); |
---|
317 | _tag.dcsGetId(); |
---|
318 | </script> |
---|
319 | <script type="text/javascript"> |
---|
320 | _tag.dcsCollect(); |
---|
321 | </script> |
---|
322 | <noscript> |
---|
323 | <div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="https://sdc.state.nj.us/dcstf1ino000008qls7rr9e92_5q1n/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=8.6.2"/></div> |
---|
324 | </noscript> |
---|
325 | |
---|
326 | </div> |
---|
327 | |
---|
328 | |
---|
329 | <!-- had to wrap a div within so FF would format correctly... --> |
---|
330 | <div id="printPageFooter"> |
---|
331 | <xsl:copy-of select="$SiteSpecific.printPageFooter"/> |
---|
332 | </div> |
---|
333 | </xsl:template> |
---|
334 | |
---|
335 | |
---|
336 | <xsl:template name="SiteSpecific.socialMediaLinks"> |
---|
337 | <nav class="SocialMedia" title="options to easily share this page."> |
---|
338 | <span class="Title">Share:</span> |
---|
339 | <ul> |
---|
340 | <li> |
---|
341 | <!-- this also works: a href="javascript:window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURI(location.href))" |
---|
342 | Issues with target=_blank as the location.href is the |
---|
343 | blank window. Need to get a handle to the window.open |
---|
344 | object so can pass vars but if doing that might as well |
---|
345 | simply open with the URL!!! |
---|
346 | |
---|
347 | http://www.sharelinkgenerator.com/: |
---|
348 | https://www.facebook.com/sharer/sharer.php?u=msn.com |
---|
349 | https://twitter.com/intent/tweet?text=msn.com |
---|
350 | --> |
---|
351 | <a href="javascript:window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + window.encodedPageRequestURI)" |
---|
352 | title="Share this page on LinkedIn" |
---|
353 | class="FontIcon LinkedIn" |
---|
354 | > |
---|
355 | </a> |
---|
356 | </li> |
---|
357 | <li> |
---|
358 | <a href="javascript:window.open('https://www.facebook.com/sharer.php?u=' + window.encodedPageRequestURI)" |
---|
359 | title="Share this page on Facebook" |
---|
360 | class="FontIcon Facebook" |
---|
361 | > |
---|
362 | </a> |
---|
363 | </li> |
---|
364 | <li> |
---|
365 | <a href="javascript:window.open('https://twitter.com/intent/tweet?url=' + window.encodedPageRequestURI)" |
---|
366 | title="Share this page on Twitter" |
---|
367 | class="FontIcon Twitter" |
---|
368 | > |
---|
369 | </a> |
---|
370 | </li> |
---|
371 | <li> |
---|
372 | <a href="javascript:location.href='mailto:?body=' + window.encodedPageRequestURI" |
---|
373 | title="Email this page's URL" |
---|
374 | class="FontIcon Email" |
---|
375 | > |
---|
376 | </a> |
---|
377 | </li> |
---|
378 | <li> |
---|
379 | <a href="#" onclick="window.print();return false;" |
---|
380 | title="Print this page and share it (printer friendly version)" |
---|
381 | rel="nofollow" target="_blank" |
---|
382 | class="FontIcon PrinterFriendly" |
---|
383 | > |
---|
384 | </a> |
---|
385 | </li> |
---|
386 | </ul> |
---|
387 | </nav> |
---|
388 | </xsl:template> |
---|
389 | |
---|
390 | </xsl:stylesheet> |
---|
391 | <!-- ============================= End of File ============================= --> |
---|
392 | |
---|