public function addMap($address) { $mapid = 'kgooglemap' . $this->_mapid; $this->_document->addScriptDeclaration("\n \t\t// <![CDATA[\n \t\t \tvar geocoder;\n \t\t\tvar {$mapid};\n\n \t\t\twindow.addEvent('domready', function() {\n \t\t\t geocoder = new google.maps.Geocoder();\n\t\t\t\tvar latlng = new google.maps.LatLng(37.333586,-121.894684);\n\t\t\t\tvar myOptions = {\n\t\t\t\t\tzoom: 10,\n \t\t\t\tcenter: latlng,\n\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t\t\t\t};\n\t\t\t\t{$mapid} = new google.maps.Map(document.id('" . $mapid . "'), myOptions);\n \t\t\t});\n\n \t\t\twindow.addEvent('domready', function() {\n\t\t\t var address = '{$address}';\n\t\t\t if (geocoder) {\n\t\t\t geocoder.geocode( { 'address': address}, function(results, status) {\n\t\t\t if (status == google.maps.GeocoderStatus.OK) {\n\t\t\t {$mapid}.setCenter(results[0].geometry.location);\n\t\t\t var marker = new google.maps.Marker({\n\t\t\t map: {$mapid},\n\t\t\t position: results[0].geometry.location\n\t\t\t });\n\t\t\t } else {\n\t\t\t \tvar contentString = '<p><strong>" . KunenaParser::JSText('COM_KUNENA_GOOGLE_MAP_NO_GEOCODE') . " <i>{$address}</i></strong></p>';\n\t\t\t \tvar infowindow{$mapid} = new google.maps.InfoWindow({ content: contentString });\n \t\t\t\t\t\tinfowindow{$mapid}.open({$mapid});\n\t\t\t }\n\t\t\t });\n\t\t\t }\n \t\t});\n\n \t\t\t// ]]>"); $html = '<div id="' . $mapid . '" class="kgooglemap">' . KunenaParser::JSText('COM_KUNENA_GOOGLE_MAP_NOT_VISIBLE') . '</div>'; $this->_mapid++; return $html; }
echo JText::_('COM_KUNENA_EDITOR_VIDEO_URL'); ?> <input id="kvideourl" name="videourl" type="text" size="30" maxlength="250" value="http://" onmouseover="javascript:document.id('helpbox').set('value', '<?php echo KunenaParser::JSText('COM_KUNENA_EDITOR_HELPLINE_VIDEOURL'); ?> ')" /> <input id="kbutton_addvideo2" type="button" name="Video" accesskey="p" onclick="kInsertVideo2()" value="<?php echo JText::_('COM_KUNENA_EDITOR_VIDEO_INSERT'); ?> " onmouseover="javascript:document.id('helpbox').set('value', '<?php echo KunenaParser::JSText('COM_KUNENA_EDITOR_HELPLINE_VIDEOAPPLY2'); ?> ')" /> </div> </td> </tr> <?php } if (!$this->config->disemoticons) { ?> <tr> <td class="kpostbuttons"> <div id="smilie"><?php $emoticons = smile::getEmoticons(0, 1); foreach ($emoticons as $emo_code => $emo_url) { echo '<img class="btnImage" src="' . $emo_url . '" border="0" alt="' . $emo_code . ' " title="' . $emo_code . ' " onclick="kbbcode.insert(\' ' . $emo_code . ' \', \'after\', true);" style="cursor:pointer"/> ';