Created
November 5, 2014 08:19
-
-
Save ogbaoghene/a848d9cc787ca040345f to your computer and use it in GitHub Desktop.
Useful tweaks to the portal_normal.vm file for custom Liferay themes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Hide Dockbar --> | |
#if ($permissionChecker.isOmniadmin()) | |
<!--#if ($permissionChecker.isCompanyAdmin($company_id)) | |
#if ($permissionChecker.isCommunityAdmin($portletGroupId)) | |
#if ($permissionChecker.isCommunityOwner($portletGroupId))--> | |
#dockbar() | |
#end | |
#if (!$is_signed_in) | |
<a href="$sign_in_url" rel="nofollow">$sign_in_text</a> | |
#end | |
#if ($is_signed_in && !$permissionChecker.isOmniadmin()) | |
<a href="$sign_out_url" rel="nofollow">$sign_out_text</a> | |
#end | |
<!-- Named Nav Items --> | |
<li class="$nav_item_class" id="$nav_item.getName()"> | |
<a href="$nav_item.getURL()" $nav_item.getTarget()><span>$nav_item.getName()</span></a> | |
#if ($nav_item.hasChildren()) | |
<ul class="child-menu"> | |
#foreach ($nav_child in $nav_item.getChildren()) | |
#if ($nav_child.isSelected()) | |
#set ($nav_child_class = "selected") | |
#else | |
#set ($nav_child_class = "") | |
#end | |
<li class="$nav_child_class" id="$nav_child.getName()"> | |
<a href="$nav_child.getURL()" $nav_child.getTarget()>$nav_child.getName()</a> | |
</li> | |
#end | |
</ul> | |
#end | |
</li> | |
<!-- Dynamic Copyright Date --> | |
#set ($copyYear = "2013") | |
#set ($curYear = $the_year) | |
#if ($curYear == $copyYear) | |
#set ($copyright = "$copyYear") | |
#else | |
#set ($copyright = "$copyYear - $curYear") | |
#end | |
<!-- Body Class --> | |
#foreach ($nav_item in $nav_items) | |
#if ($nav_item.isSelected()) | |
#set($currentPage = $nav_item.getName()) | |
#break | |
#end | |
#end | |
#if ($currentPage == "Home") | |
#set ($home = "home") | |
#else | |
#set ($home = "inner") | |
#end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment