Skip to content

Commit 4437ac6

Browse files
Added dbnet sponsor.
1 parent 0ac5bf7 commit 4437ac6

4 files changed

Lines changed: 41 additions & 17 deletions

File tree

content/SyntaxHighlighter/css/main.scss

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ body {
2828
background-color: white;
2929
margin: 4em 15em 4em 4em;
3030
line-height: 1.35em;
31+
32+
&.with_sponsor {
33+
margin-right: 410px;
34+
}
3135
}
3236

3337
a {
@@ -111,8 +115,10 @@ table {
111115
@extend .badge;
112116
background: $blue;
113117
color: #fff;
114-
margin: 3px 5px 0 0;
118+
margin: 3px 1em 0 0;
115119
float: left;
120+
text-align: right;
121+
width: 10em;
116122
}
117123

118124
.version {
@@ -144,8 +150,8 @@ table {
144150

145151
.float {
146152
position: fixed;
147-
top: .5em;
148-
right: .5em;
153+
top: 10px;
154+
right: 10px;
149155
width: 10em;
150156
padding: 1em;
151157
text-align: right;
@@ -156,6 +162,26 @@ table {
156162
}
157163
}
158164

165+
.with_sponsor {
166+
.float {
167+
right: 190px;
168+
}
169+
}
170+
171+
#sponsor {
172+
position: fixed;
173+
top: 10px;
174+
right: 10px;
175+
bottom: 10px;
176+
background: #6380EA; /* color specific to dbnet */
177+
@include round_corners(3px);
178+
179+
a {
180+
padding: 0;
181+
background: none;
182+
}
183+
}
184+
159185
#meta {
160186
@extend .float;
161187
z-index: 2;
@@ -168,7 +194,7 @@ table {
168194
@include round_corners(3px);
169195

170196
background: $light_blue;
171-
bottom: 1em;
197+
bottom: 10px;
172198
padding-top: 14em;
173199
z-index: 1;
174200

content/SyntaxHighlighter/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ filter:
4646
%h2 News
4747

4848
:markdown
49+
* SyntaxHighlighter is now sponsored by the wonderful folks at <a href="http://www.dbnetsuite.com/shared/track.aspx?code=SH" onclick="_gaq.push(['_trackEvent', 'sponsor', 'click', 'dbnetsuite']);">DbNetLink</a>. <span class="date">October 26, 2010</span>
4950
* Major new 3.0.83 release ([changes](changes/3.0.83.html)). <span class="date">July 2, 2010</span>
5051
* New 2.1.382 release ([changes](changes/2.1.382.html)). <span class="date">June 24, 2010</span>
5152
* Follow @[syntaxhighlight](http://twitter.com/syntaxhighlight) on Twitter. <span class="date">March 1, 2010</span>

content/SyntaxHighlighter/partials/_services.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@ encoding: utf-8
33
filter:
44
- erb
55
---
6-
<script type="text/javascript">
7-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
8-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
9-
</script>
10-
<script type="text/javascript">
11-
var pageTracker = _gat._getTracker("UA-83229-12");
12-
pageTracker._trackPageview();
13-
</script>
14-
156
<script type="text/javascript">
167
var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
178
document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
@@ -28,3 +19,4 @@ UserVoice.Tab.show({
2819
lang: 'en'
2920
})
3021
</script>
22+

layouts/default.haml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ filter:
1515
%head
1616
%title= "SyntaxHighlighter#{sh_title(@page, ' - ')}"
1717
%script{ :type => 'text/javascript', :src => "#{@home}/scripts/jquery-1.4.2.js" }
18-
19-
%body
18+
= render(:partial => "/SyntaxHighlighter/partials/tracking")
19+
20+
%body.with_sponsor
2021
#title
2122
%h1
2223
%a{ :href => "#{@home}" } SyntaxHighlighter
@@ -62,7 +63,10 @@ filter:
6263

6364
<script type="text/javascript">var flattr_url = 'http://alexgorbatchev.com/SyntaxHighlighter';</script>
6465
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>
65-
66+
67+
#sponsor
68+
%a{ :href => "http://www.dbnetsuite.com/shared/track.aspx?code=SH", :onclick => "_gaq.push(['_trackEvent', 'sponsor', 'click', 'dbnetsuite']);"}
69+
%img{ :src => "http://alexgorbatchev.com.s3.amazonaws.com/sponsors/dbnet/dbnetsuite.gif", :onload => "_gaq.push(['_trackEvent', 'sponsor', 'load', 'dbnetsuite']);" }
6670

6771
%link{ :type => 'text/css', :rel => 'stylesheet', :href => "#{@home}/css/main.css" }
6872
%link{ :type => 'text/css', :rel => 'stylesheet', :href => "#{sh_pub}/styles/shCore.css" }
@@ -75,4 +79,5 @@ filter:
7579

7680
%script{ :type => 'text/javascript', :src => "#{@home}/scripts/main.js" }
7781

78-
= render(:partial => "/SyntaxHighlighter/partials/services")
82+
= render(:partial => "/SyntaxHighlighter/partials/services")
83+

0 commit comments

Comments
 (0)