Version Description
- [Add] Removed limit of 20 images per gallery
- [Add] New masonry layout available
- [Add] Dozens of improvements
Download this release
Release Info
Developer | GreenTreeLabs |
Plugin | Image Photo Gallery Final Tiles Grid |
Version | 3.0.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.15 to 3.0.0
- FinalTilesGalleryLite.php +1775 -1358
- admin/add-gallery.php +95 -51
- admin/adv.php +24 -0
- admin/bundle.css +2032 -0
- admin/css/materialize.css +4 -34
- admin/css/style.css +165 -169
- admin/css/style.less +662 -623
- admin/edit-gallery.php +40 -22
- admin/font/material-design-icons/LICENSE.txt +0 -428
- admin/font/material-design-icons/Material-Design-Icons.eot +0 -0
- admin/font/material-design-icons/Material-Design-Icons.svg +0 -751
- admin/font/material-design-icons/Material-Design-Icons.ttf +0 -0
- admin/font/material-design-icons/Material-Design-Icons.woff +0 -0
- admin/font/roboto/Roboto-Bold.ttf +0 -0
- admin/font/roboto/Roboto-Light.ttf +0 -0
- admin/font/roboto/Roboto-Medium.ttf +0 -0
- admin/font/roboto/Roboto-Regular.ttf +0 -0
- admin/font/roboto/Roboto-Thin.ttf +0 -0
- admin/header.php +1 -1
- admin/images/square.gif +0 -0
- admin/include/edit-gallery.php +111 -39
- admin/include/image-list.php +93 -78
- admin/include/tinymce-galleries.php +1 -1
- admin/loading.gif +0 -0
- admin/overview.php +17 -17
- admin/scripts/{final-tiles-gallery-admin.js → final-tiles-grid-gallery-lite-admin.js} +570 -190
- admin/support.php +16 -14
- admin/tutorial.php +6 -6
- assets/banner-772x250.jpg +0 -0
- icon.png +0 -0
- lib/db-class.php +199 -270
- lib/gallery-class.php +646 -354
- lib/install-db.php +8 -4
- lib/languages/final-tiles-gallery.pot +202 -142
- readme.txt +11 -6
- scripts/ftg.css +65 -31
- scripts/script.js +314 -69
FinalTilesGalleryLite.php
CHANGED
@@ -4,803 +4,1076 @@ Plugin Name: Final Tiles Grid Gallery Lite
|
|
4 |
Plugin URI: http://codecanyon.net/item/final-tiles-gallery-for-wordpress/5189351?ref=GreenTreeLabs
|
5 |
Description: Wordpress Plugin for creating responsive image galleries. By: Green Tree Labs
|
6 |
Author: Green Tree Labs
|
7 |
-
Version:
|
8 |
Author URI: http://codecanyon.net/user/GreenTreeLabs
|
9 |
*/
|
10 |
|
11 |
-
define("FTGLITEVERSION", "
|
12 |
define("PRO_CALL", "<span class='procall'>(<a href='http://1.envato.market/c/288541/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ffinal-tiles-wordpress-gallery%2F5189351' target='_blank'>available with PRO version</a>)</span>");
|
13 |
define("PRO_UNLOCK", "<a href='http://1.envato.market/c/288541/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ffinal-tiles-wordpress-gallery%2F5189351' target='_blank'>Add unlimited images with PRO version</a>");
|
14 |
|
|
|
15 |
if (!class_exists("FinalTiles_GalleryLite"))
|
16 |
{
|
17 |
-
|
18 |
{
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
-
|
|
|
|
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
|
|
33 |
|
34 |
-
|
|
|
|
|
35 |
|
36 |
-
|
37 |
-
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
add_action('wp_ajax_save_image', array($this,'save_image'));
|
46 |
-
add_action('wp_ajax_add_image', array($this,'add_image'));
|
47 |
-
add_action('wp_ajax_save_video', array($this,'save_video'));
|
48 |
-
add_action('wp_ajax_sort_images', array($this,'sort_images'));
|
49 |
-
add_action('wp_ajax_delete_image', array($this,'delete_image'));
|
50 |
-
add_action('wp_ajax_refresh_gallery', array($this,'refresh_gallery'));
|
51 |
|
|
|
|
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
|
57 |
-
|
|
|
|
|
|
|
58 |
|
|
|
|
|
|
|
|
|
|
|
59 |
|
|
|
|
|
60 |
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
63 |
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
global $wp_admin_bar;
|
67 |
|
68 |
$wp_admin_bar->add_menu( array(
|
69 |
'id' => 'ftg-upgrade-bar',
|
70 |
'href' => 'http://1.envato.market/c/288541/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ffinal-tiles-wordpress-gallery%2F5189351',
|
71 |
'parent' => 'top-secondary',
|
72 |
-
|
73 |
'meta' => array('class' => 'ftg-upgrade-to-pro', 'target' => '_blank' ),
|
74 |
) );
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
}
|
92 |
-
}
|
93 |
|
94 |
}
|
95 |
//print_r($this->fields);
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
|
110 |
-
|
111 |
|
112 |
public function create_db_tables()
|
113 |
{
|
114 |
-
|
115 |
-
|
116 |
-
//ftg_nullable();
|
117 |
}
|
118 |
|
119 |
public function activation()
|
120 |
{
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
|
125 |
-
//Define textdomain
|
126 |
-
public function create_textdomain()
|
127 |
-
{
|
128 |
-
$plugin_dir = basename(dirname(__FILE__));
|
129 |
-
load_plugin_textdomain( 'final-tiles-gallery', false, $plugin_dir.'/lib/languages' );
|
130 |
-
}
|
131 |
-
|
132 |
-
//Define constants
|
133 |
-
public function define_constants()
|
134 |
-
{
|
135 |
-
if ( ! defined( 'FINALTILESGALLERY_PLUGIN_BASENAME' ) )
|
136 |
-
define( 'FINALTILESGALLERY_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
137 |
-
|
138 |
-
if ( ! defined( 'FINALTILESGALLERY_PLUGIN_NAME' ) )
|
139 |
-
define( 'FINALTILESGALLERY_PLUGIN_NAME', trim( dirname( FINALTILESGALLERY_PLUGIN_BASENAME ), '/' ) );
|
140 |
-
|
141 |
-
if ( ! defined( 'FINALTILESGALLERY_PLUGIN_DIR' ) )
|
142 |
-
define( 'FINALTILESGALLERY_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . FINALTILESGALLERY_PLUGIN_NAME );
|
143 |
-
}
|
144 |
-
|
145 |
-
//Define DB tables
|
146 |
-
public function define_db_tables()
|
147 |
-
{
|
148 |
-
global $wpdb;
|
149 |
-
|
150 |
-
$wpdb->FinalTilesGalleries = $wpdb->prefix . 'FinalTiles_gallery';
|
151 |
-
$wpdb->FinalTilesImages = $wpdb->prefix . 'FinalTiles_gallery_images';
|
152 |
-
}
|
153 |
-
|
154 |
-
|
155 |
-
public function create_db_conn()
|
156 |
-
{
|
157 |
-
require('lib/db-class.php');
|
158 |
-
$FinalTilesdb = FinalTilesLiteDB::getInstance();
|
159 |
-
return $FinalTilesdb;
|
160 |
-
}
|
161 |
-
|
162 |
-
public function editor_button($buttons)
|
163 |
-
{
|
164 |
-
array_push($buttons, 'separator', 'ftg_shortcode_editor');
|
165 |
-
return $buttons;
|
166 |
-
}
|
167 |
-
|
168 |
-
public function register_editor_plugin($plugin_array)
|
169 |
-
{
|
170 |
-
$plugin_array['ftg_shortcode_editor'] = plugins_url('/admin/scripts/editor-plugin.js',__file__);
|
171 |
-
return $plugin_array;
|
172 |
-
}
|
173 |
-
|
174 |
-
public function ftg_shortcode_editor()
|
175 |
-
{
|
176 |
-
$css_path = plugins_url( 'assets/css/admin.css', __FILE__ );
|
177 |
-
$admin_url = admin_url();
|
178 |
-
|
179 |
-
$galleries = $this->FinalTilesdb->getGalleries(); //load all galleries
|
180 |
-
|
181 |
-
include 'admin/include/tinymce-galleries.php';
|
182 |
-
die();
|
183 |
-
}
|
184 |
-
|
185 |
public function attachment_fields_to_edit($form, $post)
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
'gridCellSize' => '25',
|
224 |
-
'lightbox' => 'lightbox',
|
225 |
-
'recentPostsCaption' => 'title',
|
226 |
-
'captionIcon' => 'zoom',
|
227 |
-
'reverseOrder' => false,
|
228 |
-
'captionIconColor' => '#ffffff',
|
229 |
-
'captionBackgroundColor' => '#000000',
|
230 |
-
'captionColor' => '#ffffff',
|
231 |
-
'captionEffectDuration' => 250,
|
232 |
-
'captionOpacity' => 80,
|
233 |
-
'borderSize' => 0,
|
234 |
-
'borderRadius' => 0,
|
235 |
-
'shadowSize' => 0,
|
236 |
-
'imageSizeFactor' => 90,
|
237 |
-
'imageSizeFactorTabletLandscape' => 80,
|
238 |
-
'imageSizeFactorTabletPortrait' => 70,
|
239 |
-
'imageSizeFactorPhoneLandscape' => 60,
|
240 |
-
'imageSizeFactorPhonePortrait' => 50,
|
241 |
-
'imageSizeFactorCustom' => '',
|
242 |
-
'enlargeImages' => 'T',
|
243 |
-
'wp_field_caption' => 'description',
|
244 |
-
'captionBehavior' => 'hidden',
|
245 |
-
'captionFullHeight' => 'T',
|
246 |
-
'captionEmpty' => 'hide',
|
247 |
-
'captionEffect' => 'fade',
|
248 |
-
'captionEasing' => 'linear',
|
249 |
-
'captionMobileBehavior' => "desktop",
|
250 |
-
'scrollEffect' => 'none',
|
251 |
-
'hoverZoom' => 100,
|
252 |
-
'hoverRotation' => 0,
|
253 |
-
'source' => 'images',
|
254 |
-
'delay' => 0,
|
255 |
-
'socialIconColor' => '#ffffff',
|
256 |
-
'support' => 'F',
|
257 |
-
'loadedScale' => 100,
|
258 |
-
'loadedRotate' => 0,
|
259 |
-
'loadedHSlide' => 0,
|
260 |
-
'loadedVSlide' => 0
|
261 |
-
|
262 |
-
);
|
263 |
-
|
264 |
-
update_option('FinalTiles_gallery_options', $gallery_options);
|
265 |
-
}
|
266 |
-
|
267 |
-
//Delete gallery
|
268 |
-
public function delete_gallery()
|
269 |
-
{
|
270 |
-
if(check_admin_referer('FinalTiles_gallery','FinalTiles_gallery'))
|
271 |
-
{
|
272 |
-
$this->FinalTilesdb->deleteGallery(intval($_POST['id']));
|
273 |
-
}
|
274 |
-
exit();
|
275 |
-
}
|
276 |
-
|
277 |
-
//Clone gallery
|
278 |
-
public function clone_gallery()
|
279 |
-
{
|
280 |
-
if(check_admin_referer('FinalTiles_gallery','FinalTiles_gallery'))
|
281 |
-
{
|
282 |
-
$sourceId = intval($_POST['id']);
|
283 |
-
$g = $this->FinalTilesdb->getGalleryById($sourceId, true);
|
284 |
-
$g['name'] .= " (copy)";
|
285 |
-
$this->FinalTilesdb->addGallery($g);
|
286 |
-
$id = $this->FinalTilesdb->getNewGalleryId();
|
287 |
-
$images = $this->FinalTilesdb->getImagesByGalleryId($sourceId);
|
288 |
-
foreach($images as &$image)
|
289 |
-
{
|
290 |
-
$image->Id = null;
|
291 |
-
$image->gid = $id;
|
292 |
-
}
|
293 |
-
$this->FinalTilesdb->addImages($id, $images);
|
294 |
-
}
|
295 |
-
exit();
|
296 |
-
}
|
297 |
-
|
298 |
-
//Add gallery scripts
|
299 |
-
public function add_gallery_scripts()
|
300 |
-
{
|
301 |
-
wp_enqueue_script('jquery');
|
302 |
-
|
303 |
-
wp_register_script('finalTilesGallery', plugins_url() . '/final-tiles-grid-gallery-lite/scripts/script.js', array('jquery'), FTGLITEVERSION);
|
304 |
-
wp_enqueue_script('finalTilesGallery');
|
305 |
-
|
306 |
-
|
307 |
-
wp_register_style('finalTilesGallery_stylesheet', plugins_url() . '/final-tiles-grid-gallery-lite/scripts/ftg.css', array(), FTGLITEVERSION);
|
308 |
-
wp_enqueue_style('finalTilesGallery_stylesheet');
|
309 |
-
|
310 |
-
wp_register_script('lightbox2_script', plugins_url() . '/final-tiles-grid-gallery-lite/lightbox/lightbox2/js/script.js', array('jquery'));
|
311 |
-
wp_register_style('lightbox2_stylesheet', plugins_url() . '/final-tiles-grid-gallery-lite/lightbox/lightbox2/css/style.css');
|
312 |
|
313 |
-
wp_register_style('fontawesome_stylesheet', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css');
|
314 |
-
wp_enqueue_style('fontawesome_stylesheet');
|
315 |
|
316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
wp_enqueue_media();
|
324 |
-
}
|
325 |
-
//wp_enqueue_script( 'custom-header' );
|
326 |
-
wp_register_style('google-fonts', '//fonts.googleapis.com/css?family=Roboto:400,700,500,300,900');
|
327 |
-
wp_enqueue_style('google-fonts');
|
328 |
-
|
329 |
-
wp_register_style('google-icons', '//cdn.materialdesignicons.com/1.1.34/css/materialdesignicons.min.css', array());
|
330 |
-
wp_enqueue_style('google-icons');
|
331 |
|
|
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
|
|
|
336 |
|
337 |
-
|
338 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
|
340 |
-
|
341 |
-
|
|
|
|
|
342 |
|
343 |
-
|
344 |
-
|
345 |
|
346 |
-
wp_register_script('materialize', plugins_url() . '/final-tiles-grid-gallery-lite/admin/scripts/materialize.min.js', array('jquery'));
|
347 |
-
wp_enqueue_script('materialize');
|
348 |
|
349 |
-
|
350 |
-
|
351 |
|
352 |
-
|
|
|
353 |
|
354 |
-
|
355 |
wp_enqueue_style('fontawesome_stylesheet');
|
|
|
356 |
|
357 |
-
|
358 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
|
361 |
-
|
362 |
-
|
363 |
-
$this->create_db_tables();
|
364 |
-
update_option( "FinalTiles_gallery_db_version", $ftg_db_version );
|
365 |
-
}
|
366 |
-
}
|
367 |
|
368 |
-
|
369 |
-
{
|
370 |
-
wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-darkness/jquery-ui.min.css');
|
371 |
-
}
|
372 |
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
$overview = add_menu_page('Final Tiles Gallery', 'Final Tiles Gallery', 'edit_posts', 'ftg-lite-gallery-admin', array($this, 'add_overview'), plugins_url() . '/final-tiles-grid-gallery-lite/admin/icon.png');
|
377 |
-
$add_gallery = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Add Gallery','FinalTiles-gallery'), __('Add Gallery','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-add-gallery', array($this, 'add_gallery'));
|
378 |
-
$plugins = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Other galleries','FinalTiles-gallery'), __('Other galleries','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-gallery-others', array($this, 'other_galleries'));
|
379 |
-
$tutorial = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Tutorial','FinalTiles-gallery'), __('Tutorial','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-tutorial', array($this, 'tutorial'));
|
380 |
-
$upgrade = add_submenu_page('ftg-lite-gallery-admin', __('FinalTiles Gallery >> Upgrade','FinalTiles-gallery'), __('Upgrade','FinalTiles-gallery'), 'edit_posts', 'ftg-lite-gallery-upgrade', array($this, 'upgrade'));
|
381 |
|
382 |
-
|
|
|
383 |
|
384 |
-
|
|
|
385 |
|
|
|
|
|
|
|
|
|
386 |
|
387 |
-
|
388 |
-
|
389 |
-
add_action('load-'.$plugins, array($this, 'gallery_admin_init'));
|
390 |
-
add_action('load-'.$add_gallery, array($this, 'gallery_admin_init'));
|
391 |
-
add_action('load-'.$upgrade, array($this, 'gallery_admin_init'));
|
392 |
-
// add_action('load-'.$edit_gallery, array($this, 'gallery_admin_init'));
|
393 |
-
// add_action('load-'.$support, array($this, 'gallery_admin_init'));
|
394 |
|
395 |
-
|
396 |
-
|
397 |
|
398 |
-
|
399 |
-
|
400 |
-
{
|
401 |
-
global $ftg_fields;
|
402 |
-
$ftg_fields = $this->fields;
|
403 |
|
404 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
$ftg_parent_page = "dashboard";
|
406 |
-
|
407 |
-
if(array_key_exists("id", $_GET))
|
408 |
-
{
|
409 |
-
include("admin/edit-gallery.php");
|
410 |
-
}
|
411 |
-
else
|
412 |
-
{
|
413 |
-
include("admin/overview.php");
|
414 |
-
}
|
415 |
-
}
|
416 |
-
|
417 |
-
public function upgrade()
|
418 |
-
{
|
419 |
-
include("admin/upgrade.php");
|
420 |
-
}
|
421 |
-
|
422 |
-
public function other_galleries()
|
423 |
-
{
|
424 |
-
include("admin/galleries.php");
|
425 |
-
}
|
426 |
-
|
427 |
-
public function tutorial()
|
428 |
-
{
|
429 |
-
include("admin/tutorial.php");
|
430 |
-
}
|
431 |
-
|
432 |
-
public function support()
|
433 |
-
{
|
434 |
-
include("admin/support.php");
|
435 |
-
}
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
public function add_gallery()
|
440 |
-
{
|
441 |
-
global $ftg_fields;
|
442 |
-
$ftg_fields = $this->fields;
|
443 |
-
$gallery = null;
|
444 |
-
|
445 |
-
include("admin/add-gallery.php");
|
446 |
-
}
|
447 |
-
|
448 |
-
public function delete_image()
|
449 |
-
{
|
450 |
-
if(check_admin_referer('FinalTiles_gallery','FinalTiles_gallery'))
|
451 |
-
{
|
452 |
-
foreach (explode(",", $_POST["id"]) as $id) {
|
453 |
-
$this->FinalTilesdb->deleteImage(intval($id));
|
454 |
-
}
|
455 |
-
}
|
456 |
-
die();
|
457 |
-
}
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
public function add_image()
|
462 |
-
{
|
463 |
-
if(check_admin_referer('FinalTiles_gallery','FinalTiles_gallery'))
|
464 |
-
{
|
465 |
-
$gid = intval($_POST['galleryId']);
|
466 |
-
$enc_images = stripslashes($_POST["enc_images"]);
|
467 |
-
$images = json_decode($enc_images);
|
468 |
-
|
469 |
-
$result = $this->FinalTilesdb->addImages($gid, $images);
|
470 |
-
|
471 |
-
header("Content-type: application/json");
|
472 |
-
if($result === false)
|
473 |
-
{
|
474 |
-
print "{\"success\":false}";
|
475 |
-
}
|
476 |
-
else
|
477 |
-
{
|
478 |
-
print "{\"success\":true}";
|
479 |
-
}
|
480 |
-
}
|
481 |
-
die();
|
482 |
-
}
|
483 |
-
|
484 |
-
public function list_thumbnail_sizes()
|
485 |
-
{
|
486 |
-
global $_wp_additional_image_sizes;
|
487 |
-
$sizes = array();
|
488 |
-
foreach( get_intermediate_image_sizes() as $s )
|
489 |
-
{
|
490 |
-
$sizes[ $s ] = array( 0, 0 );
|
491 |
-
if( in_array( $s, array( 'thumbnail', 'medium', 'large' ) ) )
|
492 |
-
{
|
493 |
-
$sizes[ $s ][0] = get_option( $s . '_size_w' );
|
494 |
-
$sizes[ $s ][1] = get_option( $s . '_size_h' );
|
495 |
-
}
|
496 |
-
else
|
497 |
-
{
|
498 |
-
if( isset( $_wp_additional_image_sizes ) &&
|
499 |
-
isset( $_wp_additional_image_sizes[ $s ] ))
|
500 |
-
$sizes[ $s ] = array( $_wp_additional_image_sizes[ $s ]['width'], $_wp_additional_image_sizes[ $s ]['height'], );
|
501 |
-
}
|
502 |
-
}
|
503 |
-
|
504 |
-
return $sizes;
|
505 |
-
}
|
506 |
-
|
507 |
-
public function sort_images()
|
508 |
-
{
|
509 |
-
if(check_admin_referer('FinalTiles_gallery','FinalTiles_gallery'))
|
510 |
-
{
|
511 |
-
$result = $this->FinalTilesdb->sortImages(explode(',', $_POST['ids']));
|
512 |
-
|
513 |
-
header("Content-type: application/json");
|
514 |
-
if($result === false)
|
515 |
-
{
|
516 |
-
print "{\"success\":false}";
|
517 |
-
}
|
518 |
-
else
|
519 |
-
{
|
520 |
-
print "{\"success\":true}";
|
521 |
-
}
|
522 |
-
}
|
523 |
-
die();
|
524 |
-
}
|
525 |
-
|
526 |
-
public function refresh_gallery()
|
527 |
-
{
|
528 |
-
if($_POST['source'] == 'images')
|
529 |
-
$this->list_images();
|
530 |
-
if($_POST['source'] == 'posts')
|
531 |
-
$this->list_posts(null);
|
532 |
-
if($_POST['source'] == 'woocommerce')
|
533 |
-
$this->list_posts('product');
|
534 |
-
}
|
535 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
537 |
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
}
|
638 |
-
|
639 |
-
print $id;
|
640 |
-
}
|
641 |
-
else
|
642 |
-
{
|
643 |
-
print -1;
|
644 |
-
}
|
645 |
-
die();
|
646 |
-
}
|
647 |
-
|
648 |
-
private function checkboxVal($field)
|
649 |
-
{
|
650 |
-
if(isset($_POST[$field]))
|
651 |
-
return 'T';
|
652 |
-
|
653 |
-
return 'F';
|
654 |
-
}
|
655 |
-
|
656 |
-
public function save_gallery()
|
657 |
-
{
|
658 |
-
if(check_admin_referer('FinalTiles_gallery','FinalTiles_gallery'))
|
659 |
-
{
|
660 |
-
$galleryName = stripslashes($_POST['ftg_name']);
|
661 |
-
$galleryDescription = stripslashes($_POST['ftg_description']);
|
662 |
-
$slug = strtolower(str_replace(" ", "", $galleryName));
|
663 |
-
$margin = intval($_POST['ftg_margin']);
|
664 |
-
$minTileWidth = intval($_POST['ftg_minTileWidth']);
|
665 |
-
$gridCellSize = intval($_POST['ftg_gridCellSize']);
|
666 |
-
$imagesOrder = $_POST['ftg_imagesOrder'];
|
667 |
$width = $_POST['ftg_width'];
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
|
|
|
|
|
|
675 |
$scrollEffect = $_POST['ftg_scrollEffect'];
|
676 |
$captionBehavior = $_POST['ftg_captionBehavior'];
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
804 |
{
|
805 |
$result = array();
|
806 |
$sizes = get_intermediate_image_sizes();
|
@@ -816,482 +1089,619 @@ if (!class_exists("FinalTiles_GalleryLite"))
|
|
816 |
return $result;
|
817 |
}
|
818 |
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
888 |
|
889 |
"General" => array(
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
925 |
90% is a suggested default value, because under some circumstances, the images could be enlarged by the script (to fill gaps and avoid blank spaces between tiles).",
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
"imageSizeFactorTabletLandscape" => array(
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
"imageSizeFactorTabletPortrait" => array(
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
"imageSizeFactorPhoneLandscape" => array(
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
"imageSizeFactorPhonePortrait" => array(
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
"description"=>"Load images sequentially for higher performances. N.B.: search engines won't index your images if sequential loading is activated.",
|
1046 |
-
"default"=>"T",
|
1047 |
-
"excludeFrom"=>array()
|
1048 |
-
),
|
1049 |
-
)
|
1050 |
),
|
1051 |
"Links & Lightbox" => array(
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1106 |
),
|
1107 |
"Captions" => array(
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1271 |
),
|
1272 |
"Hover effects" => array(
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
"mu" => "%",
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
"mu" => "deg",
|
1292 |
"default" => 0,
|
1293 |
-
|
1294 |
-
|
1295 |
"hoverIconRotation" => array(
|
1296 |
"name" => "Rotate icon",
|
1297 |
"type" => "toggle",
|
@@ -1299,150 +1709,157 @@ if (!class_exists("FinalTiles_GalleryLite"))
|
|
1299 |
"description" => "Enable rotation of the icon.",
|
1300 |
"excludeFrom" => array()
|
1301 |
)
|
1302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
),
|
1304 |
-
"Image loaded effects" => array(
|
1305 |
-
"icon" => "mdi mdi-reload",
|
1306 |
-
"fields" => array(
|
1307 |
-
"loadedScale" => array(
|
1308 |
-
"name" => "Scale",
|
1309 |
-
"description" => "",
|
1310 |
-
"type" => "slider",
|
1311 |
-
"min" => 0,
|
1312 |
-
"max" => 200,
|
1313 |
-
"mu" => "%",
|
1314 |
-
"default"=>100,
|
1315 |
-
"excludeFrom" => array()
|
1316 |
-
),
|
1317 |
-
"loadedRotate" => array(
|
1318 |
-
"name" => "Rotate",
|
1319 |
-
"description" => "",
|
1320 |
-
"type" => "slider",
|
1321 |
-
"min" => -180,
|
1322 |
-
"max" => 180,
|
1323 |
-
"default" => 0,
|
1324 |
-
"mu" => "deg",
|
1325 |
-
"excludeFrom" => array()
|
1326 |
-
),
|
1327 |
-
"loadedHSlide" => array(
|
1328 |
-
"name" => "Horizontal slide",
|
1329 |
-
"description" => "",
|
1330 |
-
"type" => "slider",
|
1331 |
-
"min" => -100,
|
1332 |
-
"max" => 100,
|
1333 |
-
"mu" => "px",
|
1334 |
-
"default" => 0,
|
1335 |
-
"excludeFrom" => array()
|
1336 |
-
),
|
1337 |
-
"loadedVSlide" => array(
|
1338 |
-
"name" => "Vertical slide",
|
1339 |
-
"description" => "",
|
1340 |
-
"type" => "slider",
|
1341 |
-
"min" => -100,
|
1342 |
-
"max" => 100,
|
1343 |
-
"mu" => "px",
|
1344 |
-
"default" => 0,
|
1345 |
-
"excludeFrom" => array()
|
1346 |
-
)
|
1347 |
-
|
1348 |
-
)
|
1349 |
-
),
|
1350 |
"Style" => array(
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1412 |
),
|
1413 |
"Customizations" => array(
|
1414 |
-
|
1415 |
-
|
1416 |
"aClass" => array(
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
"rel" => array(
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
<br>
|
1447 |
<ul>
|
1448 |
<li>
|
@@ -1467,57 +1884,57 @@ if (!class_exists("FinalTiles_GalleryLite"))
|
|
1467 |
<em>.final-tiles-gallery .ftg-filters a.selected</em> : selected filter
|
1468 |
</li>
|
1469 |
</ul>",
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
<br />
|
1477 |
<br />
|
1478 |
<strong>Write just the code without using the <script></script> tags</strong>",
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
"mu" => "ms",
|
1488 |
"default" => 0,
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
)
|
1515 |
);
|
1516 |
-
|
1517 |
}
|
1518 |
|
1519 |
if (class_exists("FinalTiles_GalleryLite")) {
|
1520 |
global $ob_FinalTiles_GalleryLite;
|
1521 |
-
|
1522 |
}
|
1523 |
-
?>
|
4 |
Plugin URI: http://codecanyon.net/item/final-tiles-gallery-for-wordpress/5189351?ref=GreenTreeLabs
|
5 |
Description: Wordpress Plugin for creating responsive image galleries. By: Green Tree Labs
|
6 |
Author: Green Tree Labs
|
7 |
+
Version: 3.0.0
|
8 |
Author URI: http://codecanyon.net/user/GreenTreeLabs
|
9 |
*/
|
10 |
|
11 |
+
define("FTGLITEVERSION", "3.0.0");
|
12 |
define("PRO_CALL", "<span class='procall'>(<a href='http://1.envato.market/c/288541/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ffinal-tiles-wordpress-gallery%2F5189351' target='_blank'>available with PRO version</a>)</span>");
|
13 |
define("PRO_UNLOCK", "<a href='http://1.envato.market/c/288541/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ffinal-tiles-wordpress-gallery%2F5189351' target='_blank'>Add unlimited images with PRO version</a>");
|
14 |
|
15 |
+
|
16 |
if (!class_exists("FinalTiles_GalleryLite"))
|
17 |
{
|
18 |
+
class FinalTiles_GalleryLite
|
19 |
{
|
20 |
+
private $defaultValues = array(
|
21 |
+
'aClass' => '',
|
22 |
+
'afterGalleryText' => '',
|
23 |
+
'allFilterLabel' => 'All',
|
24 |
+
'ajaxLoading' => 'F',
|
25 |
+
'backgroundColor' => 'transparent',
|
26 |
+
'beforeGalleryText' => '',
|
27 |
+
'blank' => 'F',
|
28 |
+
'borderColor' => 'transparent',
|
29 |
+
'borderRadius' => 0,
|
30 |
+
'borderSize' => 0,
|
31 |
+
'captionBackgroundColor' => '#000000',
|
32 |
+
'captionBehavior' => 'hidden',
|
33 |
+
'captionColor' => '#ffffff',
|
34 |
+
'captionEasing' => 'linear',
|
35 |
+
'captionEffect' => 'fade',
|
36 |
+
'captionEffectDuration' => 250,
|
37 |
+
'captionEmpty' => 'hide',
|
38 |
+
'captionFontSize' => 12,
|
39 |
+
'captionFrame' => 'F',
|
40 |
+
'captionFrameColor' => '#ffffff',
|
41 |
+
'captionFullHeight' => 'T',
|
42 |
+
'captionHorizontalAlignment' => 'Center',
|
43 |
+
'captionIcon' => 'zoom',
|
44 |
+
'captionIconColor' => '#ffffff',
|
45 |
+
'captionIconSize' => 12,
|
46 |
+
'captionMobileBehavior' => "desktop",
|
47 |
+
'captionOpacity' => 80,
|
48 |
+
'captionPosition' => 'inside',
|
49 |
+
'captionVerticalAlignment' => 'Middle',
|
50 |
+
'columns' => 4,
|
51 |
+
'columnsPhoneLandscape' => 3,
|
52 |
+
'columnsPhonePortrait' => 2,
|
53 |
+
'columnsTabletLandscape' => 4,
|
54 |
+
'columnsTabletPortrait' => 3,
|
55 |
+
'compressHTML' => 'T',
|
56 |
+
'customCaptionIcon' =>'',
|
57 |
+
'defaultFilter' => '',
|
58 |
+
'defaultSize' => 'medium',
|
59 |
+
'delay' => 0,
|
60 |
+
'disableLightboxGroups' => 'F',
|
61 |
+
'enableFacebook' => 'F',
|
62 |
+
'enableGplus' => 'F',
|
63 |
+
'enablePinterest' => 'F',
|
64 |
+
'enableTwitter' => 'F',
|
65 |
+
'enlargeImages' => 'T',
|
66 |
+
'envatoReferral' => 'GreenTreeLabs',
|
67 |
+
'filterClick' => 'F',
|
68 |
+
'filters' => '',
|
69 |
+
'gridCellSize' => '25',
|
70 |
+
'hoverIconRotation' => 'F',
|
71 |
+
'hoverRotation' => 0,
|
72 |
+
'hoverZoom' => 100,
|
73 |
+
'imageSizeFactor' => 90,
|
74 |
+
'imageSizeFactorCustom' => '',
|
75 |
+
'imageSizeFactorPhoneLandscape' => 60,
|
76 |
+
'imageSizeFactorPhonePortrait' => 50,
|
77 |
+
'imageSizeFactorTabletLandscape' => 80,
|
78 |
+
'imageSizeFactorTabletPortrait' => 70,
|
79 |
+
'imagesOrder' => 'user',
|
80 |
+
'layout' => 'final',
|
81 |
+
'lazyLoad' => false,
|
82 |
+
'lightbox' => 'lightbox2',
|
83 |
+
'lightboxImageSize' => 'large',
|
84 |
+
'loadedHSlide' => 0,
|
85 |
+
'loadedRotate' => 0,
|
86 |
+
'loadedScale' => 100,
|
87 |
+
'loadedVSlide' => 0,
|
88 |
+
'loadingBarBackgroundColor' => "#fff",
|
89 |
+
'loadingBarColor' => "#fff",
|
90 |
+
'loadMethod' => 'sequential',
|
91 |
+
'margin' => 10,
|
92 |
+
'max_posts' => 0,
|
93 |
+
'minTileWidth' => '250',
|
94 |
+
'mobileLightbox' => 'swipebox',
|
95 |
+
'post_types' => '',
|
96 |
+
'recentPostsCaption' => 'title',
|
97 |
+
'recentPostsCaptionAutoExcerptLength' => 20,
|
98 |
+
'rel' => '',
|
99 |
+
'reverseOrder' => false,
|
100 |
+
'script' => '',
|
101 |
+
'scrollEffect' => 'none',
|
102 |
+
'shadowColor' => '#cccccc',
|
103 |
+
'shadowSize' => 0,
|
104 |
+
'socialIconColor' => '#ffffff',
|
105 |
+
'source' => 'images',
|
106 |
+
'style' => '',
|
107 |
+
'support' => 'F',
|
108 |
+
'supportText' => 'Powered by Final Tiles Grid Gallery',
|
109 |
+
'tilesPerPage' => 0,
|
110 |
+
'titleFontSize' => 14,
|
111 |
+
'width' => '100%',
|
112 |
+
'wp_field_caption' => 'description',
|
113 |
+
'wp_field_title' => 'title'
|
114 |
+
);
|
115 |
+
|
116 |
+
//Constructor
|
117 |
+
public function __construct()
|
118 |
+
{
|
119 |
+
$this->plugin_name = plugin_basename(__FILE__);
|
120 |
+
$this->define_constants();
|
121 |
+
$this->define_db_tables();
|
122 |
+
$this->FinalTilesdb = $this->create_db_conn();
|
123 |
+
|
124 |
+
|
125 |
+
register_activation_hook(__FILE__, array($this, 'activation'));
|
126 |
+
|
127 |
+
add_filter('widget_text', 'do_shortcode');
|
128 |
+
|
129 |
+
add_action('plugins_loaded', array($this, 'create_textdomain'));
|
130 |
+
|
131 |
+
add_action('wp_enqueue_scripts', array($this, 'add_gallery_scripts'));
|
132 |
+
|
133 |
+
//add_action( 'admin_init', array($this,'gallery_admin_init') );
|
134 |
+
add_action('admin_menu', array($this, 'add_gallery_admin_menu'));
|
135 |
+
|
136 |
+
add_shortcode('FinalTilesGallery', array($this, 'gallery_shortcode_handler'));
|
137 |
|
138 |
+
add_action('wp_ajax_save_gallery', array($this, 'save_gallery'));
|
139 |
+
add_action('wp_ajax_add_new_gallery', array($this, 'add_new_gallery'));
|
140 |
+
add_action('wp_ajax_delete_gallery', array($this, 'delete_gallery'));
|
141 |
+
add_action('wp_ajax_clone_gallery', array($this, 'clone_gallery'));
|
142 |
+
add_action('wp_ajax_save_image', array($this, 'save_image'));
|
143 |
+
add_action('wp_ajax_add_image', array($this, 'add_image'));
|
144 |
+
add_action('wp_ajax_save_video', array($this, 'save_video'));
|
145 |
+
add_action('wp_ajax_sort_images', array($this, 'sort_images'));
|
146 |
+
add_action('wp_ajax_delete_image', array($this, 'delete_image'));
|
147 |
+
add_action('wp_ajax_assign_filters', array($this, 'assign_filters'));
|
148 |
+
add_action('wp_ajax_assign_group', array($this, 'assign_group'));
|
149 |
+
add_action('wp_ajax_toggle_visibility', array($this, 'toggle_visibility'));
|
150 |
+
add_action('wp_ajax_refresh_gallery', array($this, 'refresh_gallery'));
|
151 |
+
add_action('wp_ajax_get_gallery_configuration', array($this, 'get_configuration'));
|
152 |
+
add_action('wp_ajax_update_gallery_configuration', array($this, 'update_configuration'));
|
153 |
+
add_action('wp_ajax_get_image_size_url', array($this, 'get_image_size_url'));
|
154 |
|
155 |
+
add_filter('mce_buttons', array($this, 'editor_button'));
|
156 |
+
add_filter('mce_external_plugins', array($this, 'register_editor_plugin'));
|
157 |
+
add_action('wp_ajax_ftg_shortcode_editor', array($this, 'ftg_shortcode_editor'));
|
158 |
|
159 |
+
add_filter('plugin_row_meta', array($this, 'register_links'), 10, 2);
|
160 |
|
161 |
+
add_action( 'wp_ajax_load_chunk', array($this, 'load_chunk') );
|
162 |
+
add_action( 'wp_ajax_nopriv_load_chunk', array($this, 'load_chunk') );
|
163 |
|
164 |
+
add_action( 'admin_notices', array( $this, 'review' ) );
|
165 |
+
add_action( 'wp_ajax_ftg_dismiss_review', array( $this, 'dismiss_review' ) );
|
166 |
+
add_filter( 'admin_footer_text', array( $this, 'admin_footer' ), 1, 2 );
|
167 |
|
168 |
+
$this->resetFields();
|
169 |
+
}
|
170 |
|
171 |
+
public function review()
|
172 |
+
{
|
173 |
+
// Verify that we can do a check for reviews.
|
174 |
+
$review = get_option( 'ftg_review' );
|
175 |
+
$time = time();
|
176 |
+
$load = false;
|
177 |
+
$there_was_review = false;
|
178 |
+
|
179 |
+
if ( ! $review ) {
|
180 |
+
$review = array(
|
181 |
+
'time' => $time,
|
182 |
+
'dismissed' => false
|
183 |
+
);
|
184 |
+
$load = true;
|
185 |
+
$there_was_review = false;
|
186 |
+
} else {
|
187 |
+
// Check if it has been dismissed or not.
|
188 |
+
if ( (isset( $review['dismissed'] ) && ! $review['dismissed']) && (isset( $review['time'] ) && (($review['time'] + DAY_IN_SECONDS) <= $time)) ) {
|
189 |
+
$load = true;
|
190 |
+
}
|
191 |
+
}
|
192 |
|
193 |
+
// If we cannot load, return early.
|
194 |
+
if ( ! $load ) {
|
195 |
+
return;
|
196 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
|
198 |
+
// Update the review option now.
|
199 |
+
update_option( 'ftg_review', $review );
|
200 |
|
201 |
+
// Run through optins on the site to see if any have been loaded for more than a week.
|
202 |
+
$valid = false;
|
203 |
+
$galleries = $this->FinalTilesdb->getGalleries();
|
204 |
|
205 |
+
if ( ! $galleries )
|
206 |
+
{
|
207 |
+
return;
|
208 |
+
}
|
209 |
|
210 |
+
$with_date = false;
|
211 |
+
foreach ( $galleries as $gallery )
|
212 |
+
{
|
213 |
+
if(! isset($gallery->date))
|
214 |
+
continue;
|
215 |
|
216 |
+
$with_date = true;
|
217 |
+
$data = $gallery->date;
|
218 |
|
219 |
+
// Check the creation date of the local optin. It must be at least one week after.
|
220 |
+
$created = isset( $data ) ? strtotime( $data ) + (7 * DAY_IN_SECONDS) : false;
|
221 |
+
if ( ! $created ) {
|
222 |
+
continue;
|
223 |
+
}
|
224 |
|
225 |
+
if ( $created <= $time ) {
|
226 |
+
$valid = true;
|
227 |
+
break;
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
if(! $with_date && count($galleries) > 0 && ! $there_was_review)
|
232 |
+
{
|
233 |
+
$valid = true;
|
234 |
+
}
|
235 |
+
|
236 |
+
// If we don't have a valid optin yet, return.
|
237 |
+
if ( ! $valid )
|
238 |
+
{
|
239 |
+
return;
|
240 |
+
}
|
241 |
+
|
242 |
+
// We have a candidate! Output a review message.
|
243 |
+
?>
|
244 |
+
<div class="notice notice-info is-dismissible ftg-review-notice">
|
245 |
+
<p><?php _e( 'Hey, I noticed you created a photo gallery with Final Tiles - that’s awesome! Would you mind give it a 5-star rating on WordPress to help us spread the word and boost our motivation for new featrues?', 'final-tiles-gallery-lite' ); ?></p>
|
246 |
+
<p><strong><?php _e( 'Diego Imbriani<br>Founder of GreenTreeLabs', 'final-tiles-gallery' ); ?></strong></p>
|
247 |
+
<p>
|
248 |
+
<a href="https://wordpress.org/support/plugin/final-tiles-grid-gallery-lite/reviews/?filter=5#new-post" class="ftg-dismiss-review-notice ftg-review-out" target="_blank" rel="noopener"><?php _e( 'Ok, you deserve it', 'final-tiles-gallery-lite' ); ?></a><br>
|
249 |
+
<a href="#" class="ftg-dismiss-review-notice" rel="noopener"><?php _e( 'Nope, maybe later', 'final-tiles-gallery' ); ?></a><br>
|
250 |
+
<a href="#" class="ftg-dismiss-review-notice" rel="noopener"><?php _e( 'I already did', 'final-tiles-gallery' ); ?></a><br>
|
251 |
+
</p>
|
252 |
+
</div>
|
253 |
+
<script type="text/javascript">
|
254 |
+
jQuery(document).ready( function($) {
|
255 |
+
$(document).on('click', '.ftg-dismiss-review-notice, .ftg-review-notice button', function( event ) {
|
256 |
+
if ( ! $(this).hasClass('ftg-review-out') ) {
|
257 |
+
event.preventDefault();
|
258 |
+
}
|
259 |
+
|
260 |
+
$.post( ajaxurl, {
|
261 |
+
action: 'ftg_dismiss_review'
|
262 |
+
});
|
263 |
+
|
264 |
+
$('.ftg-review-notice').remove();
|
265 |
+
});
|
266 |
+
});
|
267 |
+
</script>
|
268 |
+
<?php
|
269 |
+
}
|
270 |
+
|
271 |
+
public function dismiss_review() {
|
272 |
+
|
273 |
+
$review = get_option( 'ftg_review' );
|
274 |
+
if ( ! $review ) {
|
275 |
+
$review = array();
|
276 |
+
}
|
277 |
+
|
278 |
+
$review['time'] = time();
|
279 |
+
$review['dismissed'] = true;
|
280 |
+
|
281 |
+
update_option( 'ftg_review', $review );
|
282 |
+
die;
|
283 |
+
}
|
284 |
+
|
285 |
+
public function admin_footer( $text )
|
286 |
+
{
|
287 |
+
global $current_screen;
|
288 |
+
if ( !empty( $current_screen->id ) && strpos( $current_screen->id, 'ftg' ) !== false ) {
|
289 |
+
$url = 'https://wordpress.org/support/plugin/final-tiles-grid-gallery-lite/reviews/?filter=5#new-post';
|
290 |
+
$text = sprintf( __( 'Please rate <strong>Final Tiles Gallery</strong> <a href="%s" target="_blank">★★★★★</a> on <a href="%s" target="_blank">WordPress.org</a> to help us spread the word. Thank you from the Final Tiles Gallery team!', 'wpforms' ), $url, $url );
|
291 |
+
}
|
292 |
+
return $text;
|
293 |
+
}
|
294 |
+
|
295 |
+
public function gallery_admin_bar()
|
296 |
+
{
|
297 |
global $wp_admin_bar;
|
298 |
|
299 |
$wp_admin_bar->add_menu( array(
|
300 |
'id' => 'ftg-upgrade-bar',
|
301 |
'href' => 'http://1.envato.market/c/288541/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Ffinal-tiles-wordpress-gallery%2F5189351',
|
302 |
'parent' => 'top-secondary',
|
303 |
+
'title' => __('Upgrade to Final Tiles Grid Gallery PRO'),
|
304 |
'meta' => array('class' => 'ftg-upgrade-to-pro', 'target' => '_blank' ),
|
305 |
) );
|
306 |
+
}
|
307 |
+
|
308 |
+
|
309 |
+
private function resetFields()
|
310 |
+
{
|
311 |
+
$keys = array('name', 'hiddenFor', 'type', 'description', 'default', 'min', 'max', 'mu', 'excludeFrom');
|
312 |
+
|
313 |
+
foreach ($this->fields as $tab_name => $tab) {
|
314 |
+
foreach ($tab["fields"] as $key => $field) {
|
315 |
+
//print_r($field);
|
316 |
+
foreach ($keys as $kk) {
|
317 |
+
if (!array_key_exists($kk, $field)) {
|
318 |
+
$this->fields[$tab_name]["fields"][$key][$kk] = "";
|
319 |
+
}
|
320 |
+
}
|
321 |
+
}
|
|
|
|
|
322 |
|
323 |
}
|
324 |
//print_r($this->fields);
|
325 |
+
}
|
326 |
+
|
327 |
+
public function register_links($links, $file)
|
328 |
+
{
|
329 |
+
$base = plugin_basename(__FILE__);
|
330 |
+
if ($file == $base) {
|
331 |
+
$links[] = '<a href="admin.php?page=ftg-lite-gallery-admin" title="Final Tiles Grid Gallery Dashboard">Dashboard</a>';
|
332 |
+
$links[] = '<a href="admin.php?page=support" title="Final Tiles Grid Gallery Support">Support</a>';
|
333 |
+
$links[] = '<a href="https://twitter.com/greentreelabs" title="@GreenTreeLabs on Twitter">Twitter</a>';
|
334 |
+
$links[] = '<a href="https://www.facebook.com/greentreelabs" title="GreenTreeLabs on Facebook">Facebook</a>';
|
335 |
+
$links[] = '<a href="https://www.google.com/+GreentreelabsNetjs" title="GreenTreeLabs on Google+">Google+</a>';
|
336 |
+
}
|
337 |
+
return $links;
|
338 |
|
339 |
+
}
|
340 |
|
341 |
public function create_db_tables()
|
342 |
{
|
343 |
+
include_once(WP_PLUGIN_DIR . '/final-tiles-grid-gallery-lite/lib/install-db.php');
|
344 |
+
install_db();
|
|
|
345 |
}
|
346 |
|
347 |
public function activation()
|
348 |
{
|
349 |
+
|
350 |
+
}
|
351 |
+
|
352 |
+
//Define textdomain
|
353 |
+
public function create_textdomain()
|
354 |
+
{
|