From: moodler Date: Fri, 7 Nov 2003 14:55:44 +0000 (+0000) Subject: New language file called pix.php for defining alt-text of pix files. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fbfc2675916bed4ee9e8e16a78a23bdde4ed7519;p=moodle.git 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! --- 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') ?>