Changeset 1369073
- Timestamp:
- 03/11/2016 10:17:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wui-lightbox/tags/1.0/includes/wui_lightbox_functions.php
r1369040 r1369073 7 7 <?php 8 8 if(get_option('wui_lbs_show') == 'all'){ ?> 9 $('a').each(function( index ) { 10 if( $(this).children() && $(this).children().prop("tagName") == 'IMG'){9 $('a').each(function( index ) { 10 if(/\.(?:jpg|jpeg|gif|png)$/i.test($(this).attr('href'))){ 11 11 $(this).attr( "data-uk-lightbox" , "" ); 12 12 } … … 15 15 if(get_option('wui_lbs_show') == 'class'){ ?> 16 16 $('a.wui_lightbox').each(function( index ) { 17 $(this).attr( "data-uk-lightbox" , "" ); 17 if(/\.(?:jpg|jpeg|gif|png)$/i.test($(this).attr('href'))){ 18 $(this).attr( "data-uk-lightbox" , "" ); 19 } 18 20 }); 19 <?php } 21 <?php } 20 22 if( get_option('wui_lbs_gallery') == 'true' ){ ?> 21 23 $('ul').each(function( index ) {
Note: See TracChangeset
for help on using the changeset viewer.