小粋空間
a cheap joke and a play on words site
<< Movable Type 3.0 Developer Edition 日本語版の提供開始
|
TOP
|
個別アーカイブテンプレート(同一ウィンドウ用) >>
2004年07月17日
●3カラム用テンプレート(その他)
現在使用中のコメント・トラックバック関連のテンプレートです。とりあえず3種類公開しておきます。
コメント・リスト
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta name="generator" content="http://www.movabletype.org/" /> <title><$MTBlogName$>: Comment on <$MTEntryTitle$></title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> <script type="text/javascript" language="javascript"> <!-- var HOST = '<$MTBlogHost$>'; // Copyright (c) 1996-1997 Athenia Associates. // http://www.webreference.com/js/ // License is granted if and only if this entire // copyright notice is included. By Tomer Shiran. function setCookie (name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie (name) { var prefix = name + '='; var c = document.cookie; var nullstring = ''; var cookieStartIndex = c.indexOf(prefix); if (cookieStartIndex == -1) return nullstring; var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length); if (cookieEndIndex == -1) cookieEndIndex = c.length; return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex)); } function deleteCookie (name, path, domain) { if (getCookie(name)) document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } function fixDate (date) { var base = new Date(0); var skew = base.getTime(); if (skew > 0) date.setTime(date.getTime() - skew); } function rememberMe (f) { var now = new Date(); fixDate(now); now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000); setCookie('mtcmtauth', f.author.value, now, '', HOST, ''); setCookie('mtcmtmail', f.email.value, now, '', HOST, ''); setCookie('mtcmthome', f.url.value, now, '', HOST, ''); } function forgetMe (f) { deleteCookie('mtcmtmail', '', HOST); deleteCookie('mtcmthome', '', HOST); deleteCookie('mtcmtauth', '', HOST); f.email.value = ''; f.author.value = ''; f.url.value = ''; } //--> </script> </head> <body> <div id="banner-commentspop"> <h1><$MTBlogName$></h1> <h2><$MTBlogDescription$></h2> </div> <div id="content-commentspop"> <$MTErrorMessage$> <h2>コメント: <$MTEntryTitle$></h2> <div class="blogbody-commentspop"> <p> <MTComments> <$MTCommentBody$> <p class="posted-commentspop">Posted by <$MTCommentAuthorLink spam_protect="1"$> at <$MTCommentDate$></p> </MTComments> </p> </div> <MTEntryIfCommentsOpen> <MTIfCommentsAllowed> <h2>コメントする</h2> <MTCommentFields> </MTIfCommentsAllowed> </MTEntryIfCommentsOpen> </div> </body> </html>
コメント・プレビュー
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta name="generator" content="http://www.movabletype.org/" /> <title><$MTBlogName$>: Comment Preview</title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> <script language="JavaScript"> function getCookie (name) { var prefix = name + '='; var c = document.cookie; var nullstring = ''; var cookieStartIndex = c.indexOf(prefix); if (cookieStartIndex == -1) return nullstring; var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length); if (cookieEndIndex == -1) cookieEndIndex = c.length; return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex)); } </script> </head> <body> <div id="banner-commentspop"> <h1><$MTBlogName$></h1> <h2><$MTBlogDescription$></h2> </div> <div id="content-commentspop"> <h2>コメントのプレビュー</h2> <$MTCommentPreviewBody$> <p class="posted">Posted by <$MTCommentPreviewAuthorLink spam_protect="1"$> at <$MTCommentPreviewDate$></p> <MTIfCommentsAllowed> <MTCommentFields> <script language="javascript" type="text/javascript"> <!-- if (document.comments_form.author) document.comments_form.author.value = '<$MTCommentPreviewAuthor encode_js="1"$>'; if (document.comments_form.email) document.comments_form.email.value = '<$MTCommentPreviewEmail encode_js="1"$>'; if (document.comments_form.url) document.comments_form.url.value = '<$MTCommentPreviewURL encode_js="1"$>'; if (document.comments_form.text) document.comments_form.text.value = '<$MTCommentPreviewBody convert_breaks="0" encode_js="1"$>'; --> </script> </MTIfCommentsAllowed> <h2>これまでのコメント</h2> <div class="blogbody-commentspop"> <p> <MTComments> <$MTCommentBody$> <p class="posted-commentspop">Posted by <$MTCommentAuthorLink spam_protect="1"$> at <$MTCommentDate$></p> </MTComments> </p> </div> </div> </body> </html>
トラックバック・リスト
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta name="generator" content="http://www.movabletype.org/" /> <title><$MTBlogName$>: Discussion on <$MTEntryTitle$></title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> </head> <body onload="window.focus()"> <div id="banner-commentspop"> <h1>トラックバック</h1> </div> <div id="content-commentspop"> <div class="blogbody-commentspop"> <p>このエントリーのトラックバックURL:<br /> <h3><$MTEntryTrackbackLink$></h3></p> <p>このリストは次のエントリーを参照しています: <a href="<$MTEntryPermalink$>" target="new">'<$MTEntryTitle$>'</a> from <a href="<$MTBlogURL$>" target="new"><$MTBlogName$></a>.</p> <MTPings> <p><a id="p<$MTPingID$>"></a> » <a href="<$MTPingURL$>"><$MTPingTitle$></a> from <$MTPingBlogName$><br /> <$MTPingExcerpt$> <a href="<$MTPingURL$>">[Read More]</a> </p> <p class="posted">Tracked on <$MTPingDate$></p> </MTPings> </div> </div> </body> </html>
Posted by yujiro at 2004年07月17日 00:57 |
トラックバック
コメント
コメントする
お名前:
メールアドレス
URL:
この情報を登録しますか?
Yes
No
コメント: