root/platform/tdiary/plugin/cocomment.rb

Revision 18449, 1.0 kB (checked in by hsbt, 3 months ago)

tabify.

Line 
1# cocomment.rb $Revision: 1.6 $
2#
3# Copyright (C) 2006 by Hiroshi SHIBATA
4# You can redistribute it and/or modify it under GPL2.
5#
6
7if @mode == 'day' and not bot? and not @conf.mobile_agent? then
8        add_body_enter_proc do |date|
9                <<-SCRIPT
10                <script type="text/javascript">
11                coco =
12                {
13                         blogTool                                       : "tDiary",
14                         blogURL                                                : "#{h @conf.base_url}",
15                         blogTitle                                      : "#{h @conf.html_title}",
16                         postURL                                                : "#{h @conf.base_url + anchor( date.strftime( '%Y%m%d' ) )}",
17                         postTitle                                      : "#{h apply_plugin( @diaries[date.strftime('%Y%m%d')].title, true )}",
18                         commentAuthorFieldName : "name",
19                         commentAuthorLoggedIn  : false,
20                         commentFormName                        : "comment-form",
21                         commentTextFieldName   : "body",
22                         commentButtonName              : "comment"
23                }
24                </script>
25                <script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js" type="text/javascript">
26                </script>
27                SCRIPT
28        end
29end
30
31# Local Variables:
32# mode: ruby
33# indent-tabs-mode: t
34# tab-width: 3
35# ruby-indent-level: 3
36# End:
37# vi: ts=3 sw=3
Note: See TracBrowser for help on using the browser.