forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathsidebar.php
More file actions
27 lines (22 loc) · 783 Bytes
/
sidebar.php
File metadata and controls
27 lines (22 loc) · 783 Bytes
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
<?php
if ((is_single() || is_singular()) && !largo_is_sidebar_required())
return;
$span_class = largo_sidebar_span_class();
do_action('largo_before_sidebar'); ?>
<aside id="sidebar" class="<?php echo $span_class; ?> nocontent">
<?php do_action('largo_before_sidebar_content'); ?>
<div class="widget-area" role="complementary">
<?php
do_action('largo_before_sidebar_widgets');
if (is_archive() && !is_date())
get_template_part('partials/sidebar', 'archive');
else if (is_single() || is_singular())
get_template_part('partials/sidebar', 'single');
else
get_template_part('partials/sidebar');
do_action('largo_after_sidebar_widgets');
?>
</div>
<?php do_action('largo_after_sidebar_content'); ?>
</aside>
<?php do_action('largo_after_sidebar');