all interface is now responsive

This commit is contained in:
2021-12-07 17:10:59 +01:00
parent 62a9afcc33
commit c634eb80f3
7 changed files with 477 additions and 190 deletions
@@ -258,8 +258,6 @@ function perfart_get_performances(){
$count = $count_query->count()->execute();
pager_default_initialize($count, $limit);
$data = array();
foreach ($result['node'] as $eff) {
$eff = node_load($eff->nid);
//$eff = entity_load('node', array($eff->nid), NULL, FALSE);
@@ -324,6 +322,8 @@ function perfart_get_performances(){
if(in_array($perf['target_id'], $perfadded))
continue;
$item_classes = array();
$perfadded[] = $perf['target_id'];
$perf = node_load($perf['target_id']);
@@ -386,6 +386,9 @@ function perfart_get_performances(){
// dsm($image, 'image');
$date['thumb'] = l($image, $node_path, array('html'=>true));
$content .= $date['thumb'];
$item_classes[] = "with-image";
}else{
$item_classes[] = "without-image";
}
// $content .= '</div>';
@@ -445,11 +448,20 @@ function perfart_get_performances(){
pager_default_initialize($count, $limit);
// $data[] = $date;
$list['items'][] = $content;
$item = array(
'data' => $content,
// 'attributes' => array(
'class' => $item_classes,
// ),
);
$list['items'][] = $item;
}
}
$list['attributes']['id'] = "home-performances-list";
// dsm($data, '$data');
return theme('item_list', $list) . theme('pager');
}