baserCMSでブログのアイキャッチ画像を出力するには
$this->Blog->eyeCatch($post, $options);
で出力できるのですが、
if($this->Blog->getEyeCatch($post):
$this->Blog->eyeCatch($post, $options);
endif;
とかするとアイキャッチがあるときだけ出力できます。
※ $optionsの部分は色々指定できるので、
http://baser-for-wper.tecking.org/functions/BlogHelper/blog_out/eye_catch
とかを参考にすると便利ですね!
具体的には、どんな風に使うかといいますと、
<?php if($this->Blog->getEyeCatch($post): ?>
<div class="xxxx">
<?php $this->Blog->eyeCatch($post, array('width'=>300)) ?>
</div>
<?php endif ?>
のような感じでアイキャッチ画像を別のタグなどで囲ったりする時なんかに便利です。