[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements misc functions to be called from the templates. This file is part of the evoCore framework - {@link http://evocore.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/} |
Version: | $Id: _template.funcs.php,v 1.11 2007/11/03 23:54:39 fplanque Exp $ |
Poids: | 558 lignes (15 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
request_title( $params = array() X-Ref |
Display a global title matching filter params Outputs the title of the category when you load the page with <code>?cat=</code> Display "Archive Directory" title if it has been requested Display "Latest comments" title if these have been requested Display "Statistics" title if these have been requested Display "User profile" title if it has been requested param: array params |
robots_tag() X-Ref |
Robots tag Outputs the robots meta tag if necessary |
blog_home_link( $before = '', $after = '', $blog_text = 'Blog', $home_text = 'Home' ) X-Ref |
Output a link to current blog. We need this function because if no Blog is currently active (some admin pages or site pages) then we'll go to the general home. |
require_js( $js_file, $relative_to_base = FALSE ) X-Ref |
Memorize that a specific javascript file will be required by the current page. All requested files will be included in the page head only once (when headlines is called) Accepts absolute urls, filenames relative to the rsc/js directory and certain aliases, like 'jquery' and 'jquery_debug' If 'jquery' is used and $debug is set to true, the 'jquery_debug' is automatically swapped in. Any javascript added to the page is also added to the $required_js array, which is then checked to prevent adding the same code twice param: string alias, url or filename (relative to rsc/js) for javascript file param: boolean relative_to_base. False (default) if the file is in the rsc/js folder. True to make it relative |
require_css( $css_file, $relative_to_base = FALSE, $title = NULL, $media = NULL ) X-Ref |
Memorize that a specific css that file will be required by the current page. All requested files will be included in the page head only once (when headlines is called) Accepts absolute urls, filenames relative to the rsc/css directory. Set $relative_to_base to TRUE to prevent this function from adding on the rsc_path param: string alias, url or filename (relative to rsc/js) for javascript file param: boolean relative_to_base. False (default) if the file is in the rsc/css folder. True to make it relative param: string title. The title for the link tag param: string media. ie, 'print' |
add_headline($headline) X-Ref |
Pas de description |
include_headlines() X-Ref |
Pas de description |
app_version() X-Ref |
Template tag. |
item_prevnext_links( $params = array() X-Ref |
Stub: Links to previous and next post in single post mode |
messages( $params = array() X-Ref |
Stub |
mainlist_page_links( $params = array() X-Ref |
Stub: Links to list pages: |
display_if_empty( $params = array() X-Ref |
Pas de description |
credits( $params = array() X-Ref |
Template tag |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |