Compare commits
No commits in common. "b2d20b59cc5c381be07cdd0d6e7ef4a4de30928a" and "0ed4fec378dfcf3d036590946206501314d09be8" have entirely different histories.
b2d20b59cc
...
0ed4fec378
@ -309,15 +309,8 @@
|
|||||||
$color = $this->container->get('cadoles.core.service.color');
|
$color = $this->container->get('cadoles.core.service.color');
|
||||||
$color->setColor();
|
$color->setColor();
|
||||||
|
|
||||||
if($curentuser!="anon.") {
|
|
||||||
// Préférence header
|
|
||||||
$preference=$curentuser->getPreference();
|
|
||||||
if(array_key_exists("fgheader",$preference)) {
|
|
||||||
$fgheader=($preference["fgheader"][0]=="true");
|
|
||||||
$session->set("fgheader", $fgheader);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Visite
|
// Visite
|
||||||
|
if($curentuser!="anon.") {
|
||||||
$now=new \DateTime();
|
$now=new \DateTime();
|
||||||
if(!$curentuser->getVisitedate()) {
|
if(!$curentuser->getVisitedate()) {
|
||||||
$curentuser->setVisitedate($now);
|
$curentuser->setVisitedate($now);
|
||||||
|
@ -62,8 +62,6 @@ body {
|
|||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.header { display: none }
|
.header { display: none }
|
||||||
#menu-header { display: none }
|
|
||||||
#navbarsmalltitle { display: none }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -135,26 +135,6 @@
|
|||||||
$(location).attr('href',"/{{ alias }}");
|
$(location).attr('href',"/{{ alias }}");
|
||||||
}
|
}
|
||||||
|
|
||||||
function switchHeader() {
|
|
||||||
{% if app.user %}
|
|
||||||
$.ajax({
|
|
||||||
method: "POST",
|
|
||||||
url: "{{ path('cadoles_core_user_preference') }}",
|
|
||||||
data: {
|
|
||||||
id:0,
|
|
||||||
key:'fgheader',
|
|
||||||
{% if fgheader %}
|
|
||||||
value: false
|
|
||||||
{% else %}
|
|
||||||
value: true
|
|
||||||
{% endif %}
|
|
||||||
},
|
|
||||||
success: function(idbookmark) {
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
{% endif %}
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".js-datepicker").datepicker({
|
$(".js-datepicker").datepicker({
|
||||||
|
@ -4,13 +4,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% set permannu = app.session.get('permannu') %}
|
{% set permannu = app.session.get('permannu') %}
|
||||||
|
|
||||||
{% if fgheader %}
|
|
||||||
<li id="menu-header"><a onclick="switchHeader()" title="Cacher / Affichier Bannière " style="cursor:pointer"><i class="fa fa-chevron-up fa-fw"></i></a>
|
|
||||||
{% else %}
|
|
||||||
<li id="menu-header"><a onclick="switchHeader()" title="Cacher / Affichier Bannière " style="cursor:pointer"><i class="fa fa-chevron-down fa-fw"></i></a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if is_granted('ROLE_ADMIN') or (is_granted('ROLE_MODO') and (permannu=="ROLE_MODO" or permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_ANIM') and (permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_USER') and permannu=="ROLE_USER") %}
|
{% if is_granted('ROLE_ADMIN') or (is_granted('ROLE_MODO') and (permannu=="ROLE_MODO" or permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_ANIM') and (permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_USER') and permannu=="ROLE_USER") %}
|
||||||
<li id="menu-annuaire"><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
|
<li id="menu-annuaire"><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
|
||||||
{%endif%}
|
{%endif%}
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
<a class="navbar-brand" href="{{ path("cadoles_core_home") }}">
|
<a class="navbar-brand" href="{{ path("cadoles_core_home") }}">
|
||||||
<img id="logo" src="/{{ alias }}/{{ logo }}">
|
<img id="logo" src="/{{ alias }}/{{ logo }}">
|
||||||
<span id="navbarsmalltitle">{{ app.session.get('appname') }}</span>
|
{{ app.session.get('appname') }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user