File: /home/undanet/www//PortalEmpleo/src/Views/ConvocatoriaView.php
<?php
if(isset($data))
{
$root = get_site_url() . '/';
echo '<table border="0"><tbody>';
$register_link_es = get_permalink( 119 );
$register_link_en = get_permalink( pll_get_post( 119 ) );
foreach ($data as $convocatoria) {
$description = ( pll_current_language() == 'en' ) ? $convocatoria->getDescripcionEn() : $convocatoria->getDescripcion();
echo '<tr class="cebra"><td><ul class="margenes_laterales_4 green lista_none shadow"><li class="shadow"><label class="color_original">';
echo $convocatoria->getReferencia() . ' - ' . $description .' ' . __('- Published on','panoramic_child'). ' '. $convocatoria->getFechaInicio()->format('d/m/Y').' ' . __('- End Date','panoramic_child'). ' '.$convocatoria->getFechaFin()->format('d/m/Y');
echo ' ( <a href="' . $root . __('en/call-details/?id=', 'panoramic_child') . $convocatoria->getIdconvocatoria() . '" class="link">' . __('Read More', 'panoramic_child') . '</a> ) ';
echo '</label></li></ul></td></tr>';
}
echo '</tbody></table>';
} else {
echo '<br>';
echo __('Right now we don“t have any open call', 'panoramic_child');
}
?>