/** * returns the layout selectors for an album. * * @param $string $html * @param object $obj */ function layoutSelector_album($html, $obj, $prefix) { if (getOption('multiple_layouts_albums')) { $albumhtml = getLayoutSelector($obj, 'multiple_layouts_albums', '<hr /><p>' . gettext('Select album layout:') . '</p>', $prefix); $imagehtml = getLayoutSelector($obj, 'multiple_layouts_albums_images', '<p>' . gettext('Select default album image layout:') . '</p>', $prefix, true); if (!$obj->isDynamic() && strpos($imagehtml, '<p class="no_extra">') === false) { $imagehtml .= '<br /><input type="checkbox" id="layout_selector_resetimagelayouts" name="layout_selector_resetimagelayouts" /><label for="layout_selector_resetimagelayouts">' . gettext('Reset individual image layouts') . '</label>'; } return $html . $albumhtml . $imagehtml; } return $html; }
/** * returns the layout selectors for an album. * * @param $string $html * @param object $obj */ function layoutSelector_album($html, $obj, $prefix) { if (!getOption('multiple_layouts_albums')) { return false; } $newhtml = getLayoutSelector($obj, 'multiple_layouts_albums', '<hr /><p>' . gettext('Select album layout:') . '</p>', $prefix); $newhtml .= getLayoutSelector($obj, 'multiple_layouts_albums_images', '<p>' . gettext('Select default album image layout:') . '</p>', $prefix, true); if (!$obj->isDynamic()) { $newhtml .= '<br /><input type="checkbox" id="layout_selector_resetimagelayouts" name="layout_selector_resetimagelayouts" /><label for="layout_selector_resetimagelayouts">' . gettext('Reset individual image layouts') . '</label>'; } return $html . $newhtml; }