PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 All 502 releases
jetpack / modules / tiled-gallery.php

tiled-gallery.php in Jetpack – WP Security, Backup, Speed, & Growth 16.2, at modules/tiled-gallery.php

48 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module Name: Tiled Galleries
4 * Module Description: Create visually engaging tiled image galleries with multiple layout options.
5 * First Introduced: 2.1
6 * Requires Connection: No
7 * Auto Activate: No
8 * Module Tags: Photos and Videos
9 * Feature: Appearance
10 * Sort Order: 24
11 * Additional Search Queries: gallery, tiles, tiled, grid, mosaic, images
12 *
13 * @package jetpack
14 */
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit( 0 );
18 }
19
20 /**
21 * Include the tiled gallery for loading.
22 */
23 function jetpack_load_tiled_gallery() {
24 include __DIR__ . '/tiled-gallery/tiled-gallery.php';
25 }
26
27 add_action( 'jetpack_modules_loaded', 'jetpack_tiled_gallery_loaded' );
28
29 /**
30 * Enable the tiled gallery module.
31 */
32 function jetpack_tiled_gallery_loaded() {
33 Jetpack::enable_module_configurable( __FILE__ );
34 add_filter( 'jetpack_module_configuration_url_tiled-gallery', 'jetpack_tiled_gallery_configuration_url' );
35 }
36
37 /**
38 * Overrides default configuration url
39 *
40 * @uses admin_url
41 * @return string module settings URL
42 */
43 function jetpack_tiled_gallery_configuration_url() {
44 return admin_url( 'options-media.php' );
45 }
46
47 jetpack_load_tiled_gallery();
48