All Downloads are FREE. Search and download functionalities are using the official Maven repository.

om.liferay.portal.template.freemarker.7.0.55.source-code.FTL_liferay.ftl Maven / Gradle / Ivy

There is a newer version: 7.0.58
Show newest version
<#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 = ""
	is_signed_in = false
	js_main_file = ""
	is_setup_complete = false
/>

<#if user??>
	<#assign is_setup_complete = user.isSetupComplete() />


<#if themeDisplay??>
	<#assign
		css_main_file = htmlUtil.escape(themeDisplay.getMainCSSURL())
		is_signed_in = themeDisplay.isSignedIn()
		js_main_file = htmlUtil.escape(themeDisplay.getMainJSURL())
	/>

	<#if !is_setup_complete>
		<#assign is_setup_complete = themeDisplay.isImpersonated() />
	


<#function max x y>
	<#if x < y>
		<#return y>
	<#else>
		<#return x>
	


<#function min x y>
	<#if x <= y>
		<#return x>
	<#else>
		<#return y>
	


<#macro breadcrumbs
	default_preferences = ""
>
	<@liferay_portlet["runtime"]
		defaultPreferences=default_preferences
		portletProviderAction=portletProviderAction.VIEW
		portletProviderClassName="com.liferay.portal.kernel.servlet.taglib.ui.BreadcrumbEntry"
	/>


<#macro control_menu>
	<#if is_setup_complete && is_signed_in>
		<@liferay_product_navigation["control-menu"] />
	


<#macro css
	file_name
>
	<#if file_name == css_main_file>
		
	<#else>
		
	


<#macro date
	format
>
${dateUtil.getCurrentDate(format, locale)}

<#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 languages
	default_preferences = ""
>
	<@liferay_portlet["runtime"]
		defaultPreferences=default_preferences
		portletProviderAction=portletProviderAction.VIEW
		portletProviderClassName="com.liferay.portal.kernel.servlet.taglib.ui.LanguageEntry"
	/>


<#macro navigation_menu
	default_preferences = ""
	instance_id = ""
>
	<@liferay_portlet["runtime"]
		defaultPreferences=default_preferences
		instanceId=instance_id
		portletProviderAction=portletProviderAction.VIEW
		portletProviderClassName="com.liferay.portal.kernel.theme.NavItem"
	/>


<#macro search
	default_preferences = ""
>
	<#if is_setup_complete>
		<@liferay_portlet["runtime"]
			defaultPreferences=default_preferences
			portletProviderAction=portletProviderAction.VIEW
			portletProviderClassName="com.liferay.admin.kernel.util.PortalSearchApplicationType$Search"
		/>
	


<#macro search_bar
	default_preferences = ""
>
	<#if is_setup_complete>
		<@liferay_portlet["runtime"]
			defaultPreferences=default_preferences
			instanceId="templateSearch"
			portletProviderAction=portletProviderAction.VIEW
			portletProviderClassName="com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet"
		/>
	


<#macro silently
	foo
>
	<#assign foo = foo />


<#macro user_personal_bar>
	<#if is_setup_complete || !is_signed_in>
		<@liferay_portlet["runtime"]
			portletProviderAction=portletProviderAction.VIEW
			portletProviderClassName="com.liferay.admin.kernel.util.PortalUserPersonalBarApplicationType$UserPersonalBar"
		/>
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy