/modules/tiled-gallery.php

  1. <?php 
  2.  
  3. /** 
  4. * Module Name: Tiled Galleries 
  5. * Module Description: Display your image galleries in a variety of sleek, graphic arrangements. 
  6. * First Introduced: 2.1 
  7. * Requires Connection: No 
  8. * Auto Activate: No 
  9. * Module Tags: Photos and Videos 
  10. * Sort Order: 24 
  11. * Additional Search Queries: gallery, tiles, tiled, grid, mosaic, images 
  12. */ 
  13.  
  14. function jetpack_load_tiled_gallery() { 
  15. include dirname( __FILE__ ) . "/tiled-gallery/tiled-gallery.php"; 
  16.  
  17. add_action( 'jetpack_modules_loaded', 'jetpack_tiled_gallery_loaded' ); 
  18.  
  19. function jetpack_tiled_gallery_loaded() { 
  20. Jetpack::enable_module_configurable( __FILE__ ); 
  21. Jetpack::module_configuration_load( __FILE__, 'jetpack_tiled_gallery_configuration_load' ); 
  22.  
  23. function jetpack_tiled_gallery_configuration_load() { 
  24. wp_safe_redirect( admin_url( 'options-media.php' ) ); 
  25. exit; 
  26.  
  27. jetpack_load_tiled_gallery(); 
.