Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (19 sloc) 807 Bytes
<?php
/**
* Primary Sidebar Template
*
* Displays widgets for the Primary dynamic sidebar if any have been added to the sidebar through the
* widgets screen in the admin by the user. Otherwise, nothing is displayed.
*
* @package Cakifo
* @subpackage Template
*/
if ( is_active_sidebar( 'primary' ) ) : ?>
<?php do_atomic( 'before_sidebar_primary' ); // cakifo_before_sidebar_primary ?>
<aside id="sidebar-primary" class="sidebar-primary widget-area">
<?php do_atomic( 'open_sidebar_primary' ); // cakifo_open_sidebar_primary ?>
<?php dynamic_sidebar( 'primary' ); ?>
<?php do_atomic( 'close_sidebar_primary' ); // cakifo_close_sidebar_primary ?>
</aside> <!-- .sidebar-primary -->
<?php do_atomic( 'after_sidebar_primary' ); // cakifo_after_sidebar_primary ?>
<?php endif; ?>