Skip to content
Snippets Groups Projects
Commit 1f0a3132 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

update readme

parent 926635e3
No related branches found
No related tags found
No related merge requests found
...@@ -34,3 +34,17 @@ your `LocalSettings.php` file: ...@@ -34,3 +34,17 @@ your `LocalSettings.php` file:
## Configuration ## Configuration
* `$wgConnectedPrivateCSSClass` : css class for loggedIn content * `$wgConnectedPrivateCSSClass` : css class for loggedIn content
* `$wgConnectedPublicCSSClass` : css class for not loggedIn content * `$wgConnectedPublicCSSClass` : css class for not loggedIn content
### Example
```php
wfLoadExtension( 'Connected' );
$wgConnectedPrivateCSSClass = "pv";
$wgConnectedPublicCSSClass = "pb";
```
in pages :
```
{{#ifloggedIn:Text if logged in in a div}}
{{#ifloggedIn:Text if logged in in a div|Text if logged out in a div}}
{{#ifloggedIn:Text if logged in not in a div|Text if logged out not in a div|no}}
{{#ifloggedIn:Text if logged in not in a div||no}}
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment