From 1f0a3132330b0903505150ebbd6c8858b8a72423 Mon Sep 17 00:00:00 2001
From: Mathieu Loiseau <mathieu.loiseau@liris.cnrs.fr>
Date: Fri, 14 Mar 2025 18:45:33 +0100
Subject: [PATCH] update readme

---
 README.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/README.md b/README.md
index d3a901e..ea760dd 100644
--- a/README.md
+++ b/README.md
@@ -34,3 +34,17 @@ your `LocalSettings.php` file:
 ## Configuration
 * `$wgConnectedPrivateCSSClass` : css class for 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}}
+```
-- 
GitLab