-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-front.php
39 lines (34 loc) · 1.22 KB
/
sidebar-front.php
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
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* The sidebar containing the front page widget areas.
*
* If no active widgets in either sidebar, they will be hidden completely.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
/*
* The front page widget area is triggered if any of the areas
* have widgets. So let's check that first.
*
* If none of the sidebars have widgets, then let's bail early.
*/
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) )
return;
// If we get this far, we have widgets. Let do this.
?>
<div id="secondary" class="widget-area" role="complementary">
<h2 style="text-align:right;font-size:22px;margin-bottom:15px;border-bottom:2px solid #cccccc;">Gilla oss på Facebook</h2>
<div class="fb-facepile" data-href="https://www.facebook.com/inspirimeblog" data-size="large" data-max-rows="4" data-width="250"></div>
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<div class="first front-widgets">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div><!-- .first -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<div class="second front-widgets">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div><!-- .second -->
<?php endif; ?>
</div><!-- #secondary -->