Add UngleichHeaderWithTextAndImagePlugin
This commit is contained in:
parent
7b662e9b88
commit
824fd1a6b5
4 changed files with 77 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ from .models import (
|
|||
UngelichContactUsSection, UngelichTextSection, Service, ServiceItem,
|
||||
About, AboutItem, SectionWithImage, UngleichServiceItem, UngleichHeader,
|
||||
UngleichHeaderItem, UngleichProductItem, UngleichProduct, UngleichCustomer,
|
||||
UngleichCustomerItem, UngleichHTMLOnly
|
||||
UngleichCustomerItem, UngleichHTMLOnly, UngleichSimpleHeader
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -181,6 +181,18 @@ class UngleichServicesItemPlugin(CMSPluginBase):
|
|||
return context
|
||||
|
||||
|
||||
@plugin_pool.register_plugin
|
||||
class UngleichHeaderWithTextAndImagePlugin(CMSPluginBase):
|
||||
name = "ungleich Header with Text and Image Plugin"
|
||||
model = UngleichSimpleHeader
|
||||
render_template = "ungleich_page/ungleich/header.html"
|
||||
cache = False
|
||||
|
||||
def render(self, context, instance, placeholder):
|
||||
context['instance'] = instance
|
||||
return context
|
||||
|
||||
|
||||
@plugin_pool.register_plugin
|
||||
class UngleichHeaderWithTextAndImageSliderPlugin(CMSPluginBase):
|
||||
name = "ungleich Header with Text and Image Slider Plugin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue