Default theme

uses the page renderer
uses the current user
uses the config instance
uses the plugins object
package OWR

 Methods

Wrapper for all theme methods It will call method in this order : theme, parent theme, default theme

__call(string $name, array $args) : mixed
InheritedStatic
access public
static
inherited_from \OWR\Theme::__call()
inherited_from \OWR\Includes\Themes\Original\Theme::__call()

Parameters

$name

string

method to call

$args

array

arguments to pass to the method

Returns

mixedreturn from method call

Wrapper for all theme methods It will call method in this order : theme, parent theme, default theme

__callStatic(string $name, array $args) : mixed
InheritedStatic
access public
static
inherited_from \OWR\Theme::__callStatic()
inherited_from \OWR\Includes\Themes\Original\Theme::__callStatic()

Parameters

$name

string

method to call

$args

array

arguments to pass to the method

Returns

mixedreturn from method call

Constructor

__construct() 
access public

Generates categories block template

categories(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::categories()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of categories block template

Generates category block template

category(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::category()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of category block template

Returns the list of all available themes

getList() : array
InheritedStatic
author Pierre-Alain Mignot
access public
inherited_from \OWR\Theme::getList()
inherited_from \OWR\Includes\Themes\Original\Theme::getList()

Returns

arraylist of available themes

Returns list of theme pages

getPages() : \OWR\$this->_pages
Inherited
access public
inherited_from \OWR\Theme::getPages()
inherited_from \OWR\Includes\Themes\Original\Theme::getPages()

Returns

\OWR\$this->_pages

Returns parent theme name

getParent() : string
Inherited
access public
inherited_from \OWR\Theme::getParent()
inherited_from \OWR\Includes\Themes\Original\Theme::getParent()

Returns

string$this->_parent

Returns parent theme instance if exists

getParentTheme() : mixed
Inherited
access public
inherited_from \OWR\Theme::getParentTheme()
inherited_from \OWR\Includes\Themes\Original\Theme::getParentTheme()

Returns

mixed$this->_parent instance or false if empty

Returns path to : template if $tpl is specified (pages or blocks), or theme

getPath(string $tpl) : string
Inherited
access public
inherited_from \OWR\Theme::getPath()
inherited_from \OWR\Includes\Themes\Original\Theme::getPath()

Parameters

$tpl

string

optionnal, name of the template to get path

Returns

stringpath

Instance getter This function can NOT be overloaded

iGet() : mixed
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Theme::iGet()
inherited_from \OWR\Includes\Themes\Original\Theme::iGet()

Returns

mixedthe instance

Generates index template

index(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::index()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of index template

Generates CLI logs template

logs(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::logs()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of logs template

Removes all indentation from file

minify(string $file) : string
Inherited
access public
inherited_from \OWR\Theme::minify()
inherited_from \OWR\Includes\Themes\Original\Theme::minify()

Parameters

$file

string

the file to minify

Returns

stringthe mimnified file

Generates opensearch template

opensearch(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::opensearch()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of opensearch template

Generates opml template

opml(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::opml()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of opml template

Generates post block template

post(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::post()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of post block template

Generates post_content block template

post_content(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::post_content()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of post_content block template

Generates post_details block template

post_details(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::post_details()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of post_details block template

Generates posts block template

posts(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::posts()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of posts block template

Generates rss template

rss(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::rss()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of rss template

Generates stats block template

stats(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::stats()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of stats block template

Generates stream template

stream(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::stream()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of stream template

Generates stream_details template

stream_details(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::stream_details()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of stream_details template

Generates streams template

streams(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::streams()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of streams template

Generates tag block template

tag(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::tag()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of tag block template

Generates tags block template

tags(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::tags()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of tags block template

Generates upload iframe template

upload(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::upload()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of upload template

Generates user template

user(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::user()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of use template

Generates users block template

users(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Includes\Themes\Original\Theme::users()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of users block template

Transform a favicon URL into a base64_encoded string

_transformFavicon(string $favicon) : string
Inherited
access protected
inherited_from \OWR\Includes\Themes\Original\Theme::_transformFavicon()

Parameters

$favicon

string

the URL of the favicon to transform

Returns

stringthe base64_encoded string, or the URL of the favicon if it can not be transformed

 Properties

 

path to current theme blocks templates

$_blocksPath : string
Inherited
access protected
inherited_from \OWR\Theme::$$_blocksPath
inherited_from \OWR\Includes\Themes\Original\Theme::$$_blocksPath
 

current theme class name

$_className : string
Inherited
access protected
inherited_from \OWR\Theme::$$_className
inherited_from \OWR\Includes\Themes\Original\Theme::$$_className
 

default theme class name

$_defaultClassName : string
Inherited
access protected
inherited_from \OWR\Theme::$$_defaultClassName
inherited_from \OWR\Includes\Themes\Original\Theme::$$_defaultClassName
 

Default theme name

$_defaultName : string
Inherited
access protected
static
inherited_from \OWR\Theme::$$_defaultName
inherited_from \OWR\Includes\Themes\Original\Theme::$$_defaultName
 

current theme name (uses default if not specified)

$_name : string
Inherited
access protected
inherited_from \OWR\Theme::$$_name
inherited_from \OWR\Includes\Themes\Original\Theme::$$_name
 

list of theme pages

$_pages : array
Inherited
access protected
inherited_from \OWR\Theme::$$_pages
inherited_from \OWR\Includes\Themes\Original\Theme::$$_pages
 

path to current theme pages templates

$_pagesPath : string
Inherited
access protected
inherited_from \OWR\Theme::$$_pagesPath
inherited_from \OWR\Includes\Themes\Original\Theme::$$_pagesPath
 

name of parent theme

$_parent : string
Inherited
access protected
inherited_from \OWR\Theme::$$_parent
inherited_from \OWR\Includes\Themes\Original\Theme::$$_parent
 

name of parent class name

$_parentClassName : string
Inherited
access protected
inherited_from \OWR\Theme::$$_parentClassName
inherited_from \OWR\Includes\Themes\Original\Theme::$$_parentClassName
 

path to current theme

$_path : string
Inherited
access protected
inherited_from \OWR\Theme::$$_path
inherited_from \OWR\Includes\Themes\Original\Theme::$$_path
 

instance of OWR\View

$_view : object
Inherited
access protected
inherited_from \OWR\Theme::$$_view
inherited_from \OWR\Includes\Themes\Original\Theme::$$_view
 

instance of current theme object

$__theme : object
Inherited
access private
static
inherited_from \OWR\Theme::$$__theme
inherited_from \OWR\Includes\Themes\Original\Theme::$$__theme