Permalink
Browse files

Only show the block anchor if one exists. Show block anchors for

admin themes too.
  • Loading branch information...
1 parent aed7ce9 commit 75c68084136321b108e379643065fd21167990f8 @bharat bharat committed Sep 13, 2009
Showing with 5 additions and 0 deletions.
  1. +3 −0 themes/admin_default/views/block.html.php
  2. +2 −0 themes/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"): ?>
@@ -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">

0 comments on commit 75c6808

Please sign in to comment.