Class ThemeAxis

Description

this class implements the axis theme

Located in /program/themes/axis/axis.class.php (line 30)

Theme
   |
   --ThemeAxis
Method Summary
 string axis_logout ([string $separator = ''], [string $m = ''])
 string axis_printpage ([string $separator = ''], [string $m = ''])
 string get_html ()
Variables
Methods
axis_logout (line 173)

conditionally construct a logout link

this link is added on the left of the 'powered by websiteatschool' and 'print' widgets at the bottom of the page, but only if the current user is logged in.

  • return: ready to use HTML-code
string axis_logout ([string $separator = ''], [string $m = ''])
  • string $separator: a visual separator that is appended
  • string $m: margin for increased readability
axis_printpage (line 145)

construct a 'print this page' link

this link is added on the left of the 'powered by websiteatschool' widget at the bottom of the page, unless we are already creating a print version.

  • return: ready to use HTML-code
string axis_printpage ([string $separator = ''], [string $m = ''])
  • string $separator: a visual separator that is prepended
  • string $m: margin for increased readability
get_html (line 55)

construct an output page in HTML

This constructs a full HTML-page, starting at the DTD and ending with the html closing tag.

This routine returns a full HTML-page, including a navigation menu and a footer with links to printer friendly version + logout. If the page is called with print=1 as one of the get-parameters, the background and navigation menu are suppressed by including the additional print.css stylesheet (configurable). This more or less allows for making a clean print of only the content. This additional stylesheet is added only once, even if this routine is called more than once (shouldn't happen). This stylesheet is configurable just like the regular stylesheet.

Suppressing the background image (for printing) involves NOT generating the container div with id="page", or rather: we use a different id when viewed in regulare mode (id="page") or when viewed in print mode (id="print"). This allows for different tricks in print.css and at the very least allows for suppressing the background image.

  • return: complete HTML-page, ready for output
string get_html ()

Redefinition of:
Theme::get_html()
construct an output page in HTML

Inherited Methods

Inherited From Theme

 Theme::Theme()
 Theme::add_content()
 Theme::add_html_header()
 Theme::add_http_header()
 Theme::add_message()
 Theme::add_meta()
 Theme::add_meta_http_equiv()
 Theme::add_popup_bottom()
 Theme::add_popup_top()
 Theme::add_stylesheet()
 Theme::calc_breadcrumb_trail()
 Theme::construct_tree()
 Theme::dump_subtree()
 Theme::get_address()
 Theme::get_bazaar_style_style()
 Theme::get_bottomline()
 Theme::get_content()
 Theme::get_div_breadcrumbs()
 Theme::get_div_messages()
 Theme::get_html()
 Theme::get_html_head()
 Theme::get_jumpmenu()
 Theme::get_lines()
 Theme::get_logo()
 Theme::get_menu()
 Theme::get_navigation()
 Theme::get_popups()
 Theme::get_properties()
 Theme::get_quickbottom()
 Theme::get_quicklinks()
 Theme::get_quicktop()
 Theme::node2anchor()
 Theme::queue_alert()
 Theme::send_headers()
 Theme::send_output()
 Theme::set_preview_mode()
 Theme::show_tree_walk()

Documentation generated on Tue, 28 Jun 2016 19:08:27 +0200 by phpDocumentor 1.4.0