{"id":255,"date":"2003-09-02T21:44:11","date_gmt":"2003-09-03T00:44:11","guid":{"rendered":"http:\/\/www.hoogervorst.ca\/arthur\/?p=255"},"modified":"2003-09-02T21:44:11","modified_gmt":"2003-09-03T00:44:11","slug":"calendar-stuff","status":"publish","type":"post","link":"http:\/\/www.hoogervorst.ca\/arthur\/?p=255","title":{"rendered":"Calendar stuff"},"content":{"rendered":"<p><span class=dropcap>I<\/span> added the navigation to the calendar: See the little &#8216;arrows&#8217; in the calendar?<\/p>\n<p>Note: clicking that arrow actually brings you to the &#8216;Monthly archive&#8217; and as you can see, I had to add the sidebar to that template.\n<\/p>\n<p><!--more--><\/p>\n<p>The following changes were made:<\/p>\n<ul>\n<li>Removed the &#8216;container&#8217; div in the <em>Date based archive template<\/em>. Replaced it with &#8216;contents&#8217; (see your main template!).\n<li>Added the sidebar &#8216;links&#8217; to the template. Additionally removed everything I didn&#8217;t deem valuable.\n<li>Added the following to the calendar object:\n<pre>\n&lt;caption class=\"calendarhead\"&gt;&lt;MTArchivePrevious&gt;&lt;a href=\"&lt;$MTArchiveLink$&gt;\" <br>title=\"&lt;$MTArchiveTitle$&gt;\"&gt;&laquo;&lt;\/a&gt;&lt;\/MTArchivePrevious&gt;<\/br> &lt;a href=\"&lt;$MTArchiveLink$&gt;\"&gt;&lt;$MTArchiveTitle$&gt;&lt;\/a&gt; <br>&lt;MTArchiveNext&gt;&lt;a href=\"&lt;$MTArchiveLink$&gt;\" <br>title=\"&lt;$MTArchiveTitle$&gt;\"&gt;&raquo;&lt;\/a&gt;&lt;\/MTArchiveNext&gt;&lt;\/caption&gt;<br>\n<\/pre>\n<li>Don&#8217;t forget to replace &lt;MTCalendar&gt; with &lt;MTCalendar month=&#8221;this&#8221;&gt;. Otherwise you end up with weird things.\n<li>Save and rebuild.\n<li>Open up your main index page.\n<li>Enclose the table with the macro &lt;MTArchiveList archive_type=&#8221;Monthly&#8221; lastn=&#8221;1&#8243;&gt;\n<li>Replace the caption with the code as described above.\n<\/ul>\n<\/p>\n<p>Have fun<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I added the navigation to the calendar: See the little &#8216;arrows&#8217; in the calendar? Note: clicking that arrow actually brings you to the &#8216;Monthly archive&#8217; and as you can see, I had to add the sidebar to that template.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/255"}],"collection":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255"}],"version-history":[{"count":0,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}