# -*- coding: utf-8 -*- # Copyright (C) 2011, KADO Masanori # You can redistribute it and/or modify it under GPL. add_header_proc do <<-HTML HTML end def facebook_comments(href = '') <<-HTML
HTML end add_body_leave_proc do |date| if @mode == 'day' href = @conf.base_url + anchor( @date.strftime('%Y%m%d') ) facebook_comments(href) end end add_conf_proc( 'Facebook Comments', 'Facebook Comments', 'etc' ) do if @mode == 'saveconf' then @conf['facebook_comments.YOUR_FACEBOOK_USER_ID'] = @cgi.params['facebook_comments.YOUR_FACEBOOK_USER_ID'][0] @conf['facebook_comments.YOUR_APPLICATION_ID'] = @cgi.params['facebook_comments.YOUR_APPLICATION_ID'][0] @conf['facebook_comments.num_posts'] = @cgi.params['facebook_comments.num_posts'][0] @conf['facebook_comments.width'] = @cgi.params['facebook_comments.width'][0] end <<-HTML

YOUR_FACEBOOK_USER_ID

YOUR_APPLICATION_ID

num posts

width

HTML end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End: # vim: ts=3