抽取footer和header

Signed-off-by: skmbw <tongku2008@126.com>