diff options
author | Jade Dominguez <plusjade@gmail.com> | 2012-01-20 23:19:17 -0800 |
---|---|---|
committer | Jade Dominguez <plusjade@gmail.com> | 2012-01-20 23:19:17 -0800 |
commit | 7a0b1ed6897c21181b94743ca88af6332c74315e (patch) | |
tree | 369e05f66af1a1ade8b39fa752415d32044c7af6 /_includes | |
parent | 241a51205393082f4350bcf63fc5b8b96da26b2b (diff) |
Add new Integration points for themes
The new system will try to namespace all framework integrations with 'JB'. Integration points added in this comment are 'analytics', 'comments', and 'sharing'.
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/JB/analytics | 12 | ||||
-rw-r--r-- | _includes/JB/analytics-engines/getclicky.html | 12 | ||||
-rw-r--r-- | _includes/JB/analytics-engines/google.html | 11 | ||||
-rw-r--r-- | _includes/JB/comments | 16 | ||||
-rw-r--r-- | _includes/JB/comments-engines/disqus.html | 13 | ||||
-rw-r--r-- | _includes/JB/comments-engines/facebook.html | 1 | ||||
-rw-r--r-- | _includes/JB/comments-engines/intensedebate.html | 6 | ||||
-rw-r--r-- | _includes/JB/comments-engines/livfyre.html | 6 | ||||
-rw-r--r-- | _includes/JB/sharing | 8 |
9 files changed, 85 insertions, 0 deletions
diff --git a/_includes/JB/analytics b/_includes/JB/analytics new file mode 100644 index 0000000..201eeb3 --- /dev/null +++ b/_includes/JB/analytics @@ -0,0 +1,12 @@ +{% if site.safe and site.JB.analytics.engine and page.JB.analytics != false %} + +{% case site.JB.analytics.engine %} +{% when "google" %} + {% include JB/analytics-engines/google.html %} +{% when "getclicky" %} + {% include JB/analytics-engines/getclicky.html %} +{% when "custom" %} + {% include custom/analytics.html %} +{% endcase %} + +{% endif %}
\ No newline at end of file diff --git a/_includes/JB/analytics-engines/getclicky.html b/_includes/JB/analytics-engines/getclicky.html new file mode 100644 index 0000000..a9a5fd9 --- /dev/null +++ b/_includes/JB/analytics-engines/getclicky.html @@ -0,0 +1,12 @@ +<script type="text/javascript"> +var clicky_site_ids = clicky_site_ids || []; +clicky_site_ids.push({{ site.JB.analytics.getclicky.site_id }}); +(function() { + var s = document.createElement('script'); + s.type = 'text/javascript'; + s.async = true; + s.src = '//static.getclicky.com/js'; + ( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s ); +})(); +</script> +<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/66527741ns.gif" /></p></noscript>
\ No newline at end of file diff --git a/_includes/JB/analytics-engines/google.html b/_includes/JB/analytics-engines/google.html new file mode 100644 index 0000000..9014866 --- /dev/null +++ b/_includes/JB/analytics-engines/google.html @@ -0,0 +1,11 @@ +<script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '{{ site.JB.analytics.google.tracking_id }}']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); +</script>
\ No newline at end of file diff --git a/_includes/JB/comments b/_includes/JB/comments new file mode 100644 index 0000000..088f5b2 --- /dev/null +++ b/_includes/JB/comments @@ -0,0 +1,16 @@ +{% if site.JB.comments.engine and page.JB.comments != false %} + +{% case site.JB.comments.engine %} +{% when "disqus" %} + {% include JB/comments-engines/disqus.html %} +{% when "livefyre" %} + {% include JB/comments-engines/livefyre.html %} +{% when "intensedebate" %} + {% include JB/comments-engines/intensedebate.html %} +{% when "facebook" %} + {% include JB/comments-engines/facebook.html %} +{% when "custom" %} + {% include custom/comments.html %} +{% endcase %} + +{% endif %}
\ No newline at end of file diff --git a/_includes/JB/comments-engines/disqus.html b/_includes/JB/comments-engines/disqus.html new file mode 100644 index 0000000..f6dd3a9 --- /dev/null +++ b/_includes/JB/comments-engines/disqus.html @@ -0,0 +1,13 @@ +<div id="disqus_thread"></div> +<script type="text/javascript"> + {% if site.safe == false %}var disqus_developer = 1;{% endif %} + var disqus_shortname = '{{ site.JB.comments.disqus.short_name }}'; // required: replace example with your forum shortname + /* * * DON'T EDIT BELOW THIS LINE * * */ + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); +</script> +<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> +<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a> diff --git a/_includes/JB/comments-engines/facebook.html b/_includes/JB/comments-engines/facebook.html new file mode 100644 index 0000000..f8c7d21 --- /dev/null +++ b/_includes/JB/comments-engines/facebook.html @@ -0,0 +1 @@ +<h3>Facebook comments TODO!</h3>
\ No newline at end of file diff --git a/_includes/JB/comments-engines/intensedebate.html b/_includes/JB/comments-engines/intensedebate.html new file mode 100644 index 0000000..ab0c3c9 --- /dev/null +++ b/_includes/JB/comments-engines/intensedebate.html @@ -0,0 +1,6 @@ +<script> +var idcomments_acct = '{{ site.JB.comments.intensedebate.account }}'; +var idcomments_post_id; +var idcomments_post_url; +</script> +<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script> diff --git a/_includes/JB/comments-engines/livfyre.html b/_includes/JB/comments-engines/livfyre.html new file mode 100644 index 0000000..704b803 --- /dev/null +++ b/_includes/JB/comments-engines/livfyre.html @@ -0,0 +1,6 @@ +<script type='text/javascript' src='http://zor.livefyre.com/wjs/v1.0/javascripts/livefyre_init.js'></script> +<script type='text/javascript'> + var fyre = LF({ + site_id: {{ site.JB.comments.livefyre.site_id }} + }); +</script>
\ No newline at end of file diff --git a/_includes/JB/sharing b/_includes/JB/sharing new file mode 100644 index 0000000..3dbceca --- /dev/null +++ b/_includes/JB/sharing @@ -0,0 +1,8 @@ +{% if site.safe and site.JB.sharing.engine and page.JB.sharing != false %} + +{% case site.JB.sharing.engine %} +{% when "custom" %} + {% include custom/sharing.html %} +{% endcase %} + +{% endif %}
\ No newline at end of file |