PHP Класс Gdn_Theme, vanilla

Allows access to theme controls from within views, to give themers a unified toolset for interacting with Vanilla from within views.
С версии: 2.0
Автор: Mark O'Sullivan ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_AssetInfo array
$_BulletSection
$_BulletSep
$_Section array

Открытые методы

Метод Описание
assetBegin ( string $AssetContainer = 'Panel' )
assetEnd ( )
breadcrumbs ( $Data, boolean $HomeLink = true, array $Options = [] ) : string
bulletItem ( string $Section, boolean $Return = true ) : string Call before writing an item and it will optionally write a bullet seperator.
bulletRow ( strng | boolean $Sep = false ) Call before starting a row of bullet-seperated items.
inSection ( string | array $Section ) Returns whether or not the page is in the current section.
link ( $Path, boolean $Text = false, null $Format = null, array $Options = [] ) : mixed | null | string
logo ( array $Properties = [] ) Renders the banner logo, or just the banner title if the logo is not defined.
mobileLogo ( ) : string Returns the mobile banner logo. If there is no mobile logo defined then this will just return the regular logo or the mobile title.
module ( $Name, array $Properties = [] ) : mixed | string
pagename ( ) : string
section ( string $Section, string $Method = 'add' ) The current section the site is in. This can be one or more values. Think of it like a server-side css-class.
text ( $Code, $Default ) : mixed

Описание методов

assetBegin() публичный статический Метод

public static assetBegin ( string $AssetContainer = 'Panel' )
$AssetContainer string

assetEnd() публичный статический Метод

public static assetEnd ( )

breadcrumbs() публичный статический Метод

public static breadcrumbs ( $Data, boolean $HomeLink = true, array $Options = [] ) : string
$Data
$HomeLink boolean
$Options array
Результат string

bulletItem() публичный статический Метод

Call before writing an item and it will optionally write a bullet seperator.
С версии: 2.1
public static bulletItem ( string $Section, boolean $Return = true ) : string
$Section string The name of the section.
$Return boolean whether or not to return the result or echo it.
Результат string

bulletRow() публичный статический Метод

Call before starting a row of bullet-seperated items.
С версии: 2.1
public static bulletRow ( strng | boolean $Sep = false )
$Sep strng | boolean The seperator used to seperate each section.

inSection() публичный статический Метод

Returns whether or not the page is in the current section.
public static inSection ( string | array $Section )
$Section string | array

module() публичный статический Метод

public static module ( $Name, array $Properties = [] ) : mixed | string
$Name
$Properties array
Результат mixed | string

pagename() публичный статический Метод

public static pagename ( ) : string
Результат string

section() публичный статический Метод

The current section the site is in. This can be one or more values. Think of it like a server-side css-class.
С версии: 2.1
public static section ( string $Section, string $Method = 'add' )
$Section string The name of the section.
$Method string One of: add, remove, set, get.

text() публичный статический Метод

public static text ( $Code, $Default ) : mixed
$Code
$Default
Результат mixed

Описание свойств

$_AssetInfo защищенное статическое свойство

protected static array $_AssetInfo
Результат array

$_BulletSection защищенное статическое свойство

protected static $_BulletSection

$_BulletSep защищенное статическое свойство

protected static $_BulletSep

$_Section защищенное статическое свойство

protected static array $_Section
Результат array