Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_emoticate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24515/plugins/serendipity_event_emoticate
Modified Files:
serendipity_event_emoticate.php
Log Message:
Fixed Bug item #941922 - strftime %e does not work on windows
Fixed by creating serendipity_formatTime() which wraps strftime() and replaces %e if the OS is Windows
Format is cached, to avoid multiple str_replace() per page
Also added id="" to emoticons, for better styling :)
Index: serendipity_event_emoticate.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- serendipity_event_emoticate.php 13 Apr 2004 10:00:38 -0000 1.4
+++ serendipity_event_emoticate.php 5 May 2004 16:40:16 -0000 1.5
@@ -100,7 +100,7 @@
foreach ($this->smiles as $key => $value) {
$eventData[$element] = preg_replace("/([\t\ ]?)" . preg_quote($key, '/') . "([\t\ \!\.\)]?)/m",
- "$1<img src=\"$value\" alt=\"$key\" style=\"display: inline; vertical-align: bottom;\" />$2",
+ "$1<img src=\"$value\" alt=\"$key\" style=\"display: inline; vertical-align: bottom;\" id=\"emoticon\" />$2",
$eventData[$element]
);
}
|