Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_image_send_to_editor($html, $id, $alt, $title, $align, $url, $size, $desc ){
- $html = get_image_tag($id, $alt, $title, $align, $size);
- $image_attributes = wp_get_attachment_image_src( $id, 'full' );
- $rel = ' rel="lightbox[post] attachment wp-att-' . esc_attr($id).'"';
- if ( $url )
- $html = '<figure class="align'.esc_attr($align).'"><a href="'. $image_attributes[0] .'" title="'. esc_attr($alt) .'" '. $rel .'>' . $html . '<img class="rollover" src="/ins/wp-content/themes/roots/img/overlay.png" alt="overlay"></a><figcaption>'.esc_attr($desc).'</figcaption></figure>';
- return $html;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement