There are 2 things that work together to create the look and feel of a dotlrn site. 1. the dotlrn-master template and 2. the portal themes. You will want to change the dotlrn-master template to add your custom headers and footers, but read the warning about CSS in the file. Portal themes (which are just templates) are in /new-portal/www/themes.