All-in-one amp-iframe
helper widget for Blogger themes with Accelerted Mobile Pages (AMP HTML) integrations.
Displays a collection of Blogger posts chronoligically, in random, by featured label, by related label.
Retrieve Disqus & Google+ comments assigned with Blogger post.
Retrieves & displays Instagram feed posts, followers & following count.
For HTTP & HTTPS Blogger blog or custom domain blogs.
Copyright (c) 2016 irsah
- No Feed proxy required.
- No data saved, passed or kept.
- HTTP & HTTPS Blogger blogs supported.
- Custom domain/sub-domain Blogger blogs supported.
- Feed data served by Yahoo! CDN
Fast, Quick & Reliable
. - Customizable fonts display, layout & callback options.
- AMP valid, search indexed & auto content re-size with
amp-iframe
fallback.
- Setup & display Disqus comments on Blogger blog posts.
- Setup & display Google+ comments on Blogger blog posts.
- Displays a collection of Blogger blog posts in chronological order.
- Displays a collection of Blogger blog posts in random order.
- Displays a collection of Blogger blog posts by related Label in chronological order.
- Displays a collection of Blogger blog posts by related Label in random order.
- Displays Blogger blog post contents by URL in text or text/html.
- Retrieve & display Instagram feed posts, followers, following count.
- Blogr-AMP Blogger Theme - AMP HTML enabled & valid Blogger blog with Blogr-AMP template framework (No post edits required!).
- ampaction(js) Live Preview - Widget working & live preview.
Required
Blogger template/theme AMP HTML ready with amp-iframe component js installed.- Copy
amp-iframe
example (below) in Blogger Template HTML. - Update
expr:src
value to RawGIT CDN URL pointing to this Repo. - Setup query values.
- Update
amp-iframe
width & height values. - Save Template HTML & Preview changes.
amp-iframe
sends data to HTTPS served Blogr-AMP's ampactions-js file.amp-iframe
URL search quiries pass data to enable/setup widget settings.- IF
?ampactions=feed
- Widget requests Blogger blog feed data from Yahoo! (via YQL), process jSON feed data received & display in text or HTML. - IF
?ampactions=disqus
- Disqus comments embed js initiates withdisqus_shortname
values assigned to render comment form & comment forum thread. - IF
?ampactions=googleplus
- Displays Google+ comments with unique identifier. - (NEW) IF
?ampactions=instagram
- Displays Instagram feed - posts, followers, following count.
<amp-iframe
expr:src='https://path-to-file.html
?ampactions=disqus
&shortname=[disqus_shortname]
&fontstyle=normal
&fontweight=normal
&fontsize=16
&fontlineheight=1.428
&fontfamily=Arial
&canonicalurl=" + data:blog.canonicalUrl + "
&url=" + data:blog.url + "
&homepageurl=" + data:blog.homepageUrl + "
&canonicalhomepageurl=" + data:blog.canonicalHomepageUrl'
frameborder='0'
height='450'
layout='responsive'
resizable='resizable'
sandbox='allow-forms allow-scripts allow-same-origin allow-modals allow-popups'
width='600'>
<div aria-label='ampaction(js) Feed' overflow='overflow' placeholder='placeholder' role='button' tabindex='0'>
Load More...
</div>
</amp-iframe>
Not available...
<amp-iframe
expr:src='https://path-to-file.html
?ampactions=feed
&feedsummary=160
&feedlimit=100
&feedresults=5
&feedimage=420
&feedlimit=100
&fontstyle=normal
&fontweight=normal
&fontsize=16
&fontlineheight=1.428
&fontfamily=Arial
&canonicalurl=" + data:blog.canonicalUrl +"
&canonicalhomepageurl=" + data:blog.canonicalhomepageUrl + "
frameborder='0'
height='450'
layout='responsive'
resizable='resizable'
sandbox='allow-forms allow-scripts allow-same-origin allow-modals allow-popups'
width='600'>
<div aria-label='ampaction(js) Feed' overflow='overflow' placeholder='placeholder' role='button' tabindex='0'>
Load More...
</div>
</amp-iframe>
<amp-iframe
expr:src='https://path-to-file.html
?ampactions=feed
&feedrelated=true
&feedrelatedlabel=[A BLOG POST LABEL]
&feedsummary=160
&feedlimit=100
&feedresults=5
&feedimage=420
&feedlimit=100
&fontstyle=normal
&fontweight=normal
&fontsize=16
&fontlineheight=1.428
&fontfamily=Arial
&canonicalurl=" + data:blog.canonicalUrl + "
&canonicalhomepageurl=" + data:blog.canonicalhomepageUrl + "
frameborder='0'
height='450'
layout='responsive'
resizable='resizable'
sandbox='allow-forms allow-scripts allow-same-origin allow-modals allow-popups'
width='600'>
<div aria-label='ampaction(js) Feed' overflow='overflow' placeholder='placeholder' role='button' tabindex='0'>
Load More...
</div>
</amp-iframe>
<amp-iframe
expr:src='https://path-to-file.html
?ampactions=feed
&feedcontenttype=text
&feedsummary=160
&fontstyle=normal
&fontweight=normal
&fontsize=16
&fontlineheight=1.428
&fontfamily=Arial
&canonicalurl=" + data:blog.canonicalUrl + "
&canonicalhomepageurl=" + data:blog.canonicalhomepageUrl + "
frameborder='0'
height='450'
layout='responsive'
resizable='resizable'
sandbox='allow-forms allow-scripts allow-same-origin allow-modals allow-popups'
width='600'>
<div aria-label='ampaction(js) Feed' overflow='overflow' placeholder='placeholder' role='button' tabindex='0'>
Load More...
</div>
</amp-iframe>
<amp-iframe
src='https://path-to-file.html
?ampactions=instagram
&get=user
&userid=[user instagram id]
&clientid=[user instagram client id]
&accesstoken=[user instagram access token]
&sortby=random
&limit=6
&resolution=thumbnail
&comments=true
&likes=true
&headercolor=%23333333
&headerbg=%23ffffff
&feedbg=%23000000
&feedbgopacity=.45
&feedbgcolor=%23000000
&feedcolor=%23ffffff
&posts=Posts
&follower=Followers
&following=Following
&breakpoint=428
&columns=3
&columnsmobile=2
&fontstyle=normal
&fontweight=bold
&fontsize=15
&fontlineheight=1.428
&fontfamily=Arial
&fontcolor=333333
&fontlinkcolor=0066cc'
frameborder='0'
width='600'
height='250'
layout='responsive'
resizable='resizable'
sandbox='allow-forms allow-scripts allow-same-origin allow-modals allow-popups'>
<div aria-label='ampaction(js) Feed' overflow='overflow' placeholder='placeholder' role='button' tabindex='0'>
Load More...
</div>
</amp-iframe>