Suggesting a patch introducing One Column layout
-
Hi guys,
I use version 1.6.19
I want to suggest a patch.
In addition to a new layout it fixes hardcoded class col-sm-6— D:/user/Downloads/responsive-photo-gallery.3.4.7/responsive-photo-gallery/responsive-gallery-settings.php Thu Aug 16 15:00:40 2018
+++ D:/user/Documents/responsive-photo-gallery.3.4.7/responsive-photo-gallery/responsive-gallery-settings.php Thu Aug 16 14:15:17 2018
@@ -74,6 +74,7 @@
<td>
<select name=”wl-gallery-layout” id=”wl-gallery-layout”>
<optgroup label=”Select Gallery Layout”>
+ <option value=”col-md-12″ <?php if($WL_Gallery_Layout == ‘col-md-12’) echo “selected=selected”; ?>><?php _e(“One Column”, WEBLIZAR_RPG_TEXT_DOMAIN); ?></option>
<option value=”col-md-6″ <?php if($WL_Gallery_Layout == ‘col-md-6’) echo “selected=selected”; ?>><?php _e(“Two Column”, WEBLIZAR_RPG_TEXT_DOMAIN); ?></option>
<option value=”col-md-4″ <?php if($WL_Gallery_Layout == ‘col-md-4’) echo “selected=selected”; ?>><?php _e(“Three Column”, WEBLIZAR_RPG_TEXT_DOMAIN); ?></option>
</optgroup>— D:/user/Downloads/responsive-photo-gallery.3.4.7/responsive-photo-gallery/responsive-gallery-short-code.php Thu Aug 16 15:00:40 2018
+++ D:/user/Documents/responsive-photo-gallery.3.4.7/responsive-photo-gallery/responsive-gallery-short-code.php Thu Aug 16 14:36:51 2018
@@ -156,7 +156,23 @@
}?>
– <div class=”<?php echo $WL_Gallery_Layout; ?> col-sm-6 wl-gallery” >
+ <div class=”<?php echo $WL_Gallery_Layout;
+ switch ($WL_Gallery_Layout) {
+ case “col-md-4″:
+ echo ” col-sm-4″;
+ break;
+ case “col-md-6″:
+ echo ” col-sm-6″;
+ break;
+ case “col-md-12″:
+ echo ” col-sm-12″;
+ break;
+ default :
+ // not supposed to happen!
+ echo “error!”;
+ break;
+ }
+ ?> wl-gallery” >
<div class=”b-link-<?php echo $WL_Hover_Animation; ?> b-animate-go”>
” alt=”<?php echo $slide_alt; ?>” class=”gall-img-responsive”>
<div class=”b-wrapper”>Link to a page with single column layout applied: http://vosmon.ru/treba/
The topic ‘Suggesting a patch introducing One Column layout’ is closed to new replies.