This commit is contained in:
parent
114155e924
commit
03182d59ee
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -346,7 +346,7 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
||||
let url = $(".block-region-second .field_logo img").attr("src");
|
||||
console.log(url)
|
||||
let elem = "<div class='main_logo'></div>";
|
||||
elem = $(elem).css("background","50%/contain no-repeat url("+url+")")
|
||||
elem = $(elem).css("background","50%/contain no-repeat url("+url+")");
|
||||
///let elem = "<div class='main_logo'></div>"
|
||||
|
||||
if( $("body").hasClass("programme-7") || $("body").hasClass("programme-6") || $("body").hasClass("programme-27") ){
|
||||
@ -361,7 +361,9 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
|
||||
if($('#projets-block_2').length > 0){
|
||||
$('#projets-block_2').append(elem);
|
||||
}else{
|
||||
$('.block-region-second').prepend(elem);
|
||||
if( $(".page-node-type-projet").length == undefined || $(".page-node-type-theme").length == undefined){
|
||||
$('.block-region-second').prepend(elem);
|
||||
}
|
||||
}
|
||||
$(".main_logo").css("position","relative");
|
||||
|
||||
|
@ -66,10 +66,13 @@ function popsu_preprocess_field(&$variables){
|
||||
$variables['attributes']['class'][] = 'crop';
|
||||
}
|
||||
if($element["#field_name"] == "field_programme"){
|
||||
|
||||
foreach ($element["#items"]->getIterator() as $id => $item) {
|
||||
|
||||
$nid = $item->getValue()['target_id'];
|
||||
$variables['items'][$nid]['attributes'] = new Attribute();
|
||||
$variables['items'][$nid]['attributes']->addClass("programme-".$nid);
|
||||
//dump($nid);
|
||||
$variables['items'][$id]['attributes'] = new Attribute();
|
||||
$variables['items'][$id]['attributes']->addClass("programme-".$nid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -423,7 +423,7 @@
|
||||
}
|
||||
div[id=""] {
|
||||
@include breakpoint(small down) {
|
||||
display: none;
|
||||
//display: none;
|
||||
}
|
||||
}
|
||||
.views-element-container{
|
||||
|
Loading…
x
Reference in New Issue
Block a user