[ Index ]
 

Code source de Drupal 5.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/themes/engines/phptemplate/ -> phptemplate.engine (sommaire)

(pas de description)

Poids: 399 lignes (14 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 13 fonctions

  phptemplate_init()
  phptemplate_templates()
  phptemplate_regions()
  _phptemplate_callback()
  _phptemplate_default_variables()
  phptemplate_features()
  phptemplate_page()
  phptemplate_node()
  phptemplate_comment()
  phptemplate_block()
  phptemplate_box()
  _phptemplate_default()
  _phptemplate_render()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

phptemplate_init($template)   X-Ref


phptemplate_templates($directory = 'themes')   X-Ref
Pas de description

phptemplate_regions()   X-Ref
Declare the available regions implemented by this engine.

return:

_phptemplate_callback($hook, $variables = array()   X-Ref
Execute a template engine call.

Each call to the template engine has two parts. Namely preparing
the variables, and then doing something with them.

The first step is done by all template engines / themes, the second
step is dependent on the engine used.

param: $hook
param: $variables
param: $suggestions
return:

_phptemplate_default_variables($hook, $variables)   X-Ref
Adds additional helper variables to all templates.

Counts how many times certain hooks have been called. Sidebar left / right are special cases.

param: $hook
param: $variables

phptemplate_features()   X-Ref

return:

phptemplate_page($content, $show_blocks = TRUE)   X-Ref
Prepare the values passed to the theme_page function to be passed
into a pluggable template engine. Uses the arg() function to
generate a series of page template files suggestions based on the
current path. If none are found, the default page.tpl.php is used.


phptemplate_node($node, $teaser = 0, $page = 0)   X-Ref
Prepare the values passed to the theme_node function to be passed
into a pluggable template engine.


phptemplate_comment($comment, $links = 0)   X-Ref
Prepare the values passed to the theme_comment function to be passed
into a pluggable template engine.


phptemplate_block($block)   X-Ref
Prepare the values passed to the theme_block function to be passed
into a pluggable template engine. Uses block properties to generate a
series of template file suggestions. If none are found, the default
block.tpl.php is used.


phptemplate_box($title, $content, $region = 'main')   X-Ref
Prepare the values passed to the theme_box function to be passed
into a pluggable template engine.


_phptemplate_default($hook, $variables, $suggestions = array()   X-Ref
Default callback for PHPTemplate.

Load a template file, and pass the variable array to it.
If the suggested file is not found, PHPTemplate will attempt to use
a $hook.tpl.php file in the template directory, and failing that a
$hook.tpl.php in the PHPTemplate directory.

param: $hook
param: $variables
param: $suggestions

_phptemplate_render($file, $variables)   X-Ref
Pas de description



Généré le : Fri Nov 30 16:20:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics