個人用ツール

「関数リファレンス/BcBaser mainImage」の版間の差分

提供: baserCMS公式ガイド

移動: 案内, 検索
(Hanhunhun がページ「関数リファレンス/mainImage」を「関数リファレンス/BcBaser mainImage」に移動しました)
(相違点なし)

2015年5月11日 (月) 13:08時点における版

説明

テンプレート等で記述することで、管理画面のテーマ管理内テーマ設定から登録したメインイメージを出力します。

使い方

$this->BcBaser->mainImage( $options );

パラメータ

$options
(文字列)img要素の属性等を任意で連想配列で指定
  • 'num':1
  • 'all':false
  • 'id':MainImage
  • all: 全ての画像を出力する。
  • num: 指定した番号の画像を出力する。all を true とした場合は、出力する枚数となる。
  • id : all を true とした場合、UL タグの id 属性を指定できる。
  • ※ その他の、パラメーターは、 BcBaserHelper->_getThemeImage() を参照

戻り値

なし

用例

基本

コード

<?php $this->BcBaser->mainImage(); ?>

出力

 

応用

コード

 

出力

 

変更履歴

ソースファイル

関連資料

類似の関数