Changeset 10434
- Timestamp:
- 11/10/2020 12:44:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-testimonials.php
r10000 r10434 65 65 66 66 embed_holder_masonry = embed_holder_jq.masonry({ 67 itemSelector: ' iframe, twitter-widget',67 itemSelector: '', 68 68 columnWidth: 372, 69 69 gutter: 10, … … 79 79 conversation: 'none', 80 80 cards: 'hidden', 81 81 82 margin: 0, 82 83 width: 372 … … 88 89 89 90 embeds.wpembeds.forEach( function( wpembed ) { 90 var iframe = jQuery( '<iframe security="restricted" src="' + wpembed + '" width="372" height="500" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe>' );91 var >' ); 91 92 92 iframe.on( 'load', function() { 93 // Extra margin top/bottom to match Twitter embeds (that have set a 0 margin) 94 embed.css( 'margin', '10px 0' ); 95 96 embed.on( 'load', function() { 93 97 embed_holder_masonry.masonry('reloadItems').masonry(); 94 98 }); 95 99 96 embed_holder_jq.append( iframe);100 embed_holder_jq.append( ); 97 101 }); 98 102 … … 144 148 </div> 145 149 <div class="row"> 146 <div class=" col-10">150 <div class="col-10"> 147 151 <div id="embeds"></div> 148 152 </div>
Note: See TracChangeset
for help on using the changeset viewer.