[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/theme/clean/classes/ -> core_renderer.php (summary)

(no description)

File Size: 121 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

theme_clean_core_renderer:: (4 methods):
  context_header()
  should_render_logo()
  navbar_home()
  get_home_ref()


Class: theme_clean_core_renderer  - X-Ref

Clean core renderers.

context_header($headerinfo = null, $headinglevel = 1)   X-Ref
Either returns the parent version of the header bar, or a version with the logo replacing the header.

param: array $headerinfo An array of header information, dependant on what type of header is being displayed. The following
param: int $headinglevel What level the 'h' tag will be.
return: string HTML for the header bar.

should_render_logo($headinglevel = 1)   X-Ref
Determines if we should render the logo.

param: int $headinglevel What level the 'h' tag will be.
return: bool Should the logo be rendered.

navbar_home($returnlink = true)   X-Ref
Returns the navigation bar home reference.

The small logo is only rendered on pages where the logo is not displayed.

param: bool $returnlink Whether to wrap the icon and the site name in links or not
return: string The site name, the small logo or both depending on the theme settings.

get_home_ref($returnlink = true)   X-Ref
Returns a reference to the site home.

It can be either a link or a span.

param: bool $returnlink
return: string



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1