def get_certificate_footer_context():
 data = dict()
 terms_of_service_and_honor_code = branding_api.get_tos_and_honor_code_url()
 if (terms_of_service_and_honor_code != branding_api.EMPTY_URL):
  data.update({'company_tos_url': terms_of_service_and_honor_code})
 privacy_policy = branding_api.get_privacy_url()
 if (privacy_policy != branding_api.EMPTY_URL):
  data.update({'company_privacy_url': privacy_policy})
 about = branding_api.get_about_url()
 if (about != branding_api.EMPTY_URL):
  data.update({'company_about_url': about})
 return data

def get_certificate_footer_context ( ) : data = dict ( ) terms_of_service_and_honor_code = branding_api . get_tos_and_honor_code_url ( ) if ( terms_of_service_and_honor_code != branding_api . EMPTY_URL ) : data . update ( { 'company_tos_url' : terms_of_service_and_honor_code } ) privacy_policy = branding_api . get_privacy_url ( ) if ( privacy_policy != branding_api . EMPTY_URL ) : data . update ( { 'company_privacy_url' : privacy_policy } ) about = branding_api . get_about_url ( ) if ( about != branding_api . EMPTY_URL ) : data . update ( { 'company_about_url' : about } ) return data
return data to be used in certificate footer .