Commit d1bf3213 authored by Kristina Hoeppner's avatar Kristina Hoeppner
Browse files

Image gallery block: Change to switchbox (Bug #1431569)



Change the checkbox to a switchbox.

Change-Id: I38b52d6dd785cd456ab8b094f0269df2965ca546
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 8192fc41
...@@ -588,7 +588,7 @@ class PluginBlocktypeGallery extends PluginBlocktype { ...@@ -588,7 +588,7 @@ class PluginBlocktypeGallery extends PluginBlocktype {
'separator' => '<br>', 'separator' => '<br>',
), ),
'showdescription' => array( 'showdescription' => array(
'type' => 'checkbox', 'type' => 'switchbox',
'title' => get_string('showdescriptions', 'blocktype.file/gallery'), 'title' => get_string('showdescriptions', 'blocktype.file/gallery'),
'description' => get_string('showdescriptionsdescription', 'blocktype.file/gallery'), 'description' => get_string('showdescriptionsdescription', 'blocktype.file/gallery'),
'defaultvalue' => !empty($configdata['showdescription']) ? true : false, 'defaultvalue' => !empty($configdata['showdescription']) ? true : false,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment