From ffdfb838abe1b4bf76455c73c1c3ffa60cee0f49 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 9 Aug 2011 14:16:05 -0400 Subject: [PATCH] Add (optional) Eligius chat applet --- lib.util.php | 12 ++++++++++++ web.noauth_settings.php | 4 ++++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/lib.util.php b/lib.util.php index 568da3d..e3d9417 100644 --- a/lib.util.php +++ b/lib.util.php @@ -472,6 +472,18 @@ EOT; echo <<$title +EOT + if (!(isset($_COOKIE['a2_nochat']) && $_COOKIE['a2_nochat'])) + echo << + +EOT + echo <<

$shownTitle

diff --git a/web.noauth_settings.php b/web.noauth_settings.php index 2149fe6..a34691d 100644 --- a/web.noauth_settings.php +++ b/web.noauth_settings.php @@ -53,6 +53,10 @@ echo "
  • "; toggleCookie('noanim', 'noanim', 'Enable realtime share count updates', 'Disable realtime share count updates'); echo " Use this if the instant share count updates are too frequent to your taste.
  • \n"; +echo "
  • "; +toggleCookie('nochat', 'nochat', 'Enable integrated chat', 'Disable integrated chat'); +echo " Use this if you don't like the embedded chat applet.
  • \n"; + $submit = ''; echo "\n
    \n

    Note : to save your color changes, click the submit button ($submit) of the appropriate color pickers.

      \n"; -- 1.7.3.4