dashwall/sidebar.php
Alexander Agnarson fe0be23838 Initial commit
2025-03-27 14:38:21 +01:00

25 lines
No EOL
682 B
PHP

<?php
$sidebar = dashwall_sidebar_primary();
$layout = dashwall_layout_class();
if ( $layout != 'col-1c'):
?>
<div class="page-col-sidebar<?php if ( !is_home() ): ?>-center<?php endif; ?>">
<div class="sidebar-content">
<?php if ( is_home() ): ?>
<?php get_template_part('inc/profile'); ?>
<?php endif; ?>
<?php if ( get_theme_mod( 'post-nav', 'sidebar' ) == 'sidebar' ) { get_template_part('inc/post-nav'); } ?>
<?php if ( !is_home() && !is_search() ): ?>
<?php if ( get_theme_mod( 'sidebar-search', 'on' ) =='on' ) { get_template_part('inc/sidebar-search'); } ?>
<?php endif; ?>
<?php dynamic_sidebar($sidebar); ?>
</div>
</div>
<?php endif; ?>