Gallery – Photo Gallery – Image Gallery - Version 1.1.10

Version Description

  • Enhancement in backend UI
Download this release

Release Info

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

Code changes from version 1.1.9 to 1.1.10

Files changed (4) hide show
  1. Modula.php +12 -6
  2. README.txt +3 -0
  3. admin/css/style.css +1 -0
  4. admin/overview.php +15 -0
Modula.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Gallery - A WordPress Modula Gallery
4
Plugin URI: http://modula.greentreelabs.net
5
Description: The Most Creative Grid Wordpress Gallery.
6
Author: GreenTreeLabs
7
- Version: 1.1.9
8
Author URI: http://modula.greentreelabs.net
9
*/
10
@@ -20,7 +20,7 @@ if (!class_exists("ModulaLite"))
20
{
21
private $loadedData;
22
23
- private $version = "1.1.9";
24
25
private $defaultValues = array(
26
'width' => 100,
@@ -820,11 +820,17 @@ if (!class_exists("ModulaLite"))
820
821
public function edit_gallery()
822
{
823
- $this->loadedData = $this->ModulaDB->getGalleryById(intval($_GET['galleryId']), $this->defaultValues);
824
- $modula_fields = $this->fields;
825
- $modula_parent_page = "dashboard";
826
827
- include("admin/edit-gallery.php");
828
}
829
830
public function list_thumbnail_sizes()
4
Plugin URI: http://modula.greentreelabs.net
5
Description: The Most Creative Grid Wordpress Gallery.
6
Author: GreenTreeLabs
7
+ Version: 1.1.10
8
Author URI: http://modula.greentreelabs.net
9
*/
10
20
{
21
private $loadedData;
22
23
+ private $version = "1.1.10";
24
25
private $defaultValues = array(
26
'width' => 100,
820
821
public function edit_gallery()
822
{
823
+ if(isset($_GET['galleryId'])) {
824
+ $this->loadedData = $this->ModulaDB->getGalleryById(intval($_GET['galleryId']), $this->defaultValues);
825
+ $modula_fields = $this->fields;
826
+ $modula_parent_page = "dashboard";
827
828
+ include("admin/edit-gallery.php");
829
+ } else {
830
+ $redir = true;
831
+ $nobanner = true;
832
+ include("admin/overview.php");
833
+ }
834
}
835
836
public function list_thumbnail_sizes()
README.txt CHANGED
@@ -110,6 +110,9 @@ Free support is included only with a PRO license: http://modula.greentreelabs.ne
110
111
== Changelog ==
112
113
= 1.1.9 =
114
* Minor change in backend UI
115
110
111
== Changelog ==
112
113
+ = 1.1.10 =
114
+ * Enhancement in backend UI
115
+
116
= 1.1.9 =
117
* Minor change in backend UI
118
admin/css/style.css CHANGED
@@ -790,6 +790,7 @@ strong {
790
display: table-cell;
791
vertical-align: middle;
792
text-align: center;
793
}
794
#images .figure img {
795
width:160px;
790
display: table-cell;
791
vertical-align: middle;
792
text-align: center;
793
+ background-size: cover;
794
}
795
#images .figure img {
796
width:160px;
admin/overview.php CHANGED
@@ -10,11 +10,26 @@
10
11
$idx = 0;
12
?>
13
14
<?php include("header.php"); ?>
15
16
<div class="bd">
17
18
<?php if(count($galleries) == 0) : ?>
19
<div class="row ">
20
<div class="col s12 m6 l4">
10
11
$idx = 0;
12
?>
13
+
14
15
<?php include("header.php"); ?>
16
17
<div class="bd">
18
19
+ <?php if(isset($redir) && $redir) : ?>
20
+ <div class="row ">
21
+ <div class="col s12 m6 l4">
22
+ <div class="card-panel light-green lighten-4">
23
+ <h5 class="cyan-text text-darken-3"><?php _e('Redirecting....','modula-gallery')?></h5>
24
+ <p>
25
+ <?php _e('Click a gallery to edit','modula-gallery')?>.
26
+ </p>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ <script>location.href="?page=ModulaLite-admin";</script>
31
+ <?php endif ?>
32
+
33
<?php if(count($galleries) == 0) : ?>
34
<div class="row ">
35
<div class="col s12 m6 l4">