Produced by Araxis Merge on Fri Oct 19 14:25:20 2007 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Internet Explorer. For optimum results when printing this report, enable printing of background images and colours in your browser and use landscape orientation.
| # | File | Location | Last Modified |
|---|---|---|---|
| 1 | quicklinks.inc | C:\jahia\template_diff\V2_JAHIA_5_0_0\src\jsp\common | Fri Oct 19 14:18:35 2007 UTC |
| 2 | quicklinks.inc | C:\jahia\template_diff\V2_JAHIA_5_0_3\src\jsp\common | Fri Oct 19 14:16:50 2007 UTC |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Blocks | Lines | |
| Unchanged | 3 | 104 |
| Changed | 2 | 6 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | All differences in whitespace within lines are ignored |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Hidden in comparison detail |
No regular expressions were active.
| 1 | <%-- | 1 | <%-- | |||
| 2 | Copyright 2002-2006 Jahia Ltd | 2 | Copyright 2002-2006 Jahia Ltd | |||
| 3 | 3 | |||||
| 4 | Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (JCDDL), | 4 | Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (JCDDL), | |||
| 5 | Version 1.0 (the "License"), or (at your option) any later version; you may | 5 | Version 1.0 (the "License"), or (at your option) any later version; you may | |||
| 6 | not use this file except in compliance with the License. You should have | 6 | not use this file except in compliance with the License. You should have | |||
| 7 | received a copy of the License along with this program; if not, you may obtain | 7 | received a copy of the License along with this program; if not, you may obtain | |||
| 8 | a copy of the License at | 8 | a copy of the License at | |||
| 9 | 9 | |||||
| 10 | http://www.jahia.org/license/ | 10 | http://www.jahia.org/license/ | |||
| 11 | 11 | |||||
| 12 | Unless required by applicable law or agreed to in writing, software | 12 | Unless required by applicable law or agreed to in writing, software | |||
| 13 | distributed under the License is distributed on an "AS IS" BASIS, | 13 | distributed under the License is distributed on an "AS IS" BASIS, | |||
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
| 15 | See the License for the specific language governing permissions and | 15 | See the License for the specific language governing permissions and | |||
| 16 | limitations under the License. | 16 | limitations under the License. | |||
| 17 | --%> | 17 | --%> | |||
| 18 | <content:declareContainerList name='quickLinksContainerList' title='Quick links'> | 18 | <content:declareContainerList name='quickLinksContainerList' title='Quick links'> | |||
| 19 | <content:declareContainer> | 19 | <content:declareContainer> | |||
| 20 | <content:declareField name='quickLink' title='Page' | 20 | <content:declareField name='quickLink' title='Page' | |||
| 21 | type='Page' value="<jahia_linkonly>"/> | 21 | type='Page' value="<jahia_linkonly>"/> | |||
| 22 | </content:declareContainer> | 22 | </content:declareContainer> | |||
| 23 | </content:declareContainerList> | 23 | </content:declareContainerList> | |||
| 24 | 24 | |||||
| 25 | 25 | |||||
| 26 | <ul> | 26 | <ul> | |||
| 27 | 27 | |||||
| 28 | <li><a href="<%=jData.gui().html().drawSiteMapLauncher()%>" title="sitemap"><span><content:resourceBundle | 28 | <li><a href="<%=jData.gui().html().drawSiteMapLauncher()%>" title="sitemap"><span><content:resourceBundle | |||
| 29 | resourceBundle="jahiatemplates.Corporate_portal_templates_v2" | 29 | resourceBundle="jahiatemplates.Corporate_portal_templates_v2" | |||
| 30 | resourceName="button.sitemap"/></span></a></li> | 30 | resourceName="button.sitemap"/></span></a></li> | |||
| 31 | <% | 31 | <% | |||
| 32 | JahiaContainerList quickLinksContainerList = | 32 | JahiaContainerList quickLinksContainerList = | |||
| 33 | jData.containers().getAbsoluteContainerList("quickLinksContainerList", homePageId); | 33 | jData.containers().getAbsoluteContainerList("quickLinksContainerList", homePageId); | |||
| 34 | if (quickLinksContainerList != null) { | 34 | if (quickLinksContainerList != null) { | |||
| 35 | //ContainerListBean quickLinksContainerListBean = new ContainerListBean(quickLinksContainerList, jParams); | 35 | //ContainerListBean quickLinksContainerListBean = new ContainerListBean(quickLinksContainerList, jParams); | |||
| 36 | Enumeration quickLinksContainers = quickLinksContainerList.getContainers(); | 36 | Enumeration quickLinksContainers = quickLinksContainerList.getContainers(); | |||
| 37 | while (quickLinksContainers.hasMoreElements()) { | 37 | while (quickLinksContainers.hasMoreElements()) { | |||
| 38 | JahiaContainer quickLinksContainer = | 38 | JahiaContainer quickLinksContainer = | |||
| 39 | (JahiaContainer) quickLinksContainers.nextElement(); | 39 | (JahiaContainer) quickLinksContainers.nextElement(); | |||
| 40 | JahiaPage quickLink = (JahiaPage) quickLinksContainer.getFieldObject("quickLink"); | 40 | JahiaPage quickLink = (JahiaPage) quickLinksContainer.getFieldObject("quickLink"); | |||
| 41 | if (quickLink != null) { | 41 | if (quickLink != null) { | |||
| 42 | %> | 42 | %> | |||
| 43 | <li><a href="<%=quickLink.getURL(jParams)%>" | 43 | <li><a href="<%=quickLink.getURL(jParams)%>" | |||
| 44 | title="<%=quickLink.getTitle()%>"><span><%=quickLink.get Title( )%></span></a> | 44 | title="<%=quickLink.getTitle()%>"><span><%=quickLink.getHighLightDiffTitle(jData.params())%></span></a> | |||
| 45 | <% | 45 | <% | |||
| 46 | if (isEditMode) { | 46 | if (isEditMode) { | |||
| 47 | //ContainerBean quickLinksContainerBean = new ContainerBean(quickLinksContainer,jParams); | 47 | //ContainerBean quickLinksContainerBean = new ContainerBean(quickLinksContainer,jParams); | |||
| 48 | jData.gui().html().drawBeginActionMenu(new ContainerBean(quickLinksContainer,jParams), | 48 | jData.gui().html().drawBeginActionMenu(new ContainerBean(quickLinksContainer,jParams), | |||
| 49 | null, null, false, ".quicklink", "jahiatemplates.Corporate_portal_templates_v2", null, out); | 49 | null, null, false, ".quicklink", "jahiatemplates.Corporate_portal_templates_v2", null, out); | |||
| 50 | } | 50 | } | |||
| 51 | %> | 51 | %> | |||
| 52 | </li> | 52 | </li> | |||
| 53 | <% | 53 | <% | |||
| 54 | } else { | 54 | } else { | |||
| 55 | if (isEditMode) { | 55 | if (isEditMode) { | |||
| 56 | logger.warn("Quick link for container " + quickLinksContainer.getID() + " is NULL"); | 56 | logger.warn("Quick link for container " + quickLinksContainer.getID() + " is NULL"); | |||
| 57 | %> | 57 | %> | |||
| 58 | <li><a href="#"><content:resourceBundle | 58 | <li><a href="#"><content:resourceBundle | |||
| 59 | resourceBundle="jahiatemplates.Corporate_portal_templates_v2" | 59 | resourceBundle="jahiatemplates.Corporate_portal_templates_v2" | |||
| 60 | resourceName="message.noLink"/></a> | 60 | resourceName="message.noLink"/></a> | |||
| 61 | <% | 61 | <% | |||
| 62 | //ContainerBean quickLinksContainerBean = new ContainerBean(quickLinksContainer,jParams); | 62 | //ContainerBean quickLinksContainerBean = new ContainerBean(quickLinksContainer,jParams); | |||
| 63 | jData.gui().html().drawBeginActionMenu(new ContainerBean(quickLinksContainer,jParams), | 63 | jData.gui().html().drawBeginActionMenu(new ContainerBean(quickLinksContainer,jParams), | |||
| 64 | null, null, false, ".quicklink", "jahiatemplates.Corporate_portal_templates_v2", null, out); | 64 | null, null, false, ".quicklink", "jahiatemplates.Corporate_portal_templates_v2", null, out); | |||
| 65 | } | 65 | } | |||
| 66 | } | 66 | } | |||
| 67 | } | 67 | } | |||
| 68 | if (isEditMode) { | 68 | if (isEditMode) { | |||
| 69 | %><li><% | 69 | %><li><% | |||
| 70 | jData.gui().html().drawBeginActionMenu(new ContainerListBean(quickLinksContainerList, jParams), | 70 | jData.gui().html().drawBeginActionMenu(new ContainerListBean(quickLinksContainerList, jParams), | |||
| 71 | null, null, false, ".quicklinks", "jahiatemplates.Corporate_portal_templates_v2", null, out); | 71 | null, null, false, ".quicklinks", "jahiatemplates.Corporate_portal_templates_v2", null, out); | |||
| 72 | %></li><% | 72 | %></li><% | |||
| 73 | } | 73 | } | |||
| 74 | } | 74 | } | |||
| 75 | 75 | |||||
| 76 | // language bar | 76 | // language bar | |||
| 77 | int l = 0; | 77 | int l = 0; | |||
| 78 | ArrayList languageSettingsAsLocales = jahiaSite.getLanguageSettingsAsLocales(true); | 78 | ArrayList languageSettingsAsLocales = jahiaSite.getLanguageSettingsAsLocales(true); | |||
| 79 | for (int i = 0; i < languageSettingsAsLocales.size();i++) { | 79 | for (int i = 0; i < languageSettingsAsLocales.size();i++) { | |||
| 80 | Locale loc = (Locale)languageSettingsAsLocales.get(i); | 80 | Locale loc = (Locale)languageSettingsAsLocales.get(i); | |||
| 81 | String lc = loc.toString(); | 81 | String lc = loc.toString(); | |||
| 82 | Integer languageState = (Integer)languagesStates.get(lc); | 82 | Integer languageState = (Integer)languagesStates.get(lc); | |||
| 83 | boolean displayLink = false; | 83 | boolean displayLink = false; | |||
| 84 | String currentLanguageCode = jParams.getLocale().toString(); | 84 | String currentLanguageCode = jParams.getLocale().toString(); | |||
| 85 | // don't display current language | 85 | // don't display current language | |||
| 86 | if (! currentLanguageCode.equals(lc) || isEditMode){ | 86 | if (! currentLanguageCode.equals(lc) ){ | |||
| 87 | if (languageState != null || isEditMode){ | 87 | if (languageState != null ){ | |||
| 88 | // live mode | 88 | // live mode | |||
| 89 | if (jData.gui().isNormalMode()){ | 89 | if (jData.gui().isNormalMode()){ | |||
| 90 | // only display the link if a page is active in current language | 90 | // only display the link if a page is active in current language | |||
| 91 | if (contentPage.hasEntries(ContentPage.ACTIVE_PAGE_INFOS,lc) ){ | 91 | if (contentPage.hasEntries(ContentPage.ACTIVE_PAGE_INFOS,lc) ){ | |||
| 92 | displayLink = true; | 92 | displayLink = true; | |||
| 93 | } | 93 | } | |||
| 94 | // preview & edit mode | 94 | // preview & edit mode | |||
| 95 | } else { | 95 | } else { | |||
| 96 | displayLink = true; | 96 | displayLink = true; | |||
| 97 | } | 97 | } | |||
| 98 | } | 98 | } | |||
| 99 | if (displayLink) { | 99 | if (displayLink) { | |||
| 100 | %><li><a href="<%=jData.gui().drawPageLanguageSwitch(lc)%>"><span><%=lc%></span></a></li><% | 100 | %><li><a href="<%=jData.gui().drawPageLanguageSwitch(lc)%>"><span><%=lc%></span></a></li><% | |||
| 101 | } | 101 | } | |||
| 102 | } | 102 | } | |||
| 103 | } | 103 | } | |||
| 104 | %> | 104 | %> | |||
| 105 | 105 | |||||
| 106 | 106 | |||||
| 107 | </ul> | 107 | </ul> |
Araxis Merge (but not this generated report) is Copyright © 1993-2003 Araxis Ltd (www.araxis.com). All rights reserved.