84 lines
3.8 KiB
Python
84 lines
3.8 KiB
Python
from symtable import Class
|
|
|
|
|
|
class SettingsItemsData:
|
|
|
|
@staticmethod
|
|
def get_site_settings_data():
|
|
data = {
|
|
"site_title": {"name": 'Title', "controls": 'TEXT', "active": True, "list_order": 0},
|
|
"site_description": {"name": 'Description', "controls": 'TEXTAREA', "active": True, "list_order": 1},
|
|
"site_logo_text": {"name": 'Logo Text', "controls": 'TEXT', "active": True, "list_order": 2,
|
|
"extra": {"maxlength": 25}},
|
|
"site_contact_email": {"name": 'Email', "controls": 'TEXT', "active": True, "list_order": 3},
|
|
"site_contact_phone": {"name": 'Phone', "controls": 'TEXT', "active": True, "list_order": 4},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_social_settings_data():
|
|
data = {
|
|
"facebook": {"name": 'Facebook', "controls": 'TEXT', "active": True, "list_order": 0},
|
|
"twitter": {"name": 'Twitter', "controls": 'TEXT', "active": True, "list_order": 1},
|
|
"youtube": {"name": 'Youtube', "controls": 'TEXT', "active": True, "list_order": 2},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_home_settings():
|
|
data = {
|
|
"banner_text": {"name": 'Banner Text', "controls": 'TEXT', "active": True, "list_order": 0},
|
|
"banner_description": {"name": 'Banner Description', "controls": 'TEXTAREA', "active": True,
|
|
"list_order": 1},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_footer_settings():
|
|
data = {
|
|
"footer_description": {"name": 'Footer Description', "controls": 'TEXTAREA', "active": True,
|
|
"list_order": 0},
|
|
"boolean_footer_show_email": {"name": 'Show email in footer', "controls": 'SELECT_NO_YES', "active": True,
|
|
"list_order": 1},
|
|
"boolean_footer_show_made_by": {"name": 'Show made by in footer', "controls": 'SELECT_NO_YES',
|
|
"active": True, "list_order": 2},
|
|
"boolean_footer_show_socials": {"name": 'Show social in footer', "controls": 'SELECT_NO_YES',
|
|
"active": True, "list_order": 3},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_testimonial_settings():
|
|
data = {
|
|
"boolean_testimonial_show": {"name": 'Show testimonial section', "controls": 'SELECT_NO_YES',
|
|
"active": True, "list_order": 0},
|
|
"testimonial_description": {"name": 'Description', "controls": 'TEXT', "active": True, "list_order": 1},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_about_items():
|
|
data = {
|
|
"about_title": {"name": 'About Title', "controls": 'TEXT', "active": True, "list_order": 0},
|
|
"about_description": {"name": 'About Details', "controls": 'TEXTAREA', "active": True, "list_order": 1},
|
|
"about_extra_1": {"name": 'Extra About us', "controls": 'TEXTAREA', "active": True, "list_order": 2},
|
|
"about_extra_2": {"name": 'More About us', "controls": 'TEXTAREA', "active": True, "list_order": 3},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_contact_items():
|
|
data = {
|
|
"contact_title": {"name": 'Contact Title', "controls": 'TEXT', "active": True, "list_order": 0},
|
|
"contact_introduction": {"name": 'Extra Introduction', "controls": 'TEXTAREA', "active": True,
|
|
"list_order": 1},
|
|
}
|
|
return data
|
|
|
|
@staticmethod
|
|
def get_site_blog_connect_settings():
|
|
data = {
|
|
"boolean_blog_connect_show": {"name": 'Show Blog Section', "controls": 'SELECT_NO_YES',
|
|
"active": True, "list_order": 0},
|
|
}
|
|
return data |