COM startBlock

提供: GeeklogJpWiki

lib-common.php>COM startBlock

説明

 string   COM_startBlock  ([string $title = ''], [string $helpfile = ''], [string $template = 'blockheader.thtml'])

標準ブロックヘッダをprintoutするが、データベースからHTMLフォーマットされたヘッダを引いてくる。

  • 開発者ノート

2つの関数、COM_startBlockとCOM_endBlockはブロックコンテンツを上下からサンドイッチするように使われます。2つの関数はブロックに使われるだけでなく静的ページなどのすべてのブロックを使うフォーマットで使われます。ページ内要素として使われるCOM_siteHeaderとCOM_siteFooterのようなものです。

  • HTMLフォーマットされたブロックヘッダを返す

パラメータ

$title
Value to set block title to
$helpfile
Help file, if one exists
$template
HTML template file to use to format the block

返り値

Formatted HTML containing block header

個人用ツール