Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -39,6 +39,8 @@ |
40 | 40 | # Add stable/draft revision tabs. May be redundant due to the tags. |
41 | 41 | # If you have an open wiki, with the simple UI, you may want to enable these. |
42 | 42 | $wgFlaggedRevTabs = false; |
| 43 | +# For non-user visitors, only show tags/icons for *unreviewed* pages |
| 44 | +$wgFlaggedRevsLowProfile = false; |
43 | 45 | |
44 | 46 | # Allowed namespaces of reviewable pages |
45 | 47 | $wgFlaggedRevsNamespaces = array( NS_MAIN ); |
Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -345,7 +345,7 @@ |
346 | 346 | } |
347 | 347 | $synced = FlaggedRevs::stableVersionIsSynced( $frev, $this->parent, $parserOut, null ); |
348 | 348 | # Construct some tagging |
349 | | - if( !$wgOut->isPrintable() ) { |
| 349 | + if( !$wgOut->isPrintable() && !FlaggedRevs::lowProfileUI() ) { |
350 | 350 | $class = $quality ? 'fr-icon-quality' : 'fr-icon-stable'; |
351 | 351 | $tooltip = $quality ? 'revreview-quality-title' : 'revreview-stable-title'; |
352 | 352 | $tooltip = wfMsgHtml($tooltip); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -6,11 +6,10 @@ |
7 | 7 | protected static $qualityVersions = false; |
8 | 8 | protected static $pristineVersions = false; |
9 | 9 | protected static $extStorage = false; |
10 | | - protected static $allowComments = false; |
11 | 10 | protected static $includeVersionCache = array(); |
12 | 11 | |
13 | 12 | public static function load() { |
14 | | - global $wgFlaggedRevTags, $wgFlaggedRevValues, $wgFlaggedRevsComments; |
| 13 | + global $wgFlaggedRevTags, $wgFlaggedRevValues; |
15 | 14 | if( self::$loaded ) { |
16 | 15 | return true; |
17 | 16 | } |
— | — | @@ -41,8 +40,6 @@ |
42 | 41 | self::$extStorage = $wgFlaggedRevsExternalStore ? |
43 | 42 | $wgFlaggedRevsExternalStore : $wgDefaultExternalStore; |
44 | 43 | |
45 | | - self::$allowComments = (bool)$wgFlaggedRevsComments; |
46 | | - |
47 | 44 | self::$loaded = true; |
48 | 45 | } |
49 | 46 | |
— | — | @@ -85,14 +82,24 @@ |
86 | 83 | |
87 | 84 | return $wgUser->getOption( 'flaggedrevssimpleui', intval($wgSimpleFlaggedRevsUI) ); |
88 | 85 | } |
89 | | - |
| 86 | + |
90 | 87 | /** |
| 88 | + * Should tags only be shown for unreviewed content for this user? |
| 89 | + * @returns bool |
| 90 | + */ |
| 91 | + public static function lowProfileUI() { |
| 92 | + global $wgUser, $wgFlaggedRevsLowProfile; |
| 93 | + self::load(); |
| 94 | + return (!$wgUser->getId() && $wgFlaggedRevsLowProfile); |
| 95 | + } |
| 96 | + /** |
91 | 97 | * Should comments be allowed on pages and forms? |
92 | 98 | * @returns bool |
93 | 99 | */ |
94 | 100 | public static function allowComments() { |
| 101 | + global $wgFlaggedRevsComments; |
95 | 102 | self::load(); |
96 | | - return self::$allowComments; |
| 103 | + return $wgFlaggedRevsComments; |
97 | 104 | } |
98 | 105 | |
99 | 106 | /** |