diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-12-31 22:49:57 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-12-31 22:49:57 -0800 |
commit | e760200eeec2f003f95072118a6cc52971c76dad (patch) | |
tree | fe9a438d948f064dd9369712bbe9d7fa5af2f3ec /themes/wind | |
parent | affbc28876901058810d9fd26a8f7795084f2efd (diff) |
Identify the case where the active sidebar blocks didn't produce any
content and print out a more informative message in that case. Fixes
Diffstat (limited to 'themes/wind')
-rw-r--r-- | themes/wind/views/no_sidebar.html.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/themes/wind/views/no_sidebar.html.php b/themes/wind/views/no_sidebar.html.php index a9eb0e3e..58c57256 100644 --- a/themes/wind/views/no_sidebar.html.php +++ b/themes/wind/views/no_sidebar.html.php @@ -1,6 +1,11 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <ul class="g-message-block"> - <li class="g-warning"><?= t("No active sidebar blocks.") ?> - <br/><a href="<?= url::site("admin/sidebar") ?>"><?= t("Add blocks") ?></a> + <li class="g-warning"> + <? if (block_manager::get_active("site_sidebar")): ?> + <?= t("Active sidebar blocks have no content.") ?> + <? else: ?> + <?= t("No active sidebar blocks.") ?> + <? endif ?> + <a href="<?= url::site("admin/sidebar") ?>"><?= t("configure blocks") ?></a> </li> </ul> |