def is_comprehensive_theming_enabled():
 if (settings.ENABLE_COMPREHENSIVE_THEMING and current_request_has_associated_site_theme()):
  return True
 if microsite.is_request_in_microsite():
  return False
 return settings.ENABLE_COMPREHENSIVE_THEMING

def is_comprehensive_theming_enabled ( ) : if ( settings . ENABLE_COMPREHENSIVE_THEMING and current_request_has_associated_site_theme ( ) ) : return True if microsite . is_request_in_microsite ( ) : return False return settings . ENABLE_COMPREHENSIVE_THEMING
returns boolean indicating whether comprehensive theming functionality is enabled or disabled .