theme-options.php function refactored into class