カレンダー設置等

MTのプラグインであるStyleCatcherを使って、デザインを変更した後、カレンダーが表示されていなかったため、小粋空間を参考に、「テンプレート」の「メインページ」のサイドメニューの検索(<div class=”module-search module”>)の上に、以下のタグを貼り付けた。

<div class=”module-calendar module”>
<h2 class=”module-header”>カレンダー</h2>
<div class=”module-content”>
<table border=”0″ cellspacing=”4″ cellpadding=”0″ summary=”Monthly calendar”>
<caption><$MTDate format=”%B %Y”$></caption>
<tr>
<th abbr=”Sunday” align=”center”>Sun</th>
<th abbr=”Monday” align=”center”>Mon</th>
<th abbr=”Tuesday” align=”center”>Tue</th>
<th abbr=”Wednesday” align=”center”>Wed</th>
<th abbr=”Thursday” align=”center”>Thu</th>
<th abbr=”Friday” align=”center”>Fri</th>
<th abbr=”Saturday” align=”center”>Sat</th>
</tr>
<MTCalendar>
<MTCalendarWeekHeader><tr></MTCalendarWeekHeader>
<td <MTCalendarIfToday> bgcolor=”#EEEEEE” </MTCalendarIfToday> align=”center”>
<MTCalendarIfEntries><MTEntries lastn=”1″><a href=”<$MTEntryLink$>”><$MTCalendarDay$></a></MTEntries></MTCalendarIfEntries>
<MTCalendarIfNoEntries><$MTCalendarDay$></MTCalendarIfNoEntries>
<MTCalendarIfBlank> </MTCalendarIfBlank></td>
<MTCalendarWeekFooter></tr></MTCalendarWeekFooter>
</MTCalendar>
</table>
</div>
</div>
<div align=”right”><a href=”http://www.miyazaki-cci.or.jp/mt/mt.cgi” target=”_blank”>管理画面</a></div>

次に、、「テンプレート」の「スタイルシート」の中の(/* end StyleCatcher imports */)の下に、以下のタグを貼り付けた。
 
.module-calendar .module-content {
    margin: 0 -10px 0 2px;
    _margin: 0 -2px 0 -3px;
    padding-bottom: 5px;
    font-size: 9px;
}
.module-calendar .module-content th {
    padding-bottom: 3px;
    font-size: 9px;
    _font-size: 8px;
    width: 20px;
}
.module-calendar .module-content td {
    padding: 2px 0;
    font-size: 9px;
    line-height: 120%;
    _line-height: 100%;
}

以上で、カレンダーは表示される。


リンク集を追加するために、「テンプレート」の「メインページ」の(<div class=”module-powered module”>)の前に、以下のタグを貼り付けた。

<h2 class=”module-header”>リンク集</h2>
■<a href=”http://www.miyazaki-cci.or.jp/nichinan/” target=”_blank”>日南商工会議所</a><br />
■<a href=”http://ncci.blog77.fc2.com/” target=”_blank”>日南商工会議所ブログ</a><br />
■<a href=”http://www.katoken.gr.jp/koenkiko/” target=”_blank”>加藤先生の講演紀行</a><br />

 

<br />
<a href=”http://px.a8.net/svt/ejp?a8mat=1058SF+J1W4Y+PEG+674EP” target=”_blank”><img border=”0″ width=”120″ height=”60″ alt=”” src=”http://www27.a8.net/svt/bgt?aid=060710847032&wid=001&eno=01&mid=s00000003292001041000&mc=1″></a><img border=”0″ width=”1″ height=”1″ src=”http://www10.a8.net/0.gif?a8mat=1058SF+J1W4Y+PEG+674EP” alt=””><br />
<br /> <a href=”http://www.miyazaki-cci.or.jp/nichinan/blog/index.xml”><img src=”http://www.miyazaki-cci.or.jp/nichinan/img/rss.gif”></a>


Google Analysticsのタグを(</body>)の前に貼り付けた。

<script src=”http://www.google-analytics.com/urchin.js” type=”text/javascript”>
</script>
<script type=”text/javascript”><!–
_uacct = “UA-440749-1”;
urchinTracker();
–></script>