-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
26 lines (25 loc) · 861 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
global $post;
$breadcrumbtrail_handler = sprintf('informea_%s_breadcrumbtrail', $post->post_name);
if(function_exists($breadcrumbtrail_handler)) {
add_action('breadcrumbtrail', $breadcrumbtrail_handler);
}
get_header();
if (have_posts()) : while (have_posts()) : the_post();
global $post;
$id = get_request_variable('id');
$specific_template = $post->post_name . (empty($id) ? '' : '-item');
?>
<div id="page-title">
<?php get_template_part("pages/titles/title", $specific_template); ?>
</div>
<div class="col2-left col2">
<?php get_template_part("pages/left_column/sidebar", $specific_template); ?>
<div class="clear"></div>
</div>
<div class="col2-center col2">
<?php get_template_part("pages/content/page", $specific_template); ?>
</div>
<?php
endwhile; endif;
get_footer();