Version Description
- Fatal error: Class 'Jetpack_Options' not found Fixed
- image_resize depreciated fixed
- Tested upto 4.0
Download this release
Release Info
Developer | raja3c |
Plugin | Tiled Gallery Carousel Without JetPack |
Version | 1.9 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.9
- jetpack-carousel.php +2 -2
- readme.txt +8 -2
- tiled-gallery.php +13 -4
jetpack-carousel.php
CHANGED
@@ -246,14 +246,14 @@ class themepacific_Jetpack_Carousel {
|
|
246 |
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
|
247 |
$likes_blog_id = $blog_id;
|
248 |
} else {
|
249 |
-
|
250 |
}
|
251 |
|
252 |
$extra_data = array(
|
253 |
'data-carousel-extra' => array(
|
254 |
'blog_id' => $blog_id,
|
255 |
'permalink' => get_permalink( $post->ID ),
|
256 |
-
'likes_blog_id' => $likes_blog_id
|
257 |
)
|
258 |
);
|
259 |
|
246 |
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
|
247 |
$likes_blog_id = $blog_id;
|
248 |
} else {
|
249 |
+
//$likes_blog_id = Jetpack_Options::get_option( 'id' );
|
250 |
}
|
251 |
|
252 |
$extra_data = array(
|
253 |
'data-carousel-extra' => array(
|
254 |
'blog_id' => $blog_id,
|
255 |
'permalink' => get_permalink( $post->ID ),
|
256 |
+
//'likes_blog_id' => $likes_blog_id
|
257 |
)
|
258 |
);
|
259 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Tiled Gallery Carousel Without JetPack
|
|
3 |
Contributors:raja3c
|
4 |
Tags: Tiled gallery, carousel, gallery carousel, jetpack, Lightbox, Jetpack Lite
|
5 |
Requires at least: 3.4.1
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -42,6 +42,12 @@ This plugin will be updated whenever JetPack releases new version.
|
|
42 |
|
43 |
|
44 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
= 1.3 =
|
46 |
* Tested upto 3.9
|
47 |
= 0.1 =
|
3 |
Contributors:raja3c
|
4 |
Tags: Tiled gallery, carousel, gallery carousel, jetpack, Lightbox, Jetpack Lite
|
5 |
Requires at least: 3.4.1
|
6 |
+
Tested up to: 4.0
|
7 |
+
Stable tag: 1.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
42 |
|
43 |
|
44 |
== Changelog ==
|
45 |
+
= 1.9 =
|
46 |
+
* Fatal error: Class 'Jetpack_Options' not found Fixed
|
47 |
+
* image_resize depreciated fixed
|
48 |
+
* Tested upto 4.0
|
49 |
+
|
50 |
+
|
51 |
= 1.3 =
|
52 |
* Tested upto 3.9
|
53 |
= 0.1 =
|
tiled-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Tiled Galleries Carousel Without Jetpack
|
5 |
Plugin URL: http://themepacific.com
|
6 |
Description: Transform your standard image galleries into an immersive full-screen experience without Jetpack.This plugin is made from Jetpack Modules. You can get the tiled galleries with Full screen carousel with out connecting to wordpress.com account.
|
7 |
-
Version:
|
8 |
Author: Raja CRN
|
9 |
Author URI: http://themepacific.com
|
10 |
License: GPLv2 or later
|
@@ -204,9 +204,18 @@ class themePacific_Jetpack_Tiled_Gallery {
|
|
204 |
}
|
205 |
|
206 |
// no cached files - let's finally resize it
|
207 |
-
$
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
// resized output
|
212 |
$vt_image = array (
|
4 |
Plugin Name: Tiled Galleries Carousel Without Jetpack
|
5 |
Plugin URL: http://themepacific.com
|
6 |
Description: Transform your standard image galleries into an immersive full-screen experience without Jetpack.This plugin is made from Jetpack Modules. You can get the tiled galleries with Full screen carousel with out connecting to wordpress.com account.
|
7 |
+
Version: 2.0
|
8 |
Author: Raja CRN
|
9 |
Author URI: http://themepacific.com
|
10 |
License: GPLv2 or later
|
204 |
}
|
205 |
|
206 |
// no cached files - let's finally resize it
|
207 |
+
$tp_image = wp_get_image_editor( $file_path );
|
208 |
+
if ( ! is_wp_error( $tp_image ) ) {
|
209 |
+
$tp_image->resize( $width, $height, $crop );
|
210 |
+
$new_img_array = $tp_image->save();
|
211 |
+
}
|
212 |
+
$new_img_size = getimagesize( $new_img_array['path'] );
|
213 |
+
$new_img = str_replace( basename( $image_src[0] ), basename( $new_img_array['path'] ), $image_src[0] );
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
|
220 |
// resized output
|
221 |
$vt_image = array (
|