b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.8) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _template.funcs.php

Source Location: /blogs/inc/_misc/_template.funcs.php

Page Details

This file implements misc functions to be called from the templates.

This file is part of the evoCore framework - http://evocore.net/ See also http://sourceforge.net/projects/evocms/.

Author:  blueyed: Daniel HAHLER.
Author:  cafelog (team)
Author:  fplanque: Francois PLANQUE.
Version:  $Id: _template.funcs.php,v 1.6.2.3 2006/06/16 21:20:09 fplanque Exp $
Copyright:  

(c)2003-2006 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2006 by Daniel HAHLER - http://thequod.de/contact.

Filesource:  Source Code for this file
Functions
archive_link  [line 245]

void archive_link( string $year, string $month, [string $day = ''], [string $week = ''], [boolean $show = true], [string $file = ''], [string $params = '']  )

Create a link to archive, using either params or extra path info.

Parameters:
string   $year:  year
string   $month:  month
string   $day:  day
string   $week:  week
boolean   $show:  show or return
string   $file:  link, instead of blogurl
string   $params:  GET params for 'file'


[ Top ]
request_title  [line 59]

void request_title( [string $prefix = ' '], [string $suffix = ''], [string $glue = ' - '], [string $format = 'htmlbody'], [boolean $display = true], [boolean $linktoyeararchive = true], [ $blogurl = ''], [ $params = '']  )

Display a global title matching filter params

Outputs the title of the category when you load the page with

  1. ?cat=
Display "Archive Directory" title if it has been requested Display "Last comments" title if these have been requested Display "Statistics" title if these have been requested Display "User profile" title if it has been requested

Parameters:
string   $prefix:  prefix to display if a title is generated
string   $suffix:  suffix to display if a title is generated
string   $glue:  glue to use if multiple title elements are generated
string   $format:  format to output, default 'htmlbody'
boolean   $display:  display title? (if false: return)
boolean   $linktoyeararchive:  show the year as link to year's archive (in monthly mode)
   $blogurl: 
   $params: 

Information Tags:
Todo:  single month: Respect locales datefmt
Todo:  single post: posts do no get proper checking (wether they are in the requested blog or wether their permissions match user rights, thus the title sometimes gets displayed even when it should not. We need to pre-query the ItemList instead!!
Todo:  make it complete with all possible params!

[ Top ]


Documentation generated on Tue, 18 Dec 2007 23:22:58 +0100 by phpDocumentor 1.4.0