Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery().ready(function() {
- //handles the modal images
- tdModalImage();
- //move classes from post images to figure - td-post-image-full etc
- tdUtil.imageMoveClassToFigure( 'td-post-image-full' );
- tdUtil.imageMoveClassToFigure( 'td-post-image-right' );
- tdUtil.imageMoveClassToFigure( 'td-post-image-left' );
- /**
- * - add a general td-modal-image class to the all post images
- */
- if ( ( 'undefined' !== typeof window.tds_general_modal_image ) && ( '' !== window.tds_general_modal_image ) ) {
- jQuery( '.single .td-post-content a > img' ).filter(function( index, element ) {
- if ( -1 !== element.className.indexOf( 'wp-image' ) ) {
- jQuery( element ).parent().addClass( 'td-modal-image' );
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment