From afcc8f534599855ab8d401eaf6a64096904feac6 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 13 Apr 2015 17:33:46 +0100 Subject: [PATCH] Fix layout --- content-site.php | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ single-site.php | 26 ++++++++-------------- 2 files changed, 66 insertions(+), 17 deletions(-) create mode 100644 content-site.php diff --git a/content-site.php b/content-site.php new file mode 100644 index 0000000..6abbaf9 --- /dev/null +++ b/content-site.php @@ -0,0 +1,57 @@ + +
> + + +
+ ', '' ); + else : + the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); + endif; + ?> +
+ +
+ ', '', false ) + ) ); + + talhyperlocal_map_shortcode( get_the_ID() ); + $meta = get_post_custom(); + $url = $meta['url'][0]; + ?> +

Website:

+

&after=' ) ?>

+ + + +
+ + + +
+ + ', '' ); ?> +
+ +
diff --git a/single-site.php b/single-site.php index e07f239..b2377fa 100644 --- a/single-site.php +++ b/single-site.php @@ -21,30 +21,22 @@ get_header(); ?> * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ - get_template_part( 'content', get_post_format() ); + get_template_part( 'content', 'site' ); - - talhyperlocal_map_shortcode( get_the_ID() ); - $meta = get_post_custom(); - $url = $meta['url'][0]; - ?> -

Website

-

&after=' ) ?>

- ' ' . - // '' . __( 'Next post:', 'twentyfifteen' ) . ' ' . - // '%title', - // 'prev_text' => ' ' . - // '' . __( 'Previous post:', 'twentyfifteen' ) . ' ' . - // '%title', - // ) ); + the_post_navigation( array( + 'next_text' => ' ' . + '' . __( 'Next post:', 'twentyfifteen' ) . ' ' . + '%title', + 'prev_text' => ' ' . + '' . __( 'Previous post:', 'twentyfifteen' ) . ' ' . + '%title', + ) ); // End the loop. endwhile;