PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.41
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.41
3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 2.44 2.45 All 140 releases
photonic / photonic.php

photonic.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.41, at photonic.php

54 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others
4 * Plugin URI: https://aquoid.com/plugins/photonic/
5 * Description: Extends the native gallery to support Flickr, SmugMug, Google Photos, Zenfolio and Instagram. JS libraries like Swipebox, Fancybox, PhotoSwipe, Magnific, Colorbox, PrettyPhoto, Image Lightbox, Featherlight, Lightcase and Lightgallery are supported. Photos are displayed in grids of square or circular thumbnails, or slideshows, or justified or masonry or random mosaic layouts. The plugin also extends all layout options to a regular WP gallery.
6 * Version: 2.41
7 * Author: Sayontan Sinha
8 * Author URI: https://mynethome.net/
9 * License: GNU General Public License (GPL), v3 (or newer)
10 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11 * Text Domain: photonic
12 *
13 * Copyright (c) 2011 - 2020 Sayontan Sinha. All rights reserved.
14 *
15 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 */
18
19 use Photonic_Plugin\Core\Photonic;
20
21 if (!defined('PHOTONIC_VERSION')) {
22 define('PHOTONIC_VERSION', '2.41');
23 }
24
25 define('PHOTONIC_PATH', __DIR__);
26
27 if (!defined('PHOTONIC_URL')) {
28 define('PHOTONIC_URL', plugin_dir_url(__FILE__));
29 }
30
31 $upload_dir = wp_upload_dir();
32 if (!defined('PHOTONIC_UPLOAD_DIR')) {
33 define('PHOTONIC_UPLOAD_DIR', trailingslashit($upload_dir['basedir']).'photonic');
34 }
35
36 if (!defined('PHOTONIC_UPLOAD_URL')) {
37 define('PHOTONIC_UPLOAD_URL', trailingslashit($upload_dir['baseurl']).'photonic');
38 }
39
40 require_once(PHOTONIC_PATH.'/Core/Photonic.php');
41
42 add_action('admin_init', 'photonic_utilities_init'); // Delaying the start from 10 to 100 so that CPTs can be picked up
43 add_action('init', 'photonic_init', 0); // Delaying the start from 10 to 100 so that CPTs can be picked up
44
45 function photonic_init() {
46 global $photonic;
47 $photonic = new Photonic();
48 }
49
50 function photonic_utilities_init() {
51 require_once(PHOTONIC_PATH.'/Core/Utilities.php');
52 }
53
54