navigation.vm:
<nav class="doc-nav nav-x">
<ul>
#foreach ($nav_item in $nav_items)
#if ($nav_item.isSelected())
<li class="f sel">
#else
<li>
#end
<a href="$nav_item.getURL()" $nav_item.getTarget()><span>$nav_item.icon() $htmlUtil.escape($nav_item.getName())</span></a>
#if ($nav_item.hasChildren())
<ul class="child-menu">
#foreach ($nav_child in $nav_item.getChildren())
#if ($nav_child.isSelected())
<li class="selected">
#else
<li>
#end
<a href="$nav_child.getURL()" $nav_child.getTarget()>$nav_child.getName()</a>
</li>
#end
</ul>
#end
</li>
#end
</ul>
</nav>
portal_normal.vm:
<!DOCTYPE html>
#parse ($init)
<html class="#language("lang.dir") vp960 vpgt960 vpgt720 vpgt480 vpgt320" dir="#language("lang.dir")" lang="$w3c_language_id">
<head>
<title>$the_title - $company_name</title>
$theme.include($top_head_include)
</head>
<body class="$css_class">
<div id="dockbar" class="x-6 x-4">
<div id="dockbar-content">
<div class="aui-menu aui-menu-horizontal" id="dockbar-navigation" role="menu">
<div class="aui-menu-content" role="presentation">
<ul role="presentation" class="first-of-type">
<li class="aui-menubaritem" role="presentation">
<span class="aui-menuitem-content aui-menu-label aui-helper-unselectable" role="menuitem" id="aui_3_2_0_1179" aria-haspopup="true">
<span class="icon globe-icon">Language</span>
</span>
<div class="aui-menu aui-submenu aui-menu-hidden" role="menu" aria-labelledby="aui_3_2_0_1177" aria-hidden="true" id="aui_3_2_0_1356">
<div class="aui-menu-content" role="presentation">
<ul class="taglib-settings first-of-type" role="presentation">
<li role="presentation"><a lang="zh-CN" href="http://www.liferay.com/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fhome&languageId=zh_CN"> ���� </a> </li>
<li class="selected" role="presentation"> <a lang="en-US" href="http://www.liferay.com/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fhome&languageId=en_US"> English </a> </li>
<li role="presentation"> <a lang="de-DE" href="http://www.liferay.com/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fhome&languageId=de_DE"> Deutsch </a> </li>
<li role="presentation"> <a lang="ja-JP" href="http://www.liferay.com/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fhome&languageId=ja_JP"> �ձ��Z </a> </li>
<li role="presentation"> <a lang="pt-BR" href="http://www.liferay.com/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fhome&languageId=pt_BR"> Portugu��s </a> </li>
<li role="presentation"> <a lang="es-ES" href="http://www.liferay.com/home?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_redirect=%2Fhome&languageId=es_ES"> Espa?ol </a> </li>
</ul>
</div>
</div>
</li>
<li class="aui-menubaritem" role="presentation"> <a class="aui-menuitem-content aui-menu-label" href="http://www.liferay.com/home?p_auth=hy3laIrR&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Fcreate_account" role="menuitem" id="aui_3_2_0_1184" aria-haspopup="true" tabindex="0"><span class="link">Register</span></a> </li>
<li class="aui-menubaritem" role="presentation"> <a class="aui-menuitem-content aui-menu-label" href="/c/portal/login?p_l_id=8440537" role="menuitem" id="aui_3_2_0_1187" aria-haspopup="true" tabindex="-1"><span class="link">Sign In</span></a> </li>
</ul>
</div>
</div>
</div>
</div>
<div class="grid">
<div class="unit u-o">
<div class="unit-content">
<header id="banner" class="doc-header" role="banner">
<a class="doc-heading cleared" href="/"> <div> <hgroup> <h1> <img height="36" width="146" src="http://cdn.www.liferay.com/osb-theme/images/custom/heading.png" alt="Liferay"> </h1> <h2> <img height="36" width="241" src="http://cdn.www.liferay.com/osb-theme/images/custom/heading-tagline.png" alt="Open Source, Enterprise, For Life"> </h2> </hgroup> </div> </a>
<form onsubmit="ctem_3_search(); return false;" name="ctem_3_fm" method="get" class="doc-search" action="http://www.liferay.com/home?p_p_id=3&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_3_struts_action=%2Fsearch%2Fsearch"> <input type="hidden" value="3" name="p_p_id"><input type="hidden" value="0" name="p_p_lifecycle"><input type="hidden" value="maximized" name="p_p_state"><input type="hidden" value="view" name="p_p_mode"><input type="hidden" value="/search/search" name="_3_struts_action"> <div> <input type="search" autocomplete="off" value="" id="q" name="_3_keywords" class="doc-search-input"> </div> </form>
#if ($has_navigation)
#parse ("$full_templates_path/navigation.vm")
#end
</header>
#if ($selectable)
$theme.include($content_include)
#else
$portletDisplay.recycle()
$portletDisplay.setTitle($the_title)
$theme.wrapPortlet("portlet.vm", $content_include)
#end
</div>
</div>
</div>
</body>
$theme.include($bottom_include)
</html>
posted on 2011-10-10 16:10
zhqh 阅读(311)
评论(0) 编辑 收藏 所属分类:
jdk代码分析