SHARE
TWEET

Untitled

a guest Oct 15th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ```
  2. /* -------------------------------------------------------------------------------------
  3.   Add "Get a Quote" to gallery images
  4.   ----------------------------------------------------------------------------------- */
  5. function filter_gallery_captions($image) {
  6.     $image['caption'] .= '<a class="btn btn-default btn-gallery-quote" href="/building-quote/?item='.urlencode($image['src']).'&title='.urlencode($image['title']).'"><span class="hidden-xs">Get a Quote to Build This</span><span class="visible-xs">Quote Me This</span></a>';
  7.     return $image;
  8. }
  9. add_filter( 'envira_albums_gallery_lightbox_image', 'filter_gallery_captions');
  10. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top