public function mainImage($options = array())
{
$options = array_merge(array('num' => 1, 'all' => false, 'id' => 'MainImage', 'class' => false), $options);
if ($options['all']) {
$id = $options['id'];
$class = $options['class'];
$num = $options['num'];
unset($options['all']);
unset($options['id']);
unset($options['class']);
$tag = '';
for ($i = 1; $i <= $num; $i++) {
$options['num'] = $i;
$themeImage = $this->_getThemeImage('main_image', $options);
if ($themeImage) {
$tag .= '<li>' . $themeImage . '</li>' . "\n";
}
}
$ulAttr = '';
if ($id !== false) {
$ulAttr .= ' id="' . $id . '"';
}
if ($class !== false) {
$ulAttr .= ' class="' . $class . '"';
}
echo '<ul' . $ulAttr . '>' . "\n" . $tag . "\n" . '</ul>';
} else {
echo $this->_getThemeImage('main_image', $options);
}
}