diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 28 | ||||
| -rw-r--r-- | templates/main.js | 6 | ||||
| -rw-r--r-- | templates/thread.html | 28 |
3 files changed, 59 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html index c0491534..d00380e6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,6 +9,22 @@ {config[meta_keywords]?<meta name="keywords" content="{config[meta_keywords]}" />}
<link rel="stylesheet" type="text/css" id="stylesheet" href="{config[uri_stylesheets]}{config[default_stylesheet][1]}">
<script type="text/javascript" src="{config[url_javascript]}"></script>
+ {config[recaptcha]?<style type="text/css">
+ /* reCaptcha style */
+ .recaptcha_image_cell {
+ background: none !important;
+ }
+ table.recaptchatable {
+ border: none !important;
+ }
+ #recaptcha_logo, #recaptcha_tagline {
+ display: none;
+ float: right;
+ }
+ .recaptchatable a {
+ display: block;
+ }
+ </style>}
</head>
<body>
{boardlist[top]}
@@ -56,6 +72,16 @@ <textarea name="body" id="body" rows="5" cols="30"></textarea>
</td>
</tr>
+ {config[recaptcha]?
+ <tr>
+ <th>
+ Verification
+ </th>
+ <td>
+ <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k={config[recaptcha_public]}"></script>
+ </td>
+ </tr>
+ }
<tr>
<th>
File
@@ -134,4 +160,4 @@ <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> v0.9.2 | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p>
<p class="unimportant" style="text-align:center;">All trademarks, copyrights, comments and images on this page are owned by and/or are the responsibility of their respective parties.</p>
</body>
-</html>
\ No newline at end of file +</html>
diff --git a/templates/main.js b/templates/main.js index a57ff972..cf9f9e77 100644 --- a/templates/main.js +++ b/templates/main.js @@ -161,7 +161,11 @@ function init() }
}
+var RecaptchaOptions = {
+ theme : 'clean'
+};
+
window.onload = init;
{config[google_analytics]?
-var _gaq = _gaq || [];_gaq.push(['_setAccount', '{config[google_analytics]}']);{config[google_analytics_domain]?_gaq.push(['_setDomainName', '{config[google_analytics_domain]}'])}{!config[google_analytics_domain]?_gaq.push(['_setDomainName', 'none'])};_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);})();}
\ No newline at end of file +var _gaq = _gaq || [];_gaq.push(['_setAccount', '{config[google_analytics]}']);{config[google_analytics_domain]?_gaq.push(['_setDomainName', '{config[google_analytics_domain]}'])}{!config[google_analytics_domain]?_gaq.push(['_setDomainName', 'none'])};_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);})();}
diff --git a/templates/thread.html b/templates/thread.html index f2f9b8b0..d900c95e 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -8,6 +8,22 @@ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" type="text/css" id="stylesheet" href="{config[uri_stylesheets]}{config[default_stylesheet][1]}">
<script type="text/javascript" src="{config[url_javascript]}"></script>
+ {config[recaptcha]?<style type="text/css">
+ /* reCaptcha style */
+ .recaptcha_image_cell {
+ background: none !important;
+ }
+ table.recaptchatable {
+ border: none !important;
+ }
+ #recaptcha_logo, #recaptcha_tagline {
+ display: none;
+ float: right;
+ }
+ .recaptchatable a {
+ display: block;
+ }
+ </style>}
</head>
<body>
{boardlist[top]}
@@ -55,6 +71,16 @@ <textarea name="body" id="body" rows="5" cols="30"></textarea>
</td>
</tr>
+ {config[recaptcha]?
+ <tr>
+ <th>
+ Verification
+ </th>
+ <td>
+ <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k={config[recaptcha_public]}"></script>
+ </td>
+ </tr>
+ }
<tr>
<th>
File
@@ -123,4 +149,4 @@ <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> v0.9.2 | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p>
<p class="unimportant" style="text-align:center;">All trademarks, copyrights, comments and images on this page are owned by and/or are the responsibility of their respective parties.</p>
</body>
-</html>
\ No newline at end of file +</html>
|
