COM getBlockTemplate
提供: GeeklogJpWiki
lib-common.php>COM getBlockTemplate
説明
string COM_getBlockTemplate (string $blockname, string $which, [string $position = ''])
ブロックテンプレートで使うファイルを返す。ブロックのHTMLを作るのに必要なテンプレートを返す。サイト設計者が好みの見栄えのブロックを使えるようにしたもの。ブロックのテンプレートが指定されていない場合、デフォルトのblockheader.htmlとblockfooer.htmlが使われる。
パラメータ
- $blockname
- corresponds to name field in block table
- $which
- can be either 'header' or 'footer' for corresponding template
- $position
- can be 'left', 'right' or blank. If set, will be used to find a side specific override template.
返り値
template name