関数リファレンス/BcBaser mainImage
提供: baserCMS公式ガイド
目次
説明
テンプレート等で記述することで、管理画面のテーマ管理内テーマ設定から登録したメインイメージを出力します。
使い方
$this->BcBaser->mainImage( $options );
パラメータ
- $options
-
(文字列)img要素の属性等を任意で連想配列で指定
- 'num':1
- 'all':false
- 'id':MainImage
戻り値
- (string)
- imgタグ(リンク設定があればアンカータグ付きimgタグ)
用例
基本
コード
<?php $this->BcBaser->mainImage(); ?>