Skip to content

Commit

Permalink
Merge pull request #44 from edly-io/umar/edly-dynamic-themes-settings
Browse files Browse the repository at this point in the history
Add settings for edly dynamic theming
  • Loading branch information
mumarkhan999 authored Mar 3, 2020
2 parents cfe686f + ca15eb2 commit 5bc7445
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@
'django.template.context_processors.csrf',
'help_tokens.context_processor',
'openedx.core.djangoapps.site_configuration.context_processors.configuration_context',

# edly context processor to apply dynamic theming
'edly_panel_app.context_processor.dynamic_theming_context'
)

# Django templating
Expand Down
5 changes: 4 additions & 1 deletion lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,10 @@ def _make_mako_template_dirs(settings):
'openedx.core.djangoapps.site_configuration.context_processors.configuration_context',

# Mobile App processor (Detects if request is from the mobile app)
'mobile_api.context_processor.is_from_mobile_app'
'mobile_api.context_processor.is_from_mobile_app',

# edly context processor to apply dynamic theming
'edly_panel_app.context_processor.dynamic_theming_context'
]

# Django templating
Expand Down

0 comments on commit 5bc7445

Please sign in to comment.