From 98bfb63992324a717fa8ac550c6ff3ec1a7e3bc7 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Fri, 24 May 2013 05:31:29 -0400 Subject: added option to hide ad blocks from logged in users --- askbot/conf/sidebar_main.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'askbot/conf/sidebar_main.py') diff --git a/askbot/conf/sidebar_main.py b/askbot/conf/sidebar_main.py index 8fa4bdf0..97b89e37 100644 --- a/askbot/conf/sidebar_main.py +++ b/askbot/conf/sidebar_main.py @@ -29,6 +29,15 @@ settings.register( ) ) +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, @@ -94,3 +103,12 @@ settings.register( ) ) +settings.register( + values.BooleanValue( + SIDEBAR_MAIN, + 'SIDEBAR_MAIN_FOOTER_ANON_ONLY', + default=False, + description=_('Show above only to anonymous users') + ) +) + -- cgit v1.2.3-1-g7c22