fix gallery shortcode
added attachment template functions
link colors