Dotclear 2.24
Loading...
Searching...
No Matches
public.tpl.php File Reference

Data Structures

class  publicWidgets
 

Namespaces

namespace  Dotclear
 Authentication and user credentials management.
 

Functions

static tplIfWidgets (ArrayObject $attr, string $content)
 
static ifWidgetsHandler (string $type)
 
static tplWidget (ArrayObject $attr, string $content)
 
static widgetHandler (string $id, $xml)
 

Function Documentation

◆ tplIfWidgets()

static tplIfWidgets ( ArrayObject  $attr,
string  $content 
)
static

tpl:IfWidgets : Include content only if test succeed (tpl block)

attributes:

 - type                Type of widgets (nav, extra, custom), default to all
 - disable             Comma separated list of widget to disable, default to empty
Parameters
ArrayObject$attrThe attributes
string$contentThe content
Returns
string

References defaultWidgets\WIDGETS_CUSTOM, defaultWidgets\WIDGETS_EXTRA, and defaultWidgets\WIDGETS_NAV.

◆ ifWidgetsHandler()

static ifWidgetsHandler ( string  $type)
static

tplIfWidgets helper

Parameters
string$typeThe type
Returns
bool

References dcCore\app().

◆ tplWidget()

static tplWidget ( ArrayObject  $attr,
string  $content 
)
static

tpl:Widget [attributes] : Includes a widget (tpl block)

attributes:

 - id      widget ID
Parameters
ArrayObject$attrThe attributes
string$contentThe content (widget optional settings)
Returns
string

References dcCore\app().

◆ widgetHandler()

static widgetHandler ( string  $id,
  $xml 
)
static

Render widget

Parameters
string$idThe widget identifier
string$xmlThe xml (widget optional settings)

References dcCore\app().