om.liferay.portal.template.velocity.6.0.48.source-code.VM_liferay.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.template.velocity
Show all versions of com.liferay.portal.template.velocity
Liferay Portal Template Velocity
The newest version!
#set ($css_main_file = "")
#set ($is_signed_in = false)
#set ($js_main_file = "")
#if ($themeDisplay)
#set ($css_main_file = $htmlUtil.escape($themeDisplay.getMainCSSURL()))
#set ($is_signed_in = $themeDisplay.isSignedIn())
#set ($js_main_file = $htmlUtil.escape($themeDisplay.getClayCSSURL()))
#end
#set ($is_setup_complete = false)
#if ($user)
#set ($is_setup_complete = $user.isSetupComplete())
#end
#if (!$is_setup_complete)
#set ($is_setup_complete = $themeDisplay.isImpersonated())
#end
#macro (breadcrumbs $default_preferences)
$theme.runtime("com.liferay.portal.kernel.servlet.taglib.ui.BreadcrumbEntry", $portletProviderAction.VIEW, "", $!default_preferences)
#end
#macro (css $file_name)
#if ($file_name == $css_main_file)
#else
#end
#end
#macro (date $date_format)
$dateUtil.getCurrentDate($date_format, $locale)#end
#macro (js $file_name)
#if ($file_name == $js_main_file)
#else
#end
#end
#macro (language $lang_key)
$languageUtil.get($locale, $lang_key)#end
#macro (language_format $lang_key $arguments)
$languageUtil.format($locale, $lang_key, $arguments.toArray())#end
#macro (languages $default_preferences)
$theme.runtime("com.liferay.portal.kernel.servlet.taglib.ui.LanguageEntry", $portletProviderAction.VIEW, "", $!default_preferences)
#end
#macro (navigation_menu $default_preferences $instance_id)
$theme.runtime("com.liferay.portal.theme.NavItem", $portletProviderAction.VIEW, $!instance_id, $!default_preferences)
#end
#macro (silently $foo)
#set ($foo = $foo)
#end
#macro (search $default_preferences)
#if ($is_setup_complete)
$theme.runtime("com.liferay.portlet.admin.util.PortalSearchApplicationType$Search", $portletProviderAction.VIEW, "", $!default_preferences)
#end
#end
#macro (search_bar $default_preferences)
#if ($is_setup_complete)
$theme.runtime("com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet", $portletProviderAction.VIEW, "templateSearch", $!default_preferences)
#end
#end
#macro (user_personal_bar)
#if ($is_setup_complete || !$is_signed_in)
#set ($render_portlet_boundary = $request.getAttribute("RENDER_PORTLET_BOUNDARY"))
$request.setAttribute("RENDER_PORTLET_BOUNDARY", false)
$theme.runtime("com.liferay.portlet.admin.util.PortalUserPersonalBarApplicationType$UserPersonalBar", $portletProviderAction.VIEW)
$request.setAttribute("RENDER_PORTLET_BOUNDARY", $render_portlet_boundary)
#end
#end