$jinput = JFactory::getApplication()->input; $input_lat = $jinput->get('lat', ''); $input_lng = $jinput->get('lng', ''); $doc = JFactory::getDocument(); $db = JFactory::getDBO(); $user = JFactory::getUser(); $lang = JFactory::getLanguage(); $lang->load('com_geommunity3es', JPATH_SITE, '', false); $file = JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php'; jimport('joomla.filesystem.file'); if (!JFile::exists($file)) { return; } require_once $file; // Include main Easysocial engine $modules = Foundry::modules('mod_easysocial_toolbar'); $modules->loadComponentScripts(); if (!Foundry::exists()) { echo JText::_('COM_EASYSOCIAL_FOUNDRY_DEPENDENCY_MISSING'); return; } $config = Foundry::config(); $naming = $config->get('users.displayName'); // username or realname if ($naming == 'realname') { $naming = 'name'; } if (JFactory::getApplication()->input->get('option') != 'com_easysocial') { $doc->addStyleSheet($juri . 'components/com_easysocial/themes/wireframe/styles/base.min.css'); $doc->addStyleSheet($juri . 'components/com_easysocial/themes/wireframe/styles/style.min.css'); $doc->addStyleSheet($juri . 'components/com_easysocial/themes/wireframe/styles/more.min.css');