Compare commits

..

No commits in common. "b2d20b59cc5c381be07cdd0d6e7ef4a4de30928a" and "0ed4fec378dfcf3d036590946206501314d09be8" have entirely different histories.

5 changed files with 2 additions and 38 deletions

View File

@ -309,15 +309,8 @@
$color = $this->container->get('cadoles.core.service.color');
$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
if($curentuser!="anon.") {
$now=new \DateTime();
if(!$curentuser->getVisitedate()) {
$curentuser->setVisitedate($now);

View File

@ -62,8 +62,6 @@ body {
@media (max-width: 767px) {
.header { display: none }
#menu-header { display: none }
#navbarsmalltitle { display: none }
}

View File

@ -135,26 +135,6 @@
$(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() {
$(".js-datepicker").datepicker({

View File

@ -4,13 +4,6 @@
{% endif %}
{% 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") %}
<li id="menu-annuaire"><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
{%endif%}

View File

@ -102,7 +102,7 @@
<a class="navbar-brand" href="{{ path("cadoles_core_home") }}">
<img id="logo" src="/{{ alias }}/{{ logo }}">
<span id="navbarsmalltitle">{{ app.session.get('appname') }}</span>
{{ app.session.get('appname') }}
</a>
</div>