[ 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/inc/skins/ -> _skin.funcs.php (sommaire)

This file implements Template tags for use withing skins. This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. See also {@link http://sourceforge.net/projects/evocms/}.

Author: blueyed: Daniel HAHLER.
Author: fplanque: Francois PLANQUE.
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}.
License: http://b2evolution.net/about/license.html GNU General Public License (GPL)
Version: $Id: _skin.funcs.php,v 1.14 2007/11/02 02:41:25 fplanque Exp $
Poids: 507 lignes (14 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 9 fonctions

  skin_init()
  skin_include()
  skin_base_tag()
  skin_content_header()
  skin_content_meta()
  skin_widget()
  skin_container()
  skin_provided_by_plugin()
  skin_exists()

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

skin_init( $disp )   X-Ref
Template tag. Initializes internal states for the most common skin displays.

For more specific skins, this function should not be called and
equivalent code should be customized within the skin.

param: string What are we going to display. Most of the time the global $disp should be passed.

skin_include( $template_name, $params = array()   X-Ref
Template tag. Include a sub-template at the current position


skin_base_tag()   X-Ref
Template tag. Output HTML base tag to current skin.

This is needed for relative css and img includes.

skin_content_header( $type = 'text/html' )   X-Ref
Template tag. Output content-type header

We use this method when we are NOT generating a static page

param: string content-type; override for RSS feeds

skin_content_meta( $type = 'text/html' )   X-Ref
Template tag. Output content-type http_equiv meta tag

We use this method when we ARE generating a static page

param: string content-type; override for RSS feeds

skin_widget( $params )   X-Ref
Template tag. Display a Widget.

This load the widget class, instantiates it, and displays it.

param: array

skin_container( $sco_name, $params = array()   X-Ref
Display a container

param: string
param: array

skin_provided_by_plugin( $name )   X-Ref
Checks if a skin is provided by a plugin.

Used by front-end.

return: false|integer False in case no plugin provides the skin or ID of the first plugin that provides it.

skin_exists( $name, $filename = 'index.main.php' )   X-Ref
Checks if a skin exists. This can either be a regular skin directory
or can be in the list {@link Plugin::GetProvidedSkins()}.

Used by front-end.

param: skin name (directory name)
return: boolean true is exists, false if not



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