testimonial show
This commit is contained in:
@@ -40,6 +40,14 @@ class SettingsItemsData:
|
|||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def get_site_testimonial_settings():
|
||||||
|
data = {
|
||||||
|
"boolean_testimonial_show": {"name": 'Show testimonial section', "controls": 'SELECT_NO_YES', "active": True},
|
||||||
|
"testimonial_description": { "name": 'Description', "controls": 'TEXT', "active": True },
|
||||||
|
}
|
||||||
|
return data
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_site_about_items():
|
def get_site_about_items():
|
||||||
data = {
|
data = {
|
||||||
|
|||||||
@@ -471,25 +471,52 @@ class MyProductsService(BaseService):
|
|||||||
contactFields = SettingsItemsData.get_site_contact_items()
|
contactFields = SettingsItemsData.get_site_contact_items()
|
||||||
socialFields = SettingsItemsData.get_site_social_settings_data()
|
socialFields = SettingsItemsData.get_site_social_settings_data()
|
||||||
aboutFields = SettingsItemsData.get_site_about_items()
|
aboutFields = SettingsItemsData.get_site_about_items()
|
||||||
|
testimonialFields = SettingsItemsData.get_site_testimonial_settings()
|
||||||
|
|
||||||
settings_items = {
|
settings_items ={}
|
||||||
"settings": {"title": 'Settings', "controls": 'settings', "active": 'active show',
|
if product_id == "A000001":
|
||||||
"custom": False, "data": settingsFields},
|
settings_items = {
|
||||||
"home_tab": {"title": 'Home Page', "controls": 'home', "active": '', "custom": False,
|
"settings": {"title": 'Settings', "controls": 'settings', "active": 'active show',
|
||||||
"data": homeFields},
|
"custom": False, "data": settingsFields},
|
||||||
"footer_tab": {"title": 'Footer', "controls": 'footer', "active": '', "custom": False,
|
"home_tab": {"title": 'Home Page', "controls": 'home', "active": '', "custom": False,
|
||||||
"data": footerFields},
|
"data": homeFields},
|
||||||
"about_tab": {"title": 'About Page', "controls": 'about', "active": '', "custom": False,
|
"footer_tab": {"title": 'Footer', "controls": 'footer', "active": '', "custom": False,
|
||||||
"data": aboutFields},
|
"data": footerFields},
|
||||||
"contact_tab": {"title": 'Contact Page', "controls": 'contact', "active": '', "custom": False,
|
"about_tab": {"title": 'About Page', "controls": 'about', "active": '', "custom": False,
|
||||||
"data": contactFields},
|
"data": aboutFields},
|
||||||
"social_tab": {"title": 'Socials', "controls": 'social', "active": '', "custom": False,
|
"contact_tab": {"title": 'Contact Page', "controls": 'contact', "active": '', "custom": False,
|
||||||
"data": socialFields},
|
"data": contactFields},
|
||||||
"template_tab": {"title": 'Template', "controls": 'template', "active": '', "custom": True,
|
"social_tab": {"title": 'Socials', "controls": 'social', "active": '', "custom": False,
|
||||||
"data": templateData},
|
"data": socialFields},
|
||||||
"color_scheme_tab": {"title": 'Color Scheme', "controls": 'color-scheme', "active": '',
|
"template_tab": {"title": 'Template', "controls": 'template', "active": '', "custom": True,
|
||||||
"custom": True, "data": {}}
|
"data": templateData},
|
||||||
}
|
"color_scheme_tab": {"title": 'Color Scheme', "controls": 'color-scheme', "active": '',
|
||||||
|
"custom": True, "data": {}}
|
||||||
|
}
|
||||||
|
|
||||||
|
if product_id == "A000002":
|
||||||
|
settings_items = {
|
||||||
|
"settings": {"title": 'Settings', "controls": 'settings', "active": 'active show',
|
||||||
|
"custom": False, "data": settingsFields},
|
||||||
|
"home_tab": {"title": 'Home Page', "controls": 'home', "active": '', "custom": False,
|
||||||
|
"data": homeFields},
|
||||||
|
"footer_tab": {"title": 'Footer', "controls": 'footer', "active": '', "custom": False,
|
||||||
|
"data": footerFields},
|
||||||
|
"about_tab": {"title": 'About Page', "controls": 'about', "active": '', "custom": False,
|
||||||
|
"data": aboutFields},
|
||||||
|
"contact_tab": {"title": 'Contact Page', "controls": 'contact', "active": '',
|
||||||
|
"custom": False,
|
||||||
|
"data": contactFields},
|
||||||
|
"testimonial_tab": {"title": 'Testimonials', "controls": 'testimonial', "active": '', "custom": False,
|
||||||
|
"data": testimonialFields},
|
||||||
|
"social_tab": {"title": 'Socials', "controls": 'social', "active": '', "custom": False,
|
||||||
|
"data": socialFields},
|
||||||
|
"template_tab": {"title": 'Template', "controls": 'template', "active": '', "custom": True,
|
||||||
|
"data": templateData},
|
||||||
|
"color_scheme_tab": {"title": 'Color Scheme', "controls": 'color-scheme', "active": '',
|
||||||
|
"custom": True, "data": {}}
|
||||||
|
}
|
||||||
|
#
|
||||||
|
|
||||||
# Simulate processing
|
# Simulate processing
|
||||||
response_data = {
|
response_data = {
|
||||||
|
|||||||
Reference in New Issue
Block a user