Commit 74b87e7e authored by numeroteca's avatar numeroteca

#11 arregla y hace responsive entidad boxes de Quienes

parent c9dc9cf4
......@@ -74,18 +74,26 @@ $entity_type_simple = $entity_type[0]->slug;
$domain = preg_replace('/^www\./', '', $urlParts['host']);
?>
<dl class="entidad_list">
<dt>Website</dt>
<dd><a href="<?php echo $web; ?>"><?php echo $domain; ?></a></dd>
<dt>Twitter</dt>
<dd><a href="<?php echo 'https://twitter.com/'.$twitter; ?>">@<?php echo $twitter; ?></a></dd>
<dt>Facebook</dt>
<dd><a href="<?php echo $facebook; ?>"><?php echo $facebook; ?></a></dd>
<dt>Instagram</dt>
<dd><a href="<?php echo 'https://www.instagram.com/'.$instagram; ?>"><?php echo $instagram; ?></a></dd>
<dt>Profile</dt>
<dd><?php
the_content();
?></dd>
<?php if ($web) { ?>
<dt>Website</dt>
<dd><i class="fa fa-desktop"></i> <a href="<?php echo $web; ?>"><?php echo $domain; ?></a></dd>
<?php } ?>
<?php if ($twitter) { ?>
<dt>Twitter</dt>
<dd><i class="fa fa-twitter"></i> <a href="<?php echo 'https://twitter.com/'.$twitter; ?>">@<?php echo $twitter; ?></a></dd>
<?php } ?>
<?php if ($facebook) { ?>
<dt>Facebook</dt>
<dd><i class="fa fa-facebook"></i> <a href="<?php echo 'https://www.facebook.com/'.$facebook; ?>"><?php echo $facebook; ?></a></dd>
<?php } ?>
<?php if ($instagram) { ?>
<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
the_content();
?></dd>
</dl>
<?php
......@@ -182,7 +190,7 @@ $entity_type_simple = $entity_type[0]->slug;
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time('d M Y'); ?> in <?php the_category('&');?>
<?php the_time('d M Y'); ?>. <?php the_category('|');?>
</li>
<?php endwhile; else: ?>
<p><?php _e('No posts by this author.'); ?></p>
......
......@@ -101,16 +101,33 @@ h2.subsection span {
}
/* for 3 columns in entities/quienes */
#content .quienes .entidad {
display: inline-table;
width:29% !important;
margin:0 1.5% 15px 1.5%;
border:
#EEE solid 2px;
padding: 10px;
border-radius: 4px;
}
@media only screen and (max-width: 899px) {
#content .quienes .entidad {
width:100% !important;
}
}
#content .quienes .entidad:nth-child(3n+1) {
clear:both;
float:left;
/*
float:left;*/
}
#content .quienes .entidad:nth-child(3n+0),
#content .quienes .entidad:nth-child(3n+2) {
float:right;
/* float:right;*/
}
#content .quienes .entidad, #content .quienes article.entidad {
width:31% !important;
}
#content .pr, #content .actividad {
......@@ -158,7 +175,7 @@ h2.subsection span {
margin-bottom: 0px;
}
.single-entidad .author-box, .single-entidad .default-wp-page { /* TODO: remove in the php function */
.single-entidad .author-box, .single-entidad .default-wp-page, .single-entidad #comments { /* TODO: remove in the php function */
display:none;
}
......
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