コード例 #1
0
<?php

$places = theme_get_sidebar_places('header');
$count_widgets = array_sum(array_map('count', $places));
if ($count_widgets > 0) {
    theme_print_sidebar('header', $places);
}
コード例 #2
0
<?php

$places = theme_get_sidebar_places('top');
$count_widgets = array_sum(array_map('count', $places));
if ($count_widgets > 0) {
    theme_print_sidebar('top', $places);
}
コード例 #3
0
<?php

$places = theme_get_sidebar_places('bottom');
$count_widgets = array_sum(array_map('count', $places));
if ($count_widgets > 0) {
    theme_print_sidebar('bottom', $places);
}
コード例 #4
0
<?php

$places = theme_get_sidebar_places('footer');
$count_widgets = array_sum(array_map('count', $places));
if ($count_widgets > 0) {
    theme_print_sidebar('footer', $places);
}
コード例 #5
0
ファイル: sidebar.php プロジェクト: slavam/adult-childhood
<?php

if (theme_has_layout_part("left_sidebar")) {
    ?>

<?php 
    $places = theme_get_sidebar_places('default');
    $count_widgets = array_sum(array_map('count', $places));
    if ($count_widgets > 0) {
        ?>

<div class="art-layout-cell art-sidebar1 clearfix">
<?php 
        theme_print_sidebar('default', $places);
        ?>




                        </div><?php 
    }
    ?>

<?php 
}
?>