diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-13 14:25:56 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-13 14:25:56 -0700 |
commit | 75c68084136321b108e379643065fd21167990f8 (patch) | |
tree | d16943566f6a3bc5425dce430bf10e495a6199b4 | |
parent | aed7ce916138ec31798bec9cbee66a8742670633 (diff) |
Only show the block anchor if one exists. Show block anchors for
admin themes too.
-rw-r--r-- | themes/admin_default/views/block.html.php | 3 | ||||
-rw-r--r-- | themes/default/views/block.html.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/themes/admin_default/views/block.html.php b/themes/admin_default/views/block.html.php index 21512d02..6cbea76e 100644 --- a/themes/admin_default/views/block.html.php +++ b/themes/admin_default/views/block.html.php @@ -1,4 +1,7 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> +<? if ($anchor): ?> +<a name="<?= $anchor ?>"></a> +<? endif ?> <div block_id="<?= $id ?>" id="<?= $css_id ?>" class="gBlock ui-widget"> <div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-icon-right"> <? if ($css_id != "gBlockAdder"): ?> diff --git a/themes/default/views/block.html.php b/themes/default/views/block.html.php index 37504861..e8cff833 100644 --- a/themes/default/views/block.html.php +++ b/themes/default/views/block.html.php @@ -1,5 +1,7 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> +<? if ($anchor): ?> <a name="<?= $anchor ?>"></a> +<? endif ?> <div id="<?= $css_id ?>" class="gBlock"> <h2><?= $title ?></h2> <div class="gBlockContent"> |