Skip to content

Commit 4f21213

Browse files
committed
Add ads by carbon
1 parent c0ba05f commit 4f21213

22 files changed

+197
-164
lines changed

_includes/adsnippet.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=octoprintorg" id="_carbonads_js"></script>

_includes/adsnippet_desktop.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
if (!window.matchMedia("(max-width: 767px)").matches) {
3+
(function() {
4+
var po = document.createElement("script");
5+
po.type = "text/javascript";
6+
po.async = true;
7+
po.src = "//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=octoprintorg";
8+
po.id = "_carbonads_js";
9+
var s = document.currentScript;
10+
s.parentNode.insertBefore(po, s);
11+
})();
12+
}
13+
</script>

_includes/adsnippet_mobile.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script>
2+
if (window.matchMedia("(max-width: 767px)").matches) {
3+
(function() {
4+
var po = document.createElement("script");
5+
po.type = "text/javascript";
6+
po.async = true;
7+
po.src = "//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=octoprintorg";
8+
po.id = "_carbonads_js";
9+
var s = document.currentScript;
10+
s.parentNode.insertBefore(po, s);
11+
})();
12+
}
13+
</script>

_includes/footer.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ <h2>Contact</h2>
1010
<li><i class="icon-facebook-sign"></i> Facebook Page: <a href="https://facebook.com/OctoPrint" target="_blank">OctoPrint</a></li>
1111
<li><i class="icon-twitter"></i> Twitter: <a href="https://twitter.com/OctoPrint3D" target="_blank">@OctoPrint3D</a></li>
1212
<li><i class="icon-comments-alt"></i> IRC: <a href="irc://chat.freenode.net/octoprint" target="_blank">#octoprint on freenode</a></li>
13+
<li><i class="icon-legal"></i> <a href="http://octoprint.org/imprint/">Impressum / Imprint</a></li>
1314
</ul>
1415
</div>
1516
<div class="span4">
1617
<h2>Recently Added</h2>
1718
<ul>
1819
{% assign sorted_plugins = (site.plugins | sort: 'date' | reverse ) %}
1920
{% for plugin in sorted_plugins limit: 5 %}
20-
<li><a class="post-link" href="{{ plugin.url | prepend: site.baseurl }}">{{ plugin.title }}</a> ({% include plugin_date date=plugin.date %})</li>
21+
<li>
22+
<a class="post-link" href="{{ plugin.url | prepend: site.baseurl }}">{{ plugin.title }}</a>
23+
</li>
2124
{% endfor %}
2225
</ul>
2326
</div>
@@ -27,7 +30,7 @@ <h2>Recently Added</h2>
2730
</div>
2831
<div class="row">
2932
<div class="span12 text-center legal">
30-
<small>"OctoPrint" is a <a href="http://octoprint.org/trademark-rules/">registered trademark</a> &middot; <a href="http://octoprint.org/imprint/">Impressum / Imprint</a></small>
33+
<small>"OctoPrint" is a <a href="http://octoprint.org/trademark-rules/">registered trademark</a></small>
3134
</div>
3235
</div>
3336
</div>

_includes/plugin_snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% assign plugin = include.plugin %}
2-
<h3><a class="post-link" href="{{ plugin.url | prepend: site.baseurl }}">{{ plugin.title }}</a> {% if plugin.date %}<small>{% include plugin_date date=plugin.date %}</small>{% endif %}</h3>
2+
<h3><a class="post-link" href="{{ plugin.url | prepend: site.baseurl }}">{{ plugin.title }}</a> {% if plugin.date %}<small class="post-date">{% include plugin_date date=plugin.date %}</small>{% endif %}</h3>
33
<p>
44
{{ plugin.description }}
55
</p>

_layouts/default.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,26 @@
6363

6464
<script src="/assets/js/jquery-1.9.1.min.js"></script>
6565
<script src="/assets/js/underscore.min.js"></script>
66+
67+
<link rel="stylesheet" type="text/css" href="/assets/css/cookieconsent.min.css" />
68+
<script src="/assets/js/cookieconsent.min.js"></script>
69+
<script>
70+
window.addEventListener("load", function(){
71+
window.cookieconsent.initialise({
72+
"position": "bottom",
73+
"theme": "edgeless",
74+
"palette": {
75+
"popup": {
76+
"background": "#000000",
77+
"link": "#10a800"
78+
},
79+
"button": {
80+
"background": "#0b7500"
81+
}
82+
}
83+
})
84+
});
85+
</script>
6686
</head>
6787

6888
<body>

_layouts/plugin.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ <h2>Pictures</h2>
6262
</article>
6363

6464
<div class="span4">
65+
<dl class="adbox">
66+
<dd class="ad">
67+
{% include adsnippet.html %}
68+
</dd>
69+
</dl>
6570
{% if page.archive %}
6671
<dl class="installation">
6772
<dt>Installation <a href="/help/installation/" class="icon-question-sign"></a></dt>

_layouts/plugin_list.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: page
3+
---
4+
5+
<div class="plugin-list row-liquid">
6+
<div class="span8">
7+
{{ content }}
8+
</div>
9+
<div class="span4">
10+
<h2><i class="icon-search"></i> Search</h2>
11+
12+
{% include search.html %}
13+
14+
<h2><i class="icon-lightbulb"></i> Help</h2>
15+
16+
<p>
17+
You are a user of OctoPrint and want to to know <strong>how to install</strong> any of the plugins listed here? <a href="{{ '/help/installation/' | prepend: site.baseurl }}">Take a look at this guide</a>.
18+
</p>
19+
<p>
20+
You are a plugin author and want to <strong>register your new plugin</strong> to be listed here? <a href="{{ '/help/registering/' | prepend: site.baseurl }}">Take a look at this guide</a>.
21+
</p>
22+
<p>
23+
You are interested in <strong>writing your own plugin</strong> and don't know how to start? <a href="http://docs.octoprint.org/en/master/plugins/gettingstarted.html">Take a look at the plugin tutorial</a>.
24+
</p>
25+
<p>
26+
<strong>Something is wrong with this repository?</strong> If something appears to be broken, please <a href="https://github.com/OctoPrint/plugins.octoprint.org/issues">report it</a> or <a href="https://github.com/OctoPrint/plugins.octoprint.org/pulls">send a PR to fix it =)</a>. Thanks!
27+
</p>
28+
29+
<h2><i class="icon-bar-chart"></i> Stats</h2>
30+
31+
There are currently {{ site.plugins | size }} plugins listed in this repository.
32+
33+
<div class="ad">
34+
{% include adsnippet_desktop.html %}
35+
</div>
36+
</div>
37+
</div>

assets/css/cookieconsent.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/site.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)