d4science-responsive-theme/src/main/webapp/templates/portlet.vm

25 lines
869 B
Plaintext
Raw Normal View History

#set ($portlet_display = $portletDisplay)
#set ($portlet_id = $htmlUtil.escapeAttribute($portlet_display.getId()))
#set ($portlet_title = $htmlUtil.escape($portlet_display.getTitle()))
#set ($portlet_back_url = $htmlUtil.escapeHREF($portlet_display.getURLBack()))
<section class="portlet" id="portlet_$portlet_id">
<header class="portlet-topper">
<h1 class="portlet-title">
$theme.portletIconPortlet() <span class="portlet-title-text">$portlet_title</span>
</h1>
<menu class="portlet-topper-toolbar" id="portlet-topper-toolbar_$portlet_id" type="toolbar">
#if ($portlet_display.isShowBackIcon())
<a class="portlet-icon-back" href="$portlet_back_url">#language ("return-to-full-page")</a>
#else
$theme.portletIconOptions()
#end
</menu>
</header>
<div class="portlet-content">
$portlet_display.writeContent($writer)
</div>
</section>