1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | |
---|
3 | <xsl:stylesheet version="2.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 | <!--xsl:import href="VideoDialog.xslt"/--> |
---|
10 | |
---|
11 | <xsl:param name="Page.applicationTitle" select="'NM-Tracking'" |
---|
12 | ibis:doc="Used for the page's title element prefix text" |
---|
13 | /> |
---|
14 | |
---|
15 | <xsl:param name="ibis.adopterTitle" select="'New Mexico'" |
---|
16 | ibis:doc="Value to be used when the XSLT code needs a title usage example |
---|
17 | is CP reports that compare community, state, and US. |
---|
18 | " |
---|
19 | /> |
---|
20 | |
---|
21 | <xsl:param name="SiteSpecific.siteNavigationSelectionsXMLFilePathAndName" |
---|
22 | select="ibis:getContentPath('xml/selections/navigation/SiteNavigationSelections.xml')" |
---|
23 | /> |
---|
24 | |
---|
25 | <xsl:param name="SiteSpecific.siteNavigationSelections" |
---|
26 | ibis:doc="Menu XML document/elements which contains all the applicable |
---|
27 | 'xincluded' sub files. There are several ways to do this xinclude |
---|
28 | functionality. 1) two step process involving a Java code, 2) use |
---|
29 | an XSL processor that supports xinclude, 3) create a variable that |
---|
30 | contains the entire document fully processed. The latter approach |
---|
31 | is used in this situation because the menu files are quite small and |
---|
32 | this option does not involve any outside dependence. For performance |
---|
33 | xincludes might not be a good way to go but for maint it is a good |
---|
34 | solution." |
---|
35 | > |
---|
36 | <xsl:apply-templates select="document($SiteSpecific.siteNavigationSelectionsXMLFilePathAndName)/SELECTIONS/*" mode="ibis.copy"/> |
---|
37 | </xsl:param> |
---|
38 | |
---|
39 | <xsl:param name="PathSegments" select="'about'" ibis:doc="injected via the commonModelMapListController which most controllers inherit."/> |
---|
40 | <xsl:param name="SiteSpecific.siteNavigationSelectedSelectionName" select="concat($PathSegments[1], 'Menu')" |
---|
41 | ibis:doc="Used to reference the the context menu items." |
---|
42 | /> |
---|
43 | <xsl:param name="SiteSpecific.navigationPathSelections" |
---|
44 | ibis:doc="Default path segments for bread crumb trails..." |
---|
45 | > |
---|
46 | <xsl:for-each select="$PathSegments[position() != last()]"> |
---|
47 | <xsl:variable name="currentPathSegment" select="position()"/> |
---|
48 | <SELECTION> |
---|
49 | <CONTENT> |
---|
50 | <xsl:value-of select="concat(upper-case(substring(.,1,1)), substring(., 2))"/> |
---|
51 | </CONTENT> |
---|
52 | </SELECTION> |
---|
53 | </xsl:for-each> |
---|
54 | <SELECTION> |
---|
55 | <CONTENT>Current</CONTENT> |
---|
56 | </SELECTION> |
---|
57 | </xsl:param> |
---|
58 | |
---|
59 | |
---|
60 | <xsl:param name="SiteSpecific.logoutRequest" select="'user/logout'"/> |
---|
61 | |
---|
62 | <xsl:param name="SiteSpecific.siteAuthenticatedUserSelectionXMLFilePathAndName" |
---|
63 | select="ibis:getContentPath('xml/selections/navigation/AuthenticatedUserSelection.xml')" |
---|
64 | /> |
---|
65 | <xsl:param name="SiteSpecific.siteNonAuthenticatedUserSelectionXMLFilePathAndName" |
---|
66 | select="ibis:getContentPath('xml/selections/navigation/UserSelection.xml')" |
---|
67 | /> |
---|
68 | <xsl:param name="SiteSpecific.siteAuthenticatedUserSelections"> |
---|
69 | <xsl:apply-templates select="document($SiteSpecific.siteAuthenticatedUserSelectionXMLFilePathAndName)/SELECTION/SELECTIONS" mode="ibis.copy"/> |
---|
70 | </xsl:param> |
---|
71 | <xsl:param name="SiteSpecific.siteNonAuthenticatedUserSelections"> |
---|
72 | <xsl:apply-templates select="document($SiteSpecific.siteNonAuthenticatedUserSelectionXMLFilePathAndName)/SELECTION/SELECTIONS" mode="ibis.copy"/> |
---|
73 | </xsl:param> |
---|
74 | |
---|
75 | <xsl:param name="SiteSpecific.printPageFooter" |
---|
76 | ibis:doc="contents of the print footer to show if media=print" |
---|
77 | > |
---|
78 | The NM EPHT website is supported by Cooperative Agreement Number, |
---|
79 | <span class="Bold">6 NUE1EH001354 </span> (previously, 5 U38EH000949), funded by the |
---|
80 | Centers for Disease Control and Prevention (CDC). Its contents are solely the |
---|
81 | responsibility of the authors and do not necessarily represent the official views of |
---|
82 | CDC or do not necessarily reflect the official policies of the Department of Health |
---|
83 | and Human Services, nor does the mention of trade names, commercial practices, or |
---|
84 | organizations imply endorsement by the U.S. Government. The information published |
---|
85 | on this website may be reproduced without permission. Please use the following |
---|
86 | citation: |
---|
87 | " |
---|
88 | Retrieved |
---|
89 | <xsl:value-of select="ibis:getFormattedDateTime(current-dateTime())"/> |
---|
90 | from New Mexico EPHT Tracking Public Web site: https://nmtracking.org/ |
---|
91 | ". |
---|
92 | |
---|
93 | <xsl:if test="string-length($Page.XMLModifedDate) != 0"> |
---|
94 | <br/><br/> |
---|
95 | Content updated: <xsl:value-of select="$Page.XMLModifedDate"/> |
---|
96 | </xsl:if> |
---|
97 | </xsl:param> |
---|
98 | |
---|
99 | |
---|
100 | <!-- these do NOT apply to all pages but are set here for convenience --> |
---|
101 | <xsl:param name="Page.communityBaseRequestPath" select="'dataportal/community/'"/> |
---|
102 | <xsl:param name="Page.indicatorBaseRequestPath" select="'dataportal/indicator/'"/> |
---|
103 | <xsl:param name="Page.queryBaseRequestPath" select="'dataportal/query/'"/> |
---|
104 | |
---|
105 | |
---|
106 | <xsl:template name="Page.banner"/> |
---|
107 | |
---|
108 | |
---|
109 | <xsl:template name="Page.header" |
---|
110 | ibis:doc="State IBIS-PH specific implementation of the 'html.header' |
---|
111 | API template. This template provides the State and DOH banners via |
---|
112 | a siteSpecific.headerBanner template call and the blue IBIS-PH |
---|
113 | graphic with site navigation menus via the siteSpecific.siteNavigation |
---|
114 | template. To turn off the banners, simply override it with nothing." |
---|
115 | > |
---|
116 | <header id="header"> |
---|
117 | <img src="image/logo.png" class="Logo" |
---|
118 | onclick="location.href='{$ibis.baseRequestPath}'" |
---|
119 | /> |
---|
120 | |
---|
121 | <div id="searchAndLoginContainer"> |
---|
122 | <span> |
---|
123 | <form id="siteSearch" name="siteSearch" method="get" action="https://www.google.com/search" contenteditable="contenteditable" class="Search"> |
---|
124 | <label for="siteSearchInput" accesskey="s" class="OffPage">Search the site:</label> |
---|
125 | <input id="siteSearchInput" name="q" |
---|
126 | placeholder="Search" |
---|
127 | type="text" autocomplete="on" |
---|
128 | dir="ltr" spellcheck="false" |
---|
129 | /> |
---|
130 | <button type="submit" value="" alt="Search" title="Search" font-icon=""></button> |
---|
131 | <input type="hidden" name="sitesearch" value="{$ibis.baseRequestPath}" title="site URL to be searched"/> |
---|
132 | </form> |
---|
133 | |
---|
134 | <xsl:if test="ibis:isAuthenticated()"> |
---|
135 | <a href="{$SiteSpecific.logoutRequest}" class="LoggedIn" |
---|
136 | title="You are logged in as: {$ibis.userProfile/ID}" |
---|
137 | >Logout</a> |
---|
138 | </xsl:if> |
---|
139 | <xsl:if test="not(ibis:isAuthenticated())"> |
---|
140 | <a href="query/definition/index/MyDefinitions.html" class="LoggedOut" |
---|
141 | title="You are not logged in." |
---|
142 | >Login</a> |
---|
143 | </xsl:if> |
---|
144 | </span> |
---|
145 | </div> |
---|
146 | |
---|
147 | <xsl:call-template name="SiteSpecific.siteNavigation"/> |
---|
148 | </header> |
---|
149 | </xsl:template> |
---|
150 | |
---|
151 | |
---|
152 | <xsl:template name="SiteSpecific.siteNavigation"> |
---|
153 | <nav id="siteNavigation"> |
---|
154 | <xsl:call-template name="MenuSelectionsList.megaMenu"> |
---|
155 | <xsl:with-param name="selections" select="$SiteSpecific.siteNavigationSelections"/> |
---|
156 | <xsl:with-param name="displayControlType" select="'input'"/> |
---|
157 | <xsl:with-param name="inputName" select="'siteMenuPanelsControl'"/> |
---|
158 | <xsl:with-param name="containerClass" select="'HorizontalMenu'"/> |
---|
159 | <xsl:with-param name="selectedSelectionName" select="$SiteSpecific.siteNavigationSelectedSelectionName"/> |
---|
160 | </xsl:call-template> |
---|
161 | </nav> |
---|
162 | </xsl:template> |
---|
163 | |
---|
164 | |
---|
165 | <xsl:template name="Page.content" |
---|
166 | ibis:doc="Provides the adopter specific layout by overriding the standard |
---|
167 | content container. This layout consists of one main content column. |
---|
168 | " |
---|
169 | > |
---|
170 | <main id="content" cellpadding="0" cellspacing="0" border="0" |
---|
171 | summary="main content container" |
---|
172 | caption="main content container" |
---|
173 | > |
---|
174 | <div class="NavigationPathSocialMedia"> |
---|
175 | <div id="navigationPath" title="Navigation path to get to this page."> |
---|
176 | <xsl:call-template name="SelectionsList.processSelections"> |
---|
177 | <xsl:with-param name="selections"> |
---|
178 | <SELECTION> |
---|
179 | <TITLE><xsl:value-of select="$Page.applicationTitle"/></TITLE> |
---|
180 | <LOCAL_URL><xsl:value-of select="$ibis.baseRequestPath"/></LOCAL_URL> |
---|
181 | </SELECTION> |
---|
182 | <xsl:copy-of select="$SiteSpecific.navigationPathSelections"/> |
---|
183 | </xsl:with-param> |
---|
184 | </xsl:call-template> |
---|
185 | </div> |
---|
186 | <xsl:call-template name="SiteSpecific.socialMediaLinks"/> |
---|
187 | </div> |
---|
188 | |
---|
189 | <xsl:call-template name="Page.contentHeader"/> |
---|
190 | <xsl:call-template name="Page.contentBody"/> |
---|
191 | <xsl:call-template name="Page.contentFooter"/> |
---|
192 | </main> |
---|
193 | <!--xsl:call-template name="Page.videoDialog"/--> |
---|
194 | </xsl:template> |
---|
195 | |
---|
196 | |
---|
197 | <xsl:template name="Page.footer"> |
---|
198 | <div id="footer"> |
---|
199 | <footer id="screenPageFooter"> |
---|
200 | <nav class="Row"> |
---|
201 | <div class="Block"> |
---|
202 | <h3>New Mexico EPHT</h3> |
---|
203 | <ul> |
---|
204 | <li><a href="about/AboutEPHT.html" title="What is Environmental Public Health Tracking?">About Tracking</a></li> |
---|
205 | <li><a href="about/OurStory.html" title="Background of NM Tracking">Our Story</a></li> |
---|
206 | <li><a href="about/ContactInformation.html" title="Contact Information">Contact Us</a></li> |
---|
207 | </ul> |
---|
208 | </div> |
---|
209 | <div class="Block"> |
---|
210 | <h3>Related Web Sites</h3> |
---|
211 | <ul> |
---|
212 | <li><a href="https://ephtracking.cdc.gov/showHome.action">CDC EPHT Tracking</a></li> |
---|
213 | <li><a href="https://ibis.doh.nm.gov/" title="New Mexico Indicator Based Information System">NM-IBIS</a></li> |
---|
214 | <li class="SocialMedia" title="Links to NM DOH social media sites"> |
---|
215 | <ul> |
---|
216 | <li> |
---|
217 | <a href="javascript:window.open('https://www.linkedin.com/company/newmexicodepartmentofhealth')" |
---|
218 | title="NM DOH LinkedIn" |
---|
219 | class="FontIcon LinkedIn" |
---|
220 | > |
---|
221 | </a> |
---|
222 | </li> |
---|
223 | <li> |
---|
224 | <a href="javascript:window.open('https://www.facebook.com/nmdoh')" |
---|
225 | title="NM DOH Facebook" |
---|
226 | class="FontIcon Facebook" |
---|
227 | > |
---|
228 | </a> |
---|
229 | </li> |
---|
230 | <li> |
---|
231 | <a href="javascript:window.open('https://twitter.com/nmdoh')" |
---|
232 | title="NM DOH Twitter" |
---|
233 | class="FontIcon Twitter" |
---|
234 | > |
---|
235 | </a> |
---|
236 | </li> |
---|
237 | <li> |
---|
238 | <a href="javascript:window.open('https://www.instagram.com/nmdoh/')" |
---|
239 | title="NM DOH Instragram" |
---|
240 | class="FontIcon Instagram" |
---|
241 | > |
---|
242 | </a> |
---|
243 | </li> |
---|
244 | <li> |
---|
245 | <a href="javascript:window.open('https://www.youtube.com/user/nmhealth')" |
---|
246 | title="NM DOH Youtube" |
---|
247 | class="FontIcon YouTube" |
---|
248 | > |
---|
249 | </a> |
---|
250 | </li> |
---|
251 | </ul> |
---|
252 | </li> |
---|
253 | </ul> |
---|
254 | </div> |
---|
255 | <div class="Block"> |
---|
256 | <h3>Legal</h3> |
---|
257 | <ul> |
---|
258 | <li><a href="https://nmhealth.org/help/privacy">Privacy Policy</a></li> |
---|
259 | <li><a href="https://nmhealth.org/help/disclaimer">Use Disclaimer</a></li> |
---|
260 | </ul> |
---|
261 | </div> |
---|
262 | </nav> |
---|
263 | <div class="Block" style="float: right; width: 270px; padding: 0.3em 1rem 1rem 1rem; background-color: #445566; margin: 0em 0 0 1em;"> |
---|
264 | <h3>Help us help you by providing feedback about this site or page:</h3> |
---|
265 | <input type="button" value="Email Us..." |
---|
266 | onclick="location.href='mailto:doh-eheb@state.nm.us?subject=EPHT Website Feedback'" |
---|
267 | style="width: 100%; font-size: 1rem; padding: 1rem; cursor: pointer; margin-top: 0.5em;" |
---|
268 | /> |
---|
269 | </div> |
---|
270 | |
---|
271 | <div class="Row"> |
---|
272 | <div class="Bottom"> |
---|
273 | <img src="image/DOHLogo.png" style="margin-top: 1.5em; cursor: pointer;" |
---|
274 | onclick="javascript:location.href='https://nmhealth.org/'" title="NMDOH Link" |
---|
275 | alt="NM Department of Health Logo" |
---|
276 | /> |
---|
277 | |
---|
278 | <div> |
---|
279 | The NM EPHT website is supported by Cooperative Agreement Number, |
---|
280 | <span class="Bold">6 NUE1EH001354 </span> (previously, 5 U38EH000949), funded by the |
---|
281 | Centers for Disease Control and Prevention (CDC). Its contents are solely the |
---|
282 | responsibility of the authors and do not necessarily represent the official views of |
---|
283 | CDC or do not necessarily reflect the official policies of the Department of Health |
---|
284 | and Human Services, nor does the mention of trade names, commercial practices, or |
---|
285 | organizations imply endorsement by the U.S. Government. The information published |
---|
286 | on this website may be reproduced without permission. |
---|
287 | Please, use the following |
---|
288 | citation: |
---|
289 | " |
---|
290 | Retrieved |
---|
291 | <xsl:value-of select="ibis:getFormattedDateTime(current-dateTime())"/> |
---|
292 | from New Mexico EPHT Tracking Public Web site: https://nmtracking.doh.nm.gov/ |
---|
293 | ". |
---|
294 | <div class="LastModified">Page Content Updated: <xsl:value-of select="$Page.XMLModifedDate"/></div> |
---|
295 | <xsl:if test="string-length($Page.XMLModifedDate) != 0"> |
---|
296 | </xsl:if> |
---|
297 | </div> |
---|
298 | </div> |
---|
299 | </div> |
---|
300 | </footer> |
---|
301 | |
---|
302 | <!-- had to wrap a div within so FF would format correctly... --> |
---|
303 | <footer id="printPageFooter"> |
---|
304 | <xsl:copy-of select="$SiteSpecific.printPageFooter"/> |
---|
305 | </footer> |
---|
306 | </div> |
---|
307 | |
---|
308 | <!-- Google Analytics --> |
---|
309 | <script> |
---|
310 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
---|
311 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
---|
312 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
---|
313 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
---|
314 | |
---|
315 | ga('create', 'UA-10321712-1', 'auto'); |
---|
316 | ga('send', 'pageview'); |
---|
317 | </script> |
---|
318 | |
---|
319 | </xsl:template> |
---|
320 | |
---|
321 | |
---|
322 | <xsl:template name="SiteSpecific.socialMediaLinks"> |
---|
323 | <nav class="SocialMedia" title="options to easily share this page."> |
---|
324 | share |
---|
325 | <ul> |
---|
326 | <li> |
---|
327 | <!-- this also works: a href="javascript:window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + encodeURI(location.href))" |
---|
328 | Issues with target=_blank as the location.href is the |
---|
329 | blank window. Need to get a handle to the window.open |
---|
330 | object so can pass vars but if doing that might as well |
---|
331 | simply open with the URL!!! |
---|
332 | |
---|
333 | https://www.sharelinkgenerator.com/: |
---|
334 | https://www.facebook.com/sharer/sharer.php?u=msn.com |
---|
335 | https://twitter.com/intent/tweet?text=msn.com |
---|
336 | --> |
---|
337 | <a href="javascript:window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + window.encodedPageRequestURI)" |
---|
338 | title="Share this page on LinkedIn" |
---|
339 | class="FontIcon LinkedIn" |
---|
340 | > |
---|
341 | </a> |
---|
342 | </li> |
---|
343 | <li> |
---|
344 | <a href="javascript:window.open('https://www.facebook.com/sharer.php?u=' + window.encodedPageRequestURI)" |
---|
345 | title="Share this page on Facebook" |
---|
346 | class="FontIcon Facebook" |
---|
347 | > |
---|
348 | </a> |
---|
349 | </li> |
---|
350 | <li> |
---|
351 | <a href="javascript:window.open('https://twitter.com/intent/tweet?url=' + window.encodedPageRequestURI)" |
---|
352 | title="Share this page on Twitter" |
---|
353 | class="FontIcon Twitter" |
---|
354 | > |
---|
355 | </a> |
---|
356 | </li> |
---|
357 | <li> |
---|
358 | <a href="javascript:location.href='mailto:?body=' + window.encodedPageRequestURI" |
---|
359 | title="Email this page's URL" |
---|
360 | class="FontIcon Email" |
---|
361 | > |
---|
362 | </a> |
---|
363 | </li> |
---|
364 | <li> |
---|
365 | <a href="#" onclick="window.print();return false;" |
---|
366 | title="Print this page and share it (printer friendly version)" |
---|
367 | rel="nofollow" target="_blank" |
---|
368 | class="FontIcon PrinterFriendly" |
---|
369 | > |
---|
370 | </a> |
---|
371 | </li> |
---|
372 | </ul> |
---|
373 | </nav> |
---|
374 | </xsl:template> |
---|
375 | |
---|
376 | </xsl:stylesheet> |
---|
377 | <!-- ============================= End of File ============================= --> |
---|
378 | |
---|