*** adc.theme.old	2006-05-20 13:13:25.000000000 -0500
--- adc.theme	2006-05-21 02:26:43.000000000 -0500
***************
*** 1,27 ****
! <?php
! /** $Id: adc.theme,v 1.21 2006/03/05 09:13:56 tdobes Exp $
!  *  Theme for cuadc.org
   *
!  *  @author Alastair Maw (me@almaw.com)
   *
   */
  
  function adc_features() {
!   return array('toggle_name', 'toggle_slogan', 'toggle_favicon');
! }
  
  function adc_regions() {
    return array(
         'left' => t('left sidebar'),
!        'right' => t('right sidebar')
!   );
! }
  
  function adc_page($content) {
    if (theme_get_setting('toggle_favicon')) {
      drupal_set_html_head('<link rel="shortcut icon" href="'. check_url(theme_get_setting('favicon')) .'" type="image/x-icon" />');
    }
!   $output  = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
    $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
    $output .= "<head>\n";
    $output .= drupal_get_html_head();
--- 1,28 ----
! <?php /** $Id: adc.theme,v 1.21 2006/03/05 09:13:56 tdobes Exp $
!  * Theme for cuadc.org
   *
!  * @author Alastair Maw (me@almaw.com)
   *
   */
  
+ 
  function adc_features() {
!   return array('toggle_name', 'toggle_slogan', 'toggle_favicon'); }
  
  function adc_regions() {
    return array(
         'left' => t('left sidebar'),
!        'right' => t('right sidebar'),
!        'header' => t('header'),
!        'footer' => t('footer')
!   ); }
  
  function adc_page($content) {
    if (theme_get_setting('toggle_favicon')) {
      drupal_set_html_head('<link rel="shortcut icon" href="'. check_url(theme_get_setting('favicon')) .'" type="image/x-icon" />');
    }
!   drupal_add_js(path_to_theme().'/rollup.js');
!   $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
    $output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
    $output .= "<head>\n";
    $output .= drupal_get_html_head();
***************
*** 69,74 ****
--- 70,77 ----
  
    $leftblocks = theme("blocks", "left");
    $rightblocks = theme("blocks", "right");
+   $topblocks = theme("blocks", "header");
+   $bottomblocks = theme("blocks", "footer");
  
    if ($leftblocks && $rightblocks) {
      $output .= "<div id=\"MainBoth\">\n";
***************
*** 83,88 ****
--- 86,95 ----
      $output .= "<div id=\"MainNone\">\n";
    }
  
+   if ($topblocks) {
+     $output .= "<div id=\"MainTop\">\n";
+   }
+ 
    if ($title) {
      $output .= theme("breadcrumb", drupal_get_breadcrumb());
      $output .= "<h2 class=\"title\">$title</h2>";
***************
*** 102,109 ****
--- 109,118 ----
  
    $output .= "</div>\n";
  
+   $output .= $topblocks ? "<div id=\"TopBlocks\">$topblocks</div>\n" : "";
    $output .= $leftblocks ? "<div id=\"LeftBlocks\">$leftblocks</div>\n" : "";
    $output .= $rightblocks ? "<div id=\"RightBlocks\">$rightblocks</div>\n" : "";
+   $output .= $bottomtblocks ? "<div id=\"BottomBlocks\">$bottomblocks</div>\n" : "";
  
    if ($footerText = variable_get(site_footer, "")) {
      $output .= "<div id=\"Footer\"><div id=\"paddinghalf\">$footerText</div></div>\n";
***************
*** 111,118 ****
    $output .= theme_closure();
    $output .= "</body>\n</html>\n";
  
!   return $output;
! }
  
  function adc_node($node, $teaser = 0, $page = 0) {
    $output = "<div class=\"node\">\n";
--- 120,126 ----
    $output .= theme_closure();
    $output .= "</body>\n</html>\n";
  
!   return $output; }
  
  function adc_node($node, $teaser = 0, $page = 0) {
    $output = "<div class=\"node\">\n";
***************
*** 141,148 ****
  
    $output .= "</div>\n</div>\n";
  
!   return $output;
! }
  
  function adc_comment($comment, $links = array()) {
    $output = "<hr size=\"1\" />\n";
--- 149,155 ----
  
    $output .= "</div>\n</div>\n";
  
!   return $output; }
  
  function adc_comment($comment, $links = array()) {
    $output = "<hr size=\"1\" />\n";
***************
*** 152,171 ****
    $output .= $comment->comment;
    $output .= "<br /><br />". theme('links', $links) ."<br />";
  
!   return $output;
! }
  
  function adc_block($block) {
!   $output = '<div class="block block-'.$block->module.'"  id="block-'.$block->module.'-'.$block->delta.'"><div class="nodeTitleBar">';
!   $output .= '<div class="nodeTitle">';
!   $output .= $block->subject ."</div></div><div class=\"nodeContents\">$block->content</div></div>\n";
    $output .= "<br />\n";
  
!   return $output;
! }
  
  function adc_help() {
    if ($help = menu_get_active_help()) {
      return '<div class="help">'. $help .'</div><hr />';
!   }
! }
--- 159,194 ----
    $output .= $comment->comment;
    $output .= "<br /><br />". theme('links', $links) ."<br />";
  
!   return $output; }
  
  function adc_block($block) {
!   global $user;
!   $user1=$user->name;
!   $value=$block->subject;
!   $value1="Navigation";
!   global $boxcounter;
!   $boxcounter++;
!   
!   $output = '<div class="block block-'.$block->module.'"  id="block-'.$block->module.'-'.$block->delta.'">';
! 
!   if($value!=$user1 && $value!=$value1){
!         $output .= '<div class="nodeTitleBar">';
!   	$output .= '<div class="nodeRollup">';
!  	$output .= "<a href=\"JavaScript:toggle('$boxcounter');\" ";
! 	$output .= "onmouseover=\"swapImage($boxcounter, true); return true;\" ";
! 	$output .= "onmouseout=\"swapImage($boxcounter, false); return true;\">";
! 	$output .= '<img id="link' . $boxcounter . '" src="' . path_to_theme() . '/minus.gif" width="16" height="16" alt="" /></a></div>';
! 	$output .= '<div class="nodeTitle">';
!         $output .= $value."</div></div>";
! 	$output .= "<div id=\"box$boxcounter\" class=\"nodeContents\">";
!   } else $output .= "<div class=\"nodeContents1\">";
! 
!   $output .= $block->content."</div></div>\n";
    $output .= "<br />\n";
  
!   return $output; }
  
  function adc_help() {
    if ($help = menu_get_active_help()) {
      return '<div class="help">'. $help .'</div><hr />';
!   } }
