From: Kevin Ball Date: Fri, 29 Jul 2016 18:25:30 +0000 (-0700) Subject: Beginnings of ad unit for courses X-Git-Tag: v6.2.4-rc1~32^2~15^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caecca9189503c96348da32ea9045eaf2f035bcb;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Beginnings of ad unit for courses --- diff --git a/docs/assets/js/docs.ad.js b/docs/assets/js/docs.ad.js new file mode 100644 index 000000000..098d8afb2 --- /dev/null +++ b/docs/assets/js/docs.ad.js @@ -0,0 +1,15 @@ +$(function() { + // TODO: Add alternate between advanced and intro + var topic = $('h1.docs-page-title').text(); + var header = 'Struggling with ' + topic + '?'; + var body = 'Get up to speed FAST, learn straight from the experts who built Foundation.'; + var link = 'http://zurb.com/university/foundation-intro?utm_source=Foundation%20Docs&utm_medium=Docs&utm_content=Struggling&utm_campaign=Docs%20To%20Intro'; + var cta = 'Learn More'; + + var html = '
' + header + '
' + + '

' + body + '

' + + '

' + + cta + '

'; + $('#TOCAdUnit').html(html); + +}); diff --git a/docs/partials/toc-template.hbs b/docs/partials/toc-template.hbs new file mode 100644 index 000000000..6731b4f36 --- /dev/null +++ b/docs/partials/toc-template.hbs @@ -0,0 +1,3 @@ +

{{ad_header}}

+

{{ad_body}}

+

{{ad_cta}}