boolean AdminDisplayToolbar(
array
&$params
)
|
|
Display a toolbar in admin
Parameters:
|
array |
&$params: |
Associative array of parameters |
API Tags:
| Return: | did we display a toolbar? |
Redefinition of:
- Plugin::AdminDisplayToolbar()
- Event handler: Called when displaying editor toolbars.
void DisplayItemAsHtml(
&$params
)
|
|
Perform rendering (at display time, i-e: NOT cached)
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayItemAsHtml()
- Event handler: Called when displaying an item/post's content as HTML.
void DisplayItemAsXml(
&$params
)
|
|
Filter out adsense tags from XML content.
Parameters:
API Tags:
Redefinition of:
- Plugin::DisplayItemAsXml()
- Event handler: Called when displaying an item/post's content as XML.
void DisplayItem_callback(
$matches
)
|
|
Parameters:
void FilterItemContents(
&$params, mixed
$params
)
|
|
Comments out the adsense tags so that they don't get worked on by other renderers like Auto-P
Parameters:
array GetDefaultSettings(
&$params
)
|
|
Get the settings that the plugin can use.
Those settings are transfered into a Settings member object of the plugin and can be edited in the backoffice (Settings / Plugins).
Parameters:
API Tags:
Redefinition of:
- Plugin::GetDefaultSettings()
- Define here default settings that are then available in the backoffice.
void PluginInit(
&$params
)
|
|
Init
Parameters:
Redefinition of:
- Plugin::PluginInit()
- Init the Plugin after it has been registered/instantiated.
boolean RenderItemAsHtml(
array
&$params
)
|
|
Event handler: Called when rendering item/post contents as HTML. (CACHED)
The rendered content will be *cached* and the cached content will be reused on subsequent displays. Use DisplayItemAsHtml() instead if you want to do rendering at display time.
Note: You have to change $params['data'] (which gets passed by reference).
Parameters:
|
array |
&$params: |
Associative array of parameters - 'data': the data (by reference). You probably want to modify this.
- 'format': see format_to_output(). Only 'htmlbody' and 'entityencoded' will arrive here.
- 'Item': the Item object which gets rendered.
|
API Tags:
| Return: | Have we changed something? |
Redefinition of:
- Plugin::RenderItemAsHtml()
- Event handler: Called when rendering item/post contents as HTML. (CACHED)
void UnfilterItemContents(
&$params, mixed
$params
)
|
|
Changes the commented out tags into something that is visible to the editor
Parameters: