[NBP web-reskin] [SCM] UNNAMED PROJECT branch, master, updated. ace7a9f245620cb8507bd162da043598f11a815e

fidelity_camp at nbp.org fidelity_camp at nbp.org
Sat Nov 7 09:02:19 EST 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "UNNAMED PROJECT".

The branch, master has been updated
       via  ace7a9f245620cb8507bd162da043598f11a815e (commit)
      from  b8371120a4b2b76aa87a7570f548897f45fcdb6f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ace7a9f245620cb8507bd162da043598f11a815e
Author: Steve DiDomenico <swdidomenico at comcast.net>
Date:   Sat Nov 7 08:57:18 2009 -0500

    Steve DiDomenico - 9am 11/07/09 - Added new Template named TITLE, updated the home page index.html, and deleted the test Template called HEAD_P.

-----------------------------------------------------------------------

Summary of changes:
commit ace7a9f245620cb8507bd162da043598f11a815e
Author: Steve DiDomenico <swdidomenico at comcast.net>
Date:   Sat Nov 7 08:57:18 2009 -0500

    Steve DiDomenico - 9am 11/07/09 - Added new Template named TITLE, updated the home page index.html, and deleted the test Template called HEAD_P.
---
 catalogs/nbp/pages/index.html        |  212 +---------------------------------
 catalogs/nbp/templates/regions/TITLE |  171 +++++++++++++++++++++++++++
 2 files changed, 176 insertions(+), 207 deletions(-)
 create mode 100644 catalogs/nbp/templates/regions/TITLE

diff --git a/catalogs/nbp/pages/index.html b/catalogs/nbp/pages/index.html
index dd618c4..4da6e07 100644
--- a/catalogs/nbp/pages/index.html
+++ b/catalogs/nbp/pages/index.html
@@ -1,213 +1,11 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
-<!-- comment added by Steve DiDomenico 08-16-2009-->
-<!-- This change is for me to gain experience with git -->
-<!-- I will now commit this to git -->
- 
-[var HEAD]
+<!-- This is the new home page for the NBP Re-Skin (Fidelity Cares - Common Impact - Steve DiDomenico 11/7/2009 -->
 
-<body class="white_bg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
+<!-- This is an example of setting a variable in the .html page and using it in a TEMPLATE. See TITLE for its usage. -->
+[set xtitle]NBP - Homepage - Are there specifications to change the page titles? [/set]
 
-<site_search_ignore>
-<a name="top_of_page"></a>
-<a href="#ContentArea"><img src="/nbp/images/images/dot.gif" alt="Skip home page links to go to main content" width="1" height="1" border="0" style="float: left;" /></a>
-</site_search_ignore>
+ at _TITLE_@
 
-<table cellpadding="0" cellspacing="0"  border="0" width="760" align="center" class="white_bg">
-    <tr>
-        <td class="blue1_bg">
-            <table cellpadding="0" cellspacing="0" border="0" width="760">
-                <tr>
-                    <td width="175"><img src="home/dot.gif" width="175" height="1" border="0" alt=""><br />
-	                                <img src="home/nbp_logo.gif" width="175" height="167" alt="" border="0">
-                    </td>
-                    <td align="left" valign="center" class="sidenav">
- 			            <a href="[area support/highlights]"><img src="support/highlights.gif" alt="The Highlights Logo and a link to What's New at NBP" border="0"></a>
-<br>
-
-<!-- end cvo snip email only--> 
-<form method="POST"  action="http://nbp.convio.net/site/Survey"><input type="hidden" name="cons_info_component" id="cons_info_component" value="t" /><input type="hidden" name="SURVEY_ID" id="SURVEY_ID" value="1162" /><label for="cons_email">Register for e-News:</label>
-<input type="text" name="cons_email" id="cons_email" value="Email Address" size="14" maxlength="255" onfocus="if(this.value == 'Email Address'){this.value='';}" onblur="if(this.value == ''){this.value='Email Address';}" />&nbsp;<span style="display:none"><input type="text" name="denySubmit" id="denySubmit" value="" alt="" />Please leave this field empty</span><input type="submit" name="ACTION_SUBMIT_SURVEY_RESPONSE" id="ACTION_SUBMIT_SURVEY_RESPONSE" value="Submit" class="Button" /></form> <!--end cvo snip email only -->
-
-[comment]
-This field is used to prevent form submission by scripts.
-<a href="http://nbp.convio.net/site/Survey?ACTION_REQUIRED=URI_ACTION_USER_REQUESTS&SURVEY_ID=1162"><font color="#ffffff"><center>Receive our eNewsletter</center></font></a>
-
-                        <a href="[area support/handsonevent.html]"><img                  src="home/handsonbanner-gala.jpg" width="175" height="47" border="0" alt="Link to Hands On! Event Page"></a>		          
-[/comment]
-					</td>
-                    <td width="485" class="search" valign="bottom" align="right">
-                        <table cellpadding="3" cellspacing="0" border="0">
-	                        <tr><site_search_ignore>
-		                        <td class="search" align="right" colspan=2><a href="[area index]" class="sidenav">Home</a>
-			                        &nbsp; | &nbsp; <a href="[area customize]" class="sidenav">Site Colors & Fonts</a>
-			                        &nbsp; | &nbsp; 
-                                    [if session logged_in]
-                                        <a href="[area account]" class="sidenav">Account</a>
-			                            &nbsp; | &nbsp;
-                                    [/if]
-                                    [if !session logged_in]<a href="[area login]" class="sidenav">Login</a>
-			                        [else]<a class="sidenav" href="[area form="mv_nextpage=logout
-                                                                               mv_todo=cancel"]">Logout</a>[/else]
-                                    [/if]
-			                        &nbsp; | &nbsp; <a href="[area cart]" class="sidenav">Cart</a><br />
-	 	                            <img src="images/dot.gif" width="1" height="5" alt="">
-		                        </td>
-		                        <td></td>
-                                </site_search_ignore>
-	                        </tr>
-                            <form method="GET" action="[area find]">
- 	                            <input type="hidden" name="mv_session_id" value="[data session id]">
- 	                            <input type="hidden" name="mv_action" value="search">
- 	                            <input type="hidden" name="mv_form_profile" value="search_type">
-                            <tr>
-		                        <td rowspan="3" valign="top"></td>
-				                [comment]
-				                <table width="100%">
-					                <tr>
-					                    <td align="left" valign="bottom">
-						                    <img src="support/ascent_small.jpg" width="75" height="65" alt="Hands On" border="0">
-					                    </td>
-					                    <td align="right" valign="top">
-					                        <img src="images/dot.gif" width="5" height="1" alt="">
-					                    </td>
-					                </tr>
-				                </table>
-		 	                    [/comment]
-		                        <td class="search" align="right"><label for="w">Search</label> &nbsp; 
-		    	                    <input type="text" name="w" id="w" size="10" style="width: 190px;">
-		                        </td>
-	 	                        <td>&nbsp;</td>
-                            </tr>
-                            <tr>
-                                <td align="right" valign="top">
-		                            <select name="c" style="width: 190px;">
-		                                <option value="">Publications and Textbooks</option>
-		                                <option value="p"[if session nbp_search_area eq 'publications'] selected[/if]>Publications</option>
-		                                <option value="t"[if session nbp_search_area eq 'education'] selected[/if]>Textbooks</option>
-                                        <option value="s"[if session nbp_search_area eq 'site_search'] selected[/if]>Site Search</option>
-	                                </select>
-                                </td>
-	                            <td valign="top">
-		                            <input type="image" src="images/go.gif" width="33" height="25" border="0" alt="Search">
-					                <img src="images/dot.gif" width="10" height="3" border="0" alt="">
-	                            </td>
-                            </tr>
-	                        <tr>
-							<td colspan="2">
-							<table align = "right"><tr>
-[comment]							
-							  <td align = "right" valign="center"><a href="http://www.louisbraillebicentennial.com" class="sidenav"><img src="home/lbcake.gif" border="0" alt="Louis Braille Birthday Cake" class="sidenav"></a></td>
-[/comment]
-<td align="center" valign="center"><a href="http://www.louisbraillebicentennial.com" class="sidenav" ><strong><font face="times new roman" color="#f9a953" size="3">Louis Braille Bicentennial, Biography, and TOG Prize</font></strong></a>
-		                        </td>
-		           </td></tr>
-				   </table>             
-	                        </tr>
-	                        [comment]
-	                            <tr>
-		                            <td colspan=2><br/><img src="home/dot.gif" width="100" height="4" border="0" alt=""></td>
-	                            </tr>
-	                        [/comment]
-                            </form>
-                        </table>
-                        [comment]<img src="home/dot.gif" width="290" height="2" border="0" alt="">[/comment]
-                    </td>
-                </tr>
-            </table>
-        </td>
-    </tr>
-    <tr>
-[comment]
-	<td align="center" ><b>During the process of upgrading the phone system, our phone service will be interrupted.<br>
-	    We apologize for the inconvenience.</b></td>
-[/comment]
- <td><img src="home/dot.gif" width="1" height="3" border="0" alt=""></td>
-    </tr>
-	</tr>
-    [if scratch error]
-        <tr>
-            <td align="center">[scratchd error]</td>
-        </tr>
-    [/if]
-    <tr>
-        <td>
-            <table cellpadding="0" cellspacing="0" border="0">
-			     <tr>
-                    <td class="green1_bg"><img src="home/dot.gif" width="15" height="1" border="0" alt=""></td>
-                    <td valign="top" class="green1_bg"><img src="home/dot.gif" width="163" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='publications.html']">Our Bookstore</a><br />
-	                    <img src="home/dot.gif" width="1" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='cbbc/index.html']">Children's Book Club</a><br />
-	                    <img src="home/dot.gif" width="1" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='readbooks/index.html']">ReadBooks! Program</a><br />
-	                    <img src="home/dot.gif" width="1" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='education/index.html']">Textbooks and Tests</a><br />
-	                    <img src="home/dot.gif" width="1" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='production/index.html']">Braille Production Services</a><br />
-	                    <img src="home/dot.gif" width="1" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='company/index.html']">Who We Are</a><br />
-	                    <img src="home/dot.gif" width="1" height="20" border="0" alt=""><br />
-	                    <a class="sidenav" href="[area href='support/index.html']">Ways to Help</a>
-	                </td>
-                    <td class="green1_bg"><img src="home/dot.gif" width="18" height="1" border="0" alt=""></td>
-                    <td><img src="home/dot.gif" width="3" height="1" border="0" alt=""></td>
-      
-[comment] 6/26/07 per Diane   
-	                <td>[page href="braille/louisbraillebook.html"]<img src="home/lbportrait-small.jpg" width="143" height="143" border="0" alt="Image of the Book Cover for the new Louis Braille Biography - A Touch of Genius by Michael Mellor."/></a><br />
-    	                <img src="home/dot_white.gif" width="143" height="3" border="0" alt=""><br/>
-				 <td>[page href="braille/case_for_braille"]<img src="home/braille_hands.jpg" width="143" height="143" border="0" alt="Read 'The Case for Braille' -- an image of hands reading braille"/></a><br />
-				        [page href="publications/potter_press.html"]<img src="home/hallows-sm.jpg" width="143" height="143" border="0" alt="Image of the Book Cover for Harry Potter and the Deathly Hallows." /></a>
-					</td>
-
-		 <td>
-		 [page href="support/handsonevent.html"]<img src="home/HOWIE.jpg" width="143" height="143" border="0" alt="Howie Mandel hosts Hands On! - a photo of Howie."/></a><br />
-	 
-		 [page href="support/billraeder.html"]<img src="home/bill.jpg" width="143" height="143" border="0" alt="Donate to the Bill Raeder Legacy Fund."/></a>
-    	</td>
-	    <td><img src="home/dot.gif" width="3" height="1" border="0" alt=""></td>
-[/comment]
-
-        <td>[page href="support/handsonevent.html"]<img src="home/HOWIE.jpg" width="155" height="288" border="0" alt="Howie Mandel hosts Hands On! - a photo of Howie."/></a></td>
-
-<td><img src="home/dot.gif" width="3" height="1" border="0" alt=""></td>
-	    <td>[page href="support/index"]<img src="home/jack.gif" width="256" height="288" border="0" alt="Image of Jack, a young blind boy featured in our Public Service Announcement."/></a></td>
-        <td><img src="home/dot.gif" width="3" height="1" border="0" alt=""></td>
-        <td><a href="http://www.louisbraillebicentennial.com" class="sidenav"> <img src="home/lbstamp_hp.gif" width="155" height="288" alt="Celebrate Louis Braille's 200th Birthday! -- image of Louis Braille" border="0"> </a></td>
-[comment]				  
-					<td><img src="home/dot.gif" width="3" height="1" border="0" alt=""></td>
-                    <td>[page tour/index]<img src="home/khith_at_press.jpg" width="155" height="288" alt="Take a tour of our plant! -- an image of a press worker examining a braille page" border="0"></a></td>
-[/comment]
-                </tr>
-            </table>
-        </td>
-    </tr>
-    <tr>
-        <td><img src="/nbp/images/images/dot.gif" width="760" height="3" border="0" alt=""></td>
-    </tr>
-    <tr>
-        <td>
-            <table width="760" border="0" cellspacing="0" cellpadding="0">
-                <tr>
-	                <td><a href="[area href='braille/index']"><img src="banners/braille_alph.gif" alt="Learn about braille -- an image of a braille alphabet card" width="165" height="51" border="0" /></a></td>
-	                <td align="left">
-	                    <a name="ContentArea" id="ContentArea"></a>
-	                    <div style="margin-right: 20px;">
-	                        Welcome! National Braille Press is a nonprofit braille printer and 
-	                        publisher offering braille books, magazines, textbooks, tests, and 
-                            embossing services. Highlights [page support/highlights]What's New at National Braille Press</a>.
-	                    </div>
-                    </td>
-	                [comment]
-	                <div style="margin-right: 20px;">Welcome! As a nonprofit braille printer and publisher, National Braille Press 
-	                    offers blind children the power of literacy, and blind adults access to the printed word.   
-	                    Highlights [page support/highlights]October/November Edition</a>.
-	                </div>
-	                [/comment]
-	                [var FOOT_B]
-	            </tr>
-            </table>
-        </td>
-    </tr>
-</table>	 	
 
+</body>
diff --git a/catalogs/nbp/templates/regions/TITLE b/catalogs/nbp/templates/regions/TITLE
new file mode 100644
index 0000000..ea21be7
--- /dev/null
+++ b/catalogs/nbp/templates/regions/TITLE
@@ -0,0 +1,171 @@
+<!-- 
+
+This is made up of the code that Richard wrote and the existing NBP templates HEAD, TOP, and TOP_NAV. 
+In the end it will be a single template called TITLE.
+
+-->
+
+<!-- BEGIN TITLE -->
+[perl]
+$Scratch->{xtitle} = 'NBP - ' . $Scratch->{xsection_title} . ' - ' . $Scratch->{xpage_title} if ($Scratch->{xsection_title} && $Scratch->{xpage_title});
+ return '';
+[/perl]
+
+<!-- tmpn is not going to be used 
+   [tmpn with_highlights]1[/tmpn]
+-->
+
+<!-- The HTML tag might have to be put in the .html page -->
+<html xmlns="http://www.w3.org/1999/xhtml" >
+
+<head>
+	<title>[if scratch xtitle][scratchd xtitle][else]NBP - Promoting Braille Literacy, Braille Books, and other Braille Publications[/else][/if]</title>
+	<META name="description" content="National Braille Press offers blind children the power of literacy and blind adults access to the printed word.">
+	<META name="keywords" content="Louis Braille biography, braille books, books in braille, blind literacy">
+
+[comment] 
+  The style sheet variable is commented out until it is ready SWD 9-29-09 
+  [var CUSTOM_CSS]  
+[/comment]
+
+<script type="text/javascript" language="JavaScript">
+<!--
+	TMonth = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); 
+	TDate = new Date(); 
+	CurYear = TDate.getFullYear(); 
+	CurMonth = TDate.getMonth(); 
+	CurDay = TDate.getDate();  
+	TheDate = TMonth[CurMonth] + ' ' + CurDay + ', ' + CurYear;
+// --> 
+</script>
+
+<!-- Until all the styles in StylesNew.css and the class "style1" are added to the .css files
+     they will be included here. 
+     S.DiDomenico 9/16/2009	 
+-->
+
+    <link href="/nbp/StylesNew.css" rel="stylesheet" type="text/css" />
+    
+	<style type="text/css">
+        .style1
+        {
+            width: 24px;
+        }
+    </style>
+	
+<!-- The JavaScript will also stay here until we create the .js files -->
+	
+    <script type="text/javascript">
+    // SECOND MENU TYPE
+        var timeout         = 500;
+        var closetimer		= 0;
+        var ddmenuitem      = 0;
+
+        // open hidden layer
+        function mopen(id)
+        {	
+	        // cancel close timer
+	        mcancelclosetime();
+
+	        // close old layer
+	        if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
+
+	        // get new layer and show it
+	        ddmenuitem = document.getElementById(id);
+	        ddmenuitem.style.visibility = 'visible';
+
+        }
+        // close showed layer
+        function mclose()
+        {
+	        if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
+        }
+
+        // go close timer
+        function mclosetime()
+        {
+	        closetimer = window.setTimeout(mclose, timeout);
+        }
+
+        // cancel close timer
+        function mcancelclosetime()
+        {
+	        if(closetimer)
+	        {
+		        window.clearTimeout(closetimer);
+		        closetimer = null;
+	        }
+        }
+
+        // close layer when click-out
+        document.onclick = mclose; 
+    </script>
+
+</head>
+
+<site_search_ignore>
+
+<body>
+    <div id="divTop" class="div-top">
+    <img alt="national braille press" src="logo.jpg" 
+            style="width: 241px; height: 70px; display: inline; float: left;" />
+    
+	
+	<!-- *****  This is the top horzontial navigation which Richard created
+                integrated with the Interchange code from the current site.
+                Create a page called site.html and add TITLE to it.
+	-->	
+	<p class="div-top">
+		<a href="[area index]" class="link-top">Home</a> /
+		<a href="[area customize]" class="link-top">Customize This Site</a> / 
+		[if session logged_in]<a href="[area href=account secure=1]" class="link-top">Login</a> / [/if]
+		[if !session logged_in]<a href="[area login]" class="link-top">Login</a>[else]<a class="link-top" href="[area logout]">Logout</a>[/else][/if] / 
+		<a href="[area cart]" class="link-top">View Cart</a> /
+		<a href="[area site]" class="link-top">Site Map</a>
+	</p>
+		
+    <!-- This is the site search prototyp Richard created		
+    <p class="div-top" style="color: #FF6600; font-weight: bold">Search&nbsp;
+        <input id="Text1" type="text" title="Search Text" />&nbsp;
+        <select id="Select1" name="D1">
+            <option>Publications and Textbooks</option>
+        </select>&nbsp;
+        <input id="but_top_go" type="submit" value="Go" 
+            style="background-color: #FF6600; color: #FFFFFF; font-weight: bold;" /></p>
+    <br />
+
+    -->
+
+    <!-- here is the modified search code from TITLE_x on my PC -->
+    
+    <p class="div-top" style="color: #FF6600; font-weight: bold">Search&nbsp;
+
+            <form method="GET" action="[area find]">
+                <input type="hidden" name="mv_session_id" value="[data session id]">
+                <input type="hidden" name="mv_action" value="search">
+                <input type="hidden" name="mv_form_profile" value="search_type">
+                <input type="text" id="w" id="w" title="Search Text" alt="Search" name="mv_click"/>&nbsp;
+               
+<!-- This is not needed.  The input name is w, do I need this?
+                <tr>
+                    <td class="search" align="right"><label for="w">Search</label> &nbsp; 
+			  <input type="text" name="w" id="w" size="10" style="width: 190px;">
+		      </td>
+		            <td>&nbsp;</td>
+                </tr>
+                <tr>
+                    <td align="right" valign="top">
+-->
+		  <select name="c">
+		     <option value="">Publications and Textbooks</option>
+		     <option value="p"[if session nbp_search_area eq 'publications'] selected[/if]>Publications</option>
+		     <option value="t"[if session nbp_search_area eq 'education'] selected[/if]>Textbooks</option>
+                   <option value="s"[if session nbp_search_area eq 'site_search'] selected[/if]>Site Search</option>
+		  </select>
+            <input id="but_top_go" type="submit" value="Go" style="background-color: #FF6600; color: #FFFFFF; font-weight: bold;" />
+            
+            </form>
+     </p>
+    </div>
+</site_search_ignore>
+<!-- END TITLE -->
\ No newline at end of file


hooks/post-receive
--
UNNAMED PROJECT


More information about the Web-reskin mailing list