Bitrix API

Theme

Table of Contents

Constants

DEFAULT_PAGE_TEMPLATE  = 'empty'
Default page template for page creating.
FILE_PATH_SITE_MANIFEST  = '/bitrix/components/bitrix/landing.demo/data/site/#code#/.theme.php'
Manifest path template.

Methods

getNewPageTemplate()  : string
Finds new page template in site manifest, returns DEFAULT_PAGE_TEMPLATE by default.
processing()  : void
Processing theme manifest.

Constants

DEFAULT_PAGE_TEMPLATE

Default page template for page creating.

public mixed DEFAULT_PAGE_TEMPLATE = 'empty'

FILE_PATH_SITE_MANIFEST

Manifest path template.

public mixed FILE_PATH_SITE_MANIFEST = '/bitrix/components/bitrix/landing.demo/data/site/#code#/.theme.php'

Methods

getNewPageTemplate()

Finds new page template in site manifest, returns DEFAULT_PAGE_TEMPLATE by default.

public static getNewPageTemplate(int $siteId) : string
Parameters
$siteId : int

Site id.

Return values
string

processing()

Processing theme manifest.

public static processing(Block $block) : void
Parameters
$block : Block

Block instance.


        
On this page

Search results