'at the url "<forum url>/custom.js". Please, ' 'bear in mind that your javascript code may break other ' 'functionalities of the site and that the behavior may ' 'not be consistent across different browsers ' '(<strong>to enable your custom code</strong>, check ' '"Add custom javascript" option above).' ) ) ) settings.register( values.IntegerValue( GENERAL_SKIN_SETTINGS, 'MEDIA_RESOURCE_REVISION', default = 1, description = _('Skin media revision number'), help_text = _( 'Will be set automatically ' 'but you can modify it if necessary.' ) ) ) settings.register( values.StringValue( GENERAL_SKIN_SETTINGS, 'MEDIA_RESOURCE_REVISION_HASH', description = _( 'Hash to update the media revision number automatically.' ), default='', help_text = _(
EMBEDDABLE_WIDGETS = ConfigurationGroup('EMBEDDABLE_WIDGETS', _('Embeddable widgets'), super_group=CONTENT_AND_UI) #we need better capabilities for the settings here # settings.register( values.IntegerValue( EMBEDDABLE_WIDGETS, 'QUESTIONS_WIDGET_MAX_QUESTIONS', default=7, description=_('Number of questions to show'), help_text=escape( _('To embed the widget, add the following code ' 'to your site (and fill in correct base url, preferred tags, width and height):' '<iframe ' 'src="{{base_url}}/widgets/questions?tags={{comma-separated-tags}}" ' 'width="100%" ' 'height="300"' 'scrolling="no">' '<p>Your browser does not support iframes.</p>' '</iframe>')))) settings.register( values.LongStringValue(EMBEDDABLE_WIDGETS, 'QUESTIONS_WIDGET_CSS', default=""" body { overflow: hidden; } #container {
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 ) ) settings.register( values.BooleanValue( SIDEBAR_MAIN, 'SIDEBAR_MAIN_SHOW_TAG_SELECTOR', description = _('Show tag selector in sidebar'), help_text = _( 'Uncheck this if you want to hide the options ' 'for choosing interesting and ignored tags ' ), default = True
settings.register( values.StringValue( GENERAL_SKIN_SETTINGS, 'ASKBOT_DEFAULT_SKIN', default='default', choices=skin_utils.get_skin_choices(), description=_('Select skin'), )) settings.register( values.IntegerValue(GENERAL_SKIN_SETTINGS, 'MEDIA_RESOURCE_REVISION', default=1, description=_('Skin media revision number'), help_text=_( 'Increment this number when you change ' 'image in skin media or stylesheet. ' 'This helps avoid showing your users ' 'outdated images from their browser cache.'))) settings.register( values.BooleanValue(GENERAL_SKIN_SETTINGS, 'USE_CUSTOM_HTML_HEAD', default=False, description=_('Customize HTML <HEAD>'))) settings.register( values.LongStringValue( GENERAL_SKIN_SETTINGS, 'CUSTOM_HTML_HEAD',