mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
website added banner
This commit is contained in:
@@ -255,18 +255,13 @@ def get_outer_env(page_name, args):
|
||||
args.update(ret)
|
||||
|
||||
settings = webnotes.doc("Website Settings", "Website Settings")
|
||||
for k in ["brand_html", "copyright", "address", "top_bar_background", "favicon",
|
||||
"facebook_share", "google_plus_one", "twitter_share", "linked_in_share", "twitter_share_via"]:
|
||||
for k in ["banner_html", "brand_html", "copyright", "address", "twitter_share_via"
|
||||
"favicon", "facebook_share", "google_plus_one", "twitter_share", "linked_in_share"]:
|
||||
if k in settings.fields:
|
||||
args[k] = settings.fields.get(k)
|
||||
|
||||
for k in ["facebook_share", "google_plus_one", "twitter_share", "linked_in_share"]:
|
||||
args[k] = int(args.get(k) or 0)
|
||||
|
||||
if not args.brand_html:
|
||||
args.brand_html = "ERPNext"
|
||||
if not args.top_bar_background:
|
||||
args.top_bar_background = "Black"
|
||||
|
||||
args.url = quote(str(get_request_site_address(full_address=True)), str(""))
|
||||
args.encoded_title = quote(str(args.title or ""), str(""))
|
||||
|
||||
Reference in New Issue
Block a user