ortal.portal-impl.6.2.2.source-code.FTL_liferay.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<#ftl strip_whitespace=true>
<#--
Use computer number format to prevent issues with locale settings. See
LPS-30525.
-->
<#setting number_format="computer">
<#assign css_main_file = "" />
<#if themeDisplay??>
<#assign css_main_file = htmlUtil.escape(portalUtil.getStaticResourceURL(request, "${themeDisplay.getPathThemeCss()}/main.css")) />
<#assign js_main_file = "" />
<#if themeDisplay??>
<#assign js_main_file = htmlUtil.escape(portalUtil.getStaticResourceURL(request, "${themeDisplay.getPathThemeJavaScript()}/main.js")) />
<#function max x y>
<#if (x < y)>
<#return y>
<#else>
<#return x>
<#function min x y>
<#if (x > y)>
<#return y>
<#else>
<#return x>
<#macro css
file_name
>
<#if file_name = css_main_file>
<#else>
<#macro js
file_name
>
<#if file_name == js_main_file>
<#else>
<#macro language
key
>
${languageUtil.get(locale, key)}
<#macro language_format
arguments
key
>
${languageUtil.format(locale, key, arguments)}
<#macro date
format
>
${dateUtil.getCurrentDate(format, locale)}
<#macro ie6_png_fix>
<#if browserSniffer.isIe(request) && browserSniffer.getMajorVersion(request) < 7>
/* ---------- IE6 PNG image fix ---------- */
img, .png {
position: relative;
behavior: expression(
(this.runtimeStyle.behavior = "none") &&
(
this.pngSet || (this.src && this.src.toLowerCase().indexOf('spacer.png') > -1) ?
this.pngSet = true :
(
this.nodeName == "IMG" &&
(
(
(this.src.toLowerCase().indexOf('.png') > -1) ||
(this.className && ([''].concat(this.className.split(' ')).concat(['']).join('|').indexOf('|png|')) > -1)
) &&
(this.className.indexOf('no-png-fix') == -1)
) ?
(
this.runtimeStyle.backgroundImage = "none",
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
this.src = "${images_folder}/spacer.png"
) :
(
(
(this.currentStyle.backgroundImage.toLowerCase().indexOf('.png') > -1) ||
(this.className && ([''].concat(this.className.split(' ')).concat(['']).join('|').indexOf('|png|')) > -1)
) ?
(
this.origBg = this.origBg ?
this.origBg :
this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",
this.runtimeStyle.backgroundImage = "none"
) :
''
)
),
this.pngSet = true
)
);
}
<#macro breadcrumbs
control_panel = ""
>
<#if control_panel = "control_panel">
${theme.breadcrumb(0, false, false, true, true)}
<#else>
${theme.breadcrumb()}
<#macro dockbar>
${theme.runtime("145")}