1(function ($) { 2 3 $(function () { 4 $( ".ph-wp-image-credit" ).each( function() { 5 6 var imageID = $(this).data("rel"); 7 var imageCredits = $(this).text(); 8 9 // With Caption 10 11 if ( $(".wp-caption .wp-image-" + imageID ).length === 1 ) { 12 $( "#attachment_" + imageID + " > .wp-caption-text").append( $(this) ); 13 } else { 14 15 // get image align 16 17 var imageCreditText = "<figcaption class='wp-caption-text '>" + $(this) + "</figcaption>"; 18 19 $(".wp-image-" + imageID ).wrap( "<figure class='wp-caption' id='attachment_" + imageID + "'></figure>" ); 20 $("#attachment_" + imageID ).append("<figcaption class='wp-caption-text '></figcaption>"); 21 $("#attachment_" + imageID + " .wp-caption-text").append( $(this) ); 22 23 // move wp-image class -> add caption 24 if ( $(".wp-image-" + imageID + ".alignleft").length === 1 ) { 25 $( "#attachment_" + imageID ).addClass("alignleft"); 26 $(".wp-image-" + imageID ).removeClass("alignleft"); 27 } 28 29 if ( $(".wp-image-" + imageID + ".alignright").length === 1 ) { 30 $( "#attachment_" + imageID ).addClass("alignright"); 31 $(".wp-image-" + imageID ).removeClass("alignright"); 32 } 33 34 if ( $(".wp-image-" + imageID + ".alignnone").length === 1 ) { 35 $( "#attachment_" + imageID ).addClass("alignnone"); 36 $(".wp-image-" + imageID ).removeClass("alignnone"); 37 } 38 39 if ( $(".wp-image-" + imageID + ".aligncenter").length === 1 ) { 40 $( "#attachment_" + imageID ).addClass("aligncenter"); 41 $(".wp-image-" + imageID ).removeClass("aligncenter"); 42 } 43 } 44 }); 45 }); 46 47}(jQuery));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.