Version Description
- Few Bugs Fixed
Download this release
Release Info
Developer | Gallery-Bank |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 2.0.21 |
Comparing to | |
See all releases |
Code changes from version 2.0.20 to 2.0.21
- gallery-bank.php +7 -1
- lib/class-tracking.php +101 -0
- readme.txt +6 -1
gallery-bank.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://gallery-bank.com
|
5 |
Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
|
6 |
Author: Gallery-Bank
|
7 |
-
Version: 2.0.
|
8 |
Author URI: http://gallery-bank.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -48,5 +48,11 @@ function plugin_load_textdomain()
|
|
48 |
/*************************************************************************************/
|
49 |
add_action('plugins_loaded', 'plugin_load_textdomain');
|
50 |
register_activation_hook(__FILE__,'plugin_install_script_for_gallery_bank');
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
/*************************************************************************************/
|
52 |
?>
|
4 |
Plugin URI: http://gallery-bank.com
|
5 |
Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
|
6 |
Author: Gallery-Bank
|
7 |
+
Version: 2.0.21
|
8 |
Author URI: http://gallery-bank.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
48 |
/*************************************************************************************/
|
49 |
add_action('plugins_loaded', 'plugin_load_textdomain');
|
50 |
register_activation_hook(__FILE__,'plugin_install_script_for_gallery_bank');
|
51 |
+
|
52 |
+
function TrackingForGalleryBank()
|
53 |
+
{
|
54 |
+
require_once( GALLERY_BK_PLUGIN_DIR . '/lib/class-tracking.php' );
|
55 |
+
}
|
56 |
+
add_action( 'plugins_loaded', 'TrackingForGalleryBank', 15 );
|
57 |
/*************************************************************************************/
|
58 |
?>
|
lib/class-tracking.php
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( !class_exists( 'TrackingForGalleryBank' ) ) {
|
4 |
+
class TrackingForGalleryBank {
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class constructor
|
8 |
+
*/
|
9 |
+
function __construct() {
|
10 |
+
|
11 |
+
if ( !wp_next_scheduled( 'TrackingForGalleryBank' ) ) {
|
12 |
+
wp_schedule_event( time(), 'daily', 'TrackingForGalleryBank' );
|
13 |
+
}
|
14 |
+
|
15 |
+
add_action( 'TrackingForGalleryBank', array( $this, 'tracking_code' ) );
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Main tracking function.
|
20 |
+
*/
|
21 |
+
function tracking_code() {
|
22 |
+
// Start of Metrics
|
23 |
+
global $blog_id, $wpdb;
|
24 |
+
|
25 |
+
$pts = array();
|
26 |
+
foreach ( get_post_types( array( 'public' => true ) ) as $pt ) {
|
27 |
+
$count = wp_count_posts( $pt );
|
28 |
+
$pts[$pt] = $count->publish;
|
29 |
+
}
|
30 |
+
|
31 |
+
$comments_count = wp_count_comments();
|
32 |
+
|
33 |
+
// wp_get_theme was introduced in 3.4, for compatibility with older versions, let's do a workaround for now.
|
34 |
+
if ( function_exists( 'wp_get_theme' ) ) {
|
35 |
+
$theme_data = wp_get_theme();
|
36 |
+
$theme = array(
|
37 |
+
'name' => $theme_data->display( 'Name', false, false ),
|
38 |
+
'theme_uri' => $theme_data->display( 'ThemeURI', false, false ),
|
39 |
+
'version' => $theme_data->display( 'Version', false, false ),
|
40 |
+
'author' => $theme_data->display( 'Author', false, false ),
|
41 |
+
'author_uri' => $theme_data->display( 'AuthorURI', false, false ),
|
42 |
+
);
|
43 |
+
if ( isset( $theme_data->template ) && !empty( $theme_data->template ) && $theme_data->parent() ) {
|
44 |
+
$theme['template'] = array(
|
45 |
+
'version' => $theme_data->parent()->display( 'Version', false, false ),
|
46 |
+
'name' => $theme_data->parent()->display( 'Name', false, false ),
|
47 |
+
'theme_uri' => $theme_data->parent()->display( 'ThemeURI', false, false ),
|
48 |
+
'author' => $theme_data->parent()->display( 'Author', false, false ),
|
49 |
+
'author_uri' => $theme_data->parent()->display( 'AuthorURI', false, false ),
|
50 |
+
);
|
51 |
+
} else {
|
52 |
+
$theme['template'] = '';
|
53 |
+
}
|
54 |
+
} else {
|
55 |
+
$theme_data = (object) get_theme_data( get_stylesheet_directory() . '/style.css' );
|
56 |
+
$theme = array(
|
57 |
+
'version' => $theme_data->Version,
|
58 |
+
'name' => $theme_data->Name,
|
59 |
+
'author' => $theme_data->Author,
|
60 |
+
'template' => $theme_data->Template,
|
61 |
+
);
|
62 |
+
}
|
63 |
+
$plugins = array();
|
64 |
+
foreach ( get_option( 'active_plugins' ) as $plugin_path ) {
|
65 |
+
if ( !function_exists( 'get_plugin_data' ) )
|
66 |
+
require_once( ABSPATH . 'wp-admin/includes/admin.php' );
|
67 |
+
|
68 |
+
$plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin_path );
|
69 |
+
|
70 |
+
$slug = str_replace( '/' . basename( $plugin_path ), '', $plugin_path );
|
71 |
+
$plugins[$slug] = array(
|
72 |
+
'version' => $plugin_info['Version'],
|
73 |
+
'name' => $plugin_info['Name'],
|
74 |
+
'plugin_uri' => $plugin_info['PluginURI'],
|
75 |
+
'author' => $plugin_info['AuthorName'],
|
76 |
+
'author_uri' => $plugin_info['AuthorURI'],
|
77 |
+
);
|
78 |
+
}
|
79 |
+
|
80 |
+
$data = array(
|
81 |
+
'site' => array(
|
82 |
+
'hash' => site_url(),
|
83 |
+
'version' => get_bloginfo( 'version' ),
|
84 |
+
'multisite' => is_multisite(),
|
85 |
+
'users' => $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->users INNER JOIN $wpdb->usermeta ON ({$wpdb->users}.ID = {$wpdb->usermeta}.user_id) WHERE 1 = 1 AND ( {$wpdb->usermeta}.meta_key = %s )", 'wp_' . $blog_id . '_capabilities' ) ),
|
86 |
+
'lang' => get_locale(),
|
87 |
+
),
|
88 |
+
'theme' => $theme,
|
89 |
+
'plugins' => $plugins,
|
90 |
+
);
|
91 |
+
|
92 |
+
$args = array(
|
93 |
+
'body' => $data
|
94 |
+
);
|
95 |
+
wp_remote_post( 'http://gallery-bank.com/track.php', $args );
|
96 |
+
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
$TrackingForGalleryBank = new TrackingForGalleryBank;
|
101 |
+
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank
|
|
3 |
Tags: gallery, images, album, pictures, photos, photo album, photo gallery, media, photo albums, picture, pictures, thumbnails, slideshow, admin, best gallery plugin, filterable gallery, filterable portfolio, gallery, gallery wordpress plugin, grid gallery, image album, images, page, photo albums, plugin, portfolio, portfolio wordpress plugin, Post, Posts, widget, wordpress gallery plugin, wordpress portfolio plugin, videos, comments, widget, gallery bank
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.7.1
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -146,6 +146,11 @@ With this bulk deletion feature, you can now delete the pictures you want in bul
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
|
|
|
|
149 |
= 2.0.20 =
|
150 |
|
151 |
* Few Bugs Fixed
|
3 |
Tags: gallery, images, album, pictures, photos, photo album, photo gallery, media, photo albums, picture, pictures, thumbnails, slideshow, admin, best gallery plugin, filterable gallery, filterable portfolio, gallery, gallery wordpress plugin, grid gallery, image album, images, page, photo albums, plugin, portfolio, portfolio wordpress plugin, Post, Posts, widget, wordpress gallery plugin, wordpress portfolio plugin, videos, comments, widget, gallery bank
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.7.1
|
6 |
+
Stable tag: 2.0.21
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
|
150 |
+
= 2.0.21 =
|
151 |
+
|
152 |
+
* Few Bugs Fixed
|
153 |
+
|
154 |
= 2.0.20 =
|
155 |
|
156 |
* Few Bugs Fixed
|