[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/plugins/adsense_plugin/ -> _adsense.plugin.php (sommaire)

This file implements the AdSense plugin for b2evolution b2evolution - {@link http://b2evolution.net/} Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Poids: 217 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

adsense_plugin:: (9 méthodes):
  PluginInit()
  GetDefaultSettings()
  FilterItemContents()
  UnfilterItemContents()
  RenderItemAsHtml()
  DisplayItemAsHtml()
  DisplayItem_callback()
  DisplayItemAsXml()
  AdminDisplayToolbar()


Classe: adsense_plugin  - X-Ref

Replaces AdSense markup in HTML.

PluginInit( & $params )   X-Ref
Init


GetDefaultSettings( & $params )   X-Ref
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).

return: array

FilterItemContents( & $params )   X-Ref
Comments out the adsense tags so that they don't get worked on by other renderers like Auto-P

param: mixed $params

UnfilterItemContents( & $params )   X-Ref
Changes the commented out tags into something that is visible to the editor

param: mixed $params

RenderItemAsHtml( & $params )   X-Ref
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 {@link DisplayItemAsHtml()} instead if you want to do rendering at display time.

Note: You have to change $params['data'] (which gets passed by reference).

param: array Associative array of parameters
return: boolean Have we changed something?

DisplayItemAsHtml( & $params )   X-Ref
Perform rendering (at display time, i-e: NOT cached)


DisplayItem_callback( $matches )   X-Ref
Pas de description

DisplayItemAsXml( & $params )   X-Ref
Filter out adsense tags from XML content.


AdminDisplayToolbar( & $params )   X-Ref
Display a toolbar in admin

param: array Associative array of parameters
return: boolean did we display a toolbar?



Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics