values.StringValue( GENERAL_SKIN_SETTINGS, 'ASKBOT_LANGUAGE', default = django_settings.LANGUAGE_CODE, choices = django_settings.LANGUAGES, description = _('Select Language'), ) ) settings.register( values.BooleanValue( GENERAL_SKIN_SETTINGS, 'SHOW_LOGO', description = _('Show logo'), help_text = _( 'Check if you want to show logo in the forum header ' 'or uncheck in the case you do not want the logo to ' 'appear in the default location' ), default = False ) ) settings.register( values.ImageValue( GENERAL_SKIN_SETTINGS, 'SITE_FAVICON', description = _('Site favicon'), help_text = _( 'A small 16x16 or 32x32 pixel icon image ' 'used to distinguish your site in the browser '
settings.register( values.LongStringValue( SIDEBAR_QUESTION, 'QUESTION_PAGE_TOP_BANNER', description=_('Top banner'), default='', localized=True, help_text=_( 'When using this option, please use the HTML validation service ' 'to make sure that your input is valid and works well in all ' 'browsers.'))) settings.register( values.BooleanValue( SIDEBAR_QUESTION, 'QUESTION_PAGE_TOP_BANNER_ANON_ONLY', default=False, description=_('Show above only to anonymous users'), )) settings.register( values.LongStringValue( SIDEBAR_QUESTION, 'QUESTION_PAGE_ANSWER_BANNER', description=_('Answers banner'), default='', localized=True, help_text=_( 'This banner will show under the first answer. When using this ' 'option, please use the HTML validation service to make sure that ' 'your input is valid and works well in all browsers.')))
Sidebar settings """ from askbot.conf.settings_wrapper import settings from askbot.deps.livesettings import ConfigurationGroup from askbot.deps.livesettings import values from django.utils.translation import ugettext_lazy as _ from askbot.conf.super_groups import CONTENT_AND_UI SIDEBAR_PROFILE = ConfigurationGroup('SIDEBAR_PROFILE', _('User profile sidebar'), super_group=CONTENT_AND_UI) settings.register( values.LongStringValue( SIDEBAR_PROFILE, 'SIDEBAR_PROFILE', description=_('Custom sidebar'), default='', localized=True, help_text=_('Use this area to enter content at the TOP of the sidebar' 'in HTML format. When using this option ' '(as well as the sidebar footer), please ' 'use the HTML validation service to make sure that ' 'your input is valid and works well in all browsers.'))) settings.register( values.BooleanValue(SIDEBAR_PROFILE, 'SIDEBAR_PROFILE_ANON_ONLY', description=_('Show above only to anonymous users'), default=False))
help_text = _( 'Use this area to enter content at the TOP of the sidebar' 'in HTML format. When using this option ' '(as well as the sidebar footer), please ' 'use the HTML validation service to make sure that ' 'your input is valid and works well in all browsers.' ) ) ) settings.register( values.BooleanValue( SIDEBAR_MAIN, 'SIDEBAR_MAIN_SHOW_AVATARS', description = _('Show avatar block in sidebar'), help_text = _( 'Uncheck this if you want to hide the avatar ' 'block from the sidebar ' ), default = True ) ) settings.register( values.IntegerValue( SIDEBAR_MAIN, 'SIDEBAR_MAIN_AVATAR_LIMIT', description = _('Limit how many avatars will be displayed on the sidebar'), default = 16 ) )
values.LongStringValue( SIDEBAR_MAIN, 'SIDEBAR_MAIN_HEADER', description=_('Custom sidebar header'), default='', localized=True, help_text=_( 'Use this area to enter content at the TOP of the sidebar in HTML ' 'format. When using this option (as well as the sidebar footer), ' 'please use the HTML validation service to make sure that your ' 'input is valid and works well in all browsers.'))) settings.register( values.BooleanValue( SIDEBAR_MAIN, 'SIDEBAR_MAIN_HEADER_ANON_ONLY', description=_('Show above only to anonymous users'), default=False, )) settings.register( values.BooleanValue( SIDEBAR_MAIN, 'SIDEBAR_MAIN_SHOW_AVATARS', description=_('Show avatar block in sidebar'), help_text=_('Uncheck this if you want to hide the avatar block ' 'from the sidebar '), default=True)) settings.register( values.IntegerValue( SIDEBAR_MAIN,
help_text = _( 'Use this area to enter content at the TOP of the sidebar' 'in HTML format. When using this option ' '(as well as the sidebar footer), please ' 'use the HTML validation service to make sure that ' 'your input is valid and works well in all browsers.' ) ) ) settings.register( values.BooleanValue( SIDEBAR_QUESTION, 'SIDEBAR_QUESTION_SHOW_TAGS', description = _('Show tag list in sidebar'), help_text = _( 'Uncheck this if you want to hide the tag ' 'list from the sidebar ' ), default = True ) ) settings.register( values.BooleanValue( SIDEBAR_QUESTION, 'SIDEBAR_QUESTION_SHOW_META', description = _('Show meta information in sidebar'), help_text = _( 'Uncheck this if you want to hide the meta ' 'information about the question (post date, ' 'views, last updated). '
Sidebar settings """ from askbot.conf.settings_wrapper import settings from askbot.deps.livesettings import ConfigurationGroup from askbot.deps.livesettings import values from django.utils.translation import ugettext_lazy as _ from askbot.conf.super_groups import CONTENT_AND_UI LEADING_SIDEBAR = ConfigurationGroup('LEADING_SIDEBAR', _('Common left sidebar'), super_group=CONTENT_AND_UI) settings.register( values.BooleanValue( LEADING_SIDEBAR, 'ENABLE_LEADING_SIDEBAR', description=_('Enable left sidebar'), default=False, )) settings.register( values.LongStringValue( LEADING_SIDEBAR, 'LEADING_SIDEBAR', description=_('HTML for the left sidebar'), default='', help_text=_('Use this area to enter content at the LEFT sidebar' 'in HTML format. When using this option, please ' 'use the HTML validation service to make sure that ' 'your input is valid and works well in all browsers.')))