{
}
+ public function getUrl()
+ {
+ return $this->_getUrl('Embed', 'kronolith', $this->_params, true);
+ }
+
/**
* Handles the output of the embedded widget. This must always be valid
* javascript.
* calendar => the share_name for the requested calendar
*
* The following are optional (and are not used for all views)
- * months => the number of months to include
+ * months => the number of months to include
* maxevents => the maximum number of events to show
+ * </pre>
*
* @param array $args Arguments for this view.
*/
public static function embedCode($calendar)
{
/* Get the base url */
- $url = Horde::applicationURL('imple.php', true, -1);
+ $imple = Horde_Ajax_Imple::factory(array('kronolith', 'Embed'),
+ array('container' => 'kronolithCal',
+ 'view' => 'month',
+ 'calendar' => $calendar));
+
+
+ $url = $imple->getUrl();
$html = '<div id="kronolithCal"></div><script src="' . $url
. '?imple=Embed/container=kronolithCal/view=month/calendar='