moved filters div in php + small changes in docker version
This commit is contained in:
38
srcs/plugins/map_prof/mp_create_div.php
Normal file
38
srcs/plugins/map_prof/mp_create_div.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
function mp_create_div(&$filters) {
|
||||
$mp_map_div = '
|
||||
<div id="ljdp_map_wrapper">
|
||||
<div id="ljdp_map_filters">
|
||||
';
|
||||
|
||||
foreach ($filters as $key => $filter) {
|
||||
$mp_map_div .= '
|
||||
<div class="filter_menu">
|
||||
<div class="filter_menu_title" tabindex=0>
|
||||
<p>'.$key.'</p>
|
||||
</div>
|
||||
<div class="filter_menu_drop" tabindex=0>
|
||||
<p>TOUT DESELECTIONNER</p>
|
||||
';
|
||||
foreach ($filter as $value) {
|
||||
$mp_map_div .= '
|
||||
<p>'.$value->_name.'</p>
|
||||
';
|
||||
}
|
||||
$mp_map_div .= '
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
};
|
||||
|
||||
$mp_map_div .= '
|
||||
</div>
|
||||
<div id="ljdp_map"></div>
|
||||
</div>
|
||||
';
|
||||
|
||||
return $mp_map_div;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user