Function __global->_apply_emoticons
Definitions
sources/comcode_renderer.php
- Get the text with all the emoticon codes replaced with the correct HTML. Emoticons are determined by your forum system.This is not used in the normal Comcode chain - it's for non-Comcode things that require emoticons (actually in reality it is used in the Comcode chain if the optimiser sees that a full parse is not needed).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $text | string | No | No | required parameter | N/A | N/A | The text to add emoticons to (assumption: that this is HTML) |
Returns
- The HTML with the image-substitution of emoticons
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the text with all the emoticon codes replaced with the correct HTML. Emoticons are determined by your forum system.This is not used in the normal Comcode chain - it's for non-Comcode things that require emoticons (actually in reality it is used in the Comcode chain if the optimiser sees that a full parse is not needed).
*
* @param string $text The text to add emoticons to (assumption: that this is HTML)
* @return string The HTML with the image-substitution of emoticons
*/
function _apply_emoticons(string $text) : string
* Get the text with all the emoticon codes replaced with the correct HTML. Emoticons are determined by your forum system.This is not used in the normal Comcode chain - it's for non-Comcode things that require emoticons (actually in reality it is used in the Comcode chain if the optimiser sees that a full parse is not needed).
*
* @param string $text The text to add emoticons to (assumption: that this is HTML)
* @return string The HTML with the image-substitution of emoticons
*/
function _apply_emoticons(string $text) : string

