QVCI Library 3.2
 All Classes Namespaces Functions
Public Member Functions | List of all members
Theme Class Reference

Public Member Functions

 __construct ()
 
 add_metatag ($metatag=[])
 
 add_script ($script)
 
 add_shortcut_icon ($data)
 
 add_stylesheet ($stylesheet)
 
 print_head ()
 
 print_metatags ()
 
 print_shortcut_icon ()
 
 print_scripts ()
 
 print_stylesheets ()
 
 render ($vars=[], $return=false)
 
 use_theme ($theme)
 

Detailed Description

Theme class

Implements themeing for QVC applications

Constructor & Destructor Documentation

Theme::__construct ( )

Constructor

Member Function Documentation

Theme::add_metatag (   $metatag = [])

Add a metatag

Parameters
array$metatagContains array keys for name and content
Theme::add_script (   $script)

Add a script

Parameters
string$script
Theme::add_shortcut_icon (   $data)

Add a shortcut icon

Parameters
string | array$data
Theme::add_stylesheet (   $stylesheet)

Add a stylesheet

Parameters
string$stylesheet
Theme::print_head ( )

Print the head section

Theme::print_metatags ( )

Print the list of metatags

Returns
Theme
Theme::print_scripts ( )

Print the list of scripts

Returns
Theme
Theme::print_shortcut_icon ( )

Print the shortcut icon link

Returns
Theme
Theme::print_stylesheets ( )

Print the list of stylesheets

Returns
Theme
Theme::render (   $vars = [],
  $return = false 
)

Render themed output of content.

Parameters
array$vars
bool$return
Theme::use_theme (   $theme)

Specify which theme to use

Parameters
string$theme

The documentation for this class was generated from the following file: