if($conf->agenda->enabled&&!empty($conf->global->MAIN_ADD_EVENT_ON_ELEMENT_CARD))// Add hidden condition because this is not a "workflow" action so should appears somewhere else on page.
if($conf->agenda->enabled&&!empty($conf->global->MAIN_ADD_EVENT_ON_ELEMENT_CARD))// Add hidden condition because this is not a "workflow" action so should appears somewhere else on page.