Version Description
- Updated statistics section
- Added new total images value
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.0.24 |
Comparing to | |
See all releases |
Code changes from version 2.0.23 to 2.0.24
- includes/extensions/rbs_create_post.php +1 -1
- includes/extensions/stats/stats.form.php +15 -0
- includes/rbs_gallery_media.php +5 -7
- readme.txt +8 -1
- robogallery.php +2 -2
includes/extensions/rbs_create_post.php
CHANGED
@@ -8,7 +8,7 @@ if(!function_exists('rbs_create_article_button')){
|
|
8 |
|
9 |
echo ' <div id="rbs_actionWindow" class="hidden" '
|
10 |
.'data-title="'.__('Post manager','rbs_gallery').'" '
|
11 |
-
.'data-close="'.__('Close'
|
12 |
.'data-button="'.__('Create post','rbs_gallery').'" '
|
13 |
.'>';
|
14 |
?>
|
8 |
|
9 |
echo ' <div id="rbs_actionWindow" class="hidden" '
|
10 |
.'data-title="'.__('Post manager','rbs_gallery').'" '
|
11 |
+
.'data-close="'.__('Close').'" '
|
12 |
.'data-button="'.__('Create post','rbs_gallery').'" '
|
13 |
.'>';
|
14 |
?>
|
includes/extensions/stats/stats.form.php
CHANGED
@@ -51,9 +51,16 @@ $args = array(
|
|
51 |
);
|
52 |
$allViews = 0;
|
53 |
$loop = new WP_Query($args);
|
|
|
54 |
|
55 |
if ( $loop->have_posts() ){
|
56 |
for ($i=0; $i <count($loop->posts) ; $i++) {
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
$amt = get_post_meta( $loop->posts[$i]->ID, 'gallery_views_count', true);
|
58 |
if ($amt) {$allViews += $amt;};
|
59 |
}
|
@@ -72,6 +79,14 @@ switch ($tab) {
|
|
72 |
<p><?php echo $allViews ; ?></p>
|
73 |
</td>
|
74 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
<tr>
|
76 |
<td><hr></td>
|
77 |
</tr>
|
51 |
);
|
52 |
$allViews = 0;
|
53 |
$loop = new WP_Query($args);
|
54 |
+
$allImages = 0;
|
55 |
|
56 |
if ( $loop->have_posts() ){
|
57 |
for ($i=0; $i <count($loop->posts) ; $i++) {
|
58 |
+
|
59 |
+
$images = get_post_meta( $loop->posts[$i]->ID, ROBO_GALLERY_PREFIX.'galleryImages', true);
|
60 |
+
if( isset($images) && is_array($images) && count($images) ){
|
61 |
+
$allImages += count($images);
|
62 |
+
}
|
63 |
+
|
64 |
$amt = get_post_meta( $loop->posts[$i]->ID, 'gallery_views_count', true);
|
65 |
if ($amt) {$allViews += $amt;};
|
66 |
}
|
79 |
<p><?php echo $allViews ; ?></p>
|
80 |
</td>
|
81 |
</tr>
|
82 |
+
<tr>
|
83 |
+
<th scope="row">
|
84 |
+
<label ><?php _e('Total Images', 'rbs_gallery'); ?></label>
|
85 |
+
</th>
|
86 |
+
<td>
|
87 |
+
<p><?php echo $allImages ; ?></p>
|
88 |
+
</td>
|
89 |
+
</tr>
|
90 |
<tr>
|
91 |
<td><hr></td>
|
92 |
</tr>
|
includes/rbs_gallery_media.php
CHANGED
@@ -12,17 +12,15 @@
|
|
12 |
* Available only in http://robosoft.co/robogallery
|
13 |
*/
|
14 |
function hide_attachment_field() {
|
15 |
-
//$screen = get_current_screen();
|
16 |
-
//print_r($screen); && is_admin()
|
17 |
-
//if( isset($screen->post_type) && $screen->post_type == ROBO_GALLERY_TYPE_POST ){
|
18 |
echo "<style>"
|
19 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_line,"
|
20 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_col,"
|
21 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_type_link,"
|
22 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_video_link,"
|
23 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_effect,"
|
24 |
-
.".compat-attachment-fields tr.compat-field-rsg_gallery_link{display:none; "
|
25 |
-
|
|
|
26 |
}
|
27 |
add_action('admin_head', 'hide_attachment_field');
|
28 |
|
@@ -70,8 +68,8 @@ add_action('admin_head', 'hide_attachment_field');
|
|
70 |
$value = get_post_meta( $post->ID, ROBO_GALLERY_PREFIX.'gallery_type_link', true );
|
71 |
$selectBox =
|
72 |
"<select name='attachments[{$post->ID}][".ROBO_GALLERY_PREFIX."gallery_type_link]' id='attachments[{$post->ID}][".ROBO_GALLERY_PREFIX."gallery_type_link]'>
|
73 |
-
<option value='1' ".($value=='1'?'selected':'').">".__( 'On'
|
74 |
-
<option value='0' ".($value=='0' || !$value ?'selected':'').">".__( 'Off'
|
75 |
</select>";
|
76 |
|
77 |
$form_fields[ROBO_GALLERY_PREFIX.'gallery_type_link'] = array(
|
12 |
* Available only in http://robosoft.co/robogallery
|
13 |
*/
|
14 |
function hide_attachment_field() {
|
|
|
|
|
|
|
15 |
echo "<style>"
|
16 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_line,"
|
17 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_col,"
|
18 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_type_link,"
|
19 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_video_link,"
|
20 |
.".compat-attachment-fields tr.compat-field-rsg_gallery_effect,"
|
21 |
+
.".compat-attachment-fields tr.compat-field-rsg_gallery_link{display:none; "
|
22 |
+
.(!ROBO_GALLERY_PRO?"z-index: 1000;opacity: 0.4;pointer-events: none;":"")
|
23 |
+
."}</style>";
|
24 |
}
|
25 |
add_action('admin_head', 'hide_attachment_field');
|
26 |
|
68 |
$value = get_post_meta( $post->ID, ROBO_GALLERY_PREFIX.'gallery_type_link', true );
|
69 |
$selectBox =
|
70 |
"<select name='attachments[{$post->ID}][".ROBO_GALLERY_PREFIX."gallery_type_link]' id='attachments[{$post->ID}][".ROBO_GALLERY_PREFIX."gallery_type_link]'>
|
71 |
+
<option value='1' ".($value=='1'?'selected':'').">".__( 'On' )."</option>
|
72 |
+
<option value='0' ".($value=='0' || !$value ?'selected':'').">".__( 'Off')."</option>
|
73 |
</select>";
|
74 |
|
75 |
$form_fields[ROBO_GALLERY_PREFIX.'gallery_type_link'] = array(
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.robosoft.co/robogallery
|
|
4 |
Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -584,6 +584,10 @@ If any problem occurs, please contact us.
|
|
584 |
|
585 |
== Changelog ==
|
586 |
|
|
|
|
|
|
|
|
|
587 |
= 2.0.23 =
|
588 |
* Code optimization
|
589 |
* Changes in create post dialog
|
@@ -1107,6 +1111,9 @@ If any problem occurs, please contact us.
|
|
1107 |
|
1108 |
== Upgrade Notice ==
|
1109 |
|
|
|
|
|
|
|
1110 |
= 2.0.23 =
|
1111 |
Code optimization, changes in create post dialog
|
1112 |
|
4 |
Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 2.0.24
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
584 |
|
585 |
== Changelog ==
|
586 |
|
587 |
+
= 2.0.24 =
|
588 |
+
* Updated statistics section
|
589 |
+
* Added new total images value
|
590 |
+
|
591 |
= 2.0.23 =
|
592 |
* Code optimization
|
593 |
* Changes in create post dialog
|
1111 |
|
1112 |
== Upgrade Notice ==
|
1113 |
|
1114 |
+
= 2.0.24 =
|
1115 |
+
Updated statistics section, added new total images value
|
1116 |
+
|
1117 |
= 2.0.23 =
|
1118 |
Code optimization, changes in create post dialog
|
1119 |
|
robogallery.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Plugin Name: Robo Gallery
|
9 |
* Plugin URI: http://robosoft.co/robogallery
|
10 |
* Description: A responsive, easy and elegant way to show gallery.
|
11 |
-
* Version: 2.0.
|
12 |
* Author: RoboSoft (c)
|
13 |
* Author URI: http://robosoft.co/robogallery
|
14 |
* License: GPL-2.0+
|
@@ -19,7 +19,7 @@
|
|
19 |
|
20 |
if ( ! defined( 'WPINC' ) ) die;
|
21 |
define("ROBO_GALLERY", 1);
|
22 |
-
define("ROBO_GALLERY_VERSION", '2.0.
|
23 |
define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
24 |
define("ROBO_GALLERY_SPECIAL", 0);
|
25 |
|
8 |
* Plugin Name: Robo Gallery
|
9 |
* Plugin URI: http://robosoft.co/robogallery
|
10 |
* Description: A responsive, easy and elegant way to show gallery.
|
11 |
+
* Version: 2.0.24
|
12 |
* Author: RoboSoft (c)
|
13 |
* Author URI: http://robosoft.co/robogallery
|
14 |
* License: GPL-2.0+
|
19 |
|
20 |
if ( ! defined( 'WPINC' ) ) die;
|
21 |
define("ROBO_GALLERY", 1);
|
22 |
+
define("ROBO_GALLERY_VERSION", '2.0.24');
|
23 |
define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
24 |
define("ROBO_GALLERY_SPECIAL", 0);
|
25 |
|