mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Allow users to upscale images in the slideshow by making the maxScale
parameter configurable in Admin > Settings > Advanced. You specify the scaling factor. Normally, images fill the stage; 0 -> never scale up; any other positive number S --> scale up to S times the original size of the photo (but never bigger than the stage)
This commit is contained in:
@@ -18,6 +18,18 @@
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class slideshow_installer {
|
||||
static function install() {
|
||||
module::set_var("slideshow", "max_scale", 0);
|
||||
module::set_version("slideshow", 2);
|
||||
}
|
||||
|
||||
static function upgrade($version) {
|
||||
if ($version == 1) {
|
||||
module::set_var("slideshow", "max_scale", 0);
|
||||
module::set_version("slideshow", $version = 2);
|
||||
}
|
||||
}
|
||||
|
||||
static function deactivate() {
|
||||
site_status::clear("slideshow_needs_rss");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user