| [ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the Image Smilies Renderer plugin for b2evolution b2evolution - {@link http://b2evolution.net/} Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
| Author: | fplanque: Francois PLANQUE. |
| Author: | gorgeb: Bertrand GORGE / EPISTEMA |
| Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
| Poids: | 504 lignes (15 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
smilies_plugin:: (13 méthodes):
PluginInit()
GetDefaultSettings()
GetDefaultUserSettings()
AdminDisplayToolbar()
DisplayCommentToolbar()
display_smiley_bar()
FilterCommentContent()
RenderItemAsHtml()
preg_insert_smilies_callback()
ReplaceTagSafe()
smiliescmp()
InitSmilies()
get_smiley()
Classe: smilies_plugin - X-Ref
| PluginInit( & $params ) X-Ref |
| Init |
| GetDefaultSettings() X-Ref |
| Defaults for user specific settings: "Display toolbar" return: array |
| GetDefaultUserSettings() X-Ref |
| Allowing the user to override the display of the toolbar. return: array |
| AdminDisplayToolbar( & $params ) X-Ref |
| Display a toolbar in admin param: array Associative array of parameters return: boolean did we display a toolbar? |
| DisplayCommentToolbar( & $params ) X-Ref |
| Event handler: Called when displaying editor toolbars. param: array Associative array of parameters return: boolean did we display a toolbar? |
| display_smiley_bar() X-Ref |
| Display the smiley toolbar return: boolean did we display a toolbar? |
| FilterCommentContent( & $params ) X-Ref |
| Perform rendering |
| RenderItemAsHtml( & $params ) X-Ref |
| Perform rendering |
| preg_insert_smilies_callback( $text ) X-Ref |
| This callback gets called once after every tags+text chunk return: string Text with replaced smilies |
| ReplaceTagSafe($text) X-Ref |
| Replace smilies in non-HTML-tag portions of the text. |
| smiliescmp($a, $b) X-Ref |
| sorts the smilies' array by length this is important if you want :)) to superseede :) for example |
| InitSmilies() X-Ref |
| Initiates the smiley array if not already initiated Attempts to use skin specific smileys where available - skins_adm/skin/rsc/smilies/ - skins/skin/smilies/ Attempts to fallback to default smilies - rsc/smilies/ If no image file found the smiley is not added return: array of available smilies( code, image url ) |
| get_smiley( $smiley_parts ) X-Ref |
| Pas de description |
| Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
|