Class BeFrontHelper
helper class for frontends
- Helper
- AppHelper
- BeFrontHelper
Version: $Revision$
Modifiedby: $LastChangedBy$
Lastmodified:
$LastChangedDate$
$Id$
Located at views/helpers/be_front.php
Methods summary
public
|
|
public
639-1
|
|
public
string
|
#
title( string $order = 'asc' )
return title for current page
if page is publication root => return < section title> [$order 'desc'] or < section title> - < section title> - < section title> [$order 'asc' default]) |
public
string
|
|
public
string
|
#
metaDescription( )
return html meta description. try to get description from: _currentContent ('description' or 'abstract' or 'body') _section['description'] _publication['description'] |
public
string
|
|
public
string
|
|
public
string
|
#
metaWebApp( string $title = false, array $icons = false, string $statusBar = false, string $tileColor = '#000', string $feed = false )
return html of common web-app metadata |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
private
|
|
private
|
|
public
|
#
chooseTemplate( string $default = "generic_section" )
choose a view template verifying if file exists. Test follow the order: 1) filename = frontendMap currentContent nickname 2) filename = frontendMap section nickname 3) filename = currentContent nickname 4) filename = section nickname 5) filename = parent sections nickname 6) filename = object type 7) default |
public
string
|
|
private
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
#
beforeRender( )
helper beforeRender. include js that staging toolbar needs, include css (backend and eventually frontend override), override css |
Methods inherited from AppHelper
Properties summary
public
array
|
$helpers
|
#
array('Html', 'BeHtml')
|
private
|
$_publication
|
|
private
|
$_section
|
|
private
|
$_currentContent
|
|
private
|
$_feedNames
|
|
private
|
$_conf
|
|
private
|
$_breadcrumbs
|
|
private
|
$_viewExt
|