Created
September 22, 2014 09:57
-
-
Save n7studios/286df565f7812b90e3fe to your computer and use it in GitHub Desktop.
Envira - Append to Lightbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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