forked from mloeffler/cvtx
/
single-cvtx_antrag.php
54 lines (53 loc) · 1.99 KB
/
single-cvtx_antrag.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Template für einzelne Anträge
*
* @package WordPress
* @subpackage cvtx_theme_spd
*/
?>
<?php get_header(); ?>
<div class="inner">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $decided = cvtx_spd_antrag_is_decided($post->ID); ?>
<?php $finished = cvtx_spd_antrag_is_finished($post->ID); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<div class="antrag spd-cvtx-entry">
<?php do_action('cvtx_theme_antragsteller',array('short' => false)); ?>
<?php do_action('cvtx_spd_theme_recipient'); ?>
<?php do_action('cvtx_spd_theme_title_wo_short'); ?>
<?php if(!$decided) the_content('<p class="serif">' . __('Read the rest of this entry »', 'cvtx_theme') . '</p>'); ?>
<?php if(!$decided) do_action('cvtx_theme_grund'); ?>
<?php if($decided) do_action('cvtx_spd_theme_beschluss'); ?>
</div>
<?php if(!$decided): ?>
<div class="ak-version spd-cvtx-entry">
<?php do_action('cvtx_spd_theme_ak_konsens'); ?>
<?php do_action('cvtx_spd_theme_version_ak'); ?>
</div>
<?php endif; ?>
<div class="allgemein spd-cvtx-entry">
<?php if($decided): ?>
<?php do_action('cvtx_theme_poll'); ?>
<?php endif; ?>
<?php do_action('cvtx_theme_assign_to'); ?>
</div>
<?php if($finished === true): ?>
<div class="ak-version spd-cvtx-entry">
<?php do_action('cvtx_spd_theme_answer'); ?>
</div>
<?php endif; ?>
<?php do_action('cvtx_theme_pdf'); ?>
</div>
</p>
<?php do_action('cvtx_spd_theme_aenderungsantraege_list'); ?>
</div>
<?php endwhile; else: ?>
<p><?php _e('There are no posts matching your search criteria. Sorry!', 'cvtx_theme'); ?></p>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>