Files
gallery3/themes/admin_default/views/block.html.php
Bharat Mediratta bc421a615a Implement deleting dashboard blocks.
* Refactor blocks so that they have a separate id vs css_id.  This way
  we can have a unique identifier for each visual block.

* Store blocks with a random id as their unique identifier

* Add Admin_Dashboard::remove_block() and modify
  themes/admin_default/views/block.html.php to call it when you click the
  remove box.
2009-01-12 08:26:38 +00:00

14 lines
473 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="<?= $css_id ?>" class="gBlock ui-widget-dialog">
<div class="ui-dialog-titlebar ui-widget-header">
<a href="<?= url::site("admin/dashboard/remove_block/$id?csrf=" . access::csrf_token()) ?>"
class="ui-dialog-titlebar-close">
<span class="ui-icon ui-icon-closethick">remove</span>
</a>
<?= $title ?>
</div>
<div class="gBlockContent">
<?= $content ?>
</div>
</div>