[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the Auto P plugin for b2evolution
Author: | blueyed: Daniel HAHLER - {@link http://daniel.hahler.de/} |
Poids: | 736 lignes (21 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
auto_p_plugin:: (9 méthodes):
PluginInit()
GetDefaultSettings()
RenderItemAsHtml()
handle_blocks()
handle_pre_blocks()
handle_pre_blocks_helper()
handle_br()
split_text_for_tag()
autobr()
Classe: auto_p_plugin - X-Ref
The Auto-P Plugin.PluginInit( & $params ) X-Ref |
Init |
GetDefaultSettings() X-Ref |
return: array |
RenderItemAsHtml( & $params ) X-Ref |
Perform rendering |
handle_blocks( $text, $in_tag = '' ) X-Ref |
- Split text into blocks, using $block_tags pattern. param: string Text param: string The HTML tag where $text is in return: string |
handle_pre_blocks( $text, $in_tag ) X-Ref |
Handle text which may contain inline tags - Explode by \n\n - Merge blocks that span over multiple tags - Apply BR to blocks - Wrap block in P param: string Text param: string Tag where $text is in return: string |
handle_pre_blocks_helper( $block, $in_tag, $wrap_in_p, $ignore_NL = true ) X-Ref |
This is a helper for handling blocks from {@link handle_pre_blocks_helper()}. What comes here is supposed to have no block tags. return: array array( $text, $has_p ) |
handle_br( $text, $in_tag ) X-Ref |
Handles adding BR. return: string |
split_text_for_tag($tag, & $text_after_tag) X-Ref |
Split the text for a given tag, mainly to find the closing tag. return: array |
autobr( $text, $replace_last = true ) X-Ref |
Add "<br />" to the end of newlines, which do not end with "<br />" already and which aren't the last line, if the "Auto-BR" setting is enabled. return: string |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |