## PAGE SPECIFIC DECORATOR ## Here the context is the page. Modes are 'view', 'edit', 'edit-preview', 'view-information', and 'view-attachments'. #set ($helper = $params.get("helper")) #set ($mode = $params.get("mode")) #set ($confPage = $helper.page) #set ($infoPanelWidth = $params.get("infopanel-width")) #infoPanelInitFromParams() ## GENERAL PAGE DECORATING BEGINS <table border="0" cellpadding="0" cellspacing="0" width="100%"> #if ($action.isPrintableVersion() == false) <tr> <td style="vertical-align:top"> <div class="greynavbar"> <div style="margin:10px;padding:10px;width:130px;"> #if(!$action.anonymousUser && !$action.isPrintableVersion()) <span style="padding: 5px; width: 40px; border: 1px solid #cccccc; margin: 0px;float:right;">#favouriteLink()#watchLink()</span> #end ## history, profile, admin, logout links #usernavbar() #printableicon() #if (!$sitemeshPage.getProperty("page.suppressPdfLink")) #pdficon() #end <hr/> #viewPageLinkWithConfirm()<br/> #if ($page.isLatestVersion() == true)#editPageLink()<br/>#end #if ($page.isLatestVersion() == true)#viewPageAttachmentsLinkWithConfirm()<br/>#end #viewPageInfoLinkWithConfirm()<br/> <hr/> #browseSpaceLink()<br/> #addPageLink()<br/> #addNewsLink()<br/> <hr/> #if ($mode == "view") #set ($labelable = $page) #permitSearchEngines() #editReport()<hr/> #parse ("/labels/labels-include.vm")<hr/> #if ($helper.isHistoricalVersion()) #versionInfo()<hr/> #end #end </div> </div> </td> <!--/tr--> #end <!--tr--> <td valign="top" class="pagebody"> ## MODE SPECIFIC DECORATING BEGINS <table width="100%" cellpadding="0" cellspacing="0" border="0" style="clear: both"> <tr> <td width='100%' class="pagecontent" valign="top"> #parse ("/template/includes/actionerrors.vm") #* Display page based on mode: currently 'view', 'edit', 'preview-edit', 'info' and 'attachments. See the individual page templates (viewpage.vm, editpage.vm, etc.) for the setting of the mode parameter. *# ## VIEW #if ($mode == "view") #set ($labelable = $page) #permitSearchEngines() <div> <span style="font-weight:bold;font-size:large;">$confPage.title</span> <span class="logoSpaceLink">($helper.space.name)</span> </div> #if ($helper.isHistoricalVersion()) ##versionInfo() #end <div class="wiki-content"> $body </div> #trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page)) #renderChildren() #renderComments() ## EDIT || PREVIEW-EDIT #elseif ($mode == "edit" || $mode == "edit-preview") $body ## INFO #elseif ($mode == "view-information") $body ## ATTACHMENTS #elseif ($mode == "view-attachments" || $mode == "move-attachments") $body #end </td> ## INFO PANEL FOR ANY PAGE #if ($infoPanelRequired == true) <td valign="top" id="helptd" style="display:block; width:$infoPanelWidth;"> #infoPanel(true true true true) </td> #end </tr> </table> ## MODE SPECIFIC DECORATING ENDS </td> </tr> </table> ## GENERAL PAGE DECORATING ENDS #set ($viewingPageInfo = $params.get('viewingPageInfo')) #parse ("/pages/page-breadcrumbs.vm")
