Added spaces in smilies array. Non breaking space before image.

git-svn-id: http://svn.automattic.com/wordpress/trunk@495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-10-30 00:46:19 +00:00
parent f1a016e602
commit bae7d70daf
1 changed files with 25 additions and 25 deletions

View File

@ -205,34 +205,34 @@ $is_IIS = strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0;
# if the config file does not provide the smilies array, let's define it here # if the config file does not provide the smilies array, let's define it here
if (!isset($b2smiliestrans)) { if (!isset($b2smiliestrans)) {
$b2smiliestrans = array( $b2smiliestrans = array(
':)' => 'icon_smile.gif', ' :)' => 'icon_smile.gif',
':D' => 'icon_biggrin.gif', ' :D' => 'icon_biggrin.gif',
':-D' => 'icon_biggrin.gif', ' :-D' => 'icon_biggrin.gif',
':grin:' => 'icon_biggrin.gif', ':grin:' => 'icon_biggrin.gif',
':)' => 'icon_smile.gif', ' :)' => 'icon_smile.gif',
':-)' => 'icon_smile.gif', ' :-)' => 'icon_smile.gif',
':smile:' => 'icon_smile.gif', ':smile:' => 'icon_smile.gif',
':(' => 'icon_sad.gif', ' :(' => 'icon_sad.gif',
':-(' => 'icon_sad.gif', ' :-(' => 'icon_sad.gif',
':sad:' => 'icon_sad.gif', ':sad:' => 'icon_sad.gif',
':o' => 'icon_surprised.gif', ' :o' => 'icon_surprised.gif',
':-o' => 'icon_surprised.gif', ' :-o' => 'icon_surprised.gif',
':eek:' => 'icon_surprised.gif', ':eek:' => 'icon_surprised.gif',
'8O' => 'icon_eek.gif', ' 8O' => 'icon_eek.gif',
'8-O' => 'icon_eek.gif', ' 8-O' => 'icon_eek.gif',
':shock:' => 'icon_eek.gif', ':shock:' => 'icon_eek.gif',
':?' => 'icon_confused.gif', ' :?' => 'icon_confused.gif',
':-?' => 'icon_confused.gif', ' :-?' => 'icon_confused.gif',
':???:' => 'icon_confused.gif', ' :???:' => 'icon_confused.gif',
'8)' => 'icon_cool.gif', ' 8)' => 'icon_cool.gif',
'8-)' => 'icon_cool.gif', ' 8-)' => 'icon_cool.gif',
':cool:' => 'icon_cool.gif', ':cool:' => 'icon_cool.gif',
':lol:' => 'icon_lol.gif', ':lol:' => 'icon_lol.gif',
':x' => 'icon_mad.gif', ' :x' => 'icon_mad.gif',
':-x' => 'icon_mad.gif', ' :-x' => 'icon_mad.gif',
':mad:' => 'icon_mad.gif', ':mad:' => 'icon_mad.gif',
':P' => 'icon_razz.gif', ' :P' => 'icon_razz.gif',
':-P' => 'icon_razz.gif', ' :-P' => 'icon_razz.gif',
':razz:' => 'icon_razz.gif', ':razz:' => 'icon_razz.gif',
':oops:' => 'icon_redface.gif', ':oops:' => 'icon_redface.gif',
':cry:' => 'icon_cry.gif', ':cry:' => 'icon_cry.gif',
@ -240,14 +240,14 @@ if (!isset($b2smiliestrans)) {
':twisted:' => 'icon_twisted.gif', ':twisted:' => 'icon_twisted.gif',
':roll:' => 'icon_rolleyes.gif', ':roll:' => 'icon_rolleyes.gif',
':wink:' => 'icon_wink.gif', ':wink:' => 'icon_wink.gif',
';)' => 'icon_wink.gif', ' ;)' => 'icon_wink.gif',
';-)' => 'icon_wink.gif', ' ;-)' => 'icon_wink.gif',
':!:' => 'icon_exclaim.gif', ':!:' => 'icon_exclaim.gif',
':?:' => 'icon_question.gif', ':?:' => 'icon_question.gif',
':idea:' => 'icon_idea.gif', ':idea:' => 'icon_idea.gif',
':arrow:' => 'icon_arrow.gif', ':arrow:' => 'icon_arrow.gif',
':|' => 'icon_neutral.gif', ' :|' => 'icon_neutral.gif',
':-|' => 'icon_neutral.gif', ' :-|' => 'icon_neutral.gif',
':neutral:' => 'icon_neutral.gif', ':neutral:' => 'icon_neutral.gif',
':mrgreen:' => 'icon_mrgreen.gif', ':mrgreen:' => 'icon_mrgreen.gif',
); );
@ -271,7 +271,7 @@ foreach($b2smiliestrans as $smiley => $img) {
for ($i = 0; $i < strlen($smiley); $i = $i + 1) { for ($i = 0; $i < strlen($smiley); $i = $i + 1) {
$smiley_masked .= substr($smiley, $i, 1).chr(160); $smiley_masked .= substr($smiley, $i, 1).chr(160);
} }
$b2_smiliesreplace[] = "<img src='$smilies_directory/$img' alt='$smiley_masked' />"; $b2_smiliesreplace[] = "&nbsp;<img src='$smilies_directory/$img' alt='$smiley_masked' />";
} }
add_filter('all', 'wptexturize'); add_filter('all', 'wptexturize');