static function getAddToYahooCal($row) { $eventData = JevExportHelper::getEventStringArray($row); $urlString['title'] = "title=" . $eventData['title']; $urlString['st'] = "st=" . $eventData['st']; $urlString['et'] = "et=" . $eventData['et']; $urlString['rawdetails'] = "desc=" . $eventData['details']; $urlString['location'] = "in_loc=" . $eventData['location']; $link = "http://calendar.yahoo.com/?v=60&view=d&type=20&" . implode("&", $urlString); return $link; }
function DefaultEventIcalDialog($view, $row, $mask, $bootstrap = false) { if (!$bootstrap) { return $view->eventIcalDialog16($row, $mask); } JevHtmlBootstrap::modal("ical_dialogJQ" . $row->rp_id()); ?> <div id="ical_dialogJQ<?php echo $row->rp_id(); ?> " class="ical_dialogJQ modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel"><?php echo JText::_("JEV_EXPORT_EVENT"); ?> </h4> </div> <div class="modal-body"> <?php if ($row->hasRepetition()) { ?> <div id="unstyledical"> <div class="row-fluid"> <a class="span12" href="<?php echo $row->vCalExportLink(false, true); ?> " title="<?php echo JText::_("JEV_SAVEICAL"); ?> " > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/save.png', JText::_("JEV_SAVEICAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_AS_ICAL") . "</span>"; ?> </a> </div> <div class="row-fluid"> <a class="span12" href="<?php echo JevExportHelper::getAddToGCal($row); ?> " title="<?php echo JText::_("JEV_SAVE_EVENT_IN_GCAL"); ?> " target="_blank" > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/google.png', JText::_("JEV_ADDTOGCAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_IN_GCAL") . "</span>"; ?> </a> </div> <div class="row-fluid"> <a class="span12" href="<?php echo JevExportHelper::getAddToYahooCal($row); ?> " title="<?php echo JText::_("JEV_ADDTOYAHOO"); ?> " target="_blank" > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/yahoo.png', JText::_("JEV_SAVE_EVENT_IN_YAHOO"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_IN_YAHOO") . "</span>"; ?> </a> </div> <div class="row-fluid"> <a class="span12" href="<?php echo $row->vCalExportLink(false, false); ?> " title="<?php echo JText::_("JEV_SAVEICAL"); ?> " > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/ical_repeats.png', JText::_("JEV_SAVEICAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_AND_ALL_RECURRENCES_AS_ICAL") . "</span>"; ?> </a> </div> </div> <div id="styledical"> <div class="row-fluid"> <a class="span12" href="<?php echo $row->vCalExportLink(false, true) . "&icf=1"; ?> " title="<?php echo JText::_("JEV_SAVEICAL"); ?> " > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/save.png', JText::_("JEV_SAVEICAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_AS_ICAL") . "</span>"; ?> </a> </div> <div class="row-fluid"> <a class="span12" href="<?php echo $row->vCalExportLink(false, false) . "&icf=1"; ?> " title="<?php echo JText::_("JEV_SAVEICAL"); ?> " > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/ical_repeats.png', JText::_("JEV_SAVEICAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_AND_ALL_RECURRENCES_AS_ICAL") . "</span>"; ?> </a> </div> </div> <?php } else { ?> <div id="unstyledical"> <div class="row-fluid"> <a class="span12" href="<?php echo $row->vCalExportLink(false, false); ?> " title="<?php echo JText::_("JEV_SAVEICAL"); ?> " > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/save.png', JText::_("JEV_SAVEICAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_AS_ICAL") . "</span>"; ?> </a> </div> <div class="row-fluid"> <a class="span12" href="<?php echo JevExportHelper::getAddToGCal($row); ?> " title="<?php echo JText::_("JEV_SAVE_EVENT_IN_GCAL"); ?> " target="_blank" > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/google.png', JText::_("JEV_ADDTOGCAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_IN_GCAL") . "</span>"; ?> </a> </div> <div class="row-fluid"> <a class="span12" href="<?php echo JevExportHelper::getAddToYahooCal($row); ?> " title="<?php echo JText::_("JEV_ADDTOYAHOO"); ?> " target="_blank" > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/yahoo.png', JText::_("JEV_SAVE_EVENT_IN_YAHOO"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_IN_YAHOO") . "</span>"; ?> </a> </div> </div> <div id="styledical"> <div class="row-fluid"> <a class="span12" href="<?php echo $row->vCalExportLink(false, false) . "&icf=1"; ?> " title="<?php echo JText::_("JEV_SAVEICAL"); ?> " > <?php echo "<span class='span2 text-center'>" . JHtml::image('com_jevents/icons-32/save.png', JText::_("JEV_SAVEICAL"), null, true) . "</span>"; echo "<span class='span10'>" . JText::_("JEV_SAVE_EVENT_AS_ICAL") . "</span>"; ?> </a> </div> </div> <?php } ?> <label><input name="icf" type="checkbox" value="1" onclick="if (this.checked) { jevjq('#unstyledical').css('display', 'none'); jevjq('#styledical').css('display', 'block'); } else { jevjq('#styledical').css('display', 'none'); jevjq('#unstyledical').css('display', 'block'); }" /><?php echo JText::_("JEV_PRESERVE_HTML_FORMATTING"); ?> </label> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo JText::_("JEV_CLOSE"); ?> </button> </div> </div> </div> </div> <script> jevjq(".ical_dialogJQ a").click(function(){ jevjq('.ical_dialogJQ').modal('hide') }); </script> <?php }