} } else { echo JText::_($value->data); } echo '</label></td></tr>'; } } else { echo '<i class="geom-icon-cancel" data-es-provide="tooltip" data-original-title="Incorrect field unique key value in module options" ></i> '; } echo '</table>'; echo '</div>'; echo '</div>'; } } if ($show_users && $profiletypes_filter) { $profiles = modGeommunity3esHelper::getProfileTypes($mapid); if (count($profiles) > 1) { $filter_h = str_replace('px', '', $height) - 50; if ($custom_filter) { $filter_h = str_replace('px', '', $height) / 2 - 50; } echo '<div id="profiletypes_filter" class="gckn_filter" style="max-height:' . $filter_h . 'px"> <div class="gckn_filter_inner">'; echo '<div><span class="geom-icon-filter"></span> ' . JText::_('COM_GEOMMUNITY3ES_ALLNONE') . ' <input type="checkbox" id="profiletypes_allnone" class="profiletypes_allnone" checked /></div>'; $allnone = "jQuery('#profiletypes_allnone').click(function () {\r\n\t\tif ( jQuery(this).is(':checked') ){\r\n\t\t\tjQuery('.profiletypes_filter_box').prop(\"checked\", true);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tjQuery('.profiletypes_filter_box').removeAttr(\"checked\");\r\n\t\t}\r\n\t\t});"; echo '<script>' . $allnone . '</script>'; echo '<table class="table table-condensed table-striped table-hover">'; foreach ($profiles as $profile) { echo '<tr> <td width="1"><input type="checkbox" class="profiletypes_filter_box" name="profiletypes_filter" id="profile' . $profile->id . '" value="' . $profile->id . '" checked=""> </td> <td><label for="profile' . $profile->id . '" onmouseover="bounceProfileMarkers(\'profileid\',\'' . $profile->id . '\',1);" onmouseout="bounceProfileMarkers(\'profileid\',\'' . $profile->id . '\',0);" >' . JText::_($profile->title) . '</label></td></tr>';
$jquery_url = $params->get('jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'); $jqueryui_url = $params->get('jqueryui_url', '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js'); $jqueryui_css = $params->get('jqueryui_css', '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css'); if ($include_jquery) { $doc->addScript($jquery_url); } //map params $q = "SELECT title,\r\n def_lat,\r\n def_lng,\r\n show_users,\r\n users_addressfield_id,\r\n profiletypes,\r\n onlineonly,\r\n usermarker,\r\n show_photoalbums,\r\n show_photos,\r\n show_groups,\r\n groups_addressfield_id,\r\n show_events,\r\n show_easyblogs,\r\n events_addressfield_id,\r\n kmlurl, privacyaware\r\n FROM #__geommunity3es_maps WHERE id='" . $mapid . "' "; $db->setQuery($q); $map_params = $db->loadObject(); $integrations = 0; $title = $map_params->title; $def_lat = $map_params->def_lat; $def_lng = $map_params->def_lng; if ($user->id > 0) { $coords = modGeommunity3esHelper::getMemberCoords($visitor_addressfield); if ($coords[0] != '' && $coords[0] != '') { $def_lat = $coords[0]; $def_lng = $coords[1]; } } if ($input_lat && $input_lng) { $def_lat = $input_lat; $def_lng = $input_lng; $zoom = $max_zoom; } $show_users = $map_params->show_users; $users_addressfield_id = $map_params->users_addressfield_id; $profiletypes = $map_params->profiletypes; $onlineonly = $map_params->onlineonly; $usermarker = $map_params->usermarker;