new footer plugin added

This commit is contained in:
Arvind Tiwari 2018-02-07 01:06:03 +05:30
commit 2ea1a11f2b
4 changed files with 117 additions and 0 deletions

View file

@ -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