Merge branch 'avantLive'
This commit is contained in:
commit
dd2c64e08d
@ -11,7 +11,7 @@
|
|||||||
function q2d_mod_theme() {
|
function q2d_mod_theme() {
|
||||||
return array(
|
return array(
|
||||||
'svg_mapsites' => array(
|
'svg_mapsites' => array(
|
||||||
'variables' => array('vpw' => null, 'vph' => null, 'sites' => []),
|
'variables' => array('vpw' => null, 'vph' => null, 'sites' => [], 'label' => null),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
@ -101,6 +101,7 @@ class SitesMap extends BlockBase {
|
|||||||
],
|
],
|
||||||
'svg_mapsites' => [
|
'svg_mapsites' => [
|
||||||
'#theme' => 'svg_mapsites',
|
'#theme' => 'svg_mapsites',
|
||||||
|
'#label' => "Les 10 sites de projet",
|
||||||
'#sites' => $sites_paths,
|
'#sites' => $sites_paths,
|
||||||
'#vpw' => $vp_w,
|
'#vpw' => $vp_w,
|
||||||
'#vph' => $vp_h,
|
'#vph' => $vp_h,
|
||||||
@ -117,6 +118,7 @@ class SitesMap extends BlockBase {
|
|||||||
// '#markup' => $this->t('Hello, Sites Map!'),
|
// '#markup' => $this->t('Hello, Sites Map!'),
|
||||||
// ];
|
// ];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCacheMaxAge() {
|
public function getCacheMaxAge() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
<div id="sites-map-container">
|
<div id="sites-map-container">
|
||||||
|
|
||||||
|
<h2>{{label}}</h2>
|
||||||
|
|
||||||
{# <svg {{ svg_attributes }}>
|
{# <svg {{ svg_attributes }}>
|
||||||
<path {{ path_attributes }}></path>
|
<path {{ path_attributes }}></path>
|
||||||
</svg> #}
|
</svg> #}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user