Skip to content

Commit

Permalink
new file: sidebar-1.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tenman committed Mar 31, 2016
1 parent ebcc336 commit 274bf79
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sidebar-1.php
@@ -0,0 +1,22 @@
<?php if ( is_dynamic_sidebar() ) { ?>
<nav class="enough-sidebar">
<ul>
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</ul>
</nav>
<?php
} else {

if ( is_user_logged_in() ) {
echo '<nav class="enough-sidebar"><ul>';
echo '<li><div class="link-to-sidebar-settings">';
echo '<div>
<h3>Sidebar</h3>
<a href="' . admin_url( 'widgets.php' ) . '">' . __( 'Set Widgets', 'enough' ) . '</a><br />or</br />
<a href="' . admin_url( 'customize.php?autofocus[control]=enough_post_one_column_bottom_sidebar' ) . '">' . __( 'Change 1 Columns', 'enough' ) . '</a>
</div>';

echo '</div></li></ul></nav>';
}
}

0 comments on commit 274bf79

Please sign in to comment.