mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-29 07:49:16 -04:00
* 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.
14 lines
473 B
PHP
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>
|