blob: d44dad26debe4df379f934a390ea1dbd15770ab9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|
<?php
/**
* Module Name: Tiled Galleries
* Module Description: Display image galleries in a variety of elegant arrangements.
* First Introduced: 2.1
* Requires Connection: No
* Auto Activate: No
* Module Tags: Photos and Videos
* Feature: Appearance
* Sort Order: 24
* Additional Search Queries: gallery, tiles, tiled, grid, mosaic, images
*
* @package jetpack
*/
/**
* Include the tiled gallery for loading.
*/
function jetpack_load_tiled_gallery() {
include __DIR__ . '/tiled-gallery/tiled-gallery.php';
}
add_action( 'jetpack_modules_loaded', 'jetpack_tiled_gallery_loaded' );
/**
* Enable the tiled gallery module.
*/
function jetpack_tiled_gallery_loaded() {
Jetpack::enable_module_configurable( __FILE__ );
add_filter( 'jetpack_module_configuration_url_tiled-gallery', 'jetpack_tiled_gallery_configuration_url' );
}
/**
* Overrides default configuration url
*
* @uses admin_url
* @return string module settings URL
*/
function jetpack_tiled_gallery_configuration_url() {
return admin_url( 'options-media.php' );
}
jetpack_load_tiled_gallery();
|