Display created by and created date on JA News Frontpage Module
Forums Joomla Templates Club JA Teline III JA Teline III v2 - T3 Framework 2 Display created by and created date on JA News Frontpage Module
I should have come with a more elegant solution, pardon my noobiness, here’s how I could change the date into spanish:
Edit file header.php inside /templates/ja_teline_iii_v2/blocks replacing:
<p class="ja-day">
<?php
echo "<span class="day">".date ('l')."</span>";
echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
?>
</p>
with:
<p class="ja-day">
<?php
function fecha ()
{
$vect=getdate();
$vect_dia=array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
$vect_mes=array("Diciembre","Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre");
return $vect_dia[$vect[wday]]." ".$vect[mday]." de ".$vect_mes[$vect[mon]];
}
echo fecha()."<br>";
?></p>
function from: http://refactormycode.com/codes/150-spanish-date-function
!!! !!! !!!
This topic contains 16 replies, has 4 voices, and was last updated by neoclub 13 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum