Skip to content

Commit

Permalink
accepting coinbase tips
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Berther committed Jan 27, 2015
1 parent 78b7b8b commit 918fdfd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ owner:
flickr: #username
tumblr: #username
keybase: mattberther
coinbase: 532cbd18021e4499530001d2
google:
plus: MattBerther
analytics: UA-44086841-1
Expand Down
1 change: 1 addition & 0 deletions _includes/coinbase-tips.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="cb-tip-button" data-content-location="" data-href="//www.coinbase.com/tip_buttons/show_tip" data-to-user-id="{{ site.owner.coinbase }}"></div>
12 changes: 8 additions & 4 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
});

(function( $, window, undefined ) {

var bs = {
close: $(".close-btn"),
searchform: $(".search-form"),
canvas: $(".js-menu-screen"),
dothis: $('.dosearch')
};

bs.dothis.on('click', function() {
$('.search-wrapper').css({ display: "block" });
$('body').toggleClass('no-scroll');
bs.searchform.toggleClass('active');
bs.searchform.find('input').focus();
bs.canvas.toggleClass('is-visible');
});

bs.close.on('click', function() {
$('.search-wrapper').removeAttr( 'style' );
$('body').toggleClass('no-scroll');
Expand All @@ -44,7 +44,7 @@
<!-- Asynchronous Google Analytics snippet -->
<script>
var _gaq = _gaq || [];
var pluginUrl =
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']);
Expand All @@ -61,3 +61,7 @@
{% if page.comments or site.comments %}
{% include disqus_comments.html %}
{% endif %}

{% if site.owner.coinbase %}
<script>!function(d,s,id) {var js,cjs=d.getElementsByTagName(s)[0],e=d.getElementById(id);if(e){return;}js=d.createElement(s);js.id=id;js.src="https://www.coinbase.com/assets/tips.js";cjs.parentNode.insertBefore(js,cjs);}(document, 'script', 'coinbase-tips');</script>
{% endif %}
5 changes: 5 additions & 0 deletions _includes/social-share.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
<span class="social-share-googleplus">
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" title="Share on Google Plus" itemprop="GooglePlus"><i class="fa fa-google-plus-square"></i> +1</a>
</span>
{% if site.owner.coinbase %}
<span style='height: 41px'>
{% include coinbase-tips.html %}
</span>
{% endif %}
<!-- /.social-share -->
9 changes: 7 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ <h1 class="entry-title">{% if page.headline %}{{ page.headline }}{% else %}{{ pa
<span class="entry-date date published"><time datetime="{{ page.date | date_to_xmlschema }}"><i class="fa fa-calendar-o"></i> {{ page.date | date: "%B %d, %Y" }}</time></span>
{% if page.modified %}<span class="entry-date date modified"><time datetime="{{ page.modified }}"><i class="fa fa-pencil"></i> {{ page.modified | date: "%B %d, %Y" }}</time></span>{% endif %}
{% if (site.owner.disqus-shortname and page.comments) or site.comments %}<span class="entry-comments"><i class="fa fa-comment-o"></i> <a href="#disqus_thread">Comment</a></span>{% endif %}
{% if page.share %}{% include social-share.html %}{% endif %}
{% include social-share.html %}
{% if page.ads == true %}{% include ad-sidebar.html %}<!-- /.google-ads -->{% endif %}
</footer>
<div class="entry-content">
{{ content }}

{% if site.owner.coinbase %}
{% include coinbase-tips.html %}
{% endif %}

{% if (site.owner.disqus-shortname and page.comments) or site.comments %}<div id="disqus_thread"></div><!-- /#disqus_thread -->{% endif %}
</div><!-- /.entry-content -->
</div><!-- /.entry-wrapper -->
Expand All @@ -61,7 +66,7 @@ <h1 class="entry-title">{% if page.headline %}{{ page.headline }}{% else %}{{ pa
</footer>
</div><!-- /.footer-wrapper -->

{% include scripts.html %}
{% include scripts.html %}

</body>
</html>

0 comments on commit 918fdfd

Please sign in to comment.