「関数リファレンス/BcBaser getThemeUrl」の版間の差分
提供: baserCMS公式ガイド
(ページの作成:「## 説明 現在のテーマのURLを取得する。 ## 使い方 <syntaxhighlight lang="php"> $this->BcBaser->getThemeUrl(); </syntaxhighlight> ## パラメータ #...」) |
|||
行7: | 行7: | ||
$this->BcBaser->getThemeUrl(); | $this->BcBaser->getThemeUrl(); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
## 戻り値 | ## 戻り値 | ||
行22: | 行19: | ||
####コード | ####コード | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | + | <img src="<?php echo $this->BcBaser->getThemeUrl() ?>img/logo.png" /> | |
</syntaxhighlight> | </syntaxhighlight> | ||
2015年4月26日 (日) 21:53時点における版
説明
現在のテーマのURLを取得する。
使い方
$this->BcBaser->getThemeUrl();
戻り値
- (string)
- テーマURL
用例
基本
コード
<img src="<?php echo $this->BcBaser->getThemeUrl() ?>img/logo.png" />