WordPress theme for Friendica site at https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
2.4 KiB

5 years ago
  1. <?php /** @TODO: This template is unifinished! */ ?>
  2. <?php get_header(); ?>
  3. <?php global $post; ?>
  4. <div class="row">
  5. <div class="8u 12u$(medium)">
  6. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  7. <header class="header">
  8. <h1 class="entry-title"><?php the_title(); ?> <span class="meta-sep">|</span> <a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php printf( __( 'Return to %s', 'blankslate' ), esc_html( get_the_title( $post->post_parent ), 1 ) ); ?>" rev="attachment"><span class="meta-nav">&larr; </span><?php echo get_the_title( $post->post_parent ); ?></a></h1> <?php edit_post_link(); ?>
  9. <?php get_template_part( 'entry', 'meta' ); ?>
  10. </header>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12. <header class="header">
  13. <nav id="nav-above" class="navigation" role="navigation">
  14. <div class="nav-previous"><?php previous_image_link( false, '&larr;' ); ?></div>
  15. <div class="nav-next"><?php next_image_link( false, '&rarr;' ); ?></div>
  16. </nav>
  17. </header>
  18. <section class="entry-content">
  19. <div class="entry-attachment">
  20. <?php if ( wp_attachment_is_image( $post->ID ) ) : $att_image = wp_get_attachment_image_src( $post->ID, "large" ); ?>
  21. <p class="attachment"><a href="<?php echo wp_get_attachment_url( $post->ID ); ?>" title="<?php the_title(); ?>" rel="attachment"><img src="<?php echo $att_image[0]; ?>" width="<?php echo $att_image[1]; ?>" height="<?php echo $att_image[2]; ?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a></p>
  22. <?php else : ?>
  23. <a href="<?php echo wp_get_attachment_url( $post->ID ); ?>" title="<?php echo esc_html( get_the_title( $post->ID ), 1 ); ?>" rel="attachment"><?php echo basename( $post->guid ); ?></a>
  24. <?php endif; ?>
  25. </div>
  26. <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
  27. <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>
  28. </section>
  29. </article>
  30. <?php comments_template(); ?>
  31. <?php endwhile; endif; ?>
  32. </div>
  33. <?php get_sidebar(); ?>
  34. </div>
  35. <?php get_footer(); ?>