Skip to content

Instantly share code, notes, and snippets.

@n7studios
Created September 22, 2014 09:57
Show Gist options
  • Save n7studios/286df565f7812b90e3fe to your computer and use it in GitHub Desktop.
Save n7studios/286df565f7812b90e3fe to your computer and use it in GitHub Desktop.
Envira - Append to Lightbox
<?php
/**
* Plugin Name: Envira Hooks
* Plugin URI: http://enviragallery.com
* Description: Testing ground for hooks and filters
* Author: Tim Carr
* Author URI: http://thomasgriffinmedia.com
* Version: 1.0.0
* Text Domain: envira-hooks
* Domain Path: languages
*/
add_action('envira_gallery_api_after_show', 'envira_hook');
function envira_hook($data) {
?>
$('img.envirabox-image').after('<div class="ad" style="position:absolute;top:0;left:0;background:#fff;">Advert Here</div>');
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment