Commit fcd8726e authored by numeroteca's avatar numeroteca

añade campo libre de texto para fechas de varios dias

parent 68a43d1f
......@@ -13,8 +13,9 @@ $tit = get_the_title();
$place = get_post_meta( $post_id, $prefixact.'place', true );
$time = get_post_meta( $post_id, $prefixact.'time', true );
$date = get_post_meta( $post_id, $prefixact.'date-init-fix', true );
$date_varios = get_post_meta( $post_id, $prefixact.'date-init-varios', true );
// $date = DateTime::createFromFormat('m/d/Y', $dateinit);
//$dateinit2 = get_post_meta( $post_id, $prefixact.'date-init2', true );
// $dateinit2 = get_post_meta( $post_id, $prefixact.'date-init2', true );
$dateend = get_post_meta( $post_id, $prefixact.'date-end', true );
$organizer = get_post_meta( $post_id, $prefixact.'organizador', true );
$numero_asistentes = get_post_meta( $post_id, $prefixact.'numero-asistentes', true );
......@@ -70,8 +71,15 @@ $the_content = get_the_content();
// if ( $tit!= '' ) echo __('What','colormag-child').": ".$tit."<br>";
if ( $place != '' ) echo __('Place','colormag-child').": ". $place."<br>";
if ( $time != '' ) echo __('Hour','colormag-child').": ".$time."<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 ( $date != '' ) {
if ( $date_varios != '' ) { // si tiene múltiple fecha muestra esa
echo __('Date','colormag-child').": ". $date_varios . "<br>";
} else { // si no la tiene, muestra la fecha normal
echo __('Date','colormag-child').": ". date("d/m/Y", strtotime($date)). "<br>";
echo $date_varios;
}
}
//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 __('Organized by','colormag-child').": ". $organizer."<br>";
if ( $numero_asistentes != '' ) echo __('Number of people','colormag-child').": ".$numero_asistentes."<br>";
......
This diff is collapsed.
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