Skip to content

Commit

Permalink
Merge pull request #302 from garrett-eclipse/patch-3
Browse files Browse the repository at this point in the history
Add offcanvas sidebar to content-offcanvas
  • Loading branch information
Jeremy Englert committed Oct 14, 2018
2 parents 565d52b + 877abb4 commit c15ad34
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion parts/content-offcanvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,19 @@

<div class="off-canvas position-right" id="off-canvas" data-off-canvas>
<?php joints_off_canvas_nav(); ?>
</div>

<?php if ( is_active_sidebar( 'offcanvas' ) ) : ?>

<?php dynamic_sidebar( 'offcanvas' ); ?>

<?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.', 'jointswp' ); ?></p>
</div>

<?php endif; ?>

</div>

0 comments on commit c15ad34

Please sign in to comment.