Skip to content

Commit

Permalink
services template start
Browse files Browse the repository at this point in the history
  • Loading branch information
briankelleher committed Mar 22, 2016
1 parent b98ae83 commit 6d613bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions www/wp-content/themes/ation2016/page-services.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

$context = Timber::get_context();
$post = Timber::query_post();
$context['post'] = $post;
$context['comment_form'] = TimberHelper::get_comment_form();

if ( post_password_required( $post->ID ) ) {
Timber::render( 'single-password.twig', $context );
} else {
Timber::render( array( 'single-' . $post->ID . '.twig', 'single-' . $post->post_type . '.twig', 'single.twig' ), $context );
}

0 comments on commit 6d613bd

Please sign in to comment.