53 lines
2.2 KiB
Plaintext
53 lines
2.2 KiB
Plaintext
|
#*
|
||
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
||
|
(the "License"); you may not use this file except in compliance with the License.
|
||
|
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||
|
|
||
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||
|
language governing rights and limitations under the License.
|
||
|
|
||
|
The Original Code is the Venice Web Communities System.
|
||
|
|
||
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||
|
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||
|
|
||
|
Contributor(s):
|
||
|
*#
|
||
|
#*
|
||
|
Parameters:
|
||
|
content = The actual page content
|
||
|
sideboxes = The list of defined sideboxes
|
||
|
config_URL = The URL the "Configure" button should point to (may be null to omit)
|
||
|
config_type = The URL type of the configure URL (may be null, assumed "SERVLET" if so)
|
||
|
width = The width of the sideboxes
|
||
|
margins = The margins around the sideboxes
|
||
|
*#
|
||
|
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0"><tr valign="top">
|
||
|
#comment( "BEGIN CONTENT INSIDE SIDEBOX VIEW" )
|
||
|
<td align="left" class="framecontent"><div class="framecontent">
|
||
|
#render( $content )
|
||
|
</div></td>
|
||
|
#comment( "END CONTENT INSIDE SIDEBOX VIEW" )
|
||
|
#set( $tmp = $margins * 2 )
|
||
|
#set( $fullwidth = $width + $tmp )
|
||
|
<td align="center" width="$fullwidth">
|
||
|
#comment( "BEGIN SIDEBOX LIST" )
|
||
|
#foreach( $box in $sideboxes )
|
||
|
<table align="center" width="$width" border="0" cellpadding="0" cellspacing="0">
|
||
|
<tr valign="middle"><td class="sideboxtop">#encodeHTML( $box.SideboxTitle )</td></tr>
|
||
|
<tr valign="top"><td class="sidebox">#render( $box )</td></tr>
|
||
|
</table><br />
|
||
|
#end
|
||
|
#comment( "END SIDEBOX LIST" )
|
||
|
#if( $config_URL )
|
||
|
#if( !$config_type )
|
||
|
#set( $config_type = "SERVLET" )
|
||
|
#end
|
||
|
<br />
|
||
|
<a href="#formatURL( $config_type $config_URL )">#button( "IMAGE" "configure" )</a>
|
||
|
#end
|
||
|
</td>
|
||
|
</tr></table>
|