friendica-wp-theme/entry-home.php
Fabio 5f63119ef0 Fix popups and add last news in homepage
- popup submenu item full width and left aligned
- minimum width for the popup submenu
- popup submenu closer to parent item. should fix popup issues.
- images in posts have max-width to 100%
- show last news in homepage
2017-04-04 10:33:49 +02:00

20 lines
630 B
PHP

<article id="post-<?php the_ID(); ?>" <?php post_class("6u 12u$(medium)"); ?>>
<?php if (has_post_thumbnail()) {?>
<div class="image fit">
<img src="<?php the_post_thumbnail_url('medium_large'); ?>" alt="Stack">
</div>
<?php } ?>
<header>
<h3 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h3>
<?php get_template_part( 'entry', 'meta' ); ?>
</header>
<?php get_template_part( 'entry', 'summary' ); ?>
<footer>
<a href="<?php the_permalink(); ?>" class="button special">More</a>
</footer>
</article>