-
Notifications
You must be signed in to change notification settings - Fork 0
/
project-sidebar.php
46 lines (45 loc) · 1.65 KB
/
project-sidebar.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
<?php
global $post;
$id = $post->ID;
$content = the_project_content($id);
$project_id = get_post_meta($id, 'ign_project_id', true);
if (class_exists('Deck')) {
$deck = new Deck($project_id);
$the_deck = $deck->the_deck();
$levels = $the_deck->level_data;
//$levels = the_levels($id);
$type = get_post_meta($id, 'ign_project_type', true);
$end_type = get_post_meta($id, 'ign_end_type', true);
$project = new ID_Project($project_id);
$days_left = $project->days_left();
}
?>
<aside id="sidebar">
<?php get_template_part('project','author'); ?>
<!-- check for closed projects -->
<h3 class="widget-title levels"><?php _e('REWARDS', 'fivehundred'); ?></h3>
<div class="project-sidebar-wrapper">
<div id="ign-product-levels" data-projectid="<?php echo $project_id; ?>">
<?php do_action('id_before_levels', $project_id); ?>
<?php get_template_part('loop', 'levels'); ?>
<?php do_action('id_after_levels', $project_id); ?>
</div>
<div class="ign-supportnow mobile">
<a href="<?php the_permalink(); ?>?purchaseform=500&prodid=<?php echo $project_id; ?>"><?php _e('Support Now', 'fivehundred'); ?></a>
</div>
<?php
$settings = getSettings();
?>
<?php if ($settings->id_widget_logo_on == 1) {
echo '<div id="poweredbyID"><span><a href="http://www.ignitiondeck.com" title="Crowdfunding Wordpress Theme by IgnitionDeck"></a></span></div>';
} ?>
</div>
<!-- project widget area -->
<?php if ( is_active_sidebar('projects-widget-area') ) : ?>
<div id="primary" class="widget-area">
<ul class="sid">
<?php dynamic_sidebar('projects-widget-area'); ?>
</ul>
</div>
<?php endif; ?>
</aside>