BcThemeConfigHelper
extends Helper
in package
BcThemeConfigHelper
Attributes
- #[AllowDynamicProperties]
Table of Contents
Properties
- $helpers : array<string|int, string>
- Helper
Methods
- getThemeImage() : string
- テーマ画像を取得する
- logo() : void
- ロゴを出力する
- mainImage() : void
- メインイメージを出力する
Properties
$helpers
Helper
public
array<string|int, string>
$helpers
= ['BaserCore.BcBaser']
Methods
getThemeImage()
テーマ画像を取得する
public
getThemeImage(string $name[, array<string|int, mixed> $options = [] ]) : string
Parameters
- $name : string
-
テーマ画像名( log or main_image )
- $options : array<string|int, mixed> = []
-
オプション(初期値 :array())
num: main_imageの場合の番号指定(初期値 : '')thumb: サムネイルを取得する(初期値 : false)class: 画像に設定する class 属性(初期値 : '')popup: ポップアップリンクを指定(初期値 : false)alt: 画像に設定する alt 属性。リンクの title 属性にも設定される。(初期値 : テーマ設定で設定された値)link: リンク先URL。popup を true とした場合、オリジナルの画像へのリンクとなる。(初期値 : テーマ設定で設定された値)- `maxWidth : 最大横幅(初期値 : '')
- `maxHeight: 最大高さ(初期値 : '')
- `width : 最大横幅(初期値 : '')
- `height: 最大高さ(初期値 : '')
- `noimage:
- `output:
Tags
Return values
string —$tag テーマ画像のHTMLタグ
logo()
ロゴを出力する
public
logo([array<string|int, mixed> $options = [] ]) : void
Parameters
- $options : array<string|int, mixed> = []
-
オプション(初期値 : array()) ※ パラメーターは、 BcBaserHelper->getThemeImage() を参照
Tags
mainImage()
メインイメージを出力する
public
mainImage([array<string|int, mixed> $options = [] ]) : void
メインイメージは管理画面のテーマ設定にて指定
Parameters
- $options : array<string|int, mixed> = []
-
オプション
all: 全ての画像を出力する。num: 指定した番号の画像を出力する。all を true とした場合は、出力する枚数となる。id: all を true とした場合、UL タグの id 属性を指定できる。class: all を true とした場合、UL タグの class 属性を指定できる。 ※ その他の、パラメーターは、 BcBaserHelper->getThemeImage() を参照