/** * Data for the markers consisting of a name, a LatLng and a zIndex for * the order in which these markers should display on top of each * other. */ var companies = [ <?php $db = JFactory::getDBO(); $index = 1; foreach ($this->offers as $offer) { $description = str_replace("\r\n", "", $offer->short_description); $description = str_replace("\\'", "", $description); $description = $db->escape($description); $marker = 0; $contentString = '<div id="map-content">' . '<h1 id="firstHeading" class="firstHeading">' . $db->escape($offer->subject) . '</h1>' . '<p>' . (!empty($offer->picture_path) ? '<img src="' . JURI::root() . PICTURES_PATH . $offer->picture_path . '" alt="' . $db->escape($offer->subject) . '">' : "") . JBusinessUtil::truncate(strip_tags($description), 180, ' … ', true) . '</p>' . '<p><a href="' . $db->escape(JBusinessUtil::getOfferLink($offer->id, $offer->alias)) . '">' . JText::_("LNG_MORE_INFO", true) . '</a></p>' . '</div>'; if (!empty($offer->latitude) && !empty($offer->longitude)) { echo "['" . $db->escape($offer->subject) . "', " . $offer->latitude . "," . $offer->longitude . ", 4,'" . $contentString . "','" . $index . "','" . $marker . "']," . "\n"; } $index++; } ?> ]; function setMarkers(map, locations) { // Add markers to the map // Marker sizes are expressed as a Size of X,Y // where the origin of the image (0,0) is located // in the top left of the image.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://www.cmsjunkie.com # Technical Support: Forum - http://www.cmsjunkie.com/forum/j-businessdirectory/?p=1 -------------------------------------------------------------------------*/ defined('_JEXEC') or die('Restricted access'); $user = JFactory::getUser(); $uri = JURI::getInstance(); $current = $uri->toString(array('scheme', 'host', 'port', 'path')); $company = $this->company; $url = $current; //set metainfo $document = JFactory::getDocument(); $config = new JConfig(); $appSettings = JBusinessUtil::getInstance()->getApplicationSettings(); $title = stripslashes($company->name) . " | " . $config->sitename; $description = !empty($company->description) ? strip_tags(JBusinessUtil::truncate($company->description, 300)) : $appSettings->meta_description; $document->setTitle($title); $document->setDescription($description); $document->setMetaData('keywords', $appSettings->meta_keywords . "," . $company->keywords); $document->addCustomTag('<meta property="og:title" content="' . $title . '"/>'); $document->addCustomTag('<meta property="og:description" content="' . $description . '"/>'); if (isset($this->company->logoLocation) && $this->company->logoLocation != '') { $document->addCustomTag('<meta property="og:image" content="' . JURI::root() . PICTURES_PATH . $this->company->logoLocation . '" /> '); } $document->addCustomTag('<meta property="og:type" content="website"/>'); $document->addCustomTag('<meta property="og:url" content="' . $url . '"/>'); $document->addCustomTag('<meta property="og:site_name" content="' . $config->sitename . '"/>'); //set canonical url if ($appSettings->enable_seo) { $document = JFactory::getDocument(); foreach ($document->_links as $key => $value) {
<div class="event-location"> <?php echo $event->location; ?> - <?php echo JBusinessUtil::getDateGeneralFormat($event->start_date) . " " . JText::_("LNG_UNTIL") . " " . JBusinessUtil::getDateGeneralFormat($event->end_date); ?> </div> <div class="event-type"> <?php echo $event->eventType; ?> </div> <div class="event-desciption"> <?php echo JBusinessUtil::truncate($event->description, 250); ?> </div> </div> </div> <div class="clear"></div> </li> <?php } } else { echo JText::_("LNG_NO_EVENT_FOUND"); } ?> </ul> </div>
?> <a rel="nofollow" href="<?php echo JBusinessUtil::getOfferCategoryLink($categoryIds[$i], $categoryAliases[$i]); ?> "><?php echo $categoryNames[$i]; echo $i < count($categoryIds) - 1 ? ', ' : ''; ?> </a> <?php } ?> </div> <div class="offer-desciption"> <?php echo JBusinessUtil::truncate($offer->short_description, 300); ?> </div> </div> </div> <div class="clear"></div> </li> <?php } } else { echo JText::_("LNG_NO_OFFER_FOUND"); } ?> </ul> </div>