Skip to:
Content

BuddyPress.org

Ticket #182: home.php

File home.php, 1.1 KB (added by yoavf, 17 years ago)

Change in home.php file.

Line 
1<?php get_header(); ?>
2<div id="content" class="widecolumn">
3
4        <div id="column-1">
5                <?php if ( !function_exists('dynamic_sidebar')
6                        || !dynamic_sidebar('right-column') ) : ?>
7               
8                <div class="widget-error">
9                        Please log in and <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=sidebar-3">add widgets to this column</a>.
10                </div>
11               
12                <?php endif; ?>
13        </div>
14
15        <div id="column-2">
16                <?php if ( !function_exists('dynamic_sidebar')
17                        || !dynamic_sidebar('center-column') ) : ?>
18               
19                <div class="widget-error">
20                        Please log in and <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=sidebar-2">add widgets to this column</a>.
21                </div>
22               
23                <?php endif; ?>
24        </div>
25
26        <div id="column-3">
27                <?php if ( !function_exists('dynamic_sidebar')
28                        || !dynamic_sidebar('left-column') ) : ?>
29
30                <div class="widget-error">
31                        Please log in and <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=sidebar-1">add widgets to this column</a>.
32                </div>         
33               
34                <?php endif; ?>
35        </div>
36
37</div>
38
39<?php get_footer(); ?>