Gallery – Photo Gallery – Image Gallery - Version 1.0.3

Version Description

  • Bug fix: now images can be sorted also in the "Add gallery" wizard
Download this release

Release Info

Developer GreenTreeLabs
Plugin Icon wp plugin Gallery – Photo Gallery – Image Gallery
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.3

Modula.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Modula Grid Gallery Lite
4
Plugin URI: http://modula.greentreelabs.net
5
Description: The Best Wordpress Gallery.
6
Author: GreenTreeLabs
7
- Version: 1.0.1
8
Author URI: http://modula.greentreelabs.net
9
*/
10
4
Plugin URI: http://modula.greentreelabs.net
5
Description: The Best Wordpress Gallery.
6
Author: GreenTreeLabs
7
+ Version: 1.0.3
8
Author URI: http://modula.greentreelabs.net
9
*/
10
README.txt CHANGED
@@ -63,11 +63,15 @@ The simplest way to install is to click on \'Plugins\' then \'Add\' and type \'M
63
7. Admin panel with Material design
64
65
== Changelog ==
66
- 1.0
67
68
- First release!
69
70
- == Upgrade Notice ==
71
72
- = 1.0 =
73
* This is the launch version. No changes yet.
63
7. Admin panel with Material design
64
65
== Changelog ==
66
67
+ = 1.0.3 =
68
+ * Bug fix: now images can be sorted also in the "Add gallery" wizard
69
70
+ = 1.0.2 =
71
+ * Added link to survey to help us making a better plugin
72
73
+ = 1.0.1 =
74
+ * Fixed issue when activating the plugin
75
+
76
+ = 1.0.0 =
77
* This is the launch version. No changes yet.
admin/css/style.css CHANGED
@@ -1437,4 +1437,27 @@ body
1437
color: #ADACAC;
1438
padding-left: 45px;
1439
margin-bottom: 15px;
1440
}
1437
color: #ADACAC;
1438
padding-left: 45px;
1439
margin-bottom: 15px;
1440
+ }
1441
+ #modula-survey {
1442
+ float: none;
1443
+ height: auto;
1444
+ background: none;
1445
+ border:0;
1446
+ box-shadow: none;
1447
+ position: relative;
1448
+ margin-top: 14px;
1449
+ }
1450
+ #modula-survey img {
1451
+ position: relative;
1452
+ z-index: 10;
1453
+ }
1454
+ #modula-survey span {
1455
+ position: absolute;
1456
+ z-index: 1;
1457
+ top: 14px;
1458
+ font-size: 14px;
1459
+ background-color: #fff;
1460
+ padding: 10px 20px 10px 40px;
1461
+ left: 60px;
1462
+ box-shadow: #ccc 0px 0px 4px;
1463
}
admin/header.php CHANGED
@@ -1,4 +1,9 @@
1
<header id="top" class="modula-header" >
2
<h1 class="header center-on-small-only">Modula Lite</h1>
3
<h4 class="light text-lighten-4 center-on-small-only"><?php print $tg_subtitle ?></h4>
4
- </header>
1
<header id="top" class="modula-header" >
2
<h1 class="header center-on-small-only">Modula Lite</h1>
3
<h4 class="light text-lighten-4 center-on-small-only"><?php print $tg_subtitle ?></h4>
4
+ </header>
5
+ <a id="modula-survey" class="typeform-share button" href="https://greentreelabs.typeform.com/to/Ieyk9T" data-mode="1" target="_blank">
6
+ <img src="<?php print plugins_url('/images/survey.png',__file__) ?>" alt="Survey">
7
+ <span>Do you have a suggestion? Help us to make your galleries even better!</span>
8
+ </a>
9
+ <script>(function(){var qs,js,q,s,d=document,gi=d.getElementById,ce=d.createElement,gt=d.getElementsByTagName,id='typef_orm',b='https://s3-eu-west-1.amazonaws.com/share.typeform.com/';if(!gi.call(d,id)){js=ce.call(d,'script');js.id=id;js.src=b+'share.js';q=gt.call(d,'script')[0];q.parentNode.insertBefore(js,q)}id=id+'_';if(!gi.call(d,id)){qs=ce.call(d,'link');qs.rel='stylesheet';qs.id=id;qs.href=b+'share-button.css';s=gt.call(d,'head')[0];s.appendChild(qs,s)}})()</script>
admin/images/survey.png ADDED
Binary file
admin/scripts/modula-admin.js CHANGED
@@ -788,7 +788,9 @@ var TGWizard = function($) {
788
$("[name=enc_images]").val(JSON.stringify(curr));
789
$_wizard.find(".images").empty();
790
$.each(curr, function() {
791
var $_tile = $("<div class='tile list-group-item' />");
792
$_tile.append("<a class='btn-floating waves-effect waves-light red del'><i class='mdi-content-clear'></i></a>");
793
$_tile.append('<img src="' + this.thumbnail + '" />');
794
@@ -802,7 +804,15 @@ var TGWizard = function($) {
802
});
803
804
});
805
- Sortable.create($_wizard.find(".images").get(0), {});
806
});
807
},
808
save: function() {
788
$("[name=enc_images]").val(JSON.stringify(curr));
789
$_wizard.find(".images").empty();
790
$.each(curr, function() {
791
+
792
var $_tile = $("<div class='tile list-group-item' />");
793
+ $_tile.data('img', this);
794
$_tile.append("<a class='btn-floating waves-effect waves-light red del'><i class='mdi-content-clear'></i></a>");
795
$_tile.append('<img src="' + this.thumbnail + '" />');
796
804
});
805
806
});
807
+ $_wizard.find(".images").sortable({
808
+ update: function () {
809
+ var images = [];
810
+ $_wizard.find(".images .tile").each(function () {
811
+ images.push($(this).data('img'));
812
+ });
813
+ $("[name=enc_images]").val(JSON.stringify(images));
814
+ }
815
+ });
816
});
817
},
818
save: function() {