========================================================
Subject: hack of header.php
Version: 2.0.12 JP + p1
Date:    2005-09-10
Author:  Kenichi OHWADA
URL:     http://linux2.ohwada.net/
Email:   webmaster@ohwada.net
========================================================

* Change of header.php 
There two changes.
It is necessary to also change a theme template,
in order to confirm change.
In addition, you can use the conventional theme template, 
although not to confirm change. 

(1) Correspond to RSS Auto Discovery. 
xoops_rss is asigned for theme templates.

Setted up "XOOPS What's New module" as a default. 
-----
$xoopsTpl->assign('xoops_rss',  'modules/whatsnew/rss.php' );
$xoopsTpl->assign('xoops_atom', 'modules/whatsnew/atom.php' )
----- 

You can set up XOOPS backend.php.
-----
$xoopsTpl->assign('xoops_rss',  'backend.php' );
// $xoopsTpl->assign('xoops_atom', '' );
----- 

(2) Center Block was assigned up and down. 
Since XOOPS 2.0.10 JP, weight was assigned. 


* Change of theme template.
The template "theme.html" of theme "default" was changed. 

(1) Correspond to RSS Auto Discovery. 

The following is added to theme.html. 
-----
<link rel="alternate" type="application/rss+xml" title="RSS" href="<{$xoops_url}>/<{$xoops_rss}>" />
<link rel="alternate" type="application/atom+xml" title="ATOM" href="<{$xoops_url}>/<{$xoops_atom}>" />
-----

(2) Center Block was assigned up and down. 
theme.html was changed. 

Before change
-----
<td id="centerCcolumn" colspan="2">
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
  <{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
-----

After change
-----
<!-- Start center-center-up blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{if $block.weight < 10 }>
<{include file="default/theme_blockcenter_c.html"}>
<{/if}>
<{/foreach}>
<!-- End center-center-up blocks loop -->

  :
  :

<!-- End center-right blocks loop -->
</td>
</tr>

<tr>
<td id="centerCcolumn" colspan="2">
<!-- Start center-center-down blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{if $block.weight >= 10 }>
<{include file="default/theme_blockcenter_c.html"}>
<{/if}>
<{/foreach}>
<!-- End center-center-down blocks loop -->

</td>
</tr>
-----


* The enclosed files 
- html/header.php
- html/themes/default_k/


