esc_attr_e() is used for echoing out a translation of a string, and shouldn't be used for variables or options.  Converting these instances to `echo esc_attr()`
Adding a textdomain to two gettext calls
Whitespace additions