\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\part{Embedding Calendars in Kronolith Version 4.1.4 }
It is possible to embed small views of your calendars in external websites. You can embed the same views that you can place on Horde's portal page. The following are examples of code to use to embed each view on an external blog or website. You should obviously edit the code with the correct server address and calendar name. The \textbf{'container'} parameter is arbitrary, but must both match the DOM id of the the div element and be unique across the whole page you are embedding in.

\textbf{The following will embed the month view of the calendar indicated by the calendar parameter:}\newline
<div id="kronolithCal"></div>\newline
<script src="http://hostname.example.com/horde/services/ajax.php/kronolith/embed?calendar=internal\_qAJrkfuHbKlcFSBcadUkOg1\&container=kronolithCal\&view=Month\footnote{http://hostname.example.com/horde/services/ajax.php/kronolith/embed?calendar=internal\_qAJrkfuHbKlcFSBcadUkOg1\&container=kronolithCal\&view=Month}" type="text/javascript"></script>

\textbf{The following will embed the "summary" view:}\newline
<div id="kronolithCal"></div>\newline
<script src="http://localhost/horde/services/ajax.php/kronolith/embed?container=kronolithCal\&view=Summary\footnote{http://localhost/horde/services/ajax.php/kronolith/embed?container=kronolithCal\&view=Summary}" type="text/javascript"></script>

\textbf{You may add the following parameters to the summary view:}\newline
calendar=x Limit to events in the specified calendar.\newline
days=x  - limits the number of days shown in the summary view to x.\newline
maxevents=x limits the number of events shown to x.

\textbf{The following embeds the "monthlist" view:}\newline
<div id="kronolithCal"></div>\newline
<script src="http://localhost/horde/services/ajax.php/kronolith/embed?container=kronolithCal\&view=Monthlist\footnote{http://localhost/horde/services/ajax.php/kronolith/embed?container=kronolithCal\&view=Monthlist}" type="text/javascript"></script>

\textbf{You may add the following parameters:}\newline
calendar\newline
months\newline
maxevents

For most of the blocks, if you leave out the "calendar" parameter then all currently viewable (I believe only local) calendars would be shown. Otherwise, only the calendar specified in the calendar parameter is used.

If times are off you may need to set "date.timezone = MyTimeZone\footnote{http://example.com/index.php?page=MyTimeZone}" in my php.ini.

There are a number of examples on the web using the file imple.php which do not work with the newer versions of Kronolith.\newline
Note that the value of "view=" needs to be uppercase (this is wrong in some examples/paste code)

\end{document}
