studio-ui composer is ready to test actively

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-27 15:28:53 +02:00
parent 4cfdf1a491
commit 58ffc1ff88
12 changed files with 1198 additions and 606 deletions
@@ -103,7 +103,6 @@ function edlptheme_preprocess_node__enregistrement__search_index(&$vars){
// dpm($vars['link_attributes']);
}
function edlptheme_preprocess_node__enregistrement__compo(&$vars){
$node = $vars['elements']['#node'];
$options = ['absolute' => TRUE];
@@ -125,6 +124,10 @@ function edlptheme_preprocess_node__enregistrement__compo(&$vars){
'nid' => $node->id(),
'class' => array('audio-link', 'ajax-link')
));
// dpm($vars);
$title = $vars['label'][0]['#context']['value'];
$vars['label'][0]['#context']['value'] = Unicode::truncate($title, 25, true, true);
// dpm($vars['link_attributes']);
}