moved inline footer style to stylesheet
cleanup footer
unecessary booleans
aligned php tags
moved current page setting to core
updated current page setting to use core
use current page setting in core