Skip to content

Commit c50465d

Browse files
committed
refactor: add helpful comment
1 parent ac56809 commit c50465d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/class-sqc-instagram-embed.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* display: block; margin: 0px 0px 12px; min-width: 326px; padding: 0px; position: static !important;"
1414
* src="{VIDEO_ID}/embed/?cr=1&v=14&wp=XXX" height="YYY" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" data-instgrm-payload-id="instagram-media-payload-0">
1515
* </iframe>
16+
*
17+
* NB if you copy the embed code from instagram, it's a big unwieldy <blockquote> with a <script> tag at the end that then resolves via js into an ifram similar to the above. For simplicity we are durectly creating the iframe instead of going the blockquote route, which works for now... it will not always have all the customizayion the js reslved version has (height is sometimes a bit off) so we could change it down the road.
1618
*/
1719

1820
class SQC_Instagram_Embed extends SQC_Embed {

0 commit comments

Comments
 (0)