,
+ * 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):
+ */
+package com.silverwrist.venice.iface;
+
+public interface Sidebox
+{
+ public String getSideboxTitle();
+
+} // end interface Sidebox
diff --git a/venice-data/dialogs/sysadmin/frame_laf.dlg.xml b/venice-data/dialogs/sysadmin/frame_laf.dlg.xml
new file mode 100644
index 0000000..b8a3125
--- /dev/null
+++ b/venice-data/dialogs/sysadmin/frame_laf.dlg.xml
@@ -0,0 +1,52 @@
+
+
+
diff --git a/venice-data/scripts/top.js b/venice-data/scripts/top.js
index 00edcc4..ab505da 100644
--- a/venice-data/scripts/top.js
+++ b/venice-data/scripts/top.js
@@ -18,26 +18,60 @@ importPackage(java.util);
importClass(Packages.com.silverwrist.dynamo.Namespaces);
importPackage(Packages.com.silverwrist.dynamo.iface);
importPackage(Packages.com.silverwrist.dynamo.util);
+importClass(Packages.com.silverwrist.venice.VeniceNamespaces);
+importPackage(Packages.com.silverwrist.venice.content);
importPackage(Packages.com.silverwrist.venice.frame);
req = bsf.lookupBean("request");
req_help = bsf.lookupBean("request_help");
+user = vlib.getUser(req);
+globals = vcast.getGlobalPropertiesStore(req);
-// N.B. THIS IS ALL TEMPORARY
+// Create the page content.
+// BEGIN TEMPORARY STUFF
// Find the standard content supplier.
-tmp = req_help.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"venice-content");
-scs = vcast.queryContentBlockProvider(tmp);
+scs = vcast.queryContentBlockProvider(req_help.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"venice-content"));
// Get an instance of the content block representing the page title.
cblk = scs.getContentBlock("content.header");
cblk.setContentParameter("title","Content Title");
cblk.setContentParameter("subtitle","Content Subtitle");
-// Put together a list of objects to render in order.
-rc = new ArrayList();
-rc.add(cblk);
-rc.add("Temporary second return value");
+lipsum = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore "
+ + "et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
+ + "aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum "
+ + "dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui "
+ + "officia deserunt mollit anim id est laborum.
";
-// We're outta here.
-dynamo.scriptReturn(new TempFramedContent(rc));
+// Put together a list of objects to render in order.
+page_content = new ArrayList();
+page_content.add(cblk);
+page_content.add(lipsum);
+
+// END TEMPORARY STUFF
+
+// Create the sidebox list.
+// BEGIN TEMPORARY STUFF
+
+sidebox_list = new ArrayList();
+tmp = new StringSidebox("The quick brown fox jumped over the lazy dog.","Number One");
+sidebox_list.add(tmp);
+tmp = new StringSidebox("","List Test");
+sidebox_list.add(tmp);
+
+// END TEMPORARY STUFF
+
+// Create the master view and return it.
+rc = new SideboxView(page_content,sidebox_list);
+//rc.menuSelector = "top";
+rc.pageTitle = globals.getObject(VeniceNamespaces.FRAME_LAF_NAMESPACE,"frontpage.title").toString();
+rc.pageQID = "top";
+if (!(user.isAnonymous()))
+{ // they only get to configure if they're logged in
+ rc.configureURL = "TODO";
+ rc.configureURLType = "ABSOLUTE";
+
+} // end if
+
+dynamo.scriptOutput(rc);
diff --git a/venice-data/velocity/common/sideboxview.vm b/venice-data/velocity/common/sideboxview.vm
new file mode 100644
index 0000000..9e7126a
--- /dev/null
+++ b/venice-data/velocity/common/sideboxview.vm
@@ -0,0 +1,52 @@
+#*
+ 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 .
+
+ 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 ,
+ 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
+*#
+
+ #comment( "BEGIN CONTENT INSIDE SIDEBOX VIEW" )
+
+ #render( $content )
+ |
+ #comment( "END CONTENT INSIDE SIDEBOX VIEW" )
+ #set( $tmp = $margins * 2 )
+ #set( $fullwidth = $width + $tmp )
+
+ #comment( "BEGIN SIDEBOX LIST" )
+ #foreach( $box in $sideboxes )
+
+ #encodeHTML( $box.SideboxTitle ) |
+ #render( $box ) |
+
+ #end
+ #comment( "END SIDEBOX LIST" )
+ #if( $config_URL )
+ #if( !$config_type )
+ #set( $config_type = "SERVLET" )
+ #end
+
+ #button( "IMAGE" "configure" )
+ #end
+ |
+
diff --git a/venice-data/velocity/frame.vm b/venice-data/velocity/frame.vm
index 0a6beb4..51b792f 100644
--- a/venice-data/velocity/frame.vm
+++ b/venice-data/velocity/frame.vm
@@ -11,10 +11,36 @@
The Initial Developer of the Original Code is Eric J. Bowersox ,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
- Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
+ Copyright (C) 2002-03 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
*#
+#*
+ Parameters:
+ content = The framed page content
+ pagetitle = Title for the page within the frame
+ qid = Page "quick ID"
+ user = The current DynamoUser object
+ unverified = True if the current user has not had E-mail address verified
+ location = Current page location string
+ display_login = True if we should display the "Log In | Create Account" or "Log Out | Profile" links
+ fixed_menu = The "fixed" menu
+ footer_text = The text of the page footer
+ sitetitle = Site title (from global properties)
+ siteurl = URL to the site
+ logourl = URL to the site logo
+ logourltype = Linkage type for the site URL
+ logowidth = Width of the site logo in pixels
+ logoheight = Height of the site logo in pixels
+ flogoscale = Scaling to apply to footer logo, in percentage points
+ pgicon_url = URL to the Mozilla-type page icon
+ pgicon_ltyp = Linkage type for the Mozilla-type page icon
+ pgicon_mime = MIME type of the Mozilla-type page icon
+ favicon_url = URL to the MSIE-style FAVICON
+ favicon_ltyp = Linkage type of the MSIE-style FAVICON
+ lbar_width = Left bar width in pixels
+ ms_copyright_violations = True to prevent adding anti-Smart Tags META tag
+*#
@@ -32,7 +58,6 @@
-
#comment( "BEGIN PAGE HEADER" )
@@ -86,7 +111,7 @@
-
+ |
#comment( "BEGIN LEFT SIDEBAR" )
Top/community menu thingee
@@ -104,7 +129,6 @@
|
- |