-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
30 lines (22 loc) · 1 KB
/
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
<div id="sidebar1" class="sidebar fourcol last clearfix" role="complementary">
<?php if ( is_singular( 'project' ) ) : ?>
<div class="widget">
<h4 class="widgettitle">Make Donation</h4>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/library/js/[email protected]"
data-button="donate"
data-amount-editable=""
data-number="<?php echo $post->ID; ?>"
data-name="<?php echo convert_smart_quotes( get_the_title( $post->ID ) ); ?>"
data-callback="<?php echo get_permalink( $post->ID ); ?>"
></script>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar' ) ) : ?>
<?php dynamic_sidebar( 'sidebar' ); ?>
<?php else : ?>
<!-- This content shows up if there are no widgets defined in the backend. -->
<div class="alert help">
<p><?php _e("Please activate some Widgets.", "bonestheme"); ?></p>
</div>
<?php endif; ?>
</div>