Created
March 7, 2016 12:20
-
-
Save MjHead/986e2c475dad18f88dc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function get_image( $photo ) { | |
$width = 100; | |
$height = 100; | |
$photo['image'] = str_replace( 's150x150', 's100x100', $photo['image'] ); | |
return sprintf( '<a class="instagram__link" href="%s" target="_blank" rel="nofollow"><img class="instagram__img" src="%s" alt="" width="%s" height="%s"><span class="instagram__cover"></span></a>', esc_url( $photo['link'] ), esc_url( $photo['image'] ), $width, $height ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment