Commit fe79b9b1 authored by numeroteca's avatar numeroteca

issue #24: pasa las fechas a numérico dd/mm/aaaa en actividades

parent 077db012
...@@ -70,8 +70,8 @@ $the_content = get_the_content(); ...@@ -70,8 +70,8 @@ $the_content = get_the_content();
// if ( $tit!= '' ) echo __('What','colormag-child').": ".$tit."<br>"; // if ( $tit!= '' ) echo __('What','colormag-child').": ".$tit."<br>";
if ( $place != '' ) echo __('Place','colormag-child').": ". $place."<br>"; if ( $place != '' ) echo __('Place','colormag-child').": ". $place."<br>";
if ( $time != '' ) echo __('Hour','colormag-child').": ".$time."<br>"; if ( $time != '' ) echo __('Hour','colormag-child').": ".$time."<br>";
if ( $date != '' ) echo __('Date','colormag-child').": ". date("d/M/Y", strtotime($date)). "<br>"; if ( $date != '' ) echo __('Date','colormag-child').": ". date("d/m/Y", strtotime($date)). "<br>";
if ( $dateend!= '') echo __('End date','colormag-child').": ".date( 'd/M/Y', $dateend )."<br>"; if ( $dateend!= '') echo __('End date','colormag-child').": ".date( 'd/m/Y', $dateend )."<br>";
echo __('Type','colormag-child').": ". get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' )."<br>"; echo __('Type','colormag-child').": ". get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' )."<br>";
echo __('Organized by','colormag-child').": ". $organizer."<br>"; echo __('Organized by','colormag-child').": ". $organizer."<br>";
if ( $numero_asistentes != '' ) echo __('Number of people','colormag-child').": ".$numero_asistentes."<br>"; if ( $numero_asistentes != '' ) echo __('Number of people','colormag-child').": ".$numero_asistentes."<br>";
......
...@@ -62,7 +62,7 @@ $the_content = get_the_content(); ...@@ -62,7 +62,7 @@ $the_content = get_the_content();
echo get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' ); ?> echo get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' ); ?>
<span class="posted-on"><i class="fa fa-calendar-o"></i> <span class="posted-on"><i class="fa fa-calendar-o"></i>
<?php echo date("d/M/Y", strtotime($date)); ?> <?php echo date("d/m/Y", strtotime($date)); ?>
</span> </span>
<?php <?php
......
...@@ -72,7 +72,7 @@ $post_id = $post->ID; ...@@ -72,7 +72,7 @@ $post_id = $post->ID;
echo get_the_term_list( $post_id, 'tipo-actividad', ' ', ', ', '' ) . "<br>"; echo get_the_term_list( $post_id, 'tipo-actividad', ' ', ', ', '' ) . "<br>";
echo '<i class="fa fa-calendar-o"></i>'. date("d/M/Y", strtotime($date)); echo '<i class="fa fa-calendar-o"></i> '. date("d/m/Y", strtotime($date)); // TODO change month to local language https://stackoverflow.com/questions/4975854/translating-php-date-for-multilingual-site
// Display more link if this is a Entidad CPT // Display more link if this is a Entidad CPT
} else if ( 'entidad' == get_post_type( $post_id ) ) { } else if ( 'entidad' == get_post_type( $post_id ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment