Gallery – Photo Gallery – Image Gallery - Version 1.0.6

Version Description

  • Fixed CSS issue with Lightbox and some themes. New page in admin panel to show other gallery plugins. Enhancements of the UI of admin panel.
Download this release

Release Info

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

Code changes from version 1.0.5 to 1.0.6

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.5
8
  Author URI: http://modula.greentreelabs.net
9
  */
10
 
@@ -351,14 +351,23 @@ if (!class_exists("ModulaLite"))
351
  public function add_gallery_admin_menu()
352
  {
353
  $overview = add_menu_page('Modula', 'Modula', 'edit_posts', 'Modula-admin', array($this, 'add_overview'), WP_PLUGIN_URL.'/modula-best-grid-gallery/admin/icon.png');
 
354
  $tutorial = add_submenu_page('Modula-admin', __('Modula >> Tutorial','Modula'), __('Tutorial','Modula'), 'edit_posts', 'modula-tutorial', array($this, 'tutorial'));
 
355
  $add_gallery = add_submenu_page('Modula-admin', __('Modula >> Add Gallery','Modula'), __('Add Gallery','Modula'), 'edit_posts', 'add-modula', array($this, 'add_gallery'));
 
356
  $edit_gallery = add_submenu_page('Modula-admin', __('Modula >> Edit Gallery','Modula'), __('Edit Gallery','Modula'), 'edit_posts', 'edit-modula', array($this, 'edit_gallery'));
357
 
 
 
 
 
358
  add_action('load-'.$tutorial, array($this, 'gallery_admin_init'));
359
  add_action('load-'.$overview, array($this, 'gallery_admin_init'));
360
  add_action('load-'.$add_gallery, array($this, 'gallery_admin_init'));
361
  add_action('load-'.$edit_gallery, array($this, 'gallery_admin_init'));
 
 
362
  }
363
 
364
  //Create Admin Pages
@@ -367,11 +376,21 @@ if (!class_exists("ModulaLite"))
367
  include("admin/overview.php");
368
  }
369
 
 
 
 
 
 
370
  public function tutorial()
371
  {
372
  include("admin/tutorial.php");
373
  }
374
 
 
 
 
 
 
375
  public function add_gallery()
376
  {
377
  include("admin/add-gallery.php");
4
  Plugin URI: http://modula.greentreelabs.net
5
  Description: The Best Wordpress Gallery.
6
  Author: GreenTreeLabs
7
+ Version: 1.0.6
8
  Author URI: http://modula.greentreelabs.net
9
  */
10
 
351
  public function add_gallery_admin_menu()
352
  {
353
  $overview = add_menu_page('Modula', 'Modula', 'edit_posts', 'Modula-admin', array($this, 'add_overview'), WP_PLUGIN_URL.'/modula-best-grid-gallery/admin/icon.png');
354
+
355
  $tutorial = add_submenu_page('Modula-admin', __('Modula >> Tutorial','Modula'), __('Tutorial','Modula'), 'edit_posts', 'modula-tutorial', array($this, 'tutorial'));
356
+
357
  $add_gallery = add_submenu_page('Modula-admin', __('Modula >> Add Gallery','Modula'), __('Add Gallery','Modula'), 'edit_posts', 'add-modula', array($this, 'add_gallery'));
358
+
359
  $edit_gallery = add_submenu_page('Modula-admin', __('Modula >> Edit Gallery','Modula'), __('Edit Gallery','Modula'), 'edit_posts', 'edit-modula', array($this, 'edit_gallery'));
360
 
361
+ $plugins = add_submenu_page('Modula-admin', __('Modula >> Other galleries','Modula'), __('Other galleries','Modula'), 'edit_posts', 'modula-gallery-others', array($this, 'other_galleries'));
362
+
363
+ $upgrade = add_submenu_page('Modula-admin', __('Modula >> Upgrade','Modula'), __('Upgrade','Modula'), 'edit_posts', 'modula-gallery-upgrade', array($this, 'upgrade'));
364
+
365
  add_action('load-'.$tutorial, array($this, 'gallery_admin_init'));
366
  add_action('load-'.$overview, array($this, 'gallery_admin_init'));
367
  add_action('load-'.$add_gallery, array($this, 'gallery_admin_init'));
368
  add_action('load-'.$edit_gallery, array($this, 'gallery_admin_init'));
369
+ add_action('load-'.$upgrade, array($this, 'gallery_admin_init'));
370
+ add_action('load-'.$plugins, array($this, 'gallery_admin_init'));
371
  }
372
 
373
  //Create Admin Pages
376
  include("admin/overview.php");
377
  }
378
 
379
+ public function other_galleries()
380
+ {
381
+ include("admin/galleries.php");
382
+ }
383
+
384
  public function tutorial()
385
  {
386
  include("admin/tutorial.php");
387
  }
388
 
389
+ public function upgrade()
390
+ {
391
+
392
+ }
393
+
394
  public function add_gallery()
395
  {
396
  include("admin/add-gallery.php");
README.txt CHANGED
@@ -64,6 +64,9 @@ The simplest way to install is to click on \'Plugins\' then \'Add\' and type \'M
64
 
65
  == Changelog ==
66
 
 
 
 
67
  = 1.0.5 =
68
  * Added handy links on plugins page
69
 
64
 
65
  == Changelog ==
66
 
67
+ = 1.0.6 =
68
+ * Fixed CSS issue with Lightbox and some themes. New page in admin panel to show other gallery plugins. Enhancements of the UI of admin panel.
69
+
70
  = 1.0.5 =
71
  * Added handy links on plugins page
72
 
admin/add-gallery.php CHANGED
@@ -94,7 +94,7 @@
94
  <div class="modal-content">
95
  <h4><?php _e('Success!','modula-gallery')?></h4>
96
  <p><?php _e('Your gallery','modula-gallery')?> "<span class="gallery-name"></span>" <?php _e('has been created. Copy the following shortcode:','modula-gallery')?><br>
97
- <code></code><br>
98
  <?php _e('and paste it inside a post or a page. Otherwise click','modula-gallery')?> <a class='customize'><?php _e('here','modula-gallery')?></a> <?php _e('to customize
99
  the gallery.','modula-gallery')?>
100
  </p>
94
  <div class="modal-content">
95
  <h4><?php _e('Success!','modula-gallery')?></h4>
96
  <p><?php _e('Your gallery','modula-gallery')?> "<span class="gallery-name"></span>" <?php _e('has been created. Copy the following shortcode:','modula-gallery')?><br>
97
+ <input type="text" class="code"><br>
98
  <?php _e('and paste it inside a post or a page. Otherwise click','modula-gallery')?> <a class='customize'><?php _e('here','modula-gallery')?></a> <?php _e('to customize
99
  the gallery.','modula-gallery')?>
100
  </p>
admin/css/style.css CHANGED
@@ -465,7 +465,7 @@ body
465
  {
466
  float: right;
467
  }
468
- .modal code {
469
  display: block;
470
  margin: 20px;
471
  padding: 10px;
@@ -1460,4 +1460,34 @@ body
1460
  padding: 10px 20px 10px 40px;
1461
  left: 60px;
1462
  box-shadow: #ccc 0px 0px 4px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1463
  }
465
  {
466
  float: right;
467
  }
468
+ .modal .code {
469
  display: block;
470
  margin: 20px;
471
  padding: 10px;
1460
  padding: 10px 20px 10px 40px;
1461
  left: 60px;
1462
  box-shadow: #ccc 0px 0px 4px;
1463
+ }
1464
+ #other-galleries .cta {
1465
+ width:170px;
1466
+ text-align: right;
1467
+ }
1468
+ #other-galleries .text {
1469
+ font-size: 17px;
1470
+ width:calc(100% - 180px);
1471
+ padding-right: 20px;
1472
+ height: 150px;
1473
+ }
1474
+ #other-galleries .text h4 {
1475
+ font-size: 19px;
1476
+ font-weight: bold;
1477
+ }
1478
+ #other-galleries .text,
1479
+ #other-galleries .cta {
1480
+ display: inline-block;
1481
+ vertical-align: top;
1482
+ }
1483
+ #other-galleries .cta a {
1484
+ margin-right: 0;
1485
+ margin-top: 69px;
1486
+ }
1487
+ #other-galleries * {
1488
+ outline: 0;
1489
+ }
1490
+ #adminmenu .wp-submenu .modula-jump-pro-menu {
1491
+ color:#22e34f;
1492
+ font-weight: bold;
1493
  }
admin/galleries.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $tg_subtitle = "Other galleries by GreenTreeLabs"; ?>
2
+ <?php include "header.php" ?>
3
+
4
+ <div class="row" id="other-galleries">
5
+ <div class="col s12 m6 l6">
6
+ <div class="card">
7
+ <div class="card-image">
8
+ <a href="http://www.final-tiles-gallery.com/wordpress/modula-lite.html" target="_blank">
9
+ <img src="<?php echo plugins_url('',__file__) ?>/images/final.jpg" alt="Final Tiles Grid Gallery">
10
+ </a>
11
+ </div>
12
+ <div class="card-content">
13
+ <div class="text">
14
+ <h4>Final Tiles Grid Gallery</h4>
15
+ <p>The only gallery that keep image sizes and aspect-ratios</p>
16
+ </div>
17
+ <div class="cta">
18
+ <a href="http://www.final-tiles-gallery.com/wordpress/modula-lite.html" target="_blank" class="waves-effect waves-light btn deep-orange darken-3">
19
+ Find out more
20
+ </a>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ <div class="col s12 m6 l6">
26
+ <div class="card">
27
+ <div class="card-image">
28
+ <a href="http://circles-gallery.com/wordpress" target="_blank">
29
+ <img src="<?php echo plugins_url('',__file__) ?>/images/circles.jpg" alt="Circles Gallery">
30
+ </a>
31
+ </div>
32
+ <div class="card-content">
33
+ <div class="text">
34
+ <h4>Circles Gallery</h4>
35
+ <p>Three plugins in one: not only an original gallery plugin for WordPress but also a responsive multi-column layout for texts and a “Team members” plugin.</p>
36
+ </div>
37
+ <div class="cta">
38
+ <a href="http://circles-gallery.com/wordpress" target="_blank" class="waves-effect waves-light btn deep-orange darken-3">
39
+ Find out more
40
+ </a>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
admin/images/circles.jpg ADDED
Binary file
admin/images/final.jpg ADDED
Binary file
admin/scripts/modula-admin.js CHANGED
@@ -349,7 +349,8 @@ var TG = function ($) {
349
  $('#description').val("");
350
 
351
  $_success = $('#success');
352
- $_success.find("code").text("[Modula id='" + id + "']");
 
353
  $_success.find(".gallery-name").text(name);
354
  $_success.find(".customize").attr("href", "?page=edit-modula&galleryId="+id);
355
 
@@ -849,7 +850,7 @@ var TGWizard = function($) {
849
  $('#description').val("");
850
 
851
  $_success = $('#success');
852
- $_success.find("code").text("[Modula id='" + id + "']");
853
  $_success.find(".gallery-name").text(name);
854
  $_success.find(".customize").attr("href", "?page=edit-modula&galleryId="+id);
855
 
@@ -869,4 +870,10 @@ jQuery(function () {
869
 
870
  TG.bind();
871
  TGWizard.init();
 
 
 
 
 
 
872
  });
349
  $('#description').val("");
350
 
351
  $_success = $('#success');
352
+
353
+ $_success.find(".code").val("[Modula id='" + id + "']");
354
  $_success.find(".gallery-name").text(name);
355
  $_success.find(".customize").attr("href", "?page=edit-modula&galleryId="+id);
356
 
850
  $('#description').val("");
851
 
852
  $_success = $('#success');
853
+ $_success.find(".code").val("[Modula id='" + id + "']");
854
  $_success.find(".gallery-name").text(name);
855
  $_success.find(".customize").attr("href", "?page=edit-modula&galleryId="+id);
856
 
870
 
871
  TG.bind();
872
  TGWizard.init();
873
+
874
+ jQuery("a[href$=modula-gallery-upgrade]").addClass('modula-jump-pro-menu').click(function (e) {
875
+ e.preventDefault();
876
+
877
+ location.href = "http://modula.greentreelabs.net/upgrade.html";
878
+ })
879
  });
scripts/modula.css CHANGED
@@ -150,3 +150,5 @@
150
  url('../fonts/feathericons/feathericons.ttf?-8is7zf') format('truetype'),
151
  url('../fonts/feathericons/feathericons.svg?-8is7zf#feathericons') format('svg');
152
  }
 
 
150
  url('../fonts/feathericons/feathericons.ttf?-8is7zf') format('truetype'),
151
  url('../fonts/feathericons/feathericons.svg?-8is7zf#feathericons') format('svg');
152
  }
153
+
154
+ .lightbox .lb-image { max-width:999em; }