From fbfc2675916bed4ee9e8e16a78a23bdde4ed7519 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 7 Nov 2003 14:55:44 +0000 Subject: [PATCH] New language file called pix.php for defining alt-text of pix files. Smileys code is changed over to use this, both in replace_smileys and in editor/popups/dlg_ins_smile.php Needs testing please! --- lang/en/pix.php | 24 ++++ lib/editor/popups/dlg_ins_smile.php | 202 ++++++++-------------------- lib/weblib.php | 52 +++---- 3 files changed, 109 insertions(+), 169 deletions(-) create mode 100644 lang/en/pix.php diff --git a/lang/en/pix.php b/lang/en/pix.php new file mode 100644 index 0000000000..8a622bc3d0 --- /dev/null +++ b/lang/en/pix.php @@ -0,0 +1,24 @@ + diff --git a/lib/editor/popups/dlg_ins_smile.php b/lib/editor/popups/dlg_ins_smile.php index 45f4147dba..eb678d4b56 100644 --- a/lib/editor/popups/dlg_ins_smile.php +++ b/lib/editor/popups/dlg_ins_smile.php @@ -1,52 +1,37 @@ wwwroot . "/pix/s"; + include('../../../config.php'); + $pixpath = "$CFG->pixpath/s"; + + $fullnames = get_list_of_pixnames(); + + $emoticons = array ( 'smiley' => ':-)', + 'biggrin' => ':-D', + 'wink' => ';-)', + 'mixed' => ':-/', + 'thoughtful' => 'V-.', + 'tongueout' => ':-P', + 'cool' => 'B-)', + 'approve' => '^-)', + 'wideeyes' => '8-)', + 'clown' => ':o)', + 'sad' => ':-(', + 'shy' => '8-.', + 'blush' => ':-I', + 'kiss' => ':-X', + 'surprise' => '8-o', + 'blackeye' => 'P-|', + 'angry' => '8-[', + 'dead' => 'xx-P', + 'sleepy' => '|-.', + 'evil' => '}-]' ); + ?> @@ -54,7 +39,7 @@ -Insert Smiley Icon                  +<?php print_string('insertsmile', 'editor') ?>