Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 3
CRAP
n/a
0 / 0
jetpack_load_tiled_gallery
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
jetpack_tiled_gallery_loaded
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
jetpack_tiled_gallery_configuration_url
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
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
16if ( ! defined( 'ABSPATH' ) ) {
17    exit( 0 );
18}
19
20/**
21 * Include the tiled gallery for loading.
22 */
23function jetpack_load_tiled_gallery() {
24    include __DIR__ . '/tiled-gallery/tiled-gallery.php';
25}
26
27add_action( 'jetpack_modules_loaded', 'jetpack_tiled_gallery_loaded' );
28
29/**
30 * Enable the tiled gallery module.
31 */
32function 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 */
43function jetpack_tiled_gallery_configuration_url() {
44    return admin_url( 'options-media.php' );
45}
46
47jetpack_load_tiled_gallery();