Code

added website to trunk
[rrdtool-all.git] / website / inc / html.inc
diff --git a/website/inc/html.inc b/website/inc/html.inc
new file mode 100644 (file)
index 0000000..c628cf9
--- /dev/null
@@ -0,0 +1,99 @@
+<define-tag h1 whitespace=delete endtag=required>
+<preserve subtitle />
+<set-var %attributes />
+<h1*>%body</h1*>
+{#H1_FLAT#:<: $x = <<kjhasdflkjhasdf;
+%body
+kjhasdflkjhasdf
+$x =~ s/\\n/ /g; print $x; :>:#H1_FLAT#}
+<if <get-var title_is_set /> ""
+   {#Title#:{#H1_FLAT#}:#Title#}
+/>
+<div id="googlead_right">
+<script type="text/javascript"><!--
+google_ad_client = "pub-8135238818549668";
+/* rrdtool top right */
+google_ad_slot = "4985488960";
+google_ad_width = 300;
+google_ad_height = 250;
+//-->
+</script>
+<script type="text/javascript"
+src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+</div>
+<restore subtitle />
+</define-tag>
+
+<define-tag title whitespace=delete endtag=required>
+<set-var title_is_set=1/>
+{#!Title#:<: $_ = <<kjhasdflkjhasdf;
+%body
+kjhasdflkjhasdf
+s/\\n/ /g; print :>:#Title#}
+</define-tag>
+
+<perl>my $addcount=0;</perl>
+
+<define-tag h2 whitespace=delete endtag=required>
+<perl>
+$addcount++;
+if ($addcount == 7){
+print <<'GOOGLEAD';
+<p>
+<script type="text/javascript"><!--
+google_ad_client = "pub-8135238818549668";
+google_ad_width = 300;
+google_ad_height = 250;
+google_ad_format = "300x250_as";
+google_ad_type = "text_image";
+google_ad_channel ="9159032853";
+google_color_border = "ffffff";
+google_color_bg = "f0f8FF";      
+google_color_link = "191919";      
+google_color_url = "0066CC";
+google_color_text = "000000";
+#google_color_border = "ffffff";
+#google_color_bg = "ffffff";
+#google_color_link = "2c3fbf";
+#google_color_url = "000000";
+#google_color_text = "000000";
+//--></script>
+<script type="text/javascript"
+  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+</p>
+GOOGLEAD
+}
+</perl>
+<h2* %attributes>%body</h2*>
+</define-tag>
+
+<define-tag h3 whitespace=delete endtag=required>
+<perl>
+$addcount++;
+if ($addcount == 7){
+print <<'GOOGLEAD';
+<p>
+<script type="text/javascript"><!--
+google_ad_client = "pub-8135238818549668";
+google_ad_width = 300;
+google_ad_height = 250;
+google_ad_format = "300x250_as";
+google_ad_type = "text_image";
+google_ad_channel ="9159032853";
+google_color_border = "ffffff";
+google_color_bg = "ffffff";
+google_color_link = "2c3fbf";
+google_color_url = "000000";
+google_color_text = "000000";
+//--></script>
+<script type="text/javascript"
+  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
+</script>
+</p>
+GOOGLEAD
+}
+</perl>
+<h3* %attributes>%body</h3*>
+</define-tag>