Commit 0f72de5c by Damien Moulard

on homepage map, higlight new prestataires

parent d73ae436
...@@ -437,4 +437,8 @@ form[name="formEncaissement"] label { ...@@ -437,4 +437,8 @@ form[name="formEncaissement"] label {
#infoForUserModal .modal-body { #infoForUserModal .modal-body {
word-break: break-all; word-break: break-all;
}
.new-presta-icon {
filter: hue-rotate(200deg) brightness(110%) contrast(120%);
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"/build/app.3644f7b2.js" "/build/app.3644f7b2.js"
], ],
"css": [ "css": [
"/build/app.ec67f059.css" "/build/app.3120e5f3.css"
] ]
}, },
"admin": { "admin": {
......
{ {
"build/app.css": "/build/app.ec67f059.css", "build/app.css": "/build/app.3120e5f3.css",
"build/app.js": "/build/app.3644f7b2.js", "build/app.js": "/build/app.3644f7b2.js",
"build/admin.css": "/build/admin.4de55830.css", "build/admin.css": "/build/admin.4de55830.css",
"build/admin.js": "/build/admin.63735322.js", "build/admin.js": "/build/admin.63735322.js",
......
...@@ -15,10 +15,14 @@ ...@@ -15,10 +15,14 @@
{% for geolocp in presta.geolocs %} {% for geolocp in presta.geolocs %}
{% if geolocp.enabled and geolocp.geoloc.lat != null and geolocp.geoloc.lon != null %} {% if geolocp.enabled and geolocp.geoloc.lat != null and geolocp.geoloc.lon != null %}
{% if presta.rubriques|length > 0 and presta.rubriques.first.media is not null %} {% if presta.rubriques|length > 0 and presta.rubriques.first.media is not null %}
var iconClassName = 'kohinos-map-icon';
{% if date(presta.getCreatedAt()) > date('-2months') %}
iconClassName = 'kohinos-map-icon new-presta-icon';
{% endif %}
var icon = L.icon({ var icon = L.icon({
iconSize: [50, 50], iconSize: [50, 50],
iconAnchor: [25,50], iconAnchor: [25,50],
className: 'kohinos-map-icon', className: iconClassName,
iconUrl : '{% path presta.rubriques.first.media, "preview" %}' iconUrl : '{% path presta.rubriques.first.media, "preview" %}'
}); });
var marker_{{count}} = L.marker([{{geolocp.geoloc.lat}}, {{geolocp.geoloc.lon}}], {icon: icon}).addTo(mymap); var marker_{{count}} = L.marker([{{geolocp.geoloc.lat}}, {{geolocp.geoloc.lon}}], {icon: icon}).addTo(mymap);
...@@ -26,7 +30,10 @@ ...@@ -26,7 +30,10 @@
var marker_{{count}} = L.marker([{{geolocp.geoloc.lat}}, {{geolocp.geoloc.lon}}]).addTo(mymap); var marker_{{count}} = L.marker([{{geolocp.geoloc.lat}}, {{geolocp.geoloc.lon}}]).addTo(mymap);
{% endif %} {% endif %}
marker_{{count}}.bindPopup("{% spaceless %}{% if presta.media != null %}{% set media %}{% thumbnail presta.media, 'small' %}{% endset %} {{ media|raw|replace({'"' : "'"})|raw }}<br/><br/>{% endif %} marker_{{count}}.bindPopup("{% spaceless %}{% if presta.media != null %}{% set media %}{% thumbnail presta.media, 'small' %}{% endset %} {{ media|raw|replace({'"' : "'"})|raw }}<br/><br/>{% endif %}
<a href='{{ path('show_prestataire', {'slug': presta.slug}) }}'> {% if date(presta.getCreatedAt()) > date('-2months') %}
<strong style='font-size:16px;'>[Nouveau] </strong>
{% endif %}
<a href='{{ path('show_prestataire', {'slug': presta.slug}) }}'>
<strong style='font-size:16px;'>{{presta.__toString()}}</strong> <strong style='font-size:16px;'>{{presta.__toString()}}</strong>
</a> </a>
<br/> <br/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment