Commit 85448ead authored by numeroteca's avatar numeroteca

#11 añade imagen logo como seleccionable en entidades y la muestra

parent 528260c0
......@@ -21,6 +21,8 @@ $web_user = get_post_meta( $post_id, '_pods_web_user', true );
$web_user_id = $web_user[0]; //gets id of web user
$entity_type = get_the_terms( $post_id, 'user-type', ' ', ', ', '' );
$entity_type_simple = $entity_type[0]->slug;
$logo = get_post_meta( $post_id, '_pods_logo', true );
$logo2 = get_post_meta( $post_id, 'logo', true ); // gets all the info about the selected logo guid has de url of the image
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
......@@ -90,8 +92,11 @@ $entity_type_simple = $entity_type[0]->slug;
<dt>Instagram</dt>
<dd><i class="fa fa-instagram"></i> <a href="<?php echo 'https://www.instagram.com/'.$instagram; ?>"><?php echo $instagram; ?></a></dd>
<?php } ?>
<dt>Profile</dt>
<dd><?php
<dt><?php echo __('Profile','colormag-child'); ?></dt>
<dd><?php
if ($logo2) { // if has logo image
echo '<img class="size-thumbnail alignleft" src="' .$logo2["guid"]. '" width="150" />';
}
the_content();
?></dd>
</dl>
......@@ -102,11 +107,11 @@ $entity_type_simple = $entity_type[0]->slug;
if ( "colectivo" == $entity_type_simple ) { //tipo de entidad colectiva
echo '<h2>Personas que pertenecen a '. $tit .'</h2>';
echo '<h2 style="clear: left;">'. __('Personas en Wikitoki que pertenecen a ','colormag-child') . $tit .'</h2>';
} else { //tipo de entidad individual "individual" == $entity_type
echo '<h2>Organizaciones a las que pertenece '. $tit .'</h2>';
echo '<h2 style="clear: left;">'. __('Organizaciones a las que pertenece ','colormag-child') . $tit .'</h2>';
}
......
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