@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Форматиране на текст: Усмивки');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Конвертира стандартните знаци за изразяване на емоции в графични изображения');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Стандартните знаци :) и ;) се конвертират в графични изображения');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
+?>
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Textformatierung: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Standard Text-Smilies in Grafiken konvertieren');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard-Text Smilies wie :-) und ;-) werden zu Bildern konvertiert.');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'Dateinamenerweiterung');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'Die Dateinamenerweiterung der Emoticons. Groß-/Kleinschreibung beachten.');
+?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Formato: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convertir smilies normales en imágenes');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Smilies normales como :-) y ;-) son convertidos en imágenes.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Balises: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convertit les smilies standard en images');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Les smilies standard comme :-) et ;-) sont convertis en images.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Textabreyting: Tilfinningavæða');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Breyta venjulegum textabrosköllum í grafískar myndir');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Venjulegum brosköllum, eins og :-) og ;-), verður breytt í myndir.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'マークアップ: 感情表現');
@define('PLUGIN_EVENT_EMOTICATE_DESC', '標準的な感情表現を画像に変換します。');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', '標準的な感情表現、 :-) や ;-) といったものは画像に変換します。');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
/* vim: set sts=4 ts=4 expandtab : */
?>
@define('PLUGIN_EVENT_EMOTICATE_NAME', '마크업: 이모티콘');
@define('PLUGIN_EVENT_EMOTICATE_DESC', '표준 이모티콘을 그림으로 바꿈');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', ':-) 이나 ;-) 와 같은 표준 이모티콘은 그림으로 바뀝니다.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Formato: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Converter smilies normais em imagens');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Smilies normais como :-) e ;-) são convertidos em imagens.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
-<?php\r
-##########################################################################\r
-# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity #\r
-# Developer Team) All rights reserved. See LICENSE file for licensing #\r
-# details #\r
-# #\r
-# (c) 2003 Jannis Hermanns <J@hacked.it> #\r
-# http://www.jannis.to/programming/serendipity.html #\r
-# #\r
-# Translated by #\r
-# (c) 2004-2005 CapriSkye <admin@capriskye.com> #\r
-# http://open.38.com #\r
-##########################################################################\r
-\r
- @define('PLUGIN_EVENT_EMOTICATE_NAME', '標記語言: 表情圖案');\r
- @define('PLUGIN_EVENT_EMOTICATE_DESC', '轉換字串成表情圖案');\r
- @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', '字串像 :-) 和 ;-) 會轉換成圖案。');\r
-\r
+<?php
+##########################################################################
+# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity #
+# Developer Team) All rights reserved. See LICENSE file for licensing #
+# details #
+# #
+# (c) 2003 Jannis Hermanns <J@hacked.it> #
+# http://www.jannis.to/programming/serendipity.html #
+# #
+# Translated by #
+# (c) 2004-2005 CapriSkye <admin@capriskye.com> #
+# http://open.38.com #
+##########################################################################
+
+ @define('PLUGIN_EVENT_EMOTICATE_NAME', '標記語言: 表情圖案');
+ @define('PLUGIN_EVENT_EMOTICATE_DESC', '轉換字串成表情圖案');
+ @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', '字串像 :-) 和 ;-) 會轉換成圖案。');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
\ No newline at end of file
-<?php # $Id: serendipity_event_emoticate.php 235 2005-07-08 13:29:39Z garvinhicking $\r
-\r
- @define('PLUGIN_EVENT_EMOTICATE_NAME', 'Ôîðìàòèðàíå íà òåêñò: Óñìèâêè');\r
- @define('PLUGIN_EVENT_EMOTICATE_DESC', 'Êîíâåðòèðà ñòàíäàðòíèòå çíàöè çà èçðàçÿâàíå íà åìîöèè â ãðàôè÷íè èçîáðàæåíèÿ');\r
- @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Ñòàíäàðòíèòå çíàöè :) è ;) ñå êîíâåðòèðàò â ãðàôè÷íè èçîáðàæåíèÿ');\r
-\r
+<?php # $Id: serendipity_event_emoticate.php 235 2005-07-08 13:29:39Z garvinhicking $
+
+ @define('PLUGIN_EVENT_EMOTICATE_NAME', 'Ôîðìàòèðàíå íà òåêñò: Óñìèâêè');
+ @define('PLUGIN_EVENT_EMOTICATE_DESC', 'Êîíâåðòèðà ñòàíäàðòíèòå çíàöè çà èçðàçÿâàíå íà åìîöèè â ãðàôè÷íè èçîáðàæåíèÿ');
+ @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Ñòàíäàðòíèòå çíàöè :) è ;) ñå êîíâåðòèðàò â ãðàôè÷íè èçîáðàæåíèÿ');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'Ðàçøèðåíèå íà ôàéëà');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'Ðàçøèðåíèå íà ôàéëîâåòå çà óñìèâêè. Ìàëêèòå è ãëàâíèòå áóêâè èìàò çíà÷åíèå.');
+?>
\ No newline at end of file
<?php # $Id: serendipity_event_emoticate.php 235 2005-07-08 13:29:39Z garvinhicking $
- @define('PLUGIN_EVENT_EMOTICATE_NAME', 'Textformatierung: Smilies');
- @define('PLUGIN_EVENT_EMOTICATE_DESC', 'Standard Text-Smilies in Grafiken konvertieren');
- @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard-Text Smilies wie :-) und ;-) werden zu Bildern konvertiert.');
+@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Textformatierung: Smilies');
+@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Standard Text-Smilies in Grafiken konvertieren');
+@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard-Text Smilies wie :-) und ;-) werden zu Bildern konvertiert.');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'Dateinamenerweiterung');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'Die Dateinamenerweiterung der Emoticons. Groß-/Kleinschreibung beachten.');
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Markup: Emoticate');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convert standard emoticons into graphic images');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Standard emoticons like :-) and ;-) are converted to images.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Formato: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convertir smilies normales en imágenes');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Smilies normales como :-) y ;-) son convertidos en imágenes.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Balises: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Convertit les smilies standard en images');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Les smilies standard comme :-) et ;-) sont convertis en images.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Textabreyting: Tilfinningavæða');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Breyta venjulegum textabrosköllum í grafískar myndir');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Venjulegum brosköllum, eins og :-) og ;-), verður breytt í myndir.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
/* vim: set sts=4 ts=4 expandtab : */
?>
\ No newline at end of file
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'マークアップ: 感情表現');
@define('PLUGIN_EVENT_EMOTICATE_DESC', '標準的な感情表現を画像に変換します。');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', '標準的な感情表現、 :-) や ;-) といったものは画像に変換します。');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
/* vim: set sts=4 ts=4 expandtab : */
?>
@define('PLUGIN_EVENT_EMOTICATE_NAME', '마크업: 이모티콘');
@define('PLUGIN_EVENT_EMOTICATE_DESC', '표준 이모티콘을 그림으로 바꿈');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', ':-) 이나 ;-) 와 같은 표준 이모티콘은 그림으로 바뀝니다.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
@define('PLUGIN_EVENT_EMOTICATE_NAME', 'Formato: Smilies');
@define('PLUGIN_EVENT_EMOTICATE_DESC', 'Converter smilies normais em imagens');
@define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', 'Smilies normais como :-) e ;-) são convertidos em imagens.');
-
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
-<?php\r
-##########################################################################\r
-# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity #\r
-# Developer Team) All rights reserved. See LICENSE file for licensing #\r
-# details #\r
-# #\r
-# (c) 2003 Jannis Hermanns <J@hacked.it> #\r
-# http://www.jannis.to/programming/serendipity.html #\r
-# #\r
-# Translated by #\r
-# (c) 2004-2005 CapriSkye <admin@capriskye.com> #\r
-# http://open.38.com #\r
-##########################################################################\r
-\r
- @define('PLUGIN_EVENT_EMOTICATE_NAME', '標記語言: 表情圖案');\r
- @define('PLUGIN_EVENT_EMOTICATE_DESC', '轉換字串成表情圖案');\r
- @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', '字串像 :-) 和 ;-) 會轉換成圖案。');\r
-\r
+<?php
+##########################################################################
+# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity #
+# Developer Team) All rights reserved. See LICENSE file for licensing #
+# details #
+# #
+# (c) 2003 Jannis Hermanns <J@hacked.it> #
+# http://www.jannis.to/programming/serendipity.html #
+# #
+# Translated by #
+# (c) 2004-2005 CapriSkye <admin@capriskye.com> #
+# http://open.38.com #
+##########################################################################
+
+ @define('PLUGIN_EVENT_EMOTICATE_NAME', '標記語言: 表情圖案');
+ @define('PLUGIN_EVENT_EMOTICATE_DESC', '轉換字串成表情圖案');
+ @define('PLUGIN_EVENT_EMOTICATE_TRANSFORM', '字串像 :-) 和 ;-) 會轉換成圖案。');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION', 'File extension');
+@define('PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH', 'The file extension of your emoticons. This is case sensitive.');
?>
\ No newline at end of file
$propbag->add('description', PLUGIN_EVENT_EMOTICATE_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team');
- $propbag->add('version', '1.1');
+ $propbag->add('version', '1.2');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
foreach($this->markup_elements as $element) {
$conf_array[] = $element['name'];
}
+ $conf_array[] = 'extension';
$propbag->add('configuration', $conf_array);
}
}
if (!isset($this->smilies)) {
+ $ext = $this->get_config('extension', 'png');
$this->smilies = array(
- "\:'\(" => serendipity_getTemplateFile('img/emoticons/cry.png'),
+ "\:'\(" => serendipity_getTemplateFile('img/emoticons/cry.'.$ext),
- '\:\-?\)' => serendipity_getTemplateFile('img/emoticons/smile.png'),
+ '\:\-?\)' => serendipity_getTemplateFile('img/emoticons/smile.'.$ext),
- '\:\|' => serendipity_getTemplateFile('img/emoticons/normal.png'),
+ '\:\|' => serendipity_getTemplateFile('img/emoticons/normal.'.$ext),
- '\:\-?O' => serendipity_getTemplateFile('img/emoticons/eek.png'),
+ '\:\-?O' => serendipity_getTemplateFile('img/emoticons/eek.'.$ext),
- '\:\-?\(' => serendipity_getTemplateFile('img/emoticons/sad.png'),
+ '\:\-?\(' => serendipity_getTemplateFile('img/emoticons/sad.'.$ext),
- '8\-?\)' => serendipity_getTemplateFile('img/emoticons/cool.png'),
+ '8\-?\)' => serendipity_getTemplateFile('img/emoticons/cool.'.$ext),
- '\:\-?D' => serendipity_getTemplateFile('img/emoticons/laugh.png'),
+ '\:\-?D' => serendipity_getTemplateFile('img/emoticons/laugh.'.$ext),
- '\:\-?P' => serendipity_getTemplateFile('img/emoticons/tongue.png'),
+ '\:\-?P' => serendipity_getTemplateFile('img/emoticons/tongue.'.$ext),
- ';\-?\)' => serendipity_getTemplateFile('img/emoticons/wink.png'),
+ ';\-?\)' => serendipity_getTemplateFile('img/emoticons/wink.'.$ext),
);
}
function introspect_config_item($name, &$propbag)
{
- $propbag->add('type', 'boolean');
- $propbag->add('name', constant($name));
- $propbag->add('description', sprintf(APPLY_MARKUP_TO, constant($name)));
- $propbag->add('default', 'true');
+ switch($name) {
+ case 'extension':
+ $propbag->add('type', 'string');
+ $propbag->add('name', PLUGIN_EVENT_EMOTICATE_EXTENSION);
+ $propbag->add('description', PLUGIN_EVENT_EMOTICATE_EXTENSION_BLAHBLAH);
+ $propbag->add('default', 'png');
+ break;
+ default:
+ $propbag->add('type', 'boolean');
+ $propbag->add('name', constant($name));
+ $propbag->add('description', sprintf(APPLY_MARKUP_TO, constant($name)));
+ $propbag->add('default', 'true');
+ }
return true;
}