new footer plugin added
This commit is contained in:
parent
4408f54a5c
commit
2ea1a11f2b
4 changed files with 117 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ from .models import (
|
|||
UngleichHeaderWithBackgroundImageSlider,
|
||||
UngleichHeaderWithBackgroundImageSliderItem,
|
||||
UngleichHeaderWithBackgroundVideoSliderItem,
|
||||
UngleichFooter
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -359,3 +360,18 @@ class UngleichHTMLPlugin(CMSPluginBase):
|
|||
)
|
||||
context['instance'] = instance
|
||||
return context
|
||||
|
||||
|
||||
@plugin_pool.register_plugin
|
||||
class UngleichFooterPlugin(CMSPluginBase):
|
||||
name = "ungleich Footer Plugin"
|
||||
model = UngleichFooter
|
||||
render_template = "ungleich_page/ungleich/_footer.html"
|
||||
cache = False
|
||||
|
||||
def render(self, context, instance, placeholder):
|
||||
context = super(UngleichFooterPlugin, self).render(
|
||||
context, instance, placeholder
|
||||
)
|
||||
context['instance'] = instance
|
||||
return context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue