diff --git a/taccsite_cms/_settings/branding.py b/taccsite_cms/_settings/branding.py new file mode 100644 index 000000000..0a8d635df --- /dev/null +++ b/taccsite_cms/_settings/branding.py @@ -0,0 +1,29 @@ +"""Configure standard branding""" + +PORTAL_BRANDING_TACC = { + "is_remote": False, + "img_file_src": "site_cms/img/org_logos/tacc-white.png", + "img_class": "branding-tacc", + "link_href": "https://www.tacc.utexas.edu/", + "link_target": "_blank", + "img_alt_text": "TACC Logo", + "img_crossorigin": "anonymous", +} +PORTAL_BRANDING_UTEXAS = { + "is_remote": False, + "img_file_src": "site_cms/img/org_logos/utaustin-white.png", + "img_class": "branding-utaustin", + "link_href": "https://www.utexas.edu/", + "link_target": "_blank", + "img_alt_text": "University of Texas at Austin Logo", + "img_crossorigin": "anonymous", +} +PORTAL_BRANDING_NSF = { + "is_remote": False, + "img_file_src": "site_cms/img/org_logos/nsf-white.png", + "img_class": "branding-nsf", + "link_href": "https://www.nsf.gov/", + "link_target": "_blank", + "img_alt_text": "NSF Logo", + "img_crossorigin": "anonymous", +} diff --git a/taccsite_cms/settings.py b/taccsite_cms/settings.py index eb01eb039..34c63b6e6 100644 --- a/taccsite_cms/settings.py +++ b/taccsite_cms/settings.py @@ -220,33 +220,7 @@ def gettext(s): return s # TACC: BRANDING ######################## -PORTAL_BRANDING_TACC = { - "is_remote": False, - "img_file_src": "site_cms/img/org_logos/tacc-white.png", - "img_class": "branding-tacc", - "link_href": "https://www.tacc.utexas.edu/", - "link_target": "_blank", - "img_alt_text": "TACC Logo", - "img_crossorigin": "anonymous", -} -PORTAL_BRANDING_UTEXAS = { - "is_remote": False, - "img_file_src": "site_cms/img/org_logos/utaustin-white.png", - "img_class": "branding-utaustin", - "link_href": "https://www.utexas.edu/", - "link_target": "_blank", - "img_alt_text": "University of Texas at Austin Logo", - "img_crossorigin": "anonymous", -} -PORTAL_BRANDING_NSF = { - "is_remote": False, - "img_file_src": "site_cms/img/org_logos/nsf-white.png", - "img_class": "branding-nsf", - "link_href": "https://www.nsf.gov/", - "link_target": "_blank", - "img_alt_text": "NSF Logo", - "img_crossorigin": "anonymous", -} +from taccsite_cms._settings.branding import * # To hide branding, set `PORTAL_BRANDING = False` PORTAL_BRANDING = [ PORTAL_BRANDING_TACC, PORTAL_BRANDING_UTEXAS ]