Created
August 29, 2014 04:51
-
-
Save samelliott89/599a83fd401a61ba78d5 to your computer and use it in GitHub Desktop.
This file contains 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
{{ -- Start Unico Theme Settings -- }} | |
{{ HOMEPAGE INSTAGRAM SETTINGS }} | |
{{ Do you want to show the Instagram homepage block? }} | |
{% assign: show-instagram-homepage-block = 'Yes' %} | |
{{ Enter your Instagram User ID (more info: http://jelled.com/instagram/lookup-user-id#) }} | |
{% assign: instagram-homepage-user-id = '638527476' %} | |
{{ Enter your Instagram Access Token (more info: http://jelled.com/instagram/access-token) }} | |
{% assign: instagram-homepage-access-token = '638527476.df222ee.6a095f1ac6a3439aa7ff7a4bd3992d67' %} | |
{{ HOMEPAGE MAILCHIMP SETTINGS }} | |
{{ Do you want to show the Newsletter homepage block? }} | |
{% assign: show-mailchimp-homepage-block = 'Yes' %} | |
{{ What do you want the headering text to be? }} | |
{% assign: mailchimp-header = 'Mailing List' %} | |
{{ Enter your MailChimp URL }} | |
{% assign: mailchimp-url = '//us2.list-manage.com/subscribe/post?u=99999999999999&id=9999999999999' %} | |
{{ -- End Unico Theme Settings -- }} | |
{% assign instaimage = '{{instaimage}}' %} | |
{% assign instaurl = 'http://instagram.com/daisysgirl_' %} | |
{% if show-instagram-homepage-block == 'Yes' %} | |
<script type="text/javascript"> | |
var userFeed = new Instafeed({ | |
get: 'user', | |
userId: {{ instagram-homepage-user-id }}, | |
accessToken: '{{ instagram-homepage-access-token }}', | |
template: '<div class="col-md-3"><a href="{{instaurl}}"><img src="{{instaimage}}" class="img-responsive"/></a></div>', | |
limit: 4, | |
resolution: 'standard_resolution' | |
}); | |
userFeed.run(); | |
</script> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment