kollapsminoriteten/wp-content/plugins/jetpack/modules/tiled-gallery.php

48 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2019-11-15 23:26:29 +01:00
<?php
/**
* Module Name: Tiled Galleries
2025-07-27 19:58:08 +02:00
* Module Description: Create visually engaging tiled image galleries with multiple layout options.
2019-11-15 23:26:29 +01:00
* 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
2022-06-16 14:01:47 +02:00
*
* @package jetpack
2019-11-15 23:26:29 +01:00
*/
2025-08-27 08:44:30 +02:00
if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}
2022-06-16 14:01:47 +02:00
/**
* Include the tiled gallery for loading.
*/
2019-11-15 23:26:29 +01:00
function jetpack_load_tiled_gallery() {
2022-06-16 14:01:47 +02:00
include __DIR__ . '/tiled-gallery/tiled-gallery.php';
2019-11-15 23:26:29 +01:00
}
add_action( 'jetpack_modules_loaded', 'jetpack_tiled_gallery_loaded' );
2022-06-16 14:01:47 +02:00
/**
* Enable the tiled gallery module.
*/
2019-11-15 23:26:29 +01:00
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();